:root {
  --ground: #050b1f;
  --ground-2: #081233;
  --tile: #0c1c52;
  --rail: #24365f;
  --ink: #e8eef6;
  --ink-2: #a9b8d4;
  --ink-3: #8394b6;
  --bead: #cfe3ff;
  --glow: #46e1ff;
  --accent: #2e8bff;
  --accent-hi: #5aa5ff;
  --accent-lo: #1a72e8;
  --on-accent: #04122a;
  --display: "Archivo", "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --body: "Archivo", "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-color: #2a3d6e var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--glow);
}
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-underline-offset: 0.2em; }
h1, h2, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:lang(ko) body, html:lang(ko) { word-break: keep-all; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 20;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 14px; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

#field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block;
}

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: var(--ground); border-bottom: 1px solid var(--rail);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-stretch: 112%; font-weight: 700;
  font-size: 1.125rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink);
}
.brand img { border-radius: 7px; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 0.9375rem;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--rail); border-radius: 6px; overflow: hidden; }
.lang button {
  font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2);
  background: transparent; border: 0; padding: 6px 10px; cursor: pointer; min-height: 32px;
}
.lang button:hover { color: var(--ink); background: rgba(46, 139, 255, 0.14); }
.lang button[aria-pressed="true"] { background: #16306a; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 6px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hi); }
.btn-accent:active { background: var(--accent-lo); }
.btn-ghost { border-color: #3c5288; color: var(--ink); background: rgba(5, 11, 31, 0.55); }
.btn-ghost:hover { border-color: var(--accent-hi); background: rgba(46, 139, 255, 0.14); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 0.875rem; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.0625rem; }

.board { position: relative; z-index: 1; }
.stage {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 96px var(--gutter) 72px;
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to right, rgba(5, 11, 31, 0.9) 0%, rgba(5, 11, 31, 0.72) 34%, rgba(5, 11, 31, 0) 62%);
}
.stage-copy { width: min(100%, 34rem); }
.hero .stage-copy { width: min(100%, 60rem); }
.hero::before {
  background: linear-gradient(to right, rgba(5, 11, 31, 0.86) 0%, rgba(5, 11, 31, 0.6) 40%, rgba(5, 11, 31, 0) 78%);
}

h1, h2 {
  font-family: var(--display); font-stretch: 118%; font-weight: 750;
  letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance;
}
html:lang(ko) h1, html:lang(ko) h2 { letter-spacing: -0.035em; line-height: 1.16; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
.lede { margin-top: 28px; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--ink); max-width: 36rem; }
.stage-copy > p { margin-top: 20px; color: var(--ink-2); max-width: 33rem; }
.stage-copy > .lede { color: var(--ink); }
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.status { font-size: 0.9375rem; color: var(--ink-3); }
.stage-copy > .status { margin-top: 22px; color: var(--ink-3); }
.hint {
  position: absolute; left: var(--gutter); bottom: 30px;
  font-size: 0.875rem; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.hint::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 0 5px rgba(70, 225, 255, 0.16);
}

.outputs { margin-top: 26px; border-top: 1px solid var(--rail); max-width: 30rem; }
.outputs li {
  padding: 11px 0; border-bottom: 1px solid var(--rail);
  color: var(--ink); font-size: 1.0625rem;
}
.stage-copy > .note { margin-top: 18px; font-size: 0.8125rem; color: var(--ink-3); }

.solid { position: relative; z-index: 2; background: var(--ground); }
.wrap { width: min(100%, 76rem); margin: 0 auto; padding: 0 var(--gutter); }
.sec-lede { margin-top: 18px; color: var(--ink-2); max-width: 38rem; font-size: 1.125rem; }

.directions { padding: clamp(96px, 12vw, 168px) 0 clamp(80px, 10vw, 140px); background: var(--ground-2); border-top: 1px solid var(--rail); }
.dir-list { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rail); }
.dir-list > div {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px;
  padding: clamp(24px, 3vw, 38px) 0; border-bottom: 1px solid var(--rail);
  transition: background-color 0.3s;
}
.dir-list > div:hover { background: rgba(46, 139, 255, 0.06); }
.dir-list dt {
  font-family: var(--display); font-stretch: 118%; font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.12;
}
.dir-list dd { color: var(--ink-2); max-width: 40rem; align-self: center; }

.name { background: var(--accent); color: var(--on-accent); padding: clamp(80px, 10vw, 150px) 0; }
.name ::selection { background: var(--on-accent); color: var(--accent-hi); }
.name-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 48px; align-items: center; }
.glyph {
  font-family: "Archivo", "Pretendard Variable", serif; font-stretch: 100%; font-weight: 800;
  font-size: clamp(5rem, 15vw, 6rem); line-height: 1; letter-spacing: -0.02em;
}
.name h2 { max-width: 40rem; }
.name p:not(.glyph) { margin-top: 20px; max-width: 38rem; color: #0a2350; font-size: 1.125rem; }

.scope { padding: clamp(96px, 12vw, 168px) 0; }
.spec { margin-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--rail); }
.spec > div {
  display: grid; grid-template-columns: minmax(9rem, 3fr) minmax(0, 9fr); gap: 8px 32px;
  padding: 16px 0; border-bottom: 1px solid var(--rail); align-items: baseline;
}
.spec dt { color: var(--ink-3); font-size: 0.9375rem; }
.spec dd { color: var(--ink); font-size: 1.0625rem; }
.mono { font-family: var(--mono); font-size: 1rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.access { padding: clamp(96px, 12vw, 168px) 0; background: var(--tile); border-top: 1px solid #1c3586; }
.access h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.access p { margin-top: 22px; max-width: 38rem; color: #c3d2ee; font-size: 1.125rem; }
.contact { margin-top: 34px; }
.contact .pending {
  margin-top: 0; font-size: 1rem; color: var(--ink);
  border: 1px dashed #4566b8; border-radius: 8px; padding: 16px 18px; display: inline-block; max-width: 34rem;
}

.foot { padding: 28px 0 36px; border-top: 1px solid var(--rail); color: var(--ink-3); font-size: 0.875rem; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand-foot { font-size: 0.9375rem; color: var(--ink-2); }
.brand-foot img { border-radius: 5px; }

@media (max-width: 860px) { .nav-links { display: none; } }

@media (max-width: 760px) {
  .nav { gap: 12px; padding: 12px var(--gutter); }
  .nav-end { gap: 8px; }
  .nav .btn-sm { display: none; }
  .stage { align-items: flex-end; padding: 0 var(--gutter) 44px; }
  .stage::before {
    background: linear-gradient(to bottom, rgba(5, 11, 31, 0) 30%, rgba(5, 11, 31, 0.9) 54%, rgba(5, 11, 31, 0.97) 100%);
  }
  .hero { align-items: flex-start; padding-top: 104px; padding-bottom: 96px; }
  .hero::before {
    background: linear-gradient(to bottom, rgba(5, 11, 31, 0.93) 0%, rgba(5, 11, 31, 0.82) 58%, rgba(5, 11, 31, 0) 88%);
  }
  .actions .btn { flex: 1 1 auto; }
  .dir-list > div, .name-grid { grid-template-columns: 1fr; gap: 12px; }
  .spec > div { grid-template-columns: 1fr; gap: 2px; }
  .hint { bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-links a, .dir-list > div { transition: none; }
}
