:root {
  --brand: #4B2ED6;
  --brand-ink: #3A20B8;
  --brand-soft: #EEEBFC;
  --ink: #0D0D1A;
  --ink-2: #3D3D52;
  --ink-3: #6B6B80;
  --line: #E4E3EC;
  --bg: #FFFFFF;
  --bg-2: #F7F6FB;
  --glass: #9FD8E8;
  --heat: #F0643C;
  --radius: 14px;
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8B74FF;
    --brand-ink: #A896FF;
    --brand-soft: #1E1840;
    --ink: #F1F0F7;
    --ink-2: #C3C2D3;
    --ink-3: #8F8EA3;
    --line: #2A2A3D;
    --bg: #0B0B14;
    --bg-2: #12121E;
    --glass: #6FC3DA;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: inline-flex; color: var(--ink); }
.logo svg { height: 22px; width: auto; aspect-ratio: 666 / 93; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Hero */
.hero { padding: 88px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 600;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
h1 {
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.05; letter-spacing: -0.035em;
  margin: 20px 0 20px; font-weight: 700;
}
h1 em { font-style: normal; color: var(--brand); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 34em; margin: 0 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative; border-radius: 20px; aspect-ratio: 5 / 4;
  background: radial-gradient(120% 90% at 70% 30%, var(--brand-soft), var(--bg-2) 70%);
  border: 1px solid var(--line);
}
.hero-visual svg { width: 100%; height: 100%; }
.readout {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 12px; color: var(--ink-3);
  box-shadow: 0 6px 24px rgba(13, 13, 26, .08);
}
.readout b { display: block; font-size: 18px; color: var(--ink); }
.readout .ok { color: #1F9D6B; font-weight: 600; }

/* Sections */
section { padding: 96px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 16px; max-width: 22em; }
.section-lede { color: var(--ink-2); font-size: 18px; max-width: 40em; margin: 0 0 48px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 16px 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.icon svg { width: 22px; height: 22px; }

/* Pipeline */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 20px 0 0; }
.step-art {
  height: 150px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg); display: grid; place-items: center; margin-bottom: 20px; position: relative;
}
.step:not(:last-child) .step-art::after {
  content: ""; position: absolute; right: -21px; top: 50%; width: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 4px, transparent 4px 8px);
}
.step-art svg { width: 70%; height: 70%; }
.step .num { font-size: 12px; color: var(--brand); font-weight: 600; }
.step h3 { margin: 4px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Applications */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.apps-head h3 { margin: 56px 0 16px; font-size: 18px; }
.app {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--bg);
}
.app b { display: block; font-size: 15px; margin-bottom: 2px; }
.app span { font-size: 13px; color: var(--ink-3); }

/* Modules */
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.module { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; }
.module .art { aspect-ratio: 1; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; }
.module .art svg { width: 70%; }

/* Platform layers */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: layer; }
.layer {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg);
  border-top: 4px solid var(--brand-soft);
}
.layer:first-child { border-top-color: var(--brand); }
.layer-tag { font-size: 12px; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.layer h3 { margin: 10px 0 8px; font-size: 18px; }
.layer p { margin: 0; color: var(--ink-2); font-size: 15px; }
.layer b { color: var(--ink); font-weight: 600; }

/* Instrument map */
.imap-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.imap { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.imap th, .imap td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.imap tbody tr:last-child th, .imap tbody tr:last-child td { border-bottom: 0; }
.imap thead th { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; background: var(--bg-2); }
.imap th[scope="row"], .imap thead th:first-child { text-align: left; }
.imap th[scope="row"] { font-weight: 600; }
.imap th[scope="row"] span { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.imap .yes { color: var(--brand); font-size: 18px; }
.imap .no { color: var(--ink-3); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-2); color: var(--ink-3); border: 1px solid var(--line); white-space: nowrap; }
.badge.now { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.fineprint { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.compare ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; display: grid; gap: 8px; }
.compare .highlight { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.phase { border-top: 3px solid var(--line); padding-top: 20px; }
.phase.now { border-top-color: var(--brand); }
.phase .tag { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.phase.now .tag { color: var(--brand); }
.phase h3 { margin: 6px 0 8px; font-size: 18px; }
.phase p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* CTA band */
.band {
  background: var(--brand); color: #fff; border-radius: 24px; padding: 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.band h2 { color: #fff; margin-bottom: 12px; }
.band p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 17px; }
.band ul { margin: 16px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.9); font-size: 15px; }
.band li::before { content: "✓  "; font-weight: 700; }
.band .btn-light { background: #fff; color: #2A1A8C; justify-self: end; padding: 16px 28px; font-size: 16px; }
.band .btn-light:hover { background: #ECE8FF; }
.band-actions { display: grid; gap: 12px; justify-self: end; }
.band .band-actions .btn { justify-self: stretch; justify-content: center; text-align: center; }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; padding: 14px 24px; font-size: 15px; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* About / contact */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about p { color: var(--ink-2); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; font-size: 15px; }
.contact-list span { color: var(--ink-3); }
.contact-list a { color: var(--brand); text-decoration: none; font-weight: 600; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .logo svg { height: 16px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .about, .band { grid-template-columns: 1fr; }
  .band .btn-light { justify-self: start; }
  .pipeline { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .step:nth-child(2) .step-art::after { display: none; }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .modules, .grid-3, .roadmap, .layers, .compare { grid-template-columns: 1fr; }
  .band-actions { justify-self: stretch; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 56px; }
  section { padding: 64px 0; }
  .pipeline { grid-template-columns: 1fr; }
  .step { padding: 0; }
  .step-art::after { display: none; }
  .band { padding: 32px 24px; border-radius: 18px; }
  .module { grid-template-columns: 88px 1fr; gap: 16px; }
  .imap { min-width: 0; font-size: 14px; }
  .imap th, .imap td { padding: 12px 5px; }
  .imap thead th { font-size: 10.5px; letter-spacing: .03em; }
  .imap th[scope="row"] { padding-left: 12px; }
  .imap td:last-child, .imap thead th:last-child { padding-right: 10px; }
  .badge { padding: 3px 8px; font-size: 11px; white-space: normal; line-height: 1.3; }
  .readout { left: 12px; bottom: 12px; padding: 8px 10px; font-size: 11px; }
  .readout b { font-size: 15px; }
}
@media (max-width: 420px) {
  .apps { grid-template-columns: 1fr; }
  .imap th, .imap td { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill .dot, .tip-anim { animation: none !important; }
}

/* Language switch + Korean typography */
.lang {
  font-size: 13px; text-decoration: none; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  margin-left: -8px;
}
.lang:hover { color: var(--brand); border-color: var(--brand); }
html:lang(ko) body {
  font-family: "Inter", "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  word-break: keep-all; overflow-wrap: break-word;
}
html:lang(ko) h1, html:lang(ko) h2 { letter-spacing: -0.02em; }
@media (max-width: 720px) {
  .site-header .wrap { gap: 12px; }
  .site-header .lang { margin-left: auto; }
  .site-header .lang + .btn { margin-left: 0; }
}
.site-header .lang, .site-header .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 420px) {
  .site-header .logo svg { height: 18px; }
  .site-header .btn-sm { padding: 8px 12px; }
  .site-header .lang { padding: 4px 10px; }
}
