@charset "UTF-8";
/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000000;
  --bg-subtle: #0a0a0a;
  --border: #1a1a1a;
  --text: #ededed;
  --text-muted: #666666;
  --white: #ffffff;
  --accent: #e11d48;        /* crimson accent */
  --accent-soft: #f43f5e;
  --accent-glow: rgba(225,29,72,.45);
  --font: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Layout ───────────────────────────────────────────────────── */
.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* ── Navbar ───────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px; display: flex; align-items: center;
  background: rgba(0,0,0,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; color: var(--white); }
.navbar-logo { width: 24px; height: 24px; border-radius: 4px; }
.navbar-links { display: flex; gap: 32px; }
.navbar-links a { font-size: .8rem; color: var(--text-muted); transition: color .2s; }
.navbar-links a:hover, .navbar-links a.active { color: var(--white); }
.navbar-actions { display: flex; gap: 12px; }
.navbar-actions .btn { padding: 7px 16px; font-size: .8rem; }
.mobile-toggle { display: none; padding: 8px; color: var(--text-muted); }
.mobile-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.98); padding: 24px; z-index: 99; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 16px; font-size: .85rem; color: var(--text-muted); border-radius: 4px; }
.mobile-menu a:hover { color: var(--white); background: var(--bg-subtle); }
.mobile-menu .btn { margin-top: 8px; justify-content: center; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 6px;
  font-size: .85rem; font-weight: 500; font-family: var(--font);
  transition: all .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-soft)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { border: 1px solid #333; color: var(--text-muted); }
.btn-secondary:hover { border-color: #555; color: var(--white); }

/* ── Neural background canvas ──────────────────────────────────── */
/* Fixed, full-viewport, sits behind ALL content. The rotating node-sphere
   "brain" lives here and draws synapse lines to blocks as they scroll in. */
#neural-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
/* Everything readable must paint ABOVE the fixed canvas. */
.navbar, .mobile-menu, .hero, .languages, .section, .cta, .footer { position: relative; z-index: 1; }
/* On desktop the core lives top-right; keep the readable copy off it. */
@media (min-width: 761px) {
  .hero .container, .section .container { max-width: 860px; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { padding: 140px 0 80px; position: relative; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { animation: hero-rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .lead { animation: hero-rise .7s cubic-bezier(.2,.7,.2,1) .1s both; }
.hero-buttons { animation: hero-rise .7s cubic-bezier(.2,.7,.2,1) .2s both; }
.hero-badge { animation: hero-rise .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600; line-height: 1.2;
  color: var(--white); letter-spacing: -.02em;
  margin-bottom: 24px;
}
.hero .lead {
  font-size: .95rem; color: var(--text-muted);
  max-width: 560px; line-height: 1.8; margin-bottom: 40px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 4px; margin-bottom: 24px;
  background: rgba(225,29,72,.08); border: 1px solid rgba(225,29,72,.25);
  font-size: .75rem; color: var(--accent-soft);
}
.hero-badge svg { display: none; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-sub { margin-top: 24px; font-size: .75rem; color: var(--text-muted); }
.hero-sub span { margin: 0 8px; opacity: .3; }
/* Product Hunt launch badge under the hero sub-line */
.ph-badge { margin-top: 20px; }
.ph-badge a { display: inline-block; opacity: .92; transition: opacity .2s ease, transform .2s ease; }
.ph-badge a:hover { opacity: 1; transform: translateY(-1px); }
/* crimson "faster" accent word (overridden by the animated version below) */
.text-gradient { color: var(--accent-soft); -webkit-text-fill-color: var(--accent-soft); background: none; }
/* subtle check-mark accent on the hero sub-line */
.hero-sub { color: var(--text-muted); }

/* ── Languages ───────────────────────────────────────────────── */
.languages { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.languages .container { max-width: 1200px; }
.languages-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .2em; color: var(--text-muted); margin-bottom: 20px; text-align: center; }
.languages-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lang-item {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.02);
  transition: border-color .2s, transform .2s;
}
.lang-item:hover { border-color: rgba(225,29,72,.4); transform: translateY(-2px); }
.lang-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent) !important; box-shadow: 0 0 6px var(--accent-glow); }

/* ── Features ────────────────────────────────────────────────── */
.section h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600; color: var(--white);
  margin-bottom: 16px; letter-spacing: -.01em;
}
.section .lead, .section > .container > .text-center > .lead {
  font-size: .9rem; color: var(--text-muted); max-width: 500px; margin: 0 auto;
}
.text-center { text-align: center; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 48px; }
/* Carded rows with an icon tile on the left + a chevron on the right, matching
   the reference. Crimson accent on hover. */
.feature-card {
  position: relative;
  padding: 20px 44px 20px 20px;
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,255,255,.015);
  display: flex; align-items: flex-start; gap: 16px;
}
.feature-card::after {
  content: '→'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: .9rem; transition: transform .25s, color .25s;
}
.feature-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  background: rgba(225,29,72,.1); border: 1px solid rgba(225,29,72,.25);
  color: var(--accent-soft);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-card h3 { font-size: .9rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.feature-card p { font-size: .8rem; color: var(--text-muted); line-height: 1.7; }

/* ── Demo ─────────────────────────────────────────────────────── */
.demo-window {
  margin-top: 48px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-subtle);
}
.demo-titlebar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot.r { background: #ff5f56; } .demo-dot.y { background: #ffbd2e; } .demo-dot.g { background: #27c93f; }
.demo-title { margin-left: 10px; font-size: .7rem; color: var(--text-muted); }
.demo-body { display: grid; grid-template-columns: 1fr 280px; min-height: 300px; }
.demo-editor { padding: 20px; border-right: 1px solid var(--border); }
.demo-tab { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.04); font-size: .7rem; color: var(--text-muted); margin-bottom: 16px; }
.demo-tab.active { background: rgba(225,29,72,.12); color: var(--accent-soft); }
.demo-tab.active svg { color: var(--accent-soft); }
.demo-code { font-size: .75rem; line-height: 2; }
.demo-code .ln { color: #333; user-select: none; margin-right: 16px; }
.demo-code .kw { color: var(--accent-soft); } .demo-code .fn { color: #ccc; } .demo-code .str { color: #9aa; }
.demo-code .num { color: #aaa; } .demo-code .cm { color: #444; }

/* Terminal panel (right column) — crimson, with a glowing wireframe orb. */
.demo-term { position: relative; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: rgba(0,0,0,.4); overflow: hidden; }
.demo-term-header { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--text-muted); }
.demo-term-header .term-chevron { margin-left: auto; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.demo-term-body { font-size: .72rem; line-height: 1.9; position: relative; z-index: 1; }
.demo-term-body .prompt { color: var(--accent-soft); margin-right: 6px; }
.demo-term-body .srv { color: var(--accent-soft); }
.term-sphere {
  position: absolute; right: 8px; bottom: 8px; width: 130px; height: 130px; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 9px, rgba(225,29,72,.22) 9px 10px);
  box-shadow: inset 0 0 40px rgba(225,29,72,.3), 0 0 24px rgba(225,29,72,.18);
  opacity: .85; pointer-events: none;
}
.term-sphere::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, transparent 0 13deg, rgba(225,29,72,.24) 13deg 14deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 62%, transparent 66%);
          mask: radial-gradient(circle at 50% 50%, #000 62%, transparent 66%);
  animation: sphere-spin 16s linear infinite;
}
@keyframes sphere-spin { to { transform: rotate(360deg); } }

/* Bottom AI-assistant input bar (full width, matches the reference). */
.demo-ai-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-top: 1px solid var(--border); background: rgba(255,255,255,.015);
}
.demo-ai-mark {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(225,29,72,.12); color: var(--accent-soft);
}
.demo-ai-mark svg { width: 16px; height: 16px; }
.demo-ai-text { flex: 1; font-size: .78rem; color: var(--text-muted); }
.demo-ai-send {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  border: 1px solid rgba(225,29,72,.35); color: var(--accent-soft);
}

/* ── Demo window animation ─────────────────────────────────────── */
/* Blinking caret (editor + chat input) */
.demo-caret {
  display: inline-block; width: 6px; height: 1em; margin-left: 2px;
  background: var(--text-muted); vertical-align: text-bottom;
  animation: demo-blink 1.1s step-end infinite;
}
@keyframes demo-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Code lines start hidden; the .play state reveals them one-by-one. */
.demo-window.play .demo-code .cl {
  opacity: 0; transform: translateY(4px);
  animation: demo-line .28s ease forwards;
}
@keyframes demo-line { to { opacity: 1; transform: none; } }
/* Stagger each of the 12 lines */
.demo-window.play .demo-code .cl:nth-child(1)  { animation-delay: .05s; }
.demo-window.play .demo-code .cl:nth-child(2)  { animation-delay: .12s; }
.demo-window.play .demo-code .cl:nth-child(3)  { animation-delay: .19s; }
.demo-window.play .demo-code .cl:nth-child(4)  { animation-delay: .26s; }
.demo-window.play .demo-code .cl:nth-child(5)  { animation-delay: .33s; }
.demo-window.play .demo-code .cl:nth-child(6)  { animation-delay: .40s; }
.demo-window.play .demo-code .cl:nth-child(7)  { animation-delay: .47s; }
.demo-window.play .demo-code .cl:nth-child(8)  { animation-delay: .54s; }
.demo-window.play .demo-code .cl:nth-child(9)  { animation-delay: .61s; }
.demo-window.play .demo-code .cl:nth-child(10) { animation-delay: .68s; }
.demo-window.play .demo-code .cl:nth-child(11) { animation-delay: .75s; }
.demo-window.play .demo-code .cl:nth-child(12) { animation-delay: .82s; }

/* Chat sequence: user msg → typing dots → AI reply. Hidden until .play. */
.demo-chat .demo-msg, .demo-chat .demo-typing { opacity: 0; }
.demo-typing { display: none; align-self: flex-start; gap: 4px; padding: 10px 12px; }
.demo-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted);
  animation: demo-bounce 1s infinite ease-in-out;
}
.demo-typing span:nth-child(2) { animation-delay: .15s; }
.demo-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes demo-bounce { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.demo-window.play .demo-msg.user { animation: demo-pop .35s ease forwards; animation-delay: 1.1s; }
.demo-window.play .demo-typing   { display: flex; animation: demo-pop .3s ease forwards, demo-fadeout .01s linear forwards; animation-delay: 1.6s, 3.0s; }
.demo-window.play .demo-msg.ai   { animation: demo-pop .4s ease forwards; animation-delay: 3.1s; }
.demo-window.play .demo-msg.ai .tag { opacity: 0; animation: demo-pop .35s ease forwards; animation-delay: 3.9s; }
@keyframes demo-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes demo-fadeout { to { opacity: 0; display: none; } }

@media (prefers-reduced-motion: reduce) {
  .demo-window.play .demo-code .cl,
  .demo-window.play .demo-msg,
  .demo-window.play .demo-msg.ai .tag { animation: none !important; opacity: 1 !important; transform: none !important; }
  .demo-typing { display: none !important; }
  .demo-caret { animation: none; opacity: .6; }
}

/* ── Pricing ──────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.price-card { padding: 32px 24px; background: var(--bg); display: flex; flex-direction: column; }
.price-card.popular { background: var(--bg-subtle); }
.popular-badge { display: inline-block; padding: 3px 10px; border-radius: 3px; background: var(--white); color: #000; font-size: .65rem; font-weight: 600; margin-bottom: 12px; width: fit-content; position: static; transform: none; left: auto; }
.price-card h3 { font-size: .9rem; margin-bottom: 4px; color: var(--white); }
.price-card .desc { font-size: .75rem; color: var(--text-muted); margin-bottom: 20px; }
.price-amount { margin-bottom: 24px; }
.price-amount .amount { font-size: 2rem; font-weight: 600; color: var(--white); }
.price-amount .period { font-size: .75rem; color: var(--text-muted); }
.price-features { list-style: none; flex: 1; margin-bottom: 24px; }
.price-features li { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; font-size: .75rem; color: var(--text-muted); }
.price-features li svg { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; margin-top: 2px; }
.price-card .btn { width: 100%; justify-content: center; }

/* ── Contact ──────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 48px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group label { display: block; font-size: .75rem; color: var(--text-muted); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 12px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-subtle);
  color: var(--white); font-family: var(--font); font-size: .8rem;
  transition: border-color .2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: #444; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #333; }
.form-group textarea { resize: none; min-height: 120px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card { padding: 20px; border-radius: 8px; border: 1px solid var(--border); }
.info-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.info-item:last-child { margin-bottom: 0; }
.info-icon { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text-muted); flex-shrink: 0; }
.info-icon svg { width: 14px; height: 14px; }
.info-item strong { display: block; font-size: .8rem; color: var(--white); margin-bottom: 2px; }
.info-item span, .info-item a { font-size: .75rem; color: var(--text-muted); }
.info-item a:hover { color: var(--white); }
.enterprise-card { padding: 20px; border-radius: 8px; border: 1px solid var(--border); }
.enterprise-card h3 { font-size: .85rem; margin-bottom: 6px; }
.enterprise-card p { font-size: .75rem; color: var(--text-muted); }
.form-status { padding: 12px 16px; border-radius: 6px; font-size: .8rem; display: none; }
.form-status.success { display: block; background: rgba(255,255,255,.03); border: 1px solid #333; color: var(--text-muted); }
.form-status.error { display: block; background: rgba(255,255,255,.03); border: 1px solid #333; color: #888; }

/* ── CTA ──────────────────────────────────────────────────────── */
.cta { text-align: center; padding: 80px 0; }
.cta::before { display: none; }
.cta h2 { margin-bottom: 16px; }
.cta .lead { margin: 0 auto 32px; font-size: .9rem; color: var(--text-muted); max-width: 500px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { padding: 48px 0 24px; border-top: 1px solid var(--border); }
.footer .container { max-width: 1200px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { margin-top: 12px; font-size: .75rem; color: var(--text-muted); max-width: 240px; line-height: 1.7; }
.footer-col h4 { font-size: .7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-col a { display: block; padding: 3px 0; font-size: .8rem; color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; border-top: 1px solid var(--border); font-size: .7rem; color: #444;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: #444; transition: color .2s; }
.footer-social a:hover { color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }

/* ── Animations ──────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.fade-in.visible { opacity: 1; transform: none; }

/* Crimson shimmer sweeping across the accent headline word ("faster"). */
.text-gradient {
  background: linear-gradient(100deg, var(--accent) 20%, #ff8fa3 45%, #fff 55%, var(--accent) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: text-shimmer 6s linear infinite;
}
@keyframes text-shimmer { to { background-position: -200% center; } }

/* Buttons lift + primary gets a crimson glow on hover. */
.btn { will-change: transform; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-secondary:hover { transform: translateY(-1px); border-color: var(--accent); color: #fff; }

/* Feature cards lift + crimson-glow on hover; chevron slides right. */
.feature-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: rgba(225,29,72,.4); box-shadow: 0 12px 30px -18px var(--accent-glow); }
.feature-card:hover::after { transform: translateY(-50%) translateX(4px); color: var(--accent-soft); }
.feature-card:hover h3 { color: #fff; }

/* Demo window: gentle perspective tilt that levels out on hover, plus a
   living border glow — makes the IDE mockup feel like a real 3D object. */
.demo-window {
  transform: perspective(1400px) rotateX(6deg);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
}
.demo-window.visible { box-shadow: 0 30px 80px -20px rgba(255,255,255,.06), 0 30px 80px -30px rgba(0,0,0,.9); }
.demo-window:hover { transform: perspective(1400px) rotateX(0deg) translateY(-4px); }

/* Language pills gently float in with a stagger when the strip appears. */
.languages.visible .lang-item { animation: hero-rise .5s ease both; }
.languages.visible .lang-item:nth-child(2){animation-delay:.04s}
.languages.visible .lang-item:nth-child(3){animation-delay:.08s}
.languages.visible .lang-item:nth-child(4){animation-delay:.12s}
.languages.visible .lang-item:nth-child(5){animation-delay:.16s}
.languages.visible .lang-item:nth-child(6){animation-delay:.20s}
.languages.visible .lang-item:nth-child(7){animation-delay:.24s}
.languages.visible .lang-item:nth-child(8){animation-delay:.28s}
.languages.visible .lang-item:nth-child(9){animation-delay:.32s}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lead, .hero-buttons, .hero-badge,
  .languages.visible .lang-item { animation: none !important; }
  .text-gradient { animation: none; background-position: 0 center; }
  .demo-window { transform: none; }
  .demo-window:hover { transform: translateY(-2px); }
  #neural-canvas { display: none; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-editor { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .navbar-links, .navbar-actions { display: none; }
  .mobile-toggle { display: block; }
  .section { padding: 60px 0; }
  .hero { padding: 100px 0 60px; }
  /* On mobile the neural core is fainter so it never fights the copy. */
  #neural-canvas { opacity: .5; }
  .demo-window, .demo-window:hover { transform: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
@media (min-width: 769px) { .mobile-menu { display: none !important; } }

/* ═══════════════════════════════════════════════════════════════
   LANDING V2 — cinematic layer (overrides the base above)
   ═══════════════════════════════════════════════════════════════ */

/* Drifting crimson aurora glow behind everything. */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}
.aurora span:nth-child(1) { width: 46vw; height: 46vw; top: -8vw; right: -6vw; animation: drift1 22s ease-in-out infinite; }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; top: 40vh; left: -10vw; opacity: .3; animation: drift2 28s ease-in-out infinite; }
.aurora span:nth-child(3) { width: 32vw; height: 32vw; bottom: -8vw; right: 10vw; opacity: .28; animation: drift1 26s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-4vw,4vh) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5vw,-3vh) scale(1.1); } }

/* Subtle film grain for a premium, "designed" texture. */
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Content sits above bg layers. */
.navbar, .mobile-menu, .hero, .languages, .section, .cta, .footer { position: relative; z-index: 2; }

/* Bigger, tighter hero headline with a mask-reveal per line. */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 90px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 700;
}
.hero .lead { font-size: 1rem; max-width: 540px; }
.hero-buttons .btn { padding: 13px 26px; font-size: .9rem; }

/* Scroll cue at the bottom of the hero. */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text-muted);
  animation: hint-bob 2.4s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--accent-soft); }
@keyframes hint-bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* Cinematic scroll reveal — sections rise + unblur + fade as they enter.
   (Reuses the existing IntersectionObserver that toggles `.visible`.) */
.fade-in { opacity: 0; transform: translateY(34px); filter: blur(6px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), filter .8s; }
.fade-in.visible { opacity: 1; transform: none; filter: none; }

/* Section headings scale up a touch for drama. */
.section h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.02em; }

/* Feature cards: glassy, lift + crimson glow + light sheen sweep on hover. */
.features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card {
  overflow: hidden; background: rgba(255,255,255,.02);
  backdrop-filter: blur(4px);
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px; opacity: 0;
  background: radial-gradient(140px circle at var(--mx,50%) var(--my,0%), rgba(244,63,94,.14), transparent 60%);
  transition: opacity .3s;
}
.feature-card:hover::before { opacity: 1; }

/* Marquee for the language strip (infinite scroll). */
.languages { overflow: hidden; }
.languages .container { max-width: 100%; padding: 0; }
.languages-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.languages-list { display: flex; flex-wrap: nowrap; width: max-content; gap: 12px; justify-content: flex-start; animation: marquee 34s linear infinite; }
.languages:hover .languages-list { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Big, glowing CTA. */
.cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.cta .btn-primary { padding: 16px 34px; font-size: 1rem; }

/* Reduced-motion: kill all the heavy stuff. */
@media (prefers-reduced-motion: reduce) {
  .aurora span, .scroll-hint, .languages-list { animation: none !important; }
  .fade-in { filter: none; transform: none; opacity: 1; }
  #neural-canvas, .grain { display: none; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 110px 0 70px; }
  .features-grid { grid-template-columns: 1fr; }
  .aurora span { filter: blur(60px); }
}
