/* ---------- tokens ---------- */
:root {
  --bg: #08090c;
  --bg-elev: #0f1218;
  --bg-elev-2: #141926;
  --fg: #e6e8ee;
  --fg-dim: #b6bccc;
  --muted: #8a90a0;
  --border: #1b1f29;
  --border-strong: #262c3a;
  --accent-1: #22d3ee;
  --accent-2: #a855f7;
  --accent-3: #6366f1;
  --grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 55%, #a855f7 100%);
  --good: #34d399;
  --bad: #f472b6;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font-sans: 'Pretendard Variable', 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow-1: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 40px rgba(0,0,0,.35);
  --shadow-2: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 80px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1000px 600px at 85% -10%, rgba(168,85,247,0.12), transparent 60%),
    radial-gradient(800px 500px at -10% 10%, rgba(34,211,238,0.10), transparent 60%);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: transparent; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }
ul, dl { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* skip link */
.skip {
  position: absolute; left: 8px; top: -40px;
  background: var(--accent-1); color: #001; padding: 6px 10px; border-radius: 6px;
  z-index: 100; transition: top .15s;
}
.skip:focus { top: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(8,9,12,0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8,9,12,0.78);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  display: block;
  box-shadow: 0 6px 20px rgba(99,102,241,.25);
}
.footer .brand-mark { width: 24px; height: 24px; border-radius: 6px; }
.brand-name { font-size: 18px; }
.nav-links {
  display: flex; gap: 4px; margin-left: 12px; flex: 1;
}
.nav-links a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--fg-dim); font-size: 14.5px; font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,.04); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang {
  display: inline-flex; padding: 3px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px;
}
.lang button {
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted);
}
.lang button.is-active {
  background: var(--bg-elev-2); color: var(--fg);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  transition: transform .15s, box-shadow .2s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-primary {
  color: #001018;
  background: var(--grad);
  box-shadow: 0 8px 24px rgba(99,102,241,.35), 0 1px 0 rgba(255,255,255,.25) inset;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(99,102,241,.5), 0 1px 0 rgba(255,255,255,.3) inset; }
.btn-ghost {
  color: var(--fg);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--bg-elev-2); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 8vw, 80px); position: relative; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--fg-dim); margin-bottom: 20px;
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent-1);
  box-shadow: 0 0 0 4px rgba(34,211,238,.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34,211,238,.05); } }

.h1 {
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--fg-dim);
  margin-bottom: 28px;
  max-width: 56ch;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

/* download split button */
.dl { position: relative; display: inline-flex; }
.dl-main {
  border-top-right-radius: 0; border-bottom-right-radius: 0;
  padding-right: 14px;
}
.dl-toggle {
  border-top-left-radius: 0; border-bottom-left-radius: 0;
  padding: 12px 12px;
  margin-left: 1px;
  color: #001018;
  background: var(--grad);
  box-shadow: 0 8px 24px rgba(99,102,241,.35), 0 1px 0 rgba(255,255,255,.25) inset, inset 1px 0 0 rgba(0,0,0,.18);
}
.dl-toggle:hover { transform: translateY(-1px); }
.dl-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow-2);
  z-index: 20;
  animation: pop .14s ease-out;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.dl-menu a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--fg);
}
.dl-menu a b { font-size: 14px; font-weight: 600; }
.dl-menu a span { font-size: 12.5px; color: var(--muted); }
.dl-menu a:hover { background: var(--bg-elev); }

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--border); padding-top: 28px;
}
.stats li {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px 18px 20px;
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    linear-gradient(180deg, color-mix(in srgb, var(--accent-1) 30%, var(--border)), var(--border)) border-box;
  border: 1px solid transparent;
  border-radius: 14px;
  min-width: 0;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.stats li::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(34,211,238,.08), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(168,85,247,.08), transparent 50%);
  pointer-events: none;
}
.stats li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99,102,241,.15);
}
.stats b {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  position: relative;
}
.stats span {
  font-size: 17px; font-weight: 700; line-height: 1.25;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  position: relative;
}

/* hero art */
.hero-art {
  position: relative; aspect-ratio: 16/10;
  perspective: 1400px;
}
.hero-glow {
  position: absolute; inset: -10% -5%; z-index: -1; filter: blur(60px); opacity: .6;
  background: conic-gradient(from 120deg, #22d3ee, #6366f1, #a855f7, #22d3ee);
  border-radius: 40%;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-frame {
  position: relative; width: 100%; height: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transform: rotateY(-6deg) rotateX(6deg);
  transform-origin: center;
  transition: transform .6s ease;
}
.hero-frame:hover { transform: rotateY(-3deg) rotateX(3deg) translateY(-4px); }
.hero-frame-bar {
  display: flex; gap: 6px; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.2);
}
.hero-frame-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a2f3d; }
.hero-frame-bar span:nth-child(1) { background: #ef4444; }
.hero-frame-bar span:nth-child(2) { background: #f59e0b; }
.hero-frame-bar span:nth-child(3) { background: #22c55e; }
.hero-frame img {
  width: 100%; height: calc(100% - 36px); object-fit: cover; object-position: top;
}
.hero-frame-fallback {
  display: none;
  position: absolute; inset: 36px 0 0 0;
  grid-template-columns: 56px 1fr 200px; gap: 1px;
  background: var(--border);
}
.hero-frame.no-img .hero-frame-fallback { display: grid; }
.ff-tools { background: var(--bg-elev-2); background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 22px); }
.ff-canvas { background: radial-gradient(60% 60% at 50% 40%, rgba(168,85,247,.2), rgba(34,211,238,.12) 70%, #0a0c12); }
.ff-panel { background: var(--bg-elev-2); background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.05) 0 1px, transparent 1px 32px); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-muted {
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.015) 30%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sec-head { max-width: 680px; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }
.sec-head .eyebrow {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--accent-1);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.03em; }
.sec-head p { color: var(--fg-dim); font-size: clamp(15px, 1.4vw, 17px); }

.eyebrow { color: var(--accent-1); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }

.card, .kit, .os-card, .compare {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* feature cards */
.card { padding: 24px; transition: transform .2s, border-color .2s, background .2s; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent-1) 30%, var(--border)); }
.card-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(34,211,238,.15), rgba(168,85,247,.15));
  border: 1px solid var(--border-strong);
  color: var(--accent-1);
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--fg-dim); font-size: 14.5px; }

/* toolkit */
.kit { padding: 22px; }
.kit h3 {
  font-size: 14px; color: var(--accent-1); text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  margin-bottom: 14px;
}
.kit ul li {
  padding: 8px 0;
  font-size: 14.5px; color: var(--fg-dim);
  border-top: 1px dashed var(--border);
}
.kit ul li:first-child { border-top: 0; padding-top: 0; }
.kit ul li::before { content: "— "; color: var(--muted); }

.kit dl.kbd {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center;
}
.kit dl.kbd dt {
  font-family: var(--font-mono); font-size: 12px;
  padding: 3px 8px; border-radius: 6px;
  background: var(--bg-elev-2); border: 1px solid var(--border-strong);
  color: var(--fg);
  justify-self: start;
  white-space: nowrap;
}
.kit dl.kbd dd { font-size: 14px; color: var(--fg-dim); margin: 0; }

/* formats */
.formats {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px;
}
.fmt {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 14px 20px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--border);
  font-weight: 700; letter-spacing: -0.01em; font-size: 18px;
}
.fmt small { font-weight: 500; font-size: 12px; color: var(--muted); }
.fmt-hl {
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}
.fmt-hl small { color: var(--accent-1); }
.fmt-note { text-align: center; color: var(--fg-dim); font-size: 14.5px; max-width: 60ch; margin: 0 auto; }

/* tech compare */
.bullets { margin-top: 22px; display: grid; gap: 8px; }
.bullets li { color: var(--fg-dim); font-size: 14.5px; padding-left: 22px; position: relative; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--grad);
}
.compare { padding: 8px; }
.compare-row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  align-items: center;
}
.compare-row:last-child { border-bottom: 0; }
.compare-head { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.compare-head span:nth-child(2) { color: var(--accent-1); }
.compare-row .good { color: var(--good); font-weight: 600; }
.compare-row .bad { color: var(--muted); }

/* download */
.os-card {
  position: relative; padding: 24px 20px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 14px;
  transition: transform .2s, border-color .2s, background .2s;
}
.os-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent-1) 35%, var(--border)); }
.os-ic {
  color: var(--fg);
  padding: 8px;
  border-radius: 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  width: 44px; height: 44px; box-sizing: content-box;
  background-image: linear-gradient(135deg, rgba(34,211,238,.1), rgba(168,85,247,.1));
}
.os-card h3 { font-size: 17px; font-weight: 700; }
.os-btn {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: 10px;
  background: var(--grad);
  color: #001018; font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 18px rgba(99,102,241,.25), 0 1px 0 rgba(255,255,255,.25) inset;
  transition: transform .15s, box-shadow .2s;
}
.os-card:hover .os-btn { box-shadow: 0 10px 26px rgba(99,102,241,.4), 0 1px 0 rgba(255,255,255,.3) inset; }
.dl-hint { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 28px; max-width: 64ch; margin-left: auto; margin-right: auto; }

/* privacy */
.privacy { color: var(--fg-dim); font-size: 15px; line-height: 1.8; }
.privacy h2 {
  color: var(--fg); font-size: 18px; letter-spacing: -0.01em;
  margin: 32px 0 10px; padding-top: 20px; border-top: 1px solid var(--border);
}
.privacy p { margin: 0 0 10px; }
.privacy p.lede { font-size: 16px; color: var(--fg); margin-bottom: 24px; }
.privacy ul.bullets { margin: 10px 0 16px; display: grid; gap: 8px; }
.privacy ul.bullets li { color: var(--fg-dim); font-size: 14.5px; }
.privacy a { color: var(--accent-1); border-bottom: 1px solid color-mix(in srgb, var(--accent-1) 40%, transparent); }
.privacy a:hover { color: #7ee7fb; }
.privacy code {
  font-family: var(--font-mono); font-size: 13px;
  padding: 2px 6px; border-radius: 5px;
  background: var(--bg-elev-2); border: 1px solid var(--border);
  color: var(--fg);
}

/* footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center;
}
.footer .brand { margin-bottom: 6px; }
.footer .muted { color: var(--muted); font-size: 13px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer nav a { color: var(--fg-dim); font-size: 14px; }
.footer nav a:hover { color: var(--fg); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-glow { animation: none; }
  .hero-frame, .hero-frame:hover { transform: none; }
  .pill-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-inner { height: 56px; gap: 10px; }
  .brand-name { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .dl-menu { min-width: min(88vw, 320px); }
  .compare-row { grid-template-columns: 1.3fr 1fr 1fr; font-size: 13.5px; }
  .btn { padding: 11px 15px; font-size: 14.5px; }
  .cta-row { gap: 10px; }
  .nav-right .btn-ghost span { display: none; }
}
