:root {
  --ink: #0d1718;
  --ink-soft: #172526;
  --paper: #f4f1e8;
  --paper-deep: #e7e2d5;
  --line: rgba(13, 23, 24, .18);
  --lime: #c9f269;
  --teal: #52d6c7;
  --muted: #5f6865;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
main section[id] { scroll-margin-top: 88px; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); }
a:focus-visible, summary:focus-visible { outline: 3px solid #0a756e; outline-offset: 4px; }

.dashboard-hero { padding: clamp(64px, 8vw, 118px) clamp(20px, 7vw, 110px); }
.dashboard-heading { max-width: 920px; }
.dashboard-heading h1 { margin-bottom: 28px; font-size: clamp(54px, 7.5vw, 106px); line-height: .96; letter-spacing: -.065em; }
.dashboard-heading h1 em { color: #0a756e; font-style: normal; }
.category-grid { margin-top: clamp(46px, 7vw, 90px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.category-card { min-height: 340px; padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; border: 1px solid var(--ink); border-radius: 22px; transition: transform 160ms ease, box-shadow 160ms ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 14px 0 var(--paper-deep); }
.category-top, .category-card footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.category-top { font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.category-top b { padding: 6px 10px; border: 1px solid currentColor; border-radius: 999px; }
.category-card > div:nth-child(2) { margin: auto 0; }
.card-kicker { margin-bottom: 8px; font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .09em; opacity: .65; }
.category-card h2 { margin-bottom: 12px; font-size: clamp(32px, 3.5vw, 48px); line-height: 1; letter-spacing: -.055em; }
.category-card p { max-width: 560px; }
.category-card footer { padding-top: 22px; border-top: 1px solid currentColor; font-weight: 800; }
.category-card footer code { font-size: 12px; }
.network-card { color: var(--paper); background: var(--ink); }
.network-card .category-top b { color: var(--lime); }
.time-card { color: var(--ink); background: var(--lime); }
.time-card .category-top b { color: #075d58; }
.image-card { color: var(--ink); background: var(--teal); }
.text-card { color: var(--ink); background: #ffd7ce; }
.date-card { color: var(--paper); background: #315e5a; }
.percent-card { color: var(--ink); background: #f4ca67; }
.qr-card { color: var(--paper); background: #343d59; }
.json-card { color: var(--ink); background: #ded8f6; }
.image-card .category-top b,
.text-card .category-top b,
.percent-card .category-top b,
.json-card .category-top b { color: #075d58; }
.date-card .category-top b,
.qr-card .category-top b { color: var(--lime); }

.hero { min-height: 680px; padding: clamp(64px, 9vw, 128px) clamp(20px, 7vw, 110px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: clamp(48px, 8vw, 130px); align-items: center; }
.eyebrow { margin: 0 0 18px; color: #3f5955; font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 790px; margin-bottom: 28px; font-size: clamp(52px, 7.3vw, 104px); line-height: .96; letter-spacing: -.065em; }
.hero h1 em { color: #0a756e; font-style: normal; }
.lead { max-width: 650px; color: #34413f; font-size: clamp(17px, 1.5vw, 21px); }
.actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.actions a { min-height: 50px; padding: 12px 22px; display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; font-weight: 800; }
.actions .primary { color: var(--paper); background: var(--ink); }

.terminal-card { overflow: hidden; color: #dce7df; background: var(--ink); border: 1px solid #243637; border-radius: 22px; box-shadow: 22px 26px 0 var(--paper-deep); font-family: var(--mono); }
.terminal-head { height: 58px; padding: 0 20px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #2a3a3b; }
.terminal-head span { width: 9px; height: 9px; background: #4b5b5a; border-radius: 50%; }
.terminal-head b { margin-left: auto; color: #83918d; font-size: 10px; letter-spacing: .12em; }
.terminal-card .prompt { margin: 0; padding: 25px 24px; color: var(--lime); border-bottom: 1px solid #2a3a3b; font-size: 14px; }
.terminal-card dl { margin: 0; padding: 10px 24px; }
.terminal-card dl div { padding: 15px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px dashed #334344; }
.terminal-card dt { color: #7f8f8c; font-size: 11px; }
.terminal-card dd { margin: 0; text-align: right; }
.terminal-card .accent { color: var(--teal); }
.terminal-card small { padding: 20px 24px 24px; display: block; color: #83918d; font-family: inherit; }

.signal-strip { min-height: 78px; padding: 18px clamp(20px, 7vw, 110px); display: flex; align-items: center; justify-content: space-between; color: var(--lime); background: var(--ink); font-family: var(--mono); font-weight: 800; letter-spacing: .1em; }
.signal-strip i { color: #596866; font-style: normal; }

.guide-section, .about-section, .principles, .faq-section { padding: clamp(76px, 10vw, 150px) clamp(20px, 7vw, 110px); }
.section-header { max-width: 900px; margin-bottom: 56px; }
.section-header h2, .about-section h2, .principles h2 { margin-bottom: 24px; font-size: clamp(40px, 5vw, 76px); line-height: 1.04; letter-spacing: -.052em; }
.section-header > p:last-child { max-width: 720px; color: var(--muted); font-size: 18px; }
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.task-card { min-height: 420px; padding: 30px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.task-card:last-child { border-right: 0; }
.task-card > span { color: #527069; font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.task-card h3 { margin: 52px 0 16px; font-size: 29px; line-height: 1.2; letter-spacing: -.035em; }
.task-card p { color: var(--muted); }
.task-card ul { margin: auto 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--line); }
.task-card li + li { margin-top: 12px; }
.task-card a { display: flex; justify-content: space-between; gap: 18px; font-weight: 750; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; }
.task-card a:hover { text-decoration-color: currentColor; }

.about-section { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(54px, 10vw, 150px); color: var(--paper); background: var(--ink-soft); }
.about-section .eyebrow { color: var(--teal); }
.about-copy > p:not(.eyebrow) { max-width: 760px; color: #c1cbc6; font-size: 18px; }
.about-copy > p + p { margin-top: 24px; }
.fact-grid { margin: 0; align-self: center; border-top: 1px solid #52615f; }
.fact-grid div { padding: 25px 0; display: grid; grid-template-columns: minmax(100px, .4fr) 1fr; align-items: baseline; gap: 20px; border-bottom: 1px solid #52615f; }
.fact-grid dt { color: var(--lime); font-family: var(--mono); font-size: clamp(30px, 4vw, 54px); font-weight: 800; }
.fact-grid dd { margin: 0; color: #c1cbc6; }

.principles { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 10vw, 160px); }
.principles ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.principles li { padding: 26px 0; display: grid; grid-template-columns: 60px 1fr; border-bottom: 1px solid var(--line); }
.principles li b { font-family: var(--mono); }
.principles li span { color: var(--muted); }
.principles li strong { margin-bottom: 4px; display: block; color: var(--ink); font-size: 19px; }

.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 10vw, 160px); background: var(--paper-deep); }
.faq-section .section-header { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 25px 38px 25px 0; position: relative; cursor: pointer; list-style: none; font-size: 19px; font-weight: 750; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 22px; right: 2px; font-family: var(--mono); font-size: 24px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: -5px 45px 25px 0; color: var(--muted); }

.final-cta { margin: 0 clamp(20px, 5vw, 72px) clamp(20px, 5vw, 72px); padding: clamp(48px, 7vw, 100px); color: var(--ink); background: var(--lime); border-radius: 26px; }
.final-cta p { font-family: var(--mono); font-weight: 800; }
.final-cta h2 { max-width: 820px; margin-bottom: 34px; font-size: clamp(46px, 7vw, 96px); line-height: 1; letter-spacing: -.055em; }
.final-cta a { min-height: 52px; padding: 12px 20px; display: inline-flex; align-items: center; gap: 30px; color: var(--paper); background: var(--ink); border-radius: 999px; font-weight: 800; }
.site-footer { padding: clamp(48px, 6vw, 78px) clamp(20px, 5vw, 72px) 28px; color: var(--paper); background: var(--ink); }
.footer-main { padding-bottom: clamp(48px, 7vw, 86px); display: flex; align-items: flex-start; justify-content: space-between; gap: 60px; }
.footer-identity > a { display: inline-block; font-size: 25px; font-weight: 820; letter-spacing: -.04em; }
.footer-identity p { max-width: 470px; margin: 14px 0 0; color: #aeb9b4; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 13px 38px; font-size: 14px; }
.footer-links a { color: #dbe2de; }
.footer-links a:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 5px; }
.footer-meta { padding-top: 22px; display: flex; justify-content: space-between; gap: 24px; color: #7f8f8b; border-top: 1px solid #344344; }

.document-page main { min-height: 70vh; }
.policy { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 120px; }
.policy h1 { margin-bottom: 4px; font-size: clamp(44px, 7vw, 78px); letter-spacing: -.055em; }
.policy .updated { color: var(--muted); }
.policy section { padding: 30px 0; border-top: 1px solid var(--line); }
.policy section:first-of-type { margin-top: 55px; }
.policy h2 { margin-bottom: 8px; font-size: 22px; }
.policy section p { margin-bottom: 0; color: var(--muted); }
.back-link { margin-top: 40px; display: inline-block; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }

/* xl: 1280px 이상 */
@media (min-width: 1280px) {
  .dashboard-heading { max-width: 980px; }
}

/* lg: 1024px–1279px */
@media (max-width: 1279px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* md: 768px–1023px */
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; }
  .terminal-card { width: min(100%, 600px); }
  .task-grid { grid-template-columns: 1fr; }
  .task-card { min-height: 360px; border-right: 0; border-bottom: 1px solid var(--line); }
  .task-card:last-child { border-bottom: 0; }
  .about-section, .principles, .faq-section { grid-template-columns: 1fr; }
}

/* sm: 480px–767px */
@media (max-width: 767px) {
  .dashboard-hero { padding: 44px 16px 58px; }
  .dashboard-heading h1 { margin-bottom: 20px; font-size: clamp(44px, 13vw, 66px); }
  .dashboard-heading .lead { font-size: 16px; }
  .category-grid { margin-top: 34px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { min-height: 154px; padding: 15px; border-radius: 14px; }
  .category-top { font-size: 9px; }
  .category-top b, .card-kicker, .category-card > div:nth-child(2) > p, .category-card footer code { display: none; }
  .category-card > div:nth-child(2) { margin: 20px 0 0; }
  .category-card h2 { margin: 0; font-size: clamp(21px, 6vw, 28px); line-height: 1.08; }
  .category-card footer { margin-top: auto; padding-top: 10px; justify-content: flex-end; font-size: 12px; }
  .hero { padding-top: 68px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .terminal-card { box-shadow: 9px 12px 0 var(--paper-deep); }
  .terminal-card dl div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .terminal-card dd { text-align: left; word-break: break-all; }
  .signal-strip { display: none; }
  .guide-section, .about-section, .principles, .faq-section { padding: 58px 16px; }
  .section-header { margin-bottom: 34px; }
  .section-header h2, .about-section h2, .principles h2 { margin-bottom: 18px; font-size: clamp(34px, 10vw, 48px); }
  .section-header > p:last-child, .about-copy > p:not(.eyebrow) { font-size: 16px; }
  .task-card { min-height: 0; padding: 24px 0; }
  .task-card h3 { margin: 16px 0 10px; font-size: 24px; }
  .task-card ul { padding-top: 16px; }
  .about-section { gap: 36px; }
  .about-copy > p + p { margin-top: 18px; }
  .fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .fact-grid div { padding: 16px 8px; display: block; border-right: 1px solid #52615f; }
  .fact-grid div:last-child { border-right: 0; }
  .fact-grid dt { font-size: 23px; }
  .fact-grid dd { font-size: 11px; }
  .principles { gap: 32px; }
  .principles li { padding: 18px 0; grid-template-columns: 46px 1fr; }
  .faq-section { gap: 34px; }
  .faq-list summary { padding-top: 20px; padding-bottom: 20px; font-size: 17px; }
  .faq-list summary::after { top: 17px; }
  .final-cta { display: none; }
  .footer-main { flex-direction: column; }
  .footer-main { padding-bottom: 42px; gap: 36px; }
}

/* xs: 0–479px */
@media (max-width: 479px) {
  .dashboard-heading h1 { font-size: clamp(44px, 15vw, 62px); }
  .category-card { min-height: 146px; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .category-card { transition: none; } }
