:root {
  --ink: #15151d;
  --ink-soft: #4b4a57;
  --paper: #f3f0e8;
  --paper-bright: #fbfaf6;
  --line: #d8d3c8;
  --signal: #7447ff;
  --signal-dark: #4f2cc5;
  --mint: #aef5d8;
  --coral: #ff826e;
  --dark: #12131a;
  --dark-soft: #22232e;
  --max: 1180px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

html[lang="ko"] body {
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", ui-sans-serif, system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--signal-dark);
  border-radius: 8px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(calc(100% - 40px), var(--max));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: white;
  background: var(--signal);
  border-radius: 50% 50% 50% 12%;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 0.9rem;
  font-weight: 650;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--signal-dark);
}

.language-link {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

main > section {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 70px;
  padding: 80px 0 100px;
}

.hero > *,
.statement > *,
.safety > * {
  min-width: 0;
}

.eyebrow,
.section-number {
  margin: 0 0 22px;
  color: var(--signal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 130, 110, 0.15);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h1 {
  max-width: 810px;
  font-size: clamp(3.25rem, 7vw, 6.65rem);
}

h1 em {
  color: var(--signal);
  font-weight: inherit;
}

h2 {
  font-size: clamp(2.35rem, 4.8vw, 4.7rem);
}

html[lang="ko"] h1,
html[lang="ko"] h2 {
  font-family: "Noto Serif KR", "Nanum Myeongjo", Batang, "Malgun Gothic", serif;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.16;
  text-wrap: balance;
}

html[lang="ko"] h1 {
  font-size: clamp(3rem, 4.5vw, 4.05rem);
}

.headline-line {
  display: block;
}

html[lang="ko"] h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.25rem);
}

.hero-intro {
  max-width: 710px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

html[lang="ko"] .hero-intro {
  max-width: 760px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--signal-dark);
  border-color: var(--signal-dark);
}

.button-secondary {
  background: transparent;
}

.probe-card {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--dark);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(25, 22, 40, 0.18);
}

.probe-card::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  top: -120px;
  right: -80px;
  background: var(--signal);
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.55;
}

.probe-orbit {
  position: relative;
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
}

.probe-orbit::before,
.probe-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}

.probe-orbit::before {
  width: 165px;
  height: 165px;
}

.probe-orbit::after {
  width: 90px;
  height: 90px;
}

.probe-core {
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--dark);
  background: var(--mint);
  border-radius: 50% 50% 12px 50%;
  font-family: Georgia, serif;
  font-size: 2.1rem;
}

.orbit-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.orbit-dot-one { top: 17px; left: 54px; background: var(--coral); }
.orbit-dot-two { right: 10px; bottom: 72px; background: var(--mint); }
.orbit-dot-three { left: 69px; bottom: 39px; background: var(--signal); }

.probe-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 25px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: white;
  font-size: 0.82rem;
}

.probe-caption span {
  color: #a9abb8;
  text-align: right;
}

.statement {
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  gap: 40px;
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.statement h2 {
  max-width: 930px;
}

.statement div > p {
  max-width: 740px;
  margin: 28px 0 0 auto;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.method {
  width: 100%;
  max-width: none;
  padding: 110px max(20px, calc((100vw - var(--max)) / 2));
  color: white;
  background: var(--dark);
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto 65px;
}

.section-heading > p:last-child {
  max-width: 660px;
  margin: 24px 0 0;
  color: #b9bac4;
  font-size: 1.1rem;
}

.steps {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border-top: 1px solid #383946;
  border-left: 1px solid #383946;
}

.steps li {
  min-height: 225px;
  padding: 27px;
  border-right: 1px solid #383946;
  border-bottom: 1px solid #383946;
}

.step-index {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--dark);
  background: var(--mint);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 850;
}

.steps h3 {
  margin: 40px 0 9px;
  font-size: 1.18rem;
}

.steps p {
  margin: 0;
  color: #a9abb8;
  font-size: 0.94rem;
}

.state-section {
  padding: 120px 0;
}

.section-heading.compact {
  margin-bottom: 55px;
}

.section-heading.compact h2 {
  max-width: 900px;
}

.state-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.state-track article {
  min-height: 225px;
  padding: 30px;
  background: var(--paper-bright);
}

.state-track article > span,
.choice-answer {
  color: var(--signal-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.state-track h3 {
  margin: 40px 0 8px;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.state-track p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.safety {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 90px;
  padding: 110px max(20px, calc((100vw - var(--max)) / 2));
  color: white;
  background: var(--signal-dark);
}

.section-number.light {
  color: var(--mint);
}

.safety-copy {
  align-self: end;
}

.safety-copy p {
  color: #e7e1ff;
  font-size: 1.06rem;
}

.safety-copy a {
  display: inline-block;
  margin-top: 18px;
  color: white;
  font-weight: 800;
}

.choose {
  padding: 120px 0;
}

.choose > h2 {
  max-width: 870px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 55px;
}

.choice-grid article {
  min-height: 260px;
  padding: 38px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.choice-grid article:last-child {
  color: white;
  background: var(--dark-soft);
  border-color: var(--dark-soft);
}

.choice-grid h3 {
  max-width: 450px;
  margin: 50px 0 10px;
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.18;
}

html[lang="ko"] .choice-grid h3 {
  font-family: "Noto Serif KR", "Nanum Myeongjo", Batang, "Malgun Gothic", serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.choice-grid p:last-child {
  max-width: 490px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.choice-grid article:last-child p:last-child {
  color: #b9bac4;
}

.agent-section {
  padding: 20px 0 120px;
}

.agent-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 70px;
}

.agent-intro > * {
  min-width: 0;
}

.agent-intro > p {
  max-width: 560px;
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.agent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 20px;
  margin-top: 55px;
}

.agent-card {
  min-width: 0;
  padding: 38px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.agent-card-primary {
  color: white;
  background: var(--signal-dark);
  border-color: var(--signal-dark);
}

.agent-label {
  margin: 0 0 42px;
  color: var(--signal-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-card-primary .agent-label {
  color: var(--mint);
}

.agent-card h3 {
  max-width: 570px;
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

html[lang="ko"] .agent-card h3 {
  font-family: "Noto Serif KR", "Nanum Myeongjo", Batang, "Malgun Gothic", serif;
  font-weight: 700;
  line-height: 1.38;
}

.agent-card > p:last-child {
  margin: 20px 0 0;
  color: #e2dcf8;
}

.agent-command {
  margin: 28px 0 0;
  padding: 20px 22px;
  overflow-x: auto;
  color: var(--mint);
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  font: 650 0.88rem/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

.platform-list {
  display: grid;
  gap: 0;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.platform-list li {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.platform-list span {
  font-weight: 800;
}

.platform-list small {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.agent-link {
  color: var(--signal-dark);
  font-weight: 800;
}

.closing {
  padding: 105px 30px;
  color: white;
  text-align: center;
  background: var(--dark);
  border-radius: var(--radius) var(--radius) 0 0;
}

.closing h2 {
  max-width: 950px;
  margin: 0 auto;
}

.closing .eyebrow {
  color: var(--mint);
}

.closing .button-primary {
  color: var(--dark);
  background: var(--mint);
  border-color: var(--mint);
}

.closing .button-secondary {
  color: white;
  border-color: #666774;
}

.centered {
  justify-content: center;
}

footer {
  width: min(calc(100% - 40px), var(--max));
  min-height: 120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.footer-brand {
  color: var(--ink);
}

footer p {
  text-align: center;
}

footer > a {
  font-weight: 700;
}

@media (max-width: 920px) {
  nav a:not(.language-link) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .probe-card {
    min-height: 390px;
  }

  .statement,
  .safety {
    grid-template-columns: 1fr;
  }

  .statement div > p {
    margin-left: 0;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .state-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header,
  main > section,
  footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    min-height: 72px;
  }

  nav {
    gap: 10px;
  }

  h1 {
    font-size: clamp(2.45rem, 12.2vw, 3.3rem);
  }

  h2 {
    font-size: clamp(2.15rem, 11vw, 3.3rem);
  }

  html[lang="ko"] h1 {
    font-size: clamp(2rem, 8.5vw, 2.65rem);
    line-height: 1.2;
  }

  html[lang="ko"] h2 {
    font-size: clamp(2rem, 9.8vw, 3rem);
  }

  .hero {
    min-height: auto;
    gap: 50px;
    padding: 55px 0 80px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .probe-card {
    min-height: 355px;
  }

  .probe-caption {
    display: grid;
    gap: 3px;
  }

  .probe-caption span {
    text-align: left;
  }

  .probe-orbit {
    width: 195px;
    height: 195px;
  }

  .statement,
  .state-section,
  .choose,
  .agent-section {
    padding: 85px 0;
  }

  .method,
  .safety {
    padding-top: 85px;
    padding-bottom: 85px;
  }

  .steps,
  .state-track,
  .choice-grid,
  .agent-intro,
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .agent-intro {
    gap: 28px;
  }

  .agent-intro > p {
    max-width: 100%;
  }

  .agent-card {
    padding: 30px 24px;
  }

  .platform-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .steps li {
    min-height: 200px;
  }

  .choice-grid article {
    min-height: 230px;
  }

  .closing {
    padding: 80px 20px;
  }

  footer {
    padding: 35px 0;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  footer p {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
