/* ═══════════════════════════════════════════════════════════════
   Pyxenia Landing Page — styles.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg-primary:    #08080c;
  --bg-secondary:  #0f0f15;
  --bg-card:       #14141c;
  --bg-card-hover: #1c1c28;
  --border:        #252530;
  --border-light:  #35354a;

  --accent:        #7c6ff7;
  --accent-bright: #a79fff;
  --accent-glow:   rgba(124, 111, 247, 0.18);
  --accent-glow-lg:rgba(124, 111, 247, 0.08);

  --green:         #4ade80;
  --amber:         #f59e0b;
  --red:           #f87171;
  --sky:           #38bdf8;

  --text-primary:  #f0f0f5;
  --text-secondary:#a0a0b8;
  --text-muted:    #55556a;

  /* Spacing */
  --section-gap:   7rem;
  --card-radius:   16px;
  --radius-sm:     8px;

  /* Nav */
  --nav-h: 64px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas',
               'Courier New', monospace;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* fallback: older browsers */
  overflow-x: clip;   /* modern: clips without breaking position:fixed */
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(124,111,247,0.12);
  color: var(--accent-bright);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: #6a5df0;
  box-shadow: 0 0 32px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--accent);
}

.btn-sm  { padding: 0.45rem 1rem;  font-size: 0.875rem; }
.btn-lg  { padding: 0.8rem 1.6rem; font-size: 1rem;     }
.btn-xl  { padding: 1rem 2rem;     font-size: 1.1rem;   border-radius: 12px; }

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  letter-spacing: 0.01em;
}

.badge-outline {
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Gradient text ───────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section headers ─────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 8, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-link-active {
  color: var(--text-primary);
  background: rgba(124,111,247,0.1);
}

.nav-link-active:hover {
  background: rgba(124,111,247,0.14);
}

.nav-link-github .icon-github {
  width: 16px;
  height: 16px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.nav-toggle:hover { background: rgba(255,255,255,0.06); }

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  overflow: hidden;
}

/* Background grid */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,111,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,111,247,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Background radial glow */
.hero-bg-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(124,111,247,0.12) 0%,
    rgba(56,189,248,0.05) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

/* Content side */
.hero-content { max-width: 560px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.hero-heading {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-subheading {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-light);
}

/* ── App Mockup ──────────────────────────────────────────────── */
.hero-mockup {
  position: relative;
  flex-shrink: 0;
}

.mockup-window {
  background: #0e0e16;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(124,111,247,0.08);
  font-size: 0.72rem;
}

/* Chrome bar */
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  background: #0b0b13;
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.mockup-title-bar {
  font-size: 0.67rem;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.mockup-stop-btn {
  font-size: 0.6rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.18rem 0.5rem;
  cursor: default;
  user-select: none;
}

.mockup-run-btn {
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-sans);
  background: #22c55e;
  color: #fff;
  border-radius: 5px;
  padding: 0.2rem 0.6rem;
  cursor: default;
  user-select: none;
  box-shadow: 0 0 10px rgba(74,222,128,0.35);
}

/* Body: 3-panel layout */
.mockup-body {
  display: flex;
  height: 300px;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.mockup-sidebar {
  width: 100px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: #0c0c14;
  overflow: hidden;
}

.mockup-cat {
  padding: 0.55rem 0 0.2rem;
}

.mockup-cat + .mockup-cat {
  border-top: 1px solid var(--border);
}

.cat-label {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 0.65rem 0.3rem;
}

.mockup-project {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.63rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-project.active {
  background: rgba(124,111,247,0.1);
  color: var(--text-primary);
  border-left-color: var(--accent);
}

/* Project dot colors (classes instead of inline styles to satisfy CSP) */
.proj-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.proj-purple { background: #7c6ff7; }
.proj-violet { background: #a78bfa; }
.proj-sky    { background: #38bdf8; }
.proj-blue   { background: #0ea5e9; }
.proj-amber  { background: #f59e0b; }
.proj-red    { background: #f87171; }

/* ── Editor + Console ────────────────────────────────────────── */
.mockup-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Tabs */
.mockup-tabs {
  display: flex;
  background: #0c0c14;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mtab {
  padding: 0.3rem 0.65rem;
  font-size: 0.62rem;
  color: var(--text-muted);
  cursor: default;
  user-select: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.mtab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* Code editor */
.mockup-editor {
  flex: 1;
  padding: 0.6rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  line-height: 1.75;
  overflow: hidden;
}

.code-line {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.ln {
  color: var(--text-muted);
  min-width: 12px;
  text-align: right;
  user-select: none;
  flex-shrink: 0;
  opacity: 0.5;
}

.kw  { color: #c792ea; }
.id  { color: #82aaff; }
.fn  { color: #82aaff; }
.str { color: #c3e88d; }
.num { color: #fb923c; }

.cursor-line { position: relative; }

.cursor {
  display: inline-block;
  width: 5px;
  height: 11px;
  background: var(--accent-bright);
  border-radius: 1px;
  animation: blink 1.1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Console */
.mockup-console {
  border-top: 1px solid var(--border);
  background: #090910;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.28rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.console-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.console-exit-ok {
  font-size: 0.6rem;
  color: var(--green);
  font-weight: 600;
}

.console-output {
  padding: 0.4rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.console-line     { color: var(--text-muted); }
.console-line.ok  { color: var(--green); }
.console-line.out { color: #c8ccd4; }
.console-line.dim { color: var(--text-muted); opacity: 0.6; }

/* ── AI Panel ────────────────────────────────────────────────── */
.mockup-ai-panel {
  width: 130px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: #09090f;
  display: flex;
  flex-direction: column;
}

.ai-panel-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ai-panel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.ai-messages {
  flex: 1;
  padding: 0.5rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
}

.ai-msg {
  font-size: 0.6rem;
  line-height: 1.45;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  max-width: 100%;
  word-break: break-word;
}

.ai-user {
  background: rgba(124,111,247,0.12);
  border: 1px solid rgba(124,111,247,0.22);
  color: var(--accent-bright);
  align-self: flex-end;
  text-align: right;
}

.ai-bot {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  align-self: flex-start;
}

/* Typing indicator */
.ai-typing {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 0.38rem 0.45rem;
}

.typing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.30s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30%            { transform: translateY(-3px); opacity: 1; }
}

/* AI input bar */
.ai-panel-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 0 0.4rem 0.5rem;
  padding: 0.28rem 0.5rem;
  font-size: 0.57rem;
  color: var(--text-muted);
  flex-shrink: 0;
  font-family: var(--font-sans);
}

/* ── Floating badges ─────────────────────────────────────────── */
.mockup-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  border: 1px solid var(--border-light);
  background: rgba(12,12,20,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}

.badge-run   { bottom: -1rem;  left: -1rem;   animation-delay: 0s;  }
.badge-local { top:    3rem;   right: -1.5rem; animation-delay: -2s; }

.badge-run-icon {
  color: var(--green);
  font-size: 0.6rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ══════════════════════════════════════════════════════════════
   PITCH STRIP
══════════════════════════════════════════════════════════════ */
.pitch-strip {
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg,
    var(--bg-primary) 0%,
    rgba(124,111,247,0.06) 50%,
    var(--bg-primary) 100%);
  padding: 2rem 0;
}

.pitch-strip-inner { text-align: center; }

.pitch-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pitch-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(124,111,247,0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.2s;
}

.fi-purple { background: rgba(124,111,247,0.12); color: #a78bfa; }
.fi-green  { background: rgba(74,222,128,0.10);  color: #4ade80; }
.fi-amber  { background: rgba(245,158,11,0.10);  color: #fbbf24; }
.fi-sky    { background: rgba(56,189,248,0.10);  color: #38bdf8; }
.fi-red    { background: rgba(248,113,113,0.10); color: #f87171; }
.fi-violet { background: rgba(167,139,250,0.10); color: #c4b5fd; }

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════════════ */
.how {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border);
}

.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.steps-connector {
  position: absolute;
  left: 27px;
  top: 44px;
  bottom: 44px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 100%);
  pointer-events: none;
}

.step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
}

.step + .step {
  border-top: 1px solid var(--border);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 24px var(--accent-glow);
}

.step-content { padding-top: 0.5rem; }

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════════
   LLM PICKER
══════════════════════════════════════════════════════════════ */
.llm { position: relative; }

/* Provider card grid */
.llm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

/* Individual card */
.llm-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  outline: none;
}

.llm-card:hover,
.llm-card:focus-visible {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

/* Active / selected state */
.llm-card-active {
  border-color: rgba(124,111,247,0.45);
  box-shadow: 0 0 0 1px rgba(124,111,247,0.18), 0 16px 40px rgba(0,0,0,0.35);
}

/* Glow behind active card */
.llm-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,111,247,0.12) 0%, transparent 65%);
  pointer-events: none;
}

/* Header row: logo + name */
.llm-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Logo circle */
.llm-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.llm-logo svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.llm-logo-openai {
  background: rgba(255,255,255,0.06);
  color: #e8e8f0;
}

.llm-logo-anthropic {
  background: rgba(205,145,95,0.12);
  color: #cd915f;
}

.llm-logo-gemini {
  background: rgba(66,133,244,0.1);
}

/* Provider name + badge */
.llm-provider-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.llm-provider-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.llm-active-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-bright);
  background: var(--accent-glow);
  border: 1px solid rgba(124,111,247,0.25);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  width: fit-content;
}

/* Model pills */
.llm-models {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.llm-model {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.llm-model-selected {
  background: var(--accent-glow);
  border-color: rgba(124,111,247,0.3);
  color: var(--accent-bright);
}

.llm-card-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: auto;
}

/* API key mockup strip */
.llm-key-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.llm-key-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.llm-key-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.llm-key-field {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.llm-key-prefix { color: var(--accent-bright); }
.llm-key-dots   { color: var(--text-muted); letter-spacing: 0.05em; flex: 1; }

.llm-key-saved {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  flex-shrink: 0;
}

.llm-key-note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.llm-key-note svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   HYBRID ARCHITECTURE
══════════════════════════════════════════════════════════════ */
.hybrid { position: relative; }

/* ── Flow diagram ────────────────────────────────────────────── */
.hybrid-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 3rem 0 3.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.hybrid-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(124,111,247,0.05) 0%, transparent 65%);
  pointer-events: none;
}

/* Each step box */
.hybrid-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  flex: 1;
  padding: 1.25rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

/* Highlight the local step */
.hybrid-step-local {
  border-color: rgba(74,222,128,0.25);
  background: rgba(74,222,128,0.04);
}

/* Step icon circle */
.hybrid-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hybrid-step-icon svg { width: 22px; height: 22px; }

.hybrid-icon-cloud {
  background: rgba(56,189,248,0.1);
  color: var(--sky);
  border: 1px solid rgba(56,189,248,0.15);
}

.hybrid-icon-file {
  background: rgba(124,111,247,0.1);
  color: var(--accent-bright);
  border: 1px solid rgba(124,111,247,0.15);
}

.hybrid-icon-local {
  background: rgba(74,222,128,0.1);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.15);
}

/* Step text */
.hybrid-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hybrid-step-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hybrid-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hybrid-step-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Arrow connector */
.hybrid-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0 0.5rem;
  position: relative;
  z-index: 1;
  margin-top: 1.75rem;
}

.hybrid-arrow svg {
  width: 40px;
  height: 16px;
  color: var(--border-light);
}

.hybrid-arrow-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Benefit cards ───────────────────────────────────────────── */
.hybrid-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hybrid-benefit {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hybrid-benefit:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.hybrid-benefit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Benefit icon */
.hybrid-benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hybrid-benefit-icon svg { width: 18px; height: 18px; }

.hybrid-bicon-green  { background: rgba(74,222,128,0.1);  color: var(--green); border: 1px solid rgba(74,222,128,0.15); }
.hybrid-bicon-purple { background: rgba(124,111,247,0.1); color: var(--accent-bright); border: 1px solid rgba(124,111,247,0.15); }
.hybrid-bicon-sky    { background: rgba(56,189,248,0.1);  color: var(--sky); border: 1px solid rgba(56,189,248,0.15); }

/* Big stat number */
.hybrid-benefit-stat {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.hybrid-benefit-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hybrid-benefit-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hybrid-flow {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .hybrid-arrow {
    flex-direction: row;
    margin-top: 0;
    padding: 0 0.25rem;
  }

  .hybrid-arrow svg {
    transform: rotate(90deg);
    width: 16px;
    height: 40px;
  }

  .hybrid-arrow-label { display: none; }

  .hybrid-step {
    flex-direction: row;
    text-align: left;
    padding: 1rem;
  }

  .hybrid-step-icon { flex-shrink: 0; }
}

/* ══════════════════════════════════════════════════════════════
   SECURITY
══════════════════════════════════════════════════════════════ */
.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}

.security-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(74,222,128,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.security-header {
  margin-bottom: 2.5rem;
}

.security-header .section-subtitle {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.security-header .section-title {
  text-align: left;
}

.security-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.security-item {
  display: flex;
  gap: 1rem;
}

.security-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}

.security-icon svg {
  width: 18px;
  height: 18px;
}

.security-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.security-item-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   DOWNLOAD
══════════════════════════════════════════════════════════════ */
.download-inner {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.download-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(124,111,247,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.download-inner .section-title { margin-bottom: 0.75rem; }
.download-inner .section-subtitle { margin-bottom: 2.5rem; }

.download-cta { margin-bottom: 2rem; }

.download-meta {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.link-muted {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.link-muted:hover { color: var(--text-secondary); }

.download-cards {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.dl-card svg {
  width: 15px;
  height: 15px;
  color: var(--accent-bright);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}

.footer-inner {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.footer-brand {
  flex: 1;
  min-width: 220px;
}

.footer-logo { margin-bottom: 0.75rem; }

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col { min-width: 120px; }

.footer-col-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-link:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Footer social icons ──────────────────────────────────────── */
.footer-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}

.footer-social-link svg { width: 16px; height: 16px; }

.footer-social-link:hover { background: rgba(255,255,255,0.1); border-color: var(--border-subtle); text-decoration: none; }

.footer-social-youtube:hover  { color: #ff0000; }
.footer-social-x:hover        { color: #e7e7e7; }
.footer-social-discord:hover  { color: #5865f2; }
.footer-social-linkedin:hover { color: #0a66c2; }

/* ══════════════════════════════════════════════════════════════
   BUILD WITH AI
══════════════════════════════════════════════════════════════ */
.build-ai {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
}

/* Large background glow */
.build-ai::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 560px;
  background: radial-gradient(ellipse at center,
    rgba(124,111,247,0.09) 0%,
    rgba(56,189,248,0.04) 45%,
    transparent 70%);
  pointer-events: none;
}

.build-ai-inner {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
}

/* ── Chat demo ─────────────────────────────────────────────── */
.bai-chat {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 3rem;
  margin-bottom: 3rem;
  text-align: left;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03) inset;
}

.bai-chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.bai-chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bai-dot-accent {
  background: var(--accent-bright);
  animation: pulse-dot 2s ease-in-out infinite;
}

.bai-chat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bai-provider-pills {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}

.bai-pill {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
}

.bai-chat-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bai-msg {
  max-width: 82%;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.bai-user {
  background: rgba(124,111,247,0.1);
  border: 1px solid rgba(124,111,247,0.2);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.bai-ai {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bai-ai-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bai-ai code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(124,111,247,0.12);
  color: var(--accent-bright);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.bai-ai strong { color: var(--text-primary); }

/* Result bar */
.bai-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: rgba(74,222,128,0.05);
  border-top: 1px solid rgba(74,222,128,0.12);
  flex-wrap: wrap;
}

.bai-run-btn {
  background: #22c55e;
  color: #fff;
  border-radius: 7px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(74,222,128,0.3);
}

.bai-result-file {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
}

.bai-result-file svg { flex-shrink: 0; color: var(--text-muted); }

.bai-local-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

/* ── Three pillars ─────────────────────────────────────────── */
.bai-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: left;
  margin-bottom: 2.5rem;
}

.bai-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.6rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.bai-pillar:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-3px);
}

.bai-pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.bai-icon-purple { background: rgba(124,111,247,0.12); color: #a78bfa; }
.bai-icon-green  { background: rgba(74,222,128,0.10);  color: #4ade80; }
.bai-icon-amber  { background: rgba(245,158,11,0.10);  color: #fbbf24; }

.bai-pillar-icon svg { width: 20px; height: 20px; }

.bai-pillar-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.bai-pillar-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* ── Use-case tags ─────────────────────────────────────────── */
.bai-usecases {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.bai-usecase-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.bai-usecase-tag:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-glow);
}

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside reveal parents */
.features-grid .feature-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.features-grid .feature-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.features-grid .feature-card.reveal:nth-child(3) { transition-delay: 0.19s; }
.features-grid .feature-card.reveal:nth-child(4) { transition-delay: 0.26s; }
.features-grid .feature-card.reveal:nth-child(5) { transition-delay: 0.33s; }
.features-grid .feature-card.reveal:nth-child(6) { transition-delay: 0.40s; }

.security-list .security-item.reveal:nth-child(1) { transition-delay: 0.05s; }
.security-list .security-item.reveal:nth-child(2) { transition-delay: 0.12s; }
.security-list .security-item.reveal:nth-child(3) { transition-delay: 0.19s; }
.security-list .security-item.reveal:nth-child(4) { transition-delay: 0.26s; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .llm-grid { grid-template-columns: 1fr 1fr; }
  .hybrid-benefits { grid-template-columns: 1fr 1fr; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content { max-width: 100%; }

  .hero-badges,
  .hero-cta,
  .hero-stats {
    justify-content: center;
  }

  .hero-subheading { max-width: 560px; margin-left: auto; margin-right: auto; }

  .hero-mockup {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bai-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .bai-msg { max-width: 92%; }

  .security-list {
    grid-template-columns: 1fr;
  }

  .security-header .section-subtitle,
  .security-header .section-title {
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --section-gap: 4.5rem; }

  /* Nav */
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--nav-h));
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(8,8,12,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(110%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.28s, opacity 0.28s;
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
    margin-left: 0;
    visibility: hidden;
    opacity: 0;
  }

  .nav-menu.open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s, opacity 0.28s;
  }

  /* Nav items: stretch to full menu width */
  .nav-menu li { display: flex; }

  .nav-link {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border-radius: 10px;
    min-height: 44px;
  }

  /* Download CTA becomes a full-width button at the bottom */
  .nav-menu .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  /* Separator before the Download CTA */
  .nav-menu li:last-child {
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  /* Hero */
  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  .hero-badges { flex-wrap: wrap; }
  .hero-mockup { max-width: 100%; }

  /* Mockup: hide sidebar + AI panel, give main full width */
  .mockup-sidebar  { display: none; }
  .mockup-ai-panel { display: none; }
  .mockup-body { height: 240px; }

  /* Mockup floating badges */
  .badge-run  { display: none; }
  .badge-local { display: none; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Steps */
  .steps-connector { display: none; }
  .step { flex-direction: column; gap: 1rem; }

  /* Build with AI */
  .bai-pillars { grid-template-columns: 1fr; }

  /* LLM picker */
  .llm-grid { grid-template-columns: 1fr; }

  /* Hybrid */
  .hybrid-benefits { grid-template-columns: 1fr; }

  /* Security */
  .security-card { padding: 2rem 1.5rem; }

  /* Download cards */
  .download-cards { flex-direction: column; align-items: center; }
  .dl-card { width: 100%; max-width: 240px; justify-content: center; }
}

@media (max-width: 480px) {
  :root { --section-gap: 3.5rem; }

  /* Hero */
  .hero { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 2.5rem; }
  .hero-heading { font-size: 1.75rem; }
  .hero-subheading { font-size: 0.95rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
  .btn-xl { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .stat-divider { display: none; }
  .mockup-body { height: 200px; }

  /* Security */
  .security-card { padding: 1.5rem 1rem; }

  /* Build with AI */
  .bai-chat-body { padding: 0.75rem; }
  .bai-msg { max-width: 95%; padding: 0.6rem 0.85rem; }

  /* Footer */
  .footer-brand { min-width: 0; }
  .footer-col   { min-width: 0; }
  .footer-links { gap: 2rem; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
