:root {
  color-scheme: dark;
  --bg: #0c0b10;
  --bg-2: #121118;
  --card: #17161e;
  --card-2: #1d1c25;
  --fg: #f5f4f7;
  --muted: #a19eb0;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --brand: #ff5a36;
  --brand-2: #ff2f7a;
  --brand-3: #ffa24a;
  --grad: linear-gradient(120deg, var(--brand-3) 0%, var(--brand) 45%, var(--brand-2) 100%);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--card-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 650; text-decoration: none; white-space: nowrap;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; height: 50px; font-size: 15px; }
.btn-block small { font-weight: 500; opacity: .8; font-size: 12.5px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(255, 70, 70, 0.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(255, 70, 70, 0.38); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-light { background: #fff; color: #17161e; }
.btn-light:hover { transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.os-icon:empty { display: none; }
.os-icon svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .2s ease, border-color .2s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(12, 11, 16, 0.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); }
.nav-inner { height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a, .link { white-space: nowrap; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 550; transition: color .15s; }
.nav-links a:hover, .link:hover { color: var(--fg); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.glow { position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background: radial-gradient(40% 50% at 70% 40%, rgba(255, 47, 122, 0.22), transparent 70%),
              radial-gradient(35% 45% at 30% 30%, rgba(255, 162, 74, 0.16), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: #ffb59f; background: rgba(255, 90, 54, 0.1); border: 1px solid rgba(255, 90, 54, 0.25); padding: 6px 12px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.2); }
h1 { font-size: clamp(42px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 20px 0 20px; }
.lede { font-size: 18.5px; color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.fine a { color: var(--fg); }

/* hero illustration */
.stage { position: relative; aspect-ratio: 16 / 11.5; }
.screen { position: absolute; inset: 0 4% 8% 0; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.screen-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--card-2); flex: none; }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3844; }
.screen-bar i:nth-child(1) { background: #ff5f57; } .screen-bar i:nth-child(2) { background: #febc2e; } .screen-bar i:nth-child(3) { background: #28c840; }
.screen-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-body { flex: 1; display: flex; min-height: 0; }
.mock-side { width: 22%; border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-side b { height: 9px; border-radius: 5px; background: #2a2833; }
.mock-side b:first-child { background: rgba(255, 90, 54, 0.45); width: 70%; }
.mock-main { position: relative; flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mock-head { display: flex; justify-content: space-between; align-items: center; }
.mock-head .w40 { width: 40%; height: 12px; border-radius: 6px; background: #34323e; }
.mock-head .pill { width: 64px; height: 22px; border-radius: 999px; background: var(--grad); opacity: .85; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cards div { height: 48px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); }
.mock-chart { flex: 1; display: flex; align-items: flex-end; gap: 8%; padding: 12px 14px 0; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); min-height: 0; }
.mock-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, rgba(255, 90, 54, 0.85), rgba(255, 47, 122, 0.35)); }
.mock-note { position: absolute; right: 18%; top: 44%; width: 28%; color: #ffd54a; transform: rotate(-6deg); }
.mock-note svg { width: 100%; height: auto; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 6s ease-in-out infinite; }
.cursor { position: absolute; left: 62%; top: 30%; width: 22px; animation: cursor 6s ease-in-out infinite; }
.cursor svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.ripple { position: absolute; left: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; opacity: 0; animation: ripple 6s ease-out infinite; }

.bubble { position: absolute; left: -3%; bottom: 0; width: 27%; aspect-ratio: 1; border-radius: 50%; padding: 4px; background: var(--grad); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.face { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #4a3c52, #221d2b); }
.face .head { position: absolute; left: 50%; top: 22%; width: 36%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #e8b597; }
.face .body { position: absolute; left: 50%; bottom: -18%; width: 78%; height: 46%; transform: translateX(-50%); border-radius: 50% 50% 0 0; background: #ff7a59; }

.controls { position: absolute; right: 8%; bottom: 1%; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 999px; background: rgba(23, 22, 30, 0.92); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.rec { width: 10px; height: 10px; border-radius: 50%; background: #ff3b3b; animation: pulse 1.4s ease-in-out infinite; }
.timer { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 14px; min-width: 38px; }
.sep { width: 1px; height: 18px; background: var(--line-2); }
.ctl { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--fg); }
.ctl svg { width: 15px; height: 15px; fill: currentColor; }
.ctl.stop { background: #ff3b3b; color: #fff; }

.toast { position: absolute; right: 0; top: 10%; display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; color: #17161e; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); animation: toast 6s ease-in-out infinite; }
.toast .check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #10b981; color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.toast b { display: block; font-size: 13.5px; line-height: 1.2; }
.toast small { display: block; font-size: 11.5px; color: #6e6b7b; white-space: nowrap; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes cursor { 0%, 8% { transform: translate(0, 0); } 30%, 45% { transform: translate(-90px, 70px); } 70%, 100% { transform: translate(0, 0); } }
@keyframes ripple { 0%, 30% { opacity: 0; transform: scale(.4); } 33% { opacity: .9; } 45%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes draw { 0%, 40% { stroke-dashoffset: 220; } 60%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes toast { 0%, 62% { opacity: 0; transform: translateY(10px) scale(.96); } 68%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 780; max-width: 22em; }
.sub { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 40em; }
.sub a { color: var(--fg); }
h3 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.value { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.value p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.v-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(255, 90, 54, 0.12); color: #ff8a6b; }
.v-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line); }
.step p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 18px; font-weight: 800; background: var(--grad); color: #fff; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.tile { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.tile-wide { grid-column: span 2; }
.tile p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.tile-art { height: 92px; margin-bottom: 20px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tile-stat { height: 92px; margin-bottom: 20px; display: flex; align-items: baseline; font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 92px; }
.tile-stat { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile-stat small { font-size: 22px; margin-left: 6px; letter-spacing: 0; }
.art-bubble .mini-screen { position: absolute; inset: 14px 22% 14px 14px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); }
.art-bubble .mini-bubble { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: var(--grad); border: 3px solid var(--bg-2); right: 18%; bottom: 8px; animation: hop 5s ease-in-out infinite; }
@keyframes hop { 0%, 20% { right: 18%; bottom: 8px; } 40%, 70% { right: 74%; bottom: 30px; } 90%, 100% { right: 18%; bottom: 8px; } }
.art-quality span { font-size: 13px; font-weight: 650; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.art-quality span.on { background: var(--grad); color: #fff; border-color: transparent; }
.art-notes { flex-direction: column; align-items: stretch; padding: 16px 18px; gap: 9px; background: repeating-linear-gradient(0deg, transparent 0 22px, transparent 22px); }
.art-notes b { height: 9px; border-radius: 5px; background: #3a3844; }
.art-notes b:first-child { background: rgba(255, 213, 74, 0.6); }
.art-notes b.short { width: 55%; }
.art-draw { color: #ffd54a; }
.art-draw svg { width: 70%; height: auto; }
.art-react { gap: 12px; }
.art-react span { font-size: 22px; line-height: 1; }
.art-react span.c { font-size: 12.5px; padding: 6px 10px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); color: var(--fg); }
.art-sync span { font-size: 13px; font-weight: 650; padding: 8px 14px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); }
.art-sync span:nth-child(2) { border-color: rgba(255, 90, 54, 0.5); }

.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.use { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.use p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 90, 54, 0.12); color: #ff9b80; margin-bottom: 14px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.trust-item { padding: 20px 22px; border-radius: 14px; border: 1px dashed var(--line-2); }
.trust-item b { display: block; font-size: 15px; }
.trust-item span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* downloads */
.download { background: radial-gradient(60% 60% at 50% 0%, rgba(255, 90, 54, 0.09), transparent 70%); }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: start; }
.dl { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; transition: border-color .2s, box-shadow .2s; }
.dl.recommended { border-color: rgba(255, 90, 54, 0.55); box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.08); }
.dl.recommended .dl-head h3::after { content: "Recommended for you"; margin-left: 10px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; vertical-align: 2px; background: rgba(255, 90, 54, 0.15); color: #ff9b80; }
.dl-head { display: flex; gap: 14px; align-items: center; }
.dl-head p { color: var(--muted); font-size: 13.5px; }
.dl-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); flex: none; }
.dl-icon svg { width: 24px; height: 24px; fill: currentColor; }
.howto summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 6px; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 13px; line-height: 1; }
.howto[open] summary::before { content: "–"; }
.howto ol { margin: 12px 0 0 20px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.howto b { color: var(--fg); font-weight: 600; }
.soon { margin-top: 10px; font-size: 13px; color: var(--muted); }
.download .fine.center { margin-top: 28px; }

/* faq */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 22px 18px; color: var(--muted); font-size: 15px; }
.faq a, .use a { color: var(--fg); }

/* final */
.final { border-top: none !important; padding-top: 24px; }
.final-card { text-align: center; padding: 64px 28px; border-radius: 28px; background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.final-card h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 800; max-width: 18em; margin: 0 auto; }
.final-card p { margin-top: 12px; font-size: 18px; opacity: .92; }
.final-card .hero-actions { justify-content: center; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer nav a:hover { color: var(--fg); }
.footer p { margin-left: auto; color: var(--muted); font-size: 13.5px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .stage { max-width: 640px; width: 100%; margin: 0 auto; }
  .value-grid, .steps, .dl-grid, .trust { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .uses { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .nav-cta { gap: 12px; }
  .nav-inner { gap: 12px; }
  h1 { font-size: 40px; }
  .lede { font-size: 16.5px; }
  .hero { padding-bottom: 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-actions .btn[hidden] { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .controls { gap: 6px; padding: 6px 8px 6px 10px; right: 4%; }
  .ctl { width: 26px; height: 26px; }
  .toast small { display: none; }
  .mock-note { display: none; }
  .final-card { padding: 48px 20px; }
  .footer p { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .toast { opacity: 1; }
  .mock-note svg { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
