/* =========================================================
   Hypex — agentic IDE for pro developers
   ========================================================= */

:root {
  --bg: #05070d;
  --bg-2: #070a13;
  --surface: #0b1020;
  --surface-2: #0e1427;
  --border: rgba(148, 163, 184, 0.10);
  --border-strong: rgba(148, 163, 184, 0.18);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --soft-blue: #93c5fd;
  --blue-glow: rgba(59, 130, 246, 0.35);
  --indigo-glow: rgba(99, 102, 241, 0.3);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1200px;
  --container-wide: 1320px;
}

/* =========================================================
   Reset + base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 32px;
}
.container-wide { max-width: var(--container-wide); }

/* =========================================================
   Background layers (aurora + noise + orbs)
   ========================================================= */
.bg-aurora {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-aurora::before,
.bg-aurora::after {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(59,130,246,0.18), transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 20%, rgba(99,102,241,0.16), transparent 60%),
    radial-gradient(ellipse 40% 30% at 60% 85%, rgba(59,130,246,0.12), transparent 65%),
    radial-gradient(ellipse 35% 30% at 15% 85%, rgba(99,102,241,0.10), transparent 65%);
  filter: blur(40px);
  animation: aurora 28s ease-in-out infinite alternate;
}
.bg-aurora::after {
  animation: aurora2 32s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  opacity: 0.7;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) rotate(4deg) scale(1.05); }
  100% { transform: translate3d(4%, -2%, 0) rotate(-3deg) scale(1.08); }
}
@keyframes aurora2 {
  0%   { transform: translate3d(2%, 1%, 0) rotate(2deg) scale(1.05); }
  100% { transform: translate3d(-3%, -2%, 0) rotate(-5deg) scale(1); }
}

/* Noise overlay */
.bg-noise {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.7 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* Parallax orbs */
.bg-orbs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  will-change: transform;
}
.orb.orb-1 { width: 520px; height: 520px; left: -120px; top: 240px; background: radial-gradient(circle, rgba(59,130,246,0.5), transparent 65%); }
.orb.orb-2 { width: 620px; height: 620px; right: -160px; top: 1100px; background: radial-gradient(circle, rgba(99,102,241,0.5), transparent 65%); }
.orb.orb-3 { width: 480px; height: 480px; left: 30%; top: 2400px; background: radial-gradient(circle, rgba(59,130,246,0.35), transparent 65%); }
.orb.orb-4 { width: 400px; height: 400px; right: 20%; top: 3500px; background: radial-gradient(circle, rgba(99,102,241,0.32), transparent 65%); }

/* Cursor glow */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.22), rgba(59,130,246,0.06) 40%, transparent 70%);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  z-index: 2;
  mix-blend-mode: screen;
  will-change: transform;
  transition: opacity 400ms ease;
}

/* Content above layers */
main, header, footer { position: relative; z-index: 3; }

/* =========================================================
   Nav — glass morphism w/ hairline
   ========================================================= */
.nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 1280px;
  z-index: 50;
  background: rgba(10, 14, 28, 0.55);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: background 300ms ease, border-color 300ms ease;
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(147,197,253,0.25), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.nav-inner {
  display: flex; align-items: center; gap: 36px;
  padding: 12px 18px 12px 22px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em;
  font-size: 16px;
}
.nav-logo-mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 0 24px -4px var(--blue-glow);
}
.nav-logo-mark svg { width: 14px; height: 14px; }

.nav-links {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 200ms ease, background 200ms ease;
}
.nav-links a:hover { color: var(--text); background: rgba(148,163,184,0.06); }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn-ghost { font-size: 13.5px; padding: 8px 12px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 250ms var(--ease-out), filter 250ms var(--ease-out), background 250ms ease, border-color 250ms ease;
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, #4a8bff, #3b82f6);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 1px 0 rgba(255,255,255,0.08),
    0 10px 30px -8px rgba(59,130,246,0.55);
  overflow: hidden;
}
.btn-primary::before {
  /* shimmer pass */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.5) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: shimmer 3.5s ease-in-out infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { transform: translateX(-120%); }
  40%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.btn-ghost {
  background: rgba(148,163,184,0.06);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(148,163,184,0.10); }

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { background: rgba(148,163,184,0.06); }

.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }

/* =========================================================
   Generic section
   ========================================================= */
section { position: relative; padding: 120px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft-blue);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 10px var(--blue);
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  line-height: 1.05;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.025em;
  margin: 18px 0 16px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  line-height: 1.5;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr);
  gap: 60px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 130px; }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  font-size: 12.5px;
  color: var(--soft-blue);
  font-family: var(--font-mono);
}
.hero-tag-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59,130,246,0.2);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 22px 0 22px;
}
.hero-title .line { display: block; }
.hero-title .grad {
  background: linear-gradient(90deg, #f1f5f9 0%, #93c5fd 30%, #6366f1 55%, #3b82f6 80%, #f1f5f9 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: pan 8s linear infinite;
}
@keyframes pan { to { background-position: -200% 0; } }

.hero-sub {
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.55;
  max-width: 540px;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.brew {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(148,163,184,0.25);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  transition: border-color 200ms ease, color 200ms ease;
}
.brew:hover { border-color: rgba(147,197,253,0.4); color: var(--text); }
.brew .dollar { color: var(--blue); }
.brew .copy {
  margin-left: 4px; padding: 2px 6px; border-radius: 4px;
  font-size: 11px; color: var(--text-dim);
  background: rgba(148,163,184,0.06);
  transition: color 200ms, background 200ms;
}
.brew:hover .copy { color: var(--soft-blue); background: rgba(59,130,246,0.1); }

.hero-meta {
  display: flex; gap: 22px; margin-top: 34px;
  font-size: 13px; color: var(--text-dim);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }

/* =========================================================
   IDE mockup
   ========================================================= */
.ide-frame {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(180deg, #0b1020, #070a13);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 40px 80px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.02),
    0 0 100px -20px rgba(59,130,246,0.25);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 400ms var(--ease-out);
}
.ide-frame::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(147,197,253,0.12), transparent 25%);
  pointer-events: none;
}

.ide-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(5,7,13,0.6);
  border-bottom: 1px solid var(--border);
}
.ide-dots { display: flex; gap: 6px; }
.ide-dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3349; }
.ide-dot:nth-child(1) { background: #3d4763; }
.ide-dot:nth-child(2) { background: #3d4763; }
.ide-dot:nth-child(3) { background: #3d4763; }
.ide-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
}
.ide-title .breadcrumb { color: var(--text-muted); }
.ide-title .sep { opacity: 0.4; }

.ide-body {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  height: 460px;
}

/* Sidebar */
.ide-sidebar {
  background: rgba(3,5,10,0.55);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
}
.ide-sidebar h4 {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin: 6px 10px 10px;
  font-weight: 500;
}
.tree { display: flex; flex-direction: column; gap: 1px; }
.tree-item {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 12px;
}
.tree-item.active {
  background: rgba(59,130,246,0.12);
  color: var(--text);
}
.tree-item.nest { padding-left: 22px; }
.tree-item.nest-2 { padding-left: 32px; }
.tree-item .fi {
  width: 12px; height: 12px;
  opacity: 0.8;
}
.tree-item .caret { width: 10px; color: var(--text-dim); font-size: 9px; }

/* Editor */
.ide-editor {
  background: #070a13;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ide-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(5,7,13,0.6);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.ide-tab {
  padding: 8px 14px;
  color: var(--text-dim);
  border-right: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.ide-tab.active { color: var(--text); background: #070a13; position: relative; }
.ide-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 6px var(--blue); }

.ide-code {
  padding: 14px 8px 14px 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  overflow: hidden;
  flex: 1;
  position: relative;
}
.code-line {
  display: flex;
  gap: 14px;
  padding: 0 10px;
  white-space: pre;
  transition: background 300ms ease;
}
.code-line.hl {
  background: linear-gradient(90deg, rgba(59,130,246,0.15), rgba(59,130,246,0.02));
  box-shadow: inset 2px 0 0 var(--blue);
}
.ln { color: var(--text-dim); opacity: 0.5; width: 22px; text-align: right; user-select: none; font-size: 11px; }
.tok-k { color: #93c5fd; }     /* keyword */
.tok-t { color: #a5b4fc; }     /* type */
.tok-f { color: #60a5fa; }     /* function */
.tok-s { color: #cbd5e1; }     /* string */
.tok-c { color: #64748b; font-style: italic; } /* comment */
.tok-n { color: #818cf8; }     /* number/constant */
.tok-p { color: #e2e8f0; }     /* punct */
.tok-v { color: #f1f5f9; }     /* var */
.tok-m { color: #93c5fd; }     /* macro */

/* Caret */
.caret-blink {
  display: inline-block;
  width: 7px; height: 15px;
  background: var(--soft-blue);
  margin-left: 2px;
  vertical-align: middle;
  animation: caret 1s steps(1) infinite;
  box-shadow: 0 0 8px var(--blue-glow);
}
@keyframes caret { 50% { opacity: 0; } }

/* Agent panel */
.ide-agent {
  background: rgba(5,8,16,0.75);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  font-size: 12px;
}
.agent-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.agent-head .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 var(--blue-glow);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}
.agent-model {
  margin-left: auto;
  color: var(--soft-blue);
}

.agent-feed {
  flex: 1;
  padding: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  gap: 10px;
  position: relative;
}
.agent-msg {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(148,163,184,0.04);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
  font-size: 12px;
  line-height: 1.55;
}
.agent-msg.show { opacity: 1; transform: translateY(0); }
.agent-msg.tool {
  font-family: var(--font-mono);
  font-size: 11.5px;
  border-color: rgba(59,130,246,0.25);
  background: rgba(59,130,246,0.06);
  color: var(--soft-blue);
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
}
.agent-msg.tool .check {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(59,130,246,0.2);
  display: grid; place-items: center;
  color: var(--soft-blue);
  font-size: 9px;
  flex-shrink: 0;
}
.agent-msg.tool .spin {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid rgba(147,197,253,0.2);
  border-top-color: var(--soft-blue);
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.agent-actions {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 300ms ease, transform 300ms ease;
}
.agent-actions.show { opacity: 1; transform: translateY(0); }
.agent-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  transition: all 200ms ease;
}
.agent-btn.accept {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  color: var(--soft-blue);
}
.agent-btn:hover { filter: brightness(1.2); }

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(5,7,13,0.4);
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.marquee-label {
  text-align: center; margin-bottom: 30px;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  font-size: 22px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  opacity: 0.8;
  transition: color 200ms, opacity 200ms;
}
.marquee-item:hover { color: var(--text); opacity: 1; }
.marquee-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); }

/* =========================================================
   Feature grid (2x2, 3D tilt)
   ========================================================= */
.features-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 60px;
}
@media (max-width: 768px) {
  .features-head { grid-template-columns: 1fr; }
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  perspective: 1400px;
}
@media (max-width: 768px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  position: relative;
  padding: 36px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(148,163,184,0.04), rgba(148,163,184,0.01));
  border: 1px solid var(--border);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 400ms var(--ease-out), border-color 300ms;
  min-height: 380px;
  display: flex; flex-direction: column;
}
.feature-card:hover { border-color: rgba(147,197,253,0.25); }
.feature-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,0%), rgba(59,130,246,0.12), transparent 40%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(99,102,241,0.12));
  border: 1px solid rgba(147,197,253,0.2);
  display: grid; place-items: center;
  color: var(--soft-blue);
  margin-bottom: 22px;
  transform: translateZ(30px);
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  transform: translateZ(22px);
}
.feature-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  transform: translateZ(14px);
}

.feature-visual {
  margin-top: auto;
  padding-top: 24px;
  transform: translateZ(18px);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148,163,184,0.06);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}
.chip.on { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: var(--soft-blue); }

.price-display {
  display: flex; align-items: baseline; gap: 12px;
}
.price-display .big {
  font-size: 56px;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.price-display .small { color: var(--text-muted); font-size: 13px; }

.stat-row { display: flex; gap: 22px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .n {
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 500;
}
.stat .l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* =========================================================
   Use cases
   ========================================================= */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
@media (max-width: 1024px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .usecase-grid { grid-template-columns: 1fr; } }

.usecase {
  padding: 28px;
  border-radius: 14px;
  background: rgba(148,163,184,0.03);
  border: 1px solid var(--border);
  transition: border-color 250ms, background 250ms, transform 250ms;
}
.usecase:hover {
  border-color: rgba(147,197,253,0.2);
  background: rgba(148,163,184,0.05);
  transform: translateY(-2px);
}
.usecase-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.18);
  display: grid; place-items: center;
  color: var(--soft-blue);
  margin-bottom: 18px;
}
.usecase-icon svg { width: 18px; height: 18px; }
.usecase h4 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
.usecase p { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; margin: 0; }
.usecase .tools {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* =========================================================
   Models
   ========================================================= */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
@media (max-width: 1024px) { .models-grid { grid-template-columns: 1fr; } }

.model-card {
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(148,163,184,0.04), rgba(148,163,184,0.01));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.model-card .eyebrow { margin-bottom: 16px; }
.model-card h3 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 10px; }
.model-card p { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin: 0 0 22px; }
.model-list { display: flex; flex-direction: column; gap: 8px; }
.model-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(3,5,10,0.4);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.model-list-item .tag {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(59,130,246,0.12);
  color: var(--soft-blue);
  letter-spacing: 0.04em;
}

/* =========================================================
   Comparison
   ========================================================= */
.compare-wrap {
  margin-top: 60px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(148,163,184,0.04), rgba(148,163,184,0.01));
  overflow: hidden;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
}
.compare th, .compare td {
  padding: 18px 22px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.compare th {
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  background: rgba(5,7,13,0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 11px;
}
.compare th.us {
  color: var(--soft-blue);
  position: relative;
}
.compare th.us::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody td:first-child {
  color: var(--text);
  font-weight: 500;
}
.compare td.us {
  color: var(--text);
  background: rgba(59,130,246,0.04);
}
.compare td .yes, .compare td .no, .compare td .partial {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.yes { color: var(--soft-blue); }
.no  { color: var(--text-dim); }
.partial { color: var(--text-muted); }
.compare tbody tr:hover { background: rgba(148,163,184,0.02); }

@media (max-width: 768px) {
  .compare-wrap { overflow-x: auto; }
  .compare { min-width: 720px; }
}

/* =========================================================
   Pricing
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
  max-width: 880px;
  margin-left: auto; margin-right: auto;
}
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  padding: 36px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(148,163,184,0.04), rgba(148,163,184,0.01));
  border: 1px solid var(--border);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 520px;
}
.price-card h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.price-card .price {
  display: flex; align-items: baseline; gap: 8px;
  margin: 18px 0 10px;
}
.price .num {
  font-size: 60px; letter-spacing: -0.03em;
  font-weight: 500; line-height: 1;
}
.price .unit { color: var(--text-muted); font-size: 14px; }
.price-card .desc {
  color: var(--text-muted); font-size: 14px; line-height: 1.55;
  margin-bottom: 24px;
}
.price-feats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; flex: 1; }
.price-feat {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text);
}
.price-feat svg { color: var(--soft-blue); flex-shrink: 0; margin-top: 3px; }

.price-card.pro {
  background: linear-gradient(180deg, rgba(59,130,246,0.06), rgba(99,102,241,0.02));
  position: relative;
  isolation: isolate;
}
.price-card.pro::before {
  /* animated conic gradient border */
  content: "";
  position: absolute; inset: -1px;
  border-radius: 19px;
  padding: 1.5px;
  background: conic-gradient(from var(--conic-angle, 0deg), rgba(59,130,246,0.9), rgba(99,102,241,0.7), rgba(147,197,253,0.6), rgba(59,130,246,0.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spin-border 6s linear infinite;
  z-index: -1;
}
@property --conic-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin-border { to { --conic-angle: 360deg; } }

.price-badge {
  position: absolute;
  top: -12px; left: 36px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4a8bff, #3b82f6);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px -4px rgba(59,130,246,0.55);
}

/* =========================================================
   Roadmap
   ========================================================= */
.roadmap {
  margin-top: 60px;
  position: relative;
}
.roadmap-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.roadmap-track::before {
  content: "";
  position: absolute;
  top: 28px; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(59,130,246,0.6) 0%, rgba(59,130,246,0.6) 45%, rgba(148,163,184,0.2) 50%, rgba(148,163,184,0.1) 100%);
}
@media (max-width: 768px) {
  .roadmap-track { grid-template-columns: 1fr; }
  .roadmap-track::before { display: none; }
}

.rd-item {
  position: relative;
  padding-top: 60px;
}
.rd-node {
  position: absolute; top: 18px; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(148,163,184,0.25);
  display: grid; place-items: center;
}
.rd-node::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(148,163,184,0.3);
}
.rd-item.done .rd-node { border-color: var(--blue); box-shadow: 0 0 18px -4px var(--blue-glow); }
.rd-item.done .rd-node::after { background: var(--blue); }
.rd-item.current .rd-node { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 4px rgba(59,130,246,0.15), 0 0 24px var(--blue); }
.rd-item.current .rd-node::after { background: #fff; }

.rd-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.rd-item.done .rd-label { color: var(--soft-blue); }
.rd-item.current .rd-label { color: var(--soft-blue); }

.rd-title {
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.rd-desc { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  margin-top: 40px;
  max-width: 860px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px;
  text-align: left;
  width: 100%;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 200ms;
}
.faq-q:hover { color: var(--soft-blue); }
.faq-q .plus {
  width: 14px; height: 14px;
  position: relative;
  flex-shrink: 0;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute;
  background: currentColor;
  transition: transform 400ms var(--ease-out);
}
.faq-q .plus::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq-q .plus::after  { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .faq-q .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms var(--ease-out);
}
.faq-a-inner {
  padding: 0 4px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 720px;
}

/* =========================================================
   Waitlist
   ========================================================= */
.waitlist-card {
  margin-top: 40px;
  padding: 48px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(59,130,246,0.08), rgba(99,102,241,0.02));
  border: 1px solid rgba(147,197,253,0.18);
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.waitlist-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 21px;
  background: radial-gradient(ellipse 500px 200px at 50% -20%, rgba(59,130,246,0.35), transparent 60%);
  pointer-events: none;
}
.waitlist-form {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 26px;
  max-width: 440px;
  margin-inline: auto;
}
.waitlist-form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(3,5,10,0.6);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 200ms, background 200ms;
}
.waitlist-form input:focus {
  border-color: rgba(147,197,253,0.5);
  background: rgba(3,5,10,0.8);
}
.waitlist-count {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.waitlist-count .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  animation: pulse 1.8s ease-out infinite;
}
.waitlist-success {
  opacity: 0;
  transition: opacity 300ms ease;
  color: var(--soft-blue);
  font-size: 13.5px;
  margin-top: 10px;
  font-family: var(--font-mono);
}
.waitlist-card.sent .waitlist-success { opacity: 1; }
.waitlist-card.sent .waitlist-form { opacity: 0.3; pointer-events: none; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 100px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}
@media (max-width: 768px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; } }

.footer-brand .nav-logo { margin-bottom: 14px; font-size: 17px; }
.footer-brand p { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; max-width: 280px; margin: 0; }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 200ms;
}
.footer-col a:hover { color: var(--soft-blue); }

.footer-wordmark {
  font-size: clamp(90px, 18vw, 260px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 500;
  background: linear-gradient(180deg, rgba(241,245,249,0.06) 0%, rgba(59,130,246,0.04) 40%, transparent 80%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-align: center;
  user-select: none;
  margin-bottom: 40px;
  font-family: var(--font-sans);
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-bottom .legal { display: flex; gap: 24px; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .ide-body { grid-template-columns: 160px 1fr 260px; height: 420px; }
  .ide-sidebar { font-size: 11px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { padding: 10px 14px; }
  .ide-body { grid-template-columns: 1fr; height: auto; }
  .ide-sidebar { display: none; }
  .ide-agent { border-left: 0; border-top: 1px solid var(--border); min-height: 260px; }
  .ide-editor { height: 360px; }
  .hero-title { font-size: clamp(38px, 9vw, 56px); }
  .section-title { font-size: clamp(30px, 7vw, 42px); }
  .features-head { margin-bottom: 40px; }
  .cursor-glow { display: none; }
}
@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .price-card { padding: 28px; }
  .waitlist-card { padding: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ============================================================
   Extended 3D tilt — all major cards
   Added post-generation to tilt model/pricing/use-case/roadmap cards.
   ============================================================ */
.model-card,
.pricing-card,
.plan,
.use-case,
.roadmap-card {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s, box-shadow 0.4s;
  will-change: transform;
}
.model-card:hover,
.pricing-card:hover,
.plan:hover,
.use-case:hover,
.roadmap-card:hover {
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.18),
    0 30px 70px -20px rgba(59, 130, 246, 0.4),
    0 0 60px -20px rgba(99, 102, 241, 0.28);
}

/* ============================================================
   WOW-FACTOR 3D DEPTH ADDITIONS
   ============================================================ */

/* ---- Hero depth layers (parallax + morphing conic mesh) ---- */
.hero { position: relative; overflow: hidden; }
.hero-depth {
  position: absolute;
  inset: -10% -5% -10% -5%;
  pointer-events: none;
  z-index: 0;
  transform-style: preserve-3d;
  perspective: 1600px;
}
.hero > .container { position: relative; z-index: 1; }

.hd-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.hd-back {
  background:
    radial-gradient(ellipse 60% 45% at 22% 32%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 82% 20%, rgba(99, 102, 241, 0.14), transparent 70%);
  filter: blur(40px);
  opacity: 0.9;
}
.hd-mid {
  background-image:
    radial-gradient(circle at 15% 60%, rgba(147, 197, 253, 0.55) 0, rgba(147, 197, 253, 0) 2px),
    radial-gradient(circle at 78% 38%, rgba(147, 197, 253, 0.45) 0, rgba(147, 197, 253, 0) 2px),
    radial-gradient(circle at 42% 82%, rgba(99, 102, 241, 0.55) 0, rgba(99, 102, 241, 0) 2.5px),
    radial-gradient(circle at 62% 14%, rgba(59, 130, 246, 0.5) 0, rgba(59, 130, 246, 0) 2px);
  opacity: 0.5;
  mix-blend-mode: screen;
}
.hd-front {
  background-image:
    radial-gradient(circle, rgba(147, 197, 253, 0.5) 0.8px, transparent 1.2px);
  background-size: 42px 42px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 60%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 60%, #000 40%, transparent 80%);
  opacity: 0.35;
}

/* Morphing conic mesh behind hero title (Stripe-esque) */
.hd-mesh {
  position: absolute;
  left: 50%; top: 42%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  transform: translate(-50%, -50%);
  background:
    conic-gradient(from var(--mesh-a, 0deg) at 50% 50%,
      rgba(59, 130, 246, 0.35),
      rgba(99, 102, 241, 0.28),
      rgba(5, 7, 13, 0) 40%,
      rgba(147, 197, 253, 0.22),
      rgba(59, 130, 246, 0.32));
  filter: blur(70px) saturate(1.1);
  opacity: 0.55;
  animation: hdMeshSpin 28s linear infinite, hdMeshPulse 14s ease-in-out infinite;
  border-radius: 50%;
  will-change: transform, filter;
}
@keyframes hdMeshSpin {
  from { --mesh-a: 0deg; transform: translate(-50%, -50%) rotate(0deg); }
  to   { --mesh-a: 360deg; transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes hdMeshPulse {
  0%,100% { filter: blur(70px) saturate(1.1); opacity: 0.55; }
  50%     { filter: blur(90px) saturate(1.25); opacity: 0.75; }
}

/* ---- Feature card: real 3D depth on icon + copy on hover ---- */
.feature-card { perspective: 1200px; }
.feature-icon,
.feature-card h3,
.feature-card p,
.feature-visual {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
@media (hover: hover) {
  .feature-card:hover .feature-icon {
    transform: translate3d(0, -4px, 36px) scale(1.04);
  }
  .feature-card:hover h3 {
    transform: translate3d(0, 0, 18px);
  }
  .feature-card:hover p {
    transform: translate3d(0, 0, 10px);
  }
  .feature-card:hover .feature-visual {
    transform: translate3d(0, 0, 6px);
  }
}

/* ---- IDE mockup: scroll-driven Y-rotation (set via JS var) ---- */
.ide-frame {
  --scroll-ry: 0deg;
  --scroll-rx: 0deg;
  --scroll-tz: 0px;
}
/* Script.js composes perspective with tilt; we multiply via transform property
   by combining its inline transform with this pseudo using a wrapper var.
   To avoid clashing, we expose vars the script reads. */

/* ---- Reduced motion / no-hover opt-outs ---- */
@media (prefers-reduced-motion: reduce) {
  .hd-mesh { animation: none; }
  .hd-layer { transform: none !important; }
  .feature-icon,
  .feature-card h3,
  .feature-card p,
  .feature-visual { transition: none; transform: none !important; }
}
@media (hover: none) {
  .hd-mesh { opacity: 0.35; }
  .hd-front { display: none; }
}

/* ============================================================
   Showcase — Apple-style scroll-pinned scene
   ============================================================ */
.showcase {
  position: relative;
  height: 260vh; /* scroll room for pinned content */
  background: linear-gradient(180deg, transparent, rgba(59,130,246,0.04) 30%, transparent);
}
.showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.showcase-inner {
  width: min(100%, 1100px);
  padding: 0 48px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.showcase-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.85;
}
.showcase-title {
  font-size: clamp(64px, 12vw, 180px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 3vw, 48px);
}
.show-word {
  display: inline-block;
  background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(20px) scale(0.92);
  opacity: 0.18;
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out),
              background 0.5s;
  will-change: transform, opacity;
}
.show-word.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  background: linear-gradient(180deg, #f1f5f9 0%, #93c5fd 55%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 60px rgba(59,130,246,0.3);
}
.showcase-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 56px;
  line-height: 1.55;
}
.showcase-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
  perspective: 1600px;
  perspective-origin: 50% 50%;
}
.showcase-card {
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15,23,42,0.8), rgba(11,16,32,0.9));
  border: 1px solid var(--border);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  transform: translateZ(-60px) rotateX(8deg);
  opacity: 0.35;
  transition: transform 0.8s var(--ease-out), opacity 0.6s,
              border-color 0.5s, box-shadow 0.6s;
  will-change: transform, opacity;
}
.showcase-card.mid { transform: translateZ(-60px) rotateX(8deg); }
.showcase-card.active {
  transform: translateZ(0) rotateX(0);
  opacity: 1;
  border-color: rgba(59,130,246,0.4);
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.18),
    0 30px 70px -20px rgba(59,130,246,0.45),
    0 0 60px -10px rgba(99,102,241,0.35);
}
.sc-head {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(59,130,246,0.8);
}
.sc-dot.ok {
  background: #10b981;
  box-shadow: 0 0 12px rgba(16,185,129,0.8);
}
.sc-body { color: var(--text-muted); }
.sc-muted { color: var(--text-dim); }
.sc-foot {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.showcase-progress {
  position: absolute;
  left: 50%;
  bottom: -48px;
  transform: translateX(-50%);
  width: min(420px, 80%);
  height: 2px;
  background: rgba(148,163,184,0.14);
  border-radius: 999px;
  overflow: hidden;
}
.showcase-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
  box-shadow: 0 0 14px rgba(59,130,246,0.6);
  transition: width 0.08s linear;
}
@media (max-width: 720px) {
  .showcase { height: 220vh; }
  .showcase-inner { padding: 0 20px; }
  .showcase-stage { grid-template-columns: 1fr; gap: 10px; }
  .showcase-card { transform: none; opacity: 0.5; }
  .showcase-card.active { transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .show-word, .showcase-card { transition: none; }
  .show-word { opacity: 1; transform: none; }
}

/* ============================================================
   Waitlist — validation states + status message
   ============================================================ */
#waitlistForm input.bad {
  border-color: rgba(239, 68, 68, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
#waitlistForm input.good {
  border-color: rgba(59, 130, 246, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}
.waitlist-status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  line-height: 1.4;
  color: var(--text-dim);
  transition: color 0.2s;
}
.waitlist-status[data-kind="ok"]  { color: #34d399; }
.waitlist-status[data-kind="err"] { color: #f87171; }

/* ============================================================
   WOW-FACTOR PASS 2 — magnetic buttons, progress rail, glare,
   title split reveal, card inner light
   ============================================================ */

/* ---- Scroll progress rail (top of viewport) ---- */
.scroll-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  background: rgba(148,163,184,0.06);
}
.scroll-rail-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--indigo), var(--soft-blue));
  box-shadow: 0 0 12px rgba(59,130,246,0.6), 0 0 24px rgba(99,102,241,0.35);
  transform-origin: left center;
  transition: width 80ms linear;
}

/* ---- Magnetic primary CTA: translation handled in JS via --mag-x/y ---- */
@media (hover: hover) {
  .btn-primary {
    transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
                filter 250ms var(--ease-out),
                box-shadow 400ms var(--ease-out);
  }
  .btn-primary:hover {
    transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 2px), 0);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.3),
      0 1px 0 rgba(255,255,255,0.1),
      0 30px 60px -12px rgba(59,130,246,0.7),
      0 0 80px -20px rgba(99,102,241,0.5);
  }
}

/* ---- IDE mockup glare sweep ---- */
.ide-frame::after {
  content: "";
  position: absolute;
  top: -50%; bottom: -50%;
  left: -30%;
  width: 30%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(147,197,253,0.12) 45%,
    rgba(255,255,255,0.18) 50%,
    rgba(147,197,253,0.12) 55%,
    transparent 70%
  );
  transform: translateX(0) rotate(6deg);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: ideGlare 8s ease-in-out infinite;
  animation-delay: 3s;
  z-index: 3;
}
@keyframes ideGlare {
  0%   { transform: translateX(0) rotate(6deg); opacity: 0; }
  8%   { opacity: 1; }
  22%  { transform: translateX(450%) rotate(6deg); opacity: 0; }
  100% { transform: translateX(450%) rotate(6deg); opacity: 0; }
}

/* ---- Hero title split reveal (initial load only) ---- */
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > .word-wrap {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(42px);
  transition:
    opacity 900ms var(--ease-out),
    filter 900ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: var(--wd, 0ms);
}
.hero-title.split-in .line > .word-wrap {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ---- Card inner light (cursor-tracked conic spotlight) ---- */
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from calc(var(--mxa, 0deg)) at var(--mx, 50%) var(--my, 50%),
    rgba(59,130,246,0.18),
    rgba(99,102,241,0.10) 25%,
    transparent 50%,
    rgba(147,197,253,0.14) 75%,
    rgba(59,130,246,0.18)
  );
  opacity: 0;
  transition: opacity 400ms ease;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
@media (hover: hover) {
  .feature-card:hover::after { opacity: 0.55; }
}
.feature-card > * { position: relative; z-index: 1; }

/* ---- Reduced motion opt-outs ---- */
@media (prefers-reduced-motion: reduce) {
  .scroll-rail-bar { transition: none; }
  .btn-primary { transform: none !important; transition: none; }
  .ide-frame::after { animation: none; display: none; }
  .hero-title .line > .word-wrap {
    opacity: 1; filter: none; transform: none; transition: none;
  }
  .feature-card::after { display: none; }
}
@media (hover: none) {
  .ide-frame::after { display: none; }
}

/* ============================================================
   v3.1 polish: skip-to-main, voices (testimonial placeholders),
   animated compare-table hover ripple. Strict blue palette.
   ============================================================ */

/* ---- Skip-to-main (a11y) ---- */
.skip-to-main {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--navy, #05070d);
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.6);
  border-radius: 10px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.25);
  transform: translateY(-200%);
  transition: transform 200ms ease;
}
.skip-to-main:focus,
.skip-to-main:focus-visible {
  transform: translateY(0);
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
#main-content:focus { outline: none; }

/* ---- Voices (testimonial placeholders) ---- */
#voices { padding-block: clamp(80px, 10vw, 140px); position: relative; }
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.voice-card {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(99,102,241,0.04), rgba(59,130,246,0.015));
  border: 1px solid rgba(148, 163, 184, 0.08);
  overflow: hidden;
  transition: border-color 300ms ease, transform 300ms ease, background 300ms ease;
}
.voice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--vx, 50%) var(--vy, 0%),
    rgba(59, 130, 246, 0.08),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.voice-card:hover {
  border-color: rgba(99, 102, 241, 0.28);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(99,102,241,0.06), rgba(59,130,246,0.025));
}
.voice-card:hover::before { opacity: 1; }
.voice-quote-mark {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-size: 72px;
  line-height: 0.6;
  color: rgba(147, 197, 253, 0.18);
  margin-bottom: 8px;
  user-select: none;
}
.voice-quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted, #94a3b8);
  min-height: 120px;
}
.voice-placeholder {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 6px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  vertical-align: 2px;
}
.voice-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.voice-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(147,197,253,0.45), transparent 55%),
    linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.voice-name {
  font-size: 13px;
  color: var(--text, #e2e8f0);
  font-weight: 500;
}
.voice-role {
  font-size: 11.5px;
  color: var(--text-dim, #64748b);
  font-family: var(--font-mono, ui-monospace, monospace);
  margin-top: 2px;
}
.voices-footnote {
  margin-top: 36px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim, #64748b);
  font-family: var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.02em;
}
@media (max-width: 960px) {
  .voices-grid { grid-template-columns: 1fr; gap: 14px; }
  .voice-quote { min-height: 0; }
}

/* ---- Compare table: animated row hover ---- */
.compare tbody tr {
  transition: background 280ms ease, box-shadow 280ms ease;
  position: relative;
}
.compare tbody tr:hover {
  background: linear-gradient(90deg,
    rgba(59, 130, 246, 0.06) 0%,
    rgba(99, 102, 241, 0.035) 60%,
    transparent 100%
  );
  box-shadow: inset 3px 0 0 0 #3b82f6;
}
.compare tbody tr td { transition: color 220ms ease; }
.compare tbody tr:hover td.us .yes { color: #93c5fd; text-shadow: 0 0 16px rgba(147,197,253,0.45); }
.compare tbody tr.cmp-lit td.us .yes {
  color: #93c5fd;
  text-shadow: 0 0 14px rgba(147,197,253,0.35);
}
.compare tbody tr.cmp-lit {
  background: linear-gradient(90deg, rgba(99,102,241,0.035), transparent 80%);
}

@media (prefers-reduced-motion: reduce) {
  .voice-card, .voice-card::before { transition: none; }
  .compare tbody tr { transition: none; }
  .skip-to-main { transition: none; }
}
