:root {
  color-scheme: light dark;
  --surface-primary: #f8faf8;
  --surface-secondary: #eef3ee;
  --surface-elevated: #ffffff;
  --text-primary: #18211d;
  --text-secondary: #52615a;
  --text-tertiary: #708078;
  --border-default: #d7e0d8;
  --border-subtle: #e7ece7;
  --accent-primary: #0f766e;
  --accent-hover: #0b5f59;
  --accent-warm: #c48a33;
  --shadow-visual: 0 24px 80px rgb(24 33 29 / 0.14);
  --radius-card: 8px;
  --radius-pill: 999px;
  --size-brand-mark: 38px;
  --size-button-min-height: 46px;
  --max-content: 1160px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-primary: #101513;
    --surface-secondary: #17201d;
    --surface-elevated: #1d2925;
    --text-primary: #f4f7f4;
    --text-secondary: #b9c5be;
    --text-tertiary: #8c9a93;
    --border-default: #304038;
    --border-subtle: #26332e;
    --accent-primary: #4fd1c5;
    --accent-hover: #78e5dc;
    --accent-warm: #e6b76b;
    --shadow-visual: 0 24px 80px rgb(0 0 0 / 0.34);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent-warm) 16%, transparent), transparent 34rem),
    linear-gradient(180deg, var(--surface-primary) 0%, var(--surface-secondary) 100%);
  color: var(--text-primary);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-primary) 72%, transparent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--surface-primary) 88%, transparent);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max-content));
  min-height: 68px;
  margin: 0 auto;
  gap: var(--space-4);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: var(--space-3);
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: var(--size-brand-mark);
  height: var(--size-brand-mark);
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--text-primary);
  color: var(--surface-primary);
  font: 720 12px / 1 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.nav-links {
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  transition: background 180ms ease, color 180ms ease, transform 140ms ease;
}

.nav-links a:hover {
  background: var(--surface-elevated);
  color: var(--text-primary);
}

.nav-links a:active {
  transform: translateY(1px);
}

.nav-links .nav-cta {
  background: var(--accent-primary);
  color: var(--surface-primary);
}

.nav-links .nav-cta:hover {
  background: var(--accent-hover);
  color: var(--surface-primary);
}

main {
  overflow-x: clip;
}

.hero,
.section,
.site-footer {
  width: min(100% - 32px, var(--max-content));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  min-height: calc(100dvh - 68px);
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  padding: var(--space-20) 0 var(--space-16);
}

.hero-copy {
  display: grid;
  gap: var(--space-6);
  animation: hero-in 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow,
.panel-label {
  margin: 0;
  color: var(--accent-primary);
  font: 720 11px / 1.3 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 760;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: var(--space-4);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 720;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: var(--space-3);
  font-size: 20px;
  font-weight: 680;
  line-height: 1.35;
}

.hero-lede,
.section p,
.site-footer {
  color: var(--text-secondary);
}

.hero-lede {
  max-width: 38rem;
  margin-bottom: 0;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.button {
  display: inline-flex;
  min-height: var(--size-button-min-height);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0 var(--space-5);
  font-size: 15px;
  font-weight: 720;
  transition: background 180ms ease, color 180ms ease, transform 140ms ease, border-color 180ms ease;
  white-space: nowrap;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--accent-primary);
  color: var(--surface-primary);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  border: 1px solid var(--border-default);
  background: color-mix(in srgb, var(--surface-elevated) 78%, transparent);
  color: var(--text-primary);
}

.button-secondary:hover {
  border-color: var(--accent-primary);
}

:lang(ko) h1,
:lang(ko) h2 {
  max-width: 14ch;
  line-height: 1.12;
  word-break: keep-all;
}

.hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-visual);
  animation: visual-in 640ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--surface-elevated) 70%, transparent);
  content: "";
  pointer-events: none;
}

.section {
  padding: var(--space-16) 0;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.56fr);
  align-items: start;
  gap: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

.section-split p {
  max-width: 62ch;
}

.signal-panel,
.feature-primary,
.feature-card,
.license-panel,
.faq-list details,
.status-band {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface-elevated) 72%, transparent);
}

.signal-panel {
  padding: var(--space-6);
}

.signal-panel p:last-child,
.feature-primary p:last-child,
.feature-card p:last-child,
.license-panel p:last-child,
.faq-list p:last-child,
.status-band p:last-child {
  margin-bottom: 0;
}

.readiness-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr));
  gap: var(--space-4);
}

.feature-primary,
.feature-card {
  padding: var(--space-6);
}

.feature-primary {
  min-height: 280px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-primary) 13%, var(--surface-elevated)), var(--surface-elevated)),
    var(--surface-elevated);
}

.feature-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
}

.license-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr);
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8);
}

.license-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.section-heading {
  max-width: 720px;
  margin-bottom: var(--space-8);
}

.section-heading p {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: var(--space-3);
}

.faq-list details {
  padding: var(--space-5) var(--space-6);
}

.faq-list summary {
  cursor: pointer;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.faq-list summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-primary) 72%, transparent);
  outline-offset: 6px;
}

.faq-list summary::marker {
  color: var(--accent-primary);
}

.faq-list details[open] {
  border-color: color-mix(in srgb, var(--accent-primary) 42%, var(--border-subtle));
  background: color-mix(in srgb, var(--surface-elevated) 90%, var(--accent-primary) 10%);
}

.faq-list details p {
  margin: var(--space-4) 0 0;
  max-width: 76ch;
}

.faq-list a {
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.status-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
  padding: var(--space-8);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-8) 0;
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--text-primary);
  font-weight: 650;
}

.site-footer a:hover {
  color: var(--accent-primary);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes visual-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  .hero,
  .section-split,
  .readiness-grid,
  .license-panel,
  .status-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: var(--space-12);
  }

  h1 {
    max-width: 10ch;
  }

  .feature-primary,
  .feature-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .nav {
    width: min(100% - 24px, var(--max-content));
  }

  .nav-links {
    gap: var(--space-1);
    font-size: 12px;
  }

  .nav-links a {
    padding: 8px 9px;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 24px, var(--max-content));
  }

  .hero {
    gap: var(--space-8);
    padding-bottom: var(--space-12);
  }

  h1 {
    max-width: 9ch;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
