:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --grad: linear-gradient(110deg, #ffb048 0%, #ff4d8d 45%, #7c5cff 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-soft: #101012;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2d2d30;
    --blue: #2997ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.47 var(--font); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav-inner { max-width: 1000px; margin: 0 auto; height: 48px; padding: 0 22px; display: flex; align-items: center; gap: 28px; font-size: 12.5px; letter-spacing: -.01em; }
.nav-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; }
.nav-brand img { border-radius: 5px; }
.nav-brand:hover, .nav-links a:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: color-mix(in srgb, var(--text) 80%, transparent); }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--blue); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 500; }
.nav-cta:hover { text-decoration: none; filter: brightness(1.08); }

/* -------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; border-radius: 999px; padding: 12px 24px; transition: filter .2s, transform .2s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-link { color: var(--blue); padding-left: 10px; padding-right: 10px; }
.btn-link:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- type */
.eyebrow { font-size: 21px; font-weight: 600; color: var(--muted); margin: 0 0 6px; letter-spacing: .004em; }
.eyebrow.center { text-align: center; }
h1 { font-size: clamp(48px, 9vw, 96px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; margin: 0 0 20px; }
h2 { font-size: clamp(36px, 6vw, 64px); line-height: 1.06; letter-spacing: -.04em; font-weight: 700; margin: 0 0 22px; }
h3 { font-size: 24px; line-height: 1.17; letter-spacing: -.025em; margin: 0 0 8px; }
h4 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.02em; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--muted); max-width: 760px; margin: 0 auto 30px; letter-spacing: -.02em; }
.fineprint { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.caption { text-align: center; color: #86868b; font-size: 17px; margin-top: 30px; }

/* -------------------------------------------------------------- sections */
.section { padding: 130px 22px; max-width: 1100px; margin: 0 auto; }
.section.dark, .section.soft, .section.privacy { max-width: none; }
.section.dark { background: #000; color: #f5f5f7; --muted: #a1a1a6; }
.section.soft { background: var(--bg-soft); }
.section.dark > *, .section.soft > *, .section.privacy > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; text-align: center; padding: 90px 22px 40px; overflow: hidden; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 900px; background: radial-gradient(40% 45% at 30% 30%, rgba(255, 176, 72, .22), transparent 70%), radial-gradient(40% 45% at 70% 25%, rgba(124, 92, 255, .25), transparent 70%), radial-gradient(35% 40% at 50% 55%, rgba(255, 77, 141, .18), transparent 70%); filter: blur(10px); pointer-events: none; }
.hero > *:not(.hero-glow) { position: relative; }
.hero-icon { width: 128px; height: 128px; margin: 0 auto 18px; filter: drop-shadow(0 18px 40px rgba(124, 92, 255, .35)); }
.hero .lead { margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.window { max-width: 1060px; margin: 70px auto 0; border-radius: 14px; overflow: hidden; background: #1c1a24; box-shadow: 0 50px 100px -20px rgba(30, 20, 60, .35), 0 30px 60px -30px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 0, 0, .08); }
.window-bar { height: 30px; display: flex; gap: 8px; align-items: center; padding: 0 14px; background: linear-gradient(#ececec, #e2e2e2); }
@media (prefers-color-scheme: dark) { .window-bar { background: linear-gradient(#2c2c30, #232327); } }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }

/* -------------------------------------------------------- prompt demo */
.prompt-demo { text-align: center; }
.typed-card { max-width: 720px; margin: 50px auto 0; text-align: left; background: #161618; border: 1px solid #2a2a2e; border-radius: 28px; padding: 34px; }
.typed-label { font-size: 13px; font-weight: 600; color: #86868b; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.typed { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.35; margin: 0; min-height: 3.2em; color: #f5f5f7; }
.typed::after { content: ""; display: inline-block; width: 2px; height: 1em; background: #ff4d8d; margin-left: 3px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typed-arrow { text-align: center; font-size: 28px; color: #6e6e73; margin: 18px 0; }
.result { display: flex; align-items: center; gap: 16px; background: #1f1f23; border-radius: 18px; padding: 14px; opacity: .25; transform: translateY(8px); transition: opacity .6s, transform .6s; }
.result.show { opacity: 1; transform: none; }
.result-art { width: 60px; height: 60px; border-radius: 12px; background: var(--grad); flex: none; }
.result-text { flex: 1; display: flex; flex-direction: column; }
.result-text strong { font-size: 19px; }
.result-text span { color: #a1a1a6; font-size: 14px; }
.eq { display: flex; gap: 3px; align-items: center; height: 28px; }
.eq i { width: 4px; border-radius: 2px; background: var(--grad); height: 6px; }
.result.show .eq i { animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.15s !important; } .eq i:nth-child(3) { animation-delay: -.3s !important; } .eq i:nth-child(4) { animation-delay: -.45s !important; } .eq i:nth-child(5) { animation-delay: -.6s !important; } .eq i:nth-child(6) { animation-delay: -.75s !important; } .eq i:nth-child(7) { animation-delay: -.9s !important; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 28px; } }

/* ---------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.tile { background: var(--bg-soft); border-radius: 28px; padding: 34px; overflow: hidden; position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile p { color: var(--muted); margin: 0; font-size: 17px; }
.tile-wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; align-items: center; min-height: 420px; padding-right: 0; }
.tile-wide .tile-text { padding-bottom: 10px; }
.tile-wide h3 { font-size: 34px; }
.tile-shot { border-radius: 14px 0 0 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .15); transform: translateX(10px); }
.tile-dark { background: #000; color: #f5f5f7; }
.tile-dark p { color: #a1a1a6; }
.tile-grad { background: var(--grad); color: #fff; }
.tile-grad p { color: rgba(255, 255, 255, .88); }
.tile-icon { font-size: 44px; line-height: 1; margin-bottom: auto; padding-bottom: 30px; }
.tile-big { font-size: 80px; font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: auto; padding-bottom: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- steps */
.step { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: center; margin-top: 90px; }
.step.reverse { grid-template-columns: 1.6fr 1fr; }
.step.reverse .step-text { order: 2; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 18px; }
.step h3 { font-size: 34px; }
.step p { color: var(--muted); font-size: 19px; }
.shot { border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(30, 20, 60, .3), 0 0 0 1px rgba(0, 0, 0, .06); }

/* ------------------------------------------------------------- pipeline */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 60px; }
.stage { background: #161618; border: 1px solid #2a2a2e; border-radius: 22px; padding: 26px; }
.stage span { font-size: 13px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage h4 { margin-top: 8px; font-size: 22px; }
.stage p { color: #a1a1a6; font-size: 15px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 70px; text-align: center; }
.stats strong { display: block; font-size: clamp(36px, 5vw, 56px); letter-spacing: -.04em; }
.stats span { color: #a1a1a6; font-size: 15px; }

/* --------------------------------------------------------------- models */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.tier { border: 1px solid var(--line); border-radius: 24px; padding: 32px; position: relative; }
.tier.featured { border: 2px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; }
.tier-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.tier-ram { font-size: 40px; font-weight: 700; letter-spacing: -.04em; }
.tier h4 { color: var(--muted); font-weight: 600; }
.tier ul { list-style: none; padding: 0; margin: 18px 0 0; }
.tier li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.gpu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.gpu div { background: var(--bg-soft); border-radius: 18px; padding: 20px; text-align: center; }
.gpu strong { display: block; }
.gpu span { color: var(--muted); font-size: 14px; }

/* -------------------------------------------------------------- privacy */
.privacy { background: radial-gradient(60% 60% at 50% 0%, rgba(124, 92, 255, .12), transparent 70%), var(--bg); }
.lock { width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 24px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 20px 50px rgba(255, 77, 141, .3); }
.lock svg { width: 46px; height: 46px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }

/* ------------------------------------------------------------- download */
#download { text-align: center; }
.dl-icon { margin: 0 auto 22px; filter: drop-shadow(0 18px 40px rgba(124, 92, 255, .45)); }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 820px !important; margin: 40px auto 0; }
.dl { display: flex; align-items: center; gap: 14px; text-align: left; background: #161618; border: 1px solid #2a2a2e; border-radius: 18px; padding: 18px 20px; color: #f5f5f7; transition: border-color .2s, transform .2s; }
.dl:hover { text-decoration: none; border-color: #ff4d8d; transform: translateY(-2px); }
.dl.mine { border-color: #7c5cff; box-shadow: 0 0 0 3px rgba(124, 92, 255, .25); }
.dl svg { width: 30px; height: 30px; fill: #f5f5f7; flex: none; }
.dl strong { display: block; font-size: 17px; }
.dl small { color: #a1a1a6; font-size: 13px; }
#download .fineprint a { color: #2997ff; }

/* ------------------------------------------------------------------ faq */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-size: 21px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 300; color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 14px 0 0; }

/* --------------------------------------------------------------- footer */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.footer-inner { max-width: 1000px; margin: 0 auto; padding: 30px 22px 40px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); font-size: 14px; margin-bottom: 10px; }
.footer-brand img { border-radius: 5px; }
.footer p { margin: 6px 0; }

/* ------------------------------------------------------------ animation */
.reveal, .reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal-up { transform: translateY(60px); }
.in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .section { padding: 90px 16px; }
  .bento, .tiers, .pipeline, .stats, .gpu, .dl-grid { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; grid-template-columns: 1fr; padding-right: 34px; }
  .tile-shot { border-radius: 14px; transform: none; }
  .step, .step.reverse { grid-template-columns: 1fr; gap: 28px; }
  .step.reverse .step-text { order: 0; }
}
@media (max-width: 600px) {
  .bento, .tiers, .pipeline, .gpu, .dl-grid { grid-template-columns: 1fr; }
  .tile-wide { grid-column: span 1; }
  .hero { padding: 60px 16px 20px; }
  .window { margin-top: 44px; border-radius: 10px; }
  .typed-card { padding: 22px; border-radius: 22px; }
}
