/* ═══════════════════════════════════════════════════════════════
   Prompt Gallery — Landing Page Styles
   Palette: deep ink-blue bg · lime accent · editorial typography
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────────────── */
:root {
  --bg:          #05050d;
  --bg-1:        #08081a;
  --bg-2:        #0c0c1e;
  --bg-card:     #0a0a17;
  --bg-card-h:   #0f0f22;

  --accent:      #a3e635;       /* lime-400 — signature colour */
  --accent-dim:  rgba(163, 230, 53, 0.08);
  --accent-glow: rgba(163, 230, 53, 0.18);
  --accent-bdr:  rgba(163, 230, 53, 0.28);

  --sky:         #38bdf8;
  --sky-dim:     rgba(56, 189, 248, 0.1);

  --text-1:      #edeef5;
  --text-2:      #9090b0;
  --text-3:      #50507a;

  --border:      rgba(255, 255, 255, 0.06);
  --border-md:   rgba(255, 255, 255, 0.1);

  --radius:      10px;
  --radius-lg:   18px;
  --radius-xl:   24px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --max-w: 1160px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ── Global dot-grid background ────────────────────────────────
   Radial dot pattern at 28px spacing, fading out toward edges
   ──────────────────────────────────────────────────────────── */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.11) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  mask-image:
    radial-gradient(ellipse 120% 100% at 50% 0%,   black 40%, transparent 90%),
    linear-gradient(to bottom, black 60%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    radial-gradient(ellipse 120% 100% at 50% 0%,   black 40%, transparent 90%),
    linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-composite: source-in;
}

body {
  position: relative;
  z-index: 1;
  background-color: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Utilities ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.accent { color: var(--accent); }

.mt-6 { margin-top: 1.5rem; }

/* ── Scroll-reveal base state ──────────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Load-reveal for hero elements */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.38s; }
.delay-4 { animation-delay: 0.52s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── NAVIGATION ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(5, 5, 13, 0.82);
  border-color: var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-1);
  flex-shrink: 0;
}

.brand-hex {
  width: 24px;
  height: 27px;
  color: var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin-inline-start: auto;
}

.nav-links a {
  display: block;
  padding: 6px 12px;
  font-size: 0.875rem;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text-1);
  background: var(--border);
}

/* Brand name — full vs short */
.brand-short { display: none; }

/* ── HAMBURGER BUTTON ──────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  margin-inline-start: auto;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  background: var(--border);
  border-color: var(--border-md);
}

.ham-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition:
    transform 0.26s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.2s ease,
    width     0.2s ease;
  transform-origin: center;
}

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

/* ── MOBILE NAV DRAWER ─────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset-block-start: var(--nav-h);
  inset-inline: 0;
  z-index: 98;
  background: rgba(5, 5, 13, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-md);
  padding: 24px clamp(20px, 5vw, 40px) 32px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition:
    transform  0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.25s ease,
    visibility 0.3s;
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  margin-block-end: 28px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav-link:last-child { border-bottom: none; }

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--accent);
  padding-left: 10px;
  outline: none;
}

.mobile-nav-footer {
  display: flex;
  gap: 12px;
}

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s, color 0.18s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #0a1200;
  font-weight: 700;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px var(--accent-glow), 0 0 0 1px var(--accent-bdr);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-md);
}
.btn-ghost:hover {
  color: var(--text-1);
  border-color: var(--border-md);
  background: var(--border);
}

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 7px 14px;
  font-size: 0.85rem;
}
.btn-outline:hover {
  color: var(--text-1);
  background: var(--border);
  border-color: var(--border-md);
}

/* ── HERO ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  padding-block-start: calc(var(--nav-h) + 48px);
  padding-block-end: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background atmosphere */
.hero-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(163, 230, 53, 0.055) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 75% 70%, rgba(56, 189, 248, 0.04) 0%, transparent 55%);
}

/* Hero dot-grid accent layer (denser, lime-tinted, vignette fade) */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(163, 230, 53, 0.18) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 75% 70% at 30% 55%, black 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 30% 55%, black 20%, transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero copy */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-md);
  background: rgba(163, 230, 53, 0.05);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  width: fit-content;
}

.badge-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px transparent; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-1);
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 48ch;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block-start: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-1);
  line-height: 1;
}

.stat span {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-md);
  flex-shrink: 0;
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.window-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-md);
  background: var(--bg-2);
  box-shadow:
    0 0 0 1px rgba(163, 230, 53, 0.08),
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(163, 230, 53, 0.06);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}

.wdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wdot-red    { background: #ff5f57; }
.wdot-yellow { background: #ffbd2e; }
.wdot-green  { background: #28c840; }

.window-title {
  margin-inline-start: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  flex: 1;
  text-align: center;
}

.window-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 23, 0.88);
  border: 1px solid var(--border-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.float-badge svg { color: var(--accent); flex-shrink: 0; }

.fb-1 {
  bottom: 18%;
  left: -10%;
  animation: floatY 3.8s ease-in-out infinite;
}
.fb-2 {
  top: 22%;
  right: -10%;
  animation: floatY 4.4s ease-in-out infinite reverse;
}
.fb-3 {
  bottom: -4%;
  right: 10%;
  animation: floatY 3.2s ease-in-out infinite 0.8s;
}

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

/* ── TICKER ────────────────────────────────────────────────────── */
.ticker {
  border-block: 1px solid var(--border);
  background: var(--bg-1);
  overflow: hidden;
  padding-block: 14px;
  position: relative;
  z-index: 2;
}

.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  inset-block: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}
.ticker::before {
  inset-inline-start: 0;
  background: linear-gradient(to right, var(--bg-1), transparent);
}
.ticker::after {
  inset-inline-end: 0;
  background: linear-gradient(to left, var(--bg-1), transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
}

.ticker-track .dot {
  color: var(--accent);
  opacity: 0.5;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTIONS ──────────────────────────────────────────────────── */
.section {
  padding-block: clamp(64px, 8vw, 120px);
  position: relative;
}

/* Thin layout-guide lines: vertical rails flanking the content column */
.section::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline: calc(50% - var(--max-w) / 2 - 1px);
  width: calc(var(--max-w) + 2px);
  border-inline: 1px solid rgba(255, 255, 255, 0.045);
  pointer-events: none;
  z-index: 0;
}

/* Horizontal rule at the top of every section */
.section::after {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: calc(50% - var(--max-w) / 2);
  width: var(--max-w);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 20%,
    rgba(255, 255, 255, 0.07) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Keep section children above the guide overlays */
.section > * {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-block-end: clamp(48px, 6vw, 80px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-block-end: 14px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-1);
  margin-block-end: 16px;
}

.section-lead {
  color: var(--text-2);
  font-size: 1.05rem;
}

/* ── FEATURES GRID ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.feat-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}

.feat-card:hover {
  background: var(--bg-card-h);
  border-color: var(--accent-bdr);
  box-shadow: 0 8px 32px var(--accent-dim), 0 0 0 1px var(--accent-dim);
}

.feat-card:hover::before { opacity: 1; }

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.feat-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--text-1);
}

.feat-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── SHOWCASE ──────────────────────────────────────────────────── */
.showcase-hero {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-md);
  background: var(--bg-2);
  margin-block-end: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.showcase-hero img {
  width: 100%;
}

.showcase-hero figcaption {
  padding: 16px 24px;
  font-size: 0.82rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

.showcase-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.showcase-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.25s, transform 0.25s;
}

.showcase-item:hover {
  border-color: var(--border-md);
  transform: translateY(-4px);
}

.showcase-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.showcase-item figcaption {
  padding: 16px;
}

.showcase-item figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-1);
  margin-block-end: 4px;
}

.showcase-item figcaption p {
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ── COMPARE ───────────────────────────────────────────────────── */
.compare-section {
  background: var(--bg-1);
}

.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.9rem;
  background: var(--bg-card);
}

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-2);
  background: var(--bg-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-md);
}

.col-feature {
  text-align: left;
  width: 38%;
}

.col-pg {
  background: rgba(163, 230, 53, 0.04) !important;
  border-inline: 1px solid var(--accent-bdr) !important;
}

.compare-table tbody .col-pg {
  border-inline: 1px solid rgba(163, 230, 53, 0.15);
}

.pg-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a1200;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
}

.compare-table tbody tr {
  transition: background 0.15s;
}

.compare-table tbody tr:hover td {
  background: rgba(255,255,255,0.025);
}

.compare-table tbody tr:hover .col-pg {
  background: rgba(163, 230, 53, 0.07) !important;
}

.compare-table td.col-feature {
  text-align: left;
  color: var(--text-2);
  font-size: 0.88rem;
}

.val {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
}

.val.yes   { color: var(--accent); }
.val.no    { color: #ef4444; opacity: 0.7; }
.val.muted { color: var(--text-3); }
.val.dim   { color: var(--text-3); font-size: 0.8rem; font-style: italic; }

/* ── GETTING STARTED ───────────────────────────────────────────── */
.start-section {
  background: linear-gradient(180deg, transparent 0%, var(--bg-1) 40%, transparent 100%);
}

.start-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.start-copy .section-header {
  text-align: left;
  margin-inline: 0;
  margin-block-end: 0;
}

.start-copy .eyebrow { margin-block-end: 12px; }
.start-copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-1);
  margin-block-end: 16px;
}

.start-copy .section-lead {
  color: var(--text-2);
  font-size: 1rem;
  margin-block-end: 28px;
}

.prereq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block-end: 32px;
}

.prereq-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
}

.arrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.prereq-list a {
  color: var(--text-1);
  border-bottom: 1px solid rgba(163, 230, 53, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

.prereq-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.prereq-note {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* Code panel */
.code-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-md);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}

.code-lang-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent-bdr);
  background: var(--accent-dim);
}

.copy-btn.copied {
  color: var(--accent);
  border-color: var(--accent-bdr);
}

.code-block {
  margin: 0;
  padding: 28px 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 2;
  color: var(--text-2);
  background: transparent;
}

.code-block code { background: none; padding: 0; color: inherit; font-size: inherit; }

.code-block .cm { color: var(--text-3); }            /* comment */
.code-block .ck { color: var(--accent); }             /* keyword/command */

/* ── TECH STACK ────────────────────────────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-block-end: 40px;
}

.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.stack-item:hover {
  border-color: var(--accent-bdr);
  background: var(--bg-card-h);
}

.stack-layer {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stack-tech {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.stack-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 72ch;
  margin-inline: auto;
}

.stack-note code {
  font-size: 0.82em;
}

/* ── FOOTER ────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  padding-block: 48px 32px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-block-end: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .brand-hex {
  width: 28px;
  height: 32px;
  color: var(--accent);
  flex-shrink: 0;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-1);
  margin-block-end: 4px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-3);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.87rem;
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text-1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-block-start: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer-built {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

.footer-disclaimer {
  width: 100%;
  font-size: 0.72rem;
  color: var(--text-3);
  opacity: 0.6;
  margin-block-start: 4px;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */

/* 1200px — guide rails adapt to actual viewport */
@media (max-width: 1200px) {
  .section::before {
    inset-inline: max(0px, calc(50% - var(--max-w) / 2 - 1px));
    width: min(calc(var(--max-w) + 2px), 100%);
  }
}

/* 1024px — tablet: two-column grids */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid    { grid-template-columns: repeat(2, 1fr); }
}

/* 860px — hamburger, hero stacks, side panels collapse */
@media (max-width: 860px) {
  /* Nav */
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta    { display: none; } /* hidden in nav bar — lives in mobile drawer */

  /* Section guide rails off — too narrow for fixed-width rules */
  .section::before { display: none; }

  /* Hero: two-col → one-col, screenshot on top */
  .hero-inner  { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-title  { font-size: clamp(2.2rem, 7vw, 3.2rem); }

  /* Float badges: rein inside the frame */
  .fb-1 { left: 2%;  bottom: 14%; }
  .fb-2 { right: 2%; top: 10%; }
  .fb-3 { right: 8%; bottom: -2%; }

  /* Get Started: single column */
  .start-inner  { grid-template-columns: 1fr; gap: 40px; }
  .code-panel   { position: static; }

  /* Three-up screenshots: stack */
  .showcase-trio { grid-template-columns: 1fr; }
}

/* 640px — mobile */
@media (max-width: 640px) {
  /* Grids */
  .features-grid { grid-template-columns: 1fr; }
  .stack-grid    { grid-template-columns: repeat(2, 1fr); }

  /* Hero */
  .hero {
    min-height: auto;
    padding-block: calc(var(--nav-h) + 40px) 56px;
  }
  .hero-title  { font-size: clamp(1.9rem, 8vw, 2.6rem); }

  /* Float badges: hide — they overflow on small screens */
  .float-badge { display: none; }

  /* Stats: 2×2 grid instead of single row */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    padding-block-start: 4px;
  }
  .stat-divider { display: none; }

  /* CTA buttons: full width, stacked */
  .hero-ctas      { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  /* Compare table: force horizontal scroll */
  .compare-table    { min-width: 480px; }
  .compare-table th,
  .compare-table td { padding: 12px 14px; font-size: 0.82rem; }

  /* Footer */
  .footer-top    { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Code block: horizontal scroll on overflow */
  .code-block { overflow-x: auto; }

  /* Touch targets: 44px minimum */
  .btn            { min-height: 44px; }
  .nav-toggle     { min-width: 44px; min-height: 44px; }
  .mobile-nav-link { min-height: 52px; }

  /* Brand: show abbreviated name */
  .brand-full  { display: none; }
  .brand-short { display: inline; }
}

/* 480px — very small phones */
@media (max-width: 480px) {
  .stack-grid { grid-template-columns: 1fr; }

  .hero-badge { font-size: 0.65rem; padding: 5px 11px; }

  .section-header h2 { font-size: clamp(1.5rem, 8vw, 2rem); }

  .feat-card { padding: 20px; }

  .code-block { font-size: 0.74rem; padding: 18px 14px; line-height: 1.9; }

  .window-bar { padding: 10px 12px; }
  .wdot       { width: 9px; height: 9px; }

  .footer-nav   { gap: 14px; flex-wrap: wrap; }
  .footer-nav a { font-size: 0.82rem; }
}
