/* ==========================================================================
   OpenCodingPartner — marketing site stylesheet
   Dark-first "night workshop": cyan → violet glow, glass surfaces, a live
   illustrated team stage in the hero. Full light theme. No libraries.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05070d;
  --bg-subtle: #090d17;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-solid: #0e1320;
  --surface-2: rgba(255, 255, 255, 0.06);
  --text: #f3f6fb;
  --text-2: #b9c4d6;
  --text-3: #8d99ad;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --c1: #22d3ee;
  --c2: #818cf8;
  --c3: #c084fc;
  --accent: #67e8f9;
  --accent-ink: #04121a;
  --accent-soft: rgba(34, 211, 238, 0.1);
  --grad: linear-gradient(100deg, #22d3ee 0%, #818cf8 52%, #c084fc 100%);
  --grad-alt: linear-gradient(100deg, #a78bfa 0%, #f0abfc 60%, #67e8f9 100%);
  --btn-grad: linear-gradient(100deg, #22d3ee, #a5b4fc);
  --glow: 0 0 0 1px rgba(103, 232, 249, 0.25), 0 18px 60px -12px rgba(56, 189, 248, 0.45);
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --header-bg: rgba(5, 7, 13, 0.72);
  --code-bg: #070a12;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --focus: #7dd3fc;
  --aurora-1: rgba(34, 211, 238, 0.34);
  --aurora-2: rgba(129, 140, 248, 0.34);
  --aurora-3: rgba(192, 132, 252, 0.26);
  --grid-line: rgba(255, 255, 255, 0.045);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6fb;
  --bg-subtle: #eceffa;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-2: #f1f3fb;
  --text: #0b1020;
  --text-2: #33405a;
  --text-3: #56637c;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.18);
  --c1: #0891b2;
  --c2: #4f46e5;
  --c3: #9333ea;
  --accent: #0e7490;
  --accent-ink: #ffffff;
  --accent-soft: rgba(14, 116, 144, 0.08);
  --grad: linear-gradient(100deg, #0e7490 0%, #4f46e5 55%, #9333ea 100%);
  --grad-alt: linear-gradient(100deg, #6d28d9 0%, #c026d3 60%, #0e7490 100%);
  --btn-grad: linear-gradient(100deg, #0e7490, #4f46e5);
  --glow: 0 0 0 1px rgba(79, 70, 229, 0.18), 0 18px 50px -16px rgba(79, 70, 229, 0.35);
  --ok: #047857;
  --warn: #b45309;
  --bad: #be123c;
  --header-bg: rgba(245, 246, 251, 0.8);
  --code-bg: #0b1020;
  --shadow: 0 30px 70px -32px rgba(30, 27, 75, 0.35);
  --focus: #4f46e5;
  --aurora-1: rgba(34, 211, 238, 0.28);
  --aurora-2: rgba(129, 140, 248, 0.28);
  --aurora-3: rgba(232, 121, 249, 0.2);
  --grid-line: rgba(15, 23, 42, 0.05);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
}

h1, h2, h3, .logo, .price, .footer-brand-title { font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif; }

img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
code, pre, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
code { font-size: 0.86em; background: var(--accent-soft); color: var(--text); padding: 0.1em 0.38em; border-radius: 6px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { width: 100%; max-width: 840px; margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Gradient text */
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.grad-alt { background-image: var(--grad-alt); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-primary { background: var(--btn-grad); border-color: transparent; color: var(--accent-ink); box-shadow: var(--glow); }
.btn-primary:hover { border-color: transparent; filter: brightness(1.07); }
.btn-ghost { background: var(--surface); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-lg { min-height: 54px; padding: 14px 24px; font-size: 1.06rem; border-radius: 14px; }
.btn svg { flex: none; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(2px); }

/* --- Header --- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; flex: none; }
.logo-badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 6px 20px -6px rgba(99, 102, 241, 0.7); }
.logo-badge svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.logo-short { display: none; }

.header-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.97rem; white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); padding: 8px 0 20px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-menu a.nav-link { display: flex; min-height: 48px; font-size: 1.05rem; padding: 0 12px; }
.mobile-menu .mobile-menu-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.mobile-menu .mobile-menu-actions .btn { flex: 1 1 160px; }

@media (max-width: 1180px) {
  .nav-link { padding: 0 9px; font-size: 0.94rem; }
  .header-row { gap: 10px; }
}
@media (max-width: 1023px) {
  .header-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .header-github { display: none; }
  .logo-full { display: none; }
  .logo-short { display: inline; }
  .header-actions .btn { padding: 10px 14px; }
}

/* --- Sections --- */
section { padding: 104px 0; position: relative; }
.section-alt { background: var(--bg-subtle); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-header { max-width: 780px; margin: 0 0 44px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-tag::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.025em; font-weight: 700; }
.section-desc { color: var(--text-2); font-size: 1.12rem; margin: 0; }

/* =========================== HERO =========================== */
.hero { padding: 44px 0 72px; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.aurora-a { width: 560px; height: 560px; left: -160px; top: -200px; background: var(--aurora-1); animation: drift-a 18s ease-in-out infinite alternate; }
.aurora-b { width: 640px; height: 640px; right: -180px; top: -120px; background: var(--aurora-2); animation: drift-b 22s ease-in-out infinite alternate; }
.aurora-c { width: 520px; height: 520px; left: 34%; bottom: -320px; background: var(--aurora-3); animation: drift-c 20s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(140px, 90px) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-120px, 120px) scale(0.92); } }
@keyframes drift-c { to { transform: translate(-160px, -80px) scale(1.12); } }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: 0.92rem; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.05rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 22px;
}
.hero-title .grad { background-size: 200% 100%; animation: grad-pan 8s ease-in-out infinite alternate; }
@keyframes grad-pan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero-lead { font-size: 1.15rem; color: var(--text-2); margin: 0 0 24px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 16px 0 0; font-size: 0.93rem; color: var(--text-3); max-width: 52ch; }
.hero-note strong { color: var(--text-2); }

/* Persona chips */
.crew { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crew-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 0.9rem; color: var(--text-3);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.crew-chip strong { color: var(--text); font-weight: 700; margin-right: 2px; }
.crew-chip.is-active { border-color: var(--accent); color: var(--text-2); box-shadow: var(--glow); transform: translateY(-2px); }
.crew-av {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font: 800 0.8rem/1 'Bricolage Grotesque', sans-serif; color: #fff;
}
.av-ada { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.av-linus { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.av-grace { background: linear-gradient(135deg, #10b981, #059669); }
.av-sentinel { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.av-atlas { background: linear-gradient(135deg, #f59e0b, #d97706); }
.av-you { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #0b1020 !important; }

/* --- Stage: always a dark "screen", in both themes --- */
.stage {
  --s-bg: #0a0f1c; --s-line: rgba(255, 255, 255, 0.09); --s-text: #e7ecf5; --s-text-2: #a9b5c9; --s-text-3: #8794aa;
  position: relative; margin: 0; padding: 0 16px 14px; border-radius: 22px; color: var(--s-text);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(129, 140, 248, 0.16), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--s-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow), 0 0 0 1px rgba(103, 232, 249, 0.08), 0 0 80px -20px rgba(99, 102, 241, 0.55);
}
.stage::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.7), transparent 35%, transparent 65%, rgba(192, 132, 252, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.stage-bar { display: flex; align-items: center; gap: 12px; height: 46px; color: var(--s-text-3); font-size: 0.85rem; padding-right: 48px; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.dots i:nth-child(1) { background: #fb7185; } .dots i:nth-child(2) { background: #fbbf24; } .dots i:nth-child(3) { background: #34d399; }
.stage-title { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-pause {
  position: absolute; top: 4px; right: 8px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--s-line); background: rgba(255, 255, 255, 0.04); color: var(--s-text-2); cursor: pointer;
}
.stage-pause:hover { color: #fff; border-color: rgba(103, 232, 249, 0.5); }
.stage-pause svg { width: 14px; height: 14px; }
.stage-pause[hidden] { display: none; }
.stage-pause .i-play { display: none; }
.stage-pause[aria-pressed="true"] .i-play { display: block; }
.stage-pause[aria-pressed="true"] .i-pause { display: none; }

/* Team rail */
.rail { position: relative; list-style: none; margin: 0 0 12px; padding: 10px 8px 22px; display: flex; justify-content: space-between; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--s-line); }
.rail::before { content: ""; position: absolute; left: 12%; right: 12%; top: 27px; height: 2px; background: linear-gradient(90deg, #8b5cf6, #06b6d4, #10b981, #94a3b8); opacity: 0.35; }
.rail-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 25%; transition: transform 0.4s ease; }
.rail-av {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font: 800 0.9rem/1 'Bricolage Grotesque', sans-serif; box-shadow: 0 0 0 4px var(--s-bg); opacity: 0.45; filter: saturate(0.5);
  transition: opacity 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.rail-txt { font-size: 0.8rem; font-weight: 700; color: var(--s-text-2); text-align: center; line-height: 1.15; }
.rail-txt small { display: block; font-weight: 500; color: var(--s-text-3); font-size: 0.72rem; }
.rail-node.is-active .rail-av { opacity: 1; filter: none; transform: scale(1.12); box-shadow: 0 0 0 4px var(--s-bg), 0 0 0 6px rgba(103, 232, 249, 0.55), 0 0 26px rgba(103, 232, 249, 0.6); }
.rail-node.is-done .rail-av { opacity: 0.9; filter: none; }
.rail-node.is-active .rail-txt { color: #fff; }
.rail-loop {
  position: absolute; left: 37.5%; width: 25%; bottom: 3px; text-align: center; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  color: #fbbf24; opacity: 0; transition: opacity 0.4s ease; text-transform: uppercase;
}
.rail-loop::before { content: "↺ "; }
.stage.is-looping .rail-loop { opacity: 1; }

/* Virtual computer */
.vm { border-radius: 14px; overflow: hidden; border: 1px solid var(--s-line); background: #050810; }
.vm-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; font-size: 0.76rem; color: var(--s-text-2); background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--s-line); }
.vm-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.vm-led { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.vm-take { padding: 2px 9px; border-radius: 6px; background: rgba(251, 191, 36, 0.16); color: #fcd34d; font-weight: 700; font-size: 0.72rem; white-space: nowrap; }
.vm-screen { position: relative; height: 232px; padding: 10px; overflow: hidden; }
.vm-url { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: var(--s-text-3); font: 500 0.72rem/1 'JetBrains Mono', monospace; margin-bottom: 8px; }
.vm-lock { width: 8px; height: 8px; border-radius: 2px; background: #34d399; }

.site { position: relative; height: calc(100% - 32px); border-radius: 8px; overflow: hidden; background: #fff8ef; color: #3b2412; }
.site-skel { position: absolute; inset: 0; padding: 14px; display: grid; gap: 10px; align-content: start; transition: opacity 0.4s ease; }
.site-skel i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, #f1e4d3, #fbf3e8, #f1e4d3); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.site-skel i:nth-child(1) { width: 45%; height: 18px; } .site-skel i:nth-child(2) { height: 46px; } .site-skel i:nth-child(3) { width: 80%; } .site-skel i:nth-child(4) { width: 65%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.site-real { position: absolute; inset: 0; padding: 10px 12px; opacity: 0; transition: opacity 0.5s ease; font-size: 0.8rem; }
.site-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.site-logo { font: 700 0.95rem/1 Georgia, 'Times New Roman', serif; color: #7c2d12; }
.site-nav { display: inline-flex; gap: 5px; } .site-nav i { width: 18px; height: 5px; border-radius: 3px; background: #e7cfb2; }
.site-hero { padding: 10px 12px; border-radius: 8px; background: linear-gradient(120deg, #fdba74, #f9a8d4); color: #431407; font: 700 0.92rem/1.2 Georgia, serif; margin-bottom: 6px; }
.site-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 2px; border-bottom: 1px dashed #ecd9c1; }
.site-call { border-bottom: 0; }
.site-price, .site-phone { position: relative; font-family: 'JetBrains Mono', monospace; font-weight: 600; padding: 1px 6px; border-radius: 5px; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.site-price .good, .site-phone .good { display: none; color: #047857; }
.site-price .bad, .site-phone .bad { color: #3b2412; }
.stage.is-built .site-skel { opacity: 0; }
.stage.is-built .site-real { opacity: 1; }
.stage.is-flagged .flag { background: rgba(244, 63, 94, 0.14); box-shadow: 0 0 0 2px #e11d48; }
.stage.is-flagged .flag .bad { color: #be123c; }
.stage.is-fixed .site-price .bad, .stage.is-fixed .site-phone .bad { display: none; }
.stage.is-fixed .site-price .good, .stage.is-fixed .site-phone .good { display: inline; }
.stage.is-fixed .flag { animation: fixed-flash 0.9s ease; }
@keyframes fixed-flash { 0% { background: rgba(16, 185, 129, 0.35); } 100% { background: transparent; } }

.vm-check {
  position: absolute; right: 16px; top: 44px; display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; font-size: 0.74rem;
  background: rgba(6, 20, 16, 0.94); border: 1px solid rgba(52, 211, 153, 0.5); color: #a7f3d0;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(-6px) scale(0.97); transition: opacity 0.4s ease, transform 0.4s ease;
}
.vm-check strong { color: #ecfdf5; font-size: 0.78rem; }
.stage.is-checked .vm-check { opacity: 1; transform: none; }
.stage.is-asking .vm-check { opacity: 0; }

.vm-cursor { position: absolute; width: 20px; height: 20px; left: 70%; top: 70%; z-index: 3; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); transition: left 0.9s cubic-bezier(0.6, 0, 0.3, 1), top 0.9s cubic-bezier(0.6, 0, 0.3, 1); }
.stage[data-step="1"] .vm-cursor { left: 30%; top: 40%; }
.stage[data-step="2"] .vm-cursor { left: 52%; top: 52%; }
.stage[data-step="3"] .vm-cursor { left: 84%; top: 64%; }
.stage[data-step="4"] .vm-cursor { left: 82%; top: 86%; }
.stage[data-step="5"] .vm-cursor { left: 60%; top: 30%; }
.stage[data-step="6"] .vm-cursor, .stage[data-step="7"] .vm-cursor { left: 26%; top: 90%; }

/* Plain-language approval card (in stage + feature tile) */
.ask {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; padding: 12px; border-radius: 12px;
  background: #0d1220; border: 1px solid rgba(129, 140, 248, 0.55); box-shadow: 0 -10px 40px -10px rgba(99, 102, 241, 0.55);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.86rem; color: var(--s-text);
  opacity: 0; transform: translateY(110%); transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.ask-who, .viz-ask .ask-who { font-weight: 800; color: #a5b4fc; }
.ask-btns { display: flex; gap: 8px; }
.ask-yes, .ask-no { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 0.82rem; }
.ask-yes { background: linear-gradient(100deg, #22d3ee, #a5b4fc); color: #04121a; }
.ask-no { border: 1px solid rgba(255, 255, 255, 0.2); color: var(--s-text-2); }
.ask-done { display: none; color: #6ee7b7; font-weight: 700; }
.stage.is-asking .ask { opacity: 1; transform: none; }
.stage.is-asking:not(.is-approved) .ask-yes { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: 0 0 0 5px rgba(103, 232, 249, 0.25); } }
.stage.is-approved .ask-text, .stage.is-approved .ask-btns { display: none; }
.stage.is-approved .ask-done { display: block; }
.stage.is-approved .ask { border-color: rgba(52, 211, 153, 0.6); box-shadow: 0 -10px 40px -12px rgba(16, 185, 129, 0.55); }

/* Chat feed */
.feed { position: relative; height: 128px; margin-top: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34px); mask-image: linear-gradient(to bottom, transparent 0, #000 34px); }
.msg { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: 0.86rem; line-height: 1.45; color: var(--s-text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--s-line); flex: none; }
.js .msg { display: none; }
.js .msg.is-on { display: block; animation: msg-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.msg-who { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; color: var(--s-text-3); margin-bottom: 1px; }
.msg-you { background: rgba(103, 232, 249, 0.09); border-color: rgba(103, 232, 249, 0.25); margin-left: 14%; }
.msg-warn { border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.07); }
.msg-ok { border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.07); }
.c-ada { color: #c4b5fd; } .c-linus { color: #67e8f9; } .c-grace { color: #6ee7b7; }
.stage-caption { margin-top: 10px; font-size: 0.78rem; color: var(--s-text-3); text-align: center; }

/* =========================== MARQUEE =========================== */
.marquee-band { padding: 26px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-subtle); }
.marquee-head { text-align: center; color: var(--text-3); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; padding-right: 14px; flex: none; animation: marquee 34s linear infinite; }
.marquee-track li {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-strong); background: var(--surface); font: 700 1.02rem/1 'Bricolage Grotesque', sans-serif; color: var(--text);
}
.mq-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c2); }
.mq-local { background: var(--ok); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* =========================== BENTO =========================== */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; overflow: hidden; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(400px 200px at 100% 0%, rgba(129, 140, 248, 0.14), transparent 70%); }
.tile:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.tile:hover::after { opacity: 1; }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.tile-kicker { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.tile h3 { font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 10px; }
.tile p { margin: 0; color: var(--text-2); }
.tile-note { display: block; margin-top: 12px; font-size: 0.9rem; color: var(--text-3); padding-left: 12px; border-left: 2px solid var(--warn); }
.viz { margin: 18px 0 0; }

.viz-loop { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; padding: 28px 8px 44px; border-radius: 18px; background: var(--code-bg); border: 1px solid rgba(255, 255, 255, 0.08); margin: 0; }
.loop-node { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 82px; height: 82px; border-radius: 50%; color: #fff; font: 800 1rem/1.1 'Bricolage Grotesque', sans-serif; text-align: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6); flex: none; }
.loop-node small { display: block; font: 600 0.7rem/1 'Plus Jakarta Sans', sans-serif; opacity: 0.85; margin-top: 3px; }
.loop-arrow { position: relative; flex: 1 1 24px; max-width: 60px; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.5)); overflow: visible; }
.loop-arrow::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 12px #67e8f9; animation: travel 2.2s linear infinite; }
.loop-arrow-both::after { background: #fbbf24; box-shadow: 0 0 12px #fbbf24; animation: travel-back 2.2s ease-in-out infinite; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 10px); } }
@keyframes travel-back { 0%, 100% { left: 0; } 50% { left: calc(100% - 10px); } }
.loop-back { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 0.78rem; font-weight: 700; color: #fcd34d; }

.viz-check { list-style: none; padding: 0; display: grid; gap: 8px; }
.viz-check li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.94rem; color: var(--text-2); }
.viz-check .x { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; background: rgba(251, 191, 36, 0.18); color: var(--warn); }

.viz-ask { padding: 14px; border-radius: 14px; background: #0d1220; border: 1px solid rgba(129, 140, 248, 0.5); color: #e7ecf5; font-size: 0.95rem; display: grid; gap: 12px; box-shadow: 0 16px 40px -18px rgba(99, 102, 241, 0.7); }
.viz-ask .ask-no { color: #cbd5e1; }

.viz-vm { margin: 0; }
.mini-win { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); background: #050810; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7); }
.mini-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: rgba(255, 255, 255, 0.05); color: #a9b5c9; font-size: 0.76rem; }
.mini-bar i { width: 8px; height: 8px; border-radius: 50%; background: #475569; }
.mini-bar span { margin-left: 6px; font-weight: 600; }
.mini-bar em { margin-left: auto; font-style: normal; padding: 2px 8px; border-radius: 6px; background: rgba(251, 191, 36, 0.16); color: #fcd34d; font-weight: 700; font-size: 0.7rem; }
.mini-body { position: relative; padding: 12px; height: 170px; }
.mini-url { height: 18px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); margin-bottom: 10px; }
.mini-page { display: grid; gap: 8px; padding: 12px; border-radius: 8px; background: linear-gradient(160deg, #1e1b4b, #0f172a); }
.mini-page i { display: block; height: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
.mini-page i.w60 { width: 60%; }
.mini-page b { display: block; width: 90px; height: 24px; border-radius: 6px; background: linear-gradient(100deg, #22d3ee, #a5b4fc); margin-top: 4px; }
.mini-cursor { position: absolute; width: 18px; height: 18px; left: 30%; top: 40%; animation: wander 6s ease-in-out infinite; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
@keyframes wander { 0%, 100% { left: 30%; top: 40%; } 30% { left: 70%; top: 50%; } 55% { left: 24%; top: 80%; } 75% { left: 55%; top: 30%; } }

.viz-diff { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--code-bg); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.84rem; line-height: 1.7; white-space: pre-wrap; color: #cbd5e1; }
.d-del { color: #fda4af; } .d-add { color: #6ee7b7; }

/* =========================== STEPS =========================== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 44px; left: 8%; right: 8%; height: 2px; background: var(--grad); opacity: 0.45; }
.steps li { position: relative; counter-increment: step; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--btn-grad); color: var(--accent-ink); font: 800 1.1rem/1 'Bricolage Grotesque', sans-serif; margin-bottom: 14px; box-shadow: var(--glow);
}
.steps h3 { font-size: 1.2rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--text-2); }

/* =========================== VIDEOS =========================== */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.video-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; padding: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; width: 100%;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--glow); }
.video-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.video-frame { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-solid); border-bottom: 1px solid var(--line); }
.video-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.play-badge {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 7, 13, 0.62); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.play-badge svg { width: 24px; height: 24px; margin-left: 3px; }
.video-card:hover .play-badge, .video-card:focus-visible .play-badge { transform: scale(1.1); background: rgba(34, 211, 238, 0.75); }
.video-length {
  position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 999px;
  background: rgba(5, 7, 13, 0.72); color: #fff; font: 600 0.8rem/1.4 'JetBrains Mono', ui-monospace, monospace;
}
.video-card-body { display: block; padding: 18px 22px 22px; }
.video-card-body .video-step { display: block; margin-bottom: 6px; color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.video-card-body strong { display: block; font: 700 1.2rem/1.25 'Bricolage Grotesque', sans-serif; margin-bottom: 6px; }
.video-card-body > span:last-child { display: block; color: var(--text-2); font-size: 0.98rem; }
.video-card-body em { font-style: normal; font-weight: 600; color: var(--text); }
.video-lightbox { width: min(1100px, 94vw); padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: #000; }
.video-lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
.video-lightbox video { width: 100%; }
.lightbox-close-btn { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0, 0, 0, 0.7); color: #fff; border-color: rgba(255, 255, 255, 0.3); }

/* =========================== APPS =========================== */
.app-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.app-tile {
  --h: 200; display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--surface-solid); border: 1px solid var(--line-strong); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.app-tile:hover { transform: translateY(-4px); border-color: hsl(var(--h) 70% 55% / 0.6); box-shadow: 0 20px 40px -18px hsl(var(--h) 80% 40% / 0.7); }
.app-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, hsl(var(--h) 60% 30%), hsl(calc(var(--h) + 50) 55% 18%)); }
.app-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.4s ease; }
.app-tile:hover .app-shot img { transform: scale(1.04); }
.app-meta { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.app-cat { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--h) 75% 68%); }
html[data-theme="light"] .app-cat { color: hsl(var(--h) 75% 30%); }
.app-tile strong { font: 800 1.1rem/1.2 'Bricolage Grotesque', sans-serif; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* =========================== CARDS / DEV =========================== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; }
.card p { margin: 0; color: var(--text-2); }
.card-note { display: block; margin-top: 10px; font-size: 0.92rem; color: var(--text-3); }
.card-note-tight { margin: 0 0 16px; }
.dev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dev-list { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); }
.dev-list li { margin-bottom: 6px; }
.dev-list li::marker { color: var(--accent); }
.surface-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.surface h3 { margin: 0 0 4px; font-size: 1rem; }
.surface p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(52, 211, 153, 0.14); color: var(--ok); margin-bottom: 8px; }
.badge-soon { background: transparent; border: 1px solid var(--line-strong); color: var(--text-3); }

/* =========================== PRICING =========================== */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; }
.price-card.is-featured { border-color: transparent; background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: var(--glow); }
.price-card h3 { margin: 0 0 6px; font-size: 1.35rem; }
.price { font-size: 2.8rem; font-weight: 800; margin: 4px 0 8px; letter-spacing: -0.03em; }
.price span { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.price-card ul { margin: 8px 0 20px; padding-left: 20px; color: var(--text-2); }
.price-card ul li { margin-bottom: 6px; }
.price-card .btn { margin-top: auto; }
.notice { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); color: var(--text); font-size: 0.98rem; }

/* =========================== FAQ =========================== */
.faq-list { display: grid; gap: 12px; }
.faq-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color 0.2s ease; }
.faq-card[open] { border-color: var(--line-strong); }
.faq-card summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px; font-weight: 600; font-size: 1.05rem; border-radius: 16px; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary svg { width: 20px; height: 20px; flex: none; color: var(--accent); transition: transform 0.2s ease; }
.faq-card[open] summary svg { transform: rotate(180deg); }
.faq-content { padding: 0 18px 18px; color: var(--text-2); }

/* =========================== INSTALL =========================== */
#install { overflow: hidden; }
#install::before { content: ""; position: absolute; left: 50%; top: 40%; width: 700px; height: 400px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--aurora-2), transparent); filter: blur(30px); z-index: -1; pointer-events: none; }
.install-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.install-tab { min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font: inherit; font-size: 0.97rem; font-weight: 600; cursor: pointer; }
.install-tab[aria-selected="true"] { background: var(--btn-grad); color: var(--accent-ink); border-color: transparent; }
.install-card { background: var(--code-bg); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow), 0 0 60px -20px rgba(99, 102, 241, 0.5); }
.install-card-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: #b6c2d2; font-size: 0.92rem; }
.install-card-head .copy-btn { margin-left: auto; }
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: #fb7185; }
.term-dots i:nth-child(2) { background: #fbbf24; } .term-dots i:nth-child(3) { background: #34d399; }
.install-card pre { margin: 0; padding: 20px; color: #e2e8f0; font-size: 0.95rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.install-card pre::before { content: "$ "; color: #67e8f9; }
.copy-btn { min-height: 44px; padding: 8px 14px; font-size: 0.95rem; background: transparent; color: #e2e8f0; border-color: rgba(255, 255, 255, 0.25); }
.install-after { margin-top: 16px; color: var(--text-2); }

/* =========================== FOOTER =========================== */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg-subtle); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-brand-title { font-weight: 800; font-size: 1.3rem; margin-bottom: 6px; }
.footer p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.footer h4 { margin: 0 0 8px; font-size: 0.95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--text-2); text-decoration: none; font-size: 0.97rem; }
.footer li a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--text-3); font-size: 0.92rem; }

/* =========================== DIALOG =========================== */
.studio-dialog { width: min(460px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: 18px; padding: 24px; background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow); }
.studio-dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.studio-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.studio-dialog-head strong { font-size: 1.15rem; }
.studio-dialog p { margin: 0 0 16px; color: var(--text-2); font-size: 0.98rem; }
.studio-dialog label { display: grid; gap: 6px; font-size: 0.97rem; font-weight: 600; }
.studio-dialog input { min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; }
.studio-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.studio-dialog-actions .btn { flex: 1 1 160px; }
.studio-dialog-status { margin-top: 10px; font-size: 0.95rem; color: var(--accent); min-height: 1.4em; }

/* --- 404 --- */
.notfound { min-height: 60vh; display: grid; align-content: center; padding-top: 96px; padding-bottom: 96px; }
.notfound .section-title { font-size: clamp(2rem, 5vw, 3rem); }

/* --- Scroll reveal: a gentle lift; content is never hidden --- */
.js [data-reveal] { transform: translateY(14px); transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js [data-reveal].is-visible { transform: none; }

/* Hero entrance */
.hero-copy > *, .stage { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.22s; }
.hero-copy > :nth-child(6) { animation-delay: 0.28s; }
.stage { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .stage { max-width: 640px; }
}
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .app-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .surface-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid, .dev-grid { grid-template-columns: minmax(0, 1fr); }
  .video-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .tile-wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  section { padding: 68px 0; }
  .hero { padding: 28px 0 56px; }
  .eyebrow { font-size: 0.84rem; margin-bottom: 16px; }
  .hero-title { font-size: clamp(2.3rem, 10.5vw, 2.9rem); margin-bottom: 16px; }
  .hero-lead { font-size: 1.03rem; line-height: 1.6; margin-bottom: 20px; }
  .crew { margin-top: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .crew-chip { font-size: 0.82rem; line-height: 1.25; padding-right: 8px; }
  .crew-chip:last-child { grid-column: span 2; }
  .bento, .steps, .surface-grid, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .tile-wide { grid-column: auto; }
  .tile { padding: 22px; }
  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { padding: 0 10px 12px; border-radius: 18px; }
  .rail { padding: 8px 2px 20px; }
  .rail-av { width: 32px; height: 32px; }
  .vm-screen { height: 214px; }
  .feed { height: 120px; }
  .loop-node { width: 66px; height: 66px; font-size: 0.88rem; }
  .app-wall { gap: 10px; }
  .app-meta { padding: 10px 12px 12px; }
  .app-tile strong { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { transform: none !important; }
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .loop-arrow::after { left: calc(50% - 5px); }
}
