/* ===============================================
   LUMINARY AI — LANDING PAGE STYLESHEET
   LuminaryData/landing.css
   =============================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

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

/* ─── CUSTOM PROPERTIES ──────────────────────── */
:root {
  --bg:          #030805;
  --bg2:         #080f08;
  --bg3:         #0d1a0d;
  --primary:     #00ff41;
  --primary-dim: #00cc33;
  --primary-glow:rgba(0,255,65,0.18);
  --secondary:   #00c8ff;
  --accent:      #a855f7;
  --text:        #e2e8e2;
  --text-dim:    #556655;
  --text-mid:    #88aa88;
  --border:      #1a2f1a;
  --border-bright:#2a4a2a;
  --danger:      #ff3e3e;
  --font-mono:   'JetBrains Mono', monospace;
  --font-sans:   'Inter', sans-serif;
  --glow-sm:     0 0 12px rgba(0,255,65,0.3);
  --glow-md:     0 0 24px rgba(0,255,65,0.4), 0 0 48px rgba(0,255,65,0.15);
  --glow-lg:     0 0 40px rgba(0,255,65,0.5), 0 0 80px rgba(0,255,65,0.2);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── BASE ───────────────────────────────────── */
html {
  scroll-behavior: smooth;
  height: -webkit-fill-available;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── NOISE TEXTURE ──────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dim); }

/* ─── GRID BACKGROUND ────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,65,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,65,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 clamp(16px, 5vw, 80px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3,8,5,0.85);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 1px 24px rgba(0,255,65,0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: var(--glow-sm);
  flex-shrink: 0;
}

.nav-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
  text-shadow: var(--glow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mid);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-glow);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  background: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  box-shadow: var(--glow-sm);
  white-space: nowrap;
}

.nav-cta:hover {
  background: #00e639;
  box-shadow: var(--glow-md);
  transform: translateY(-1px);
}

.nav-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-bright);
  color: var(--text);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* ─── MOBILE NAV DRAWER ──────────────────────── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(3,8,5,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px clamp(16px, 5vw, 40px);
  flex-direction: column;
  gap: 4px;
  z-index: 890;
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer .nav-link {
  padding: 12px 16px;
  font-size: 14px;
  width: 100%;
}

.nav-drawer .nav-cta {
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 14px;
  text-align: center;
  display: block;
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px clamp(16px, 5vw, 80px) 80px;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

/* Radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(800px, 100vw);
  height: 60vh;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,255,65,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--primary);
  background: rgba(0,255,65,0.08);
  border: 1px solid rgba(0,255,65,0.2);
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.6); }
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(36px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 12px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-title .line-primary {
  color: var(--primary);
  text-shadow: var(--glow-md);
  display: block;
}

.hero-title .line-white {
  color: var(--text);
  display: block;
}

.hero-title .line-dim {
  color: var(--text-mid);
  font-size: 0.55em;
  display: block;
  letter-spacing: 8px;
  font-weight: 400;
  margin-top: 8px;
}

.hero-subtitle {
  max-width: 640px;
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0 auto 48px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* ─── PRIMARY CTA BUTTON ─────────────────────── */
.btn-launch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-radius: var(--radius-md);
  box-shadow: var(--glow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-launch::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: rgba(255,255,255,0.25);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-launch:hover::before {
  left: 120%;
}

.btn-launch:hover {
  background: #00e639;
  box-shadow: var(--glow-lg);
  transform: translateY(-3px) scale(1.02);
}

.btn-launch:active {
  transform: translateY(0) scale(0.98);
}

.btn-launch-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-launch:hover .btn-launch-icon {
  transform: translateX(4px);
}

/* ─── SECONDARY BUTTON ───────────────────────── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 17px 32px;
  background: transparent;
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-ghost:hover {
  color: var(--primary);
  border-color: rgba(0,255,65,0.4);
  background: var(--primary-glow);
}

/* ─── HERO STATS ─────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 72px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.45s ease both;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--primary);
  text-shadow: var(--glow-sm);
  line-height: 1;
  display: block;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

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

/* ─── TERMINAL DEMO BOX ──────────────────────── */
.hero-terminal {
  margin-top: 80px;
  width: 100%;
  max-width: 740px;
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,255,65,0.05), var(--glow-sm);
  animation: fadeUp 0.7s 0.5s ease both;
  text-align: left;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 8px;
  flex: 1;
  text-align: center;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
}

.t-line { display: flex; align-items: baseline; gap: 8px; }
.t-prompt { color: var(--primary); flex-shrink: 0; }
.t-cmd    { color: var(--text); }
.t-comment{ color: var(--text-dim); }
.t-output { color: var(--text-mid); padding-left: 20px; }
.t-success{ color: var(--primary); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--primary);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

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

/* ─── SECTION COMMON ─────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 10vw, 120px) clamp(16px, 5vw, 80px);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 12px;
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title span { color: var(--primary); }

.section-desc {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.75;
}

.section-center {
  text-align: center;
}

.section-center .section-desc {
  margin: 0 auto;
}

/* ─── FEATURES GRID ──────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--glow-sm);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
}

.feature-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 14px;
  background: rgba(0,255,65,0.1);
  border: 1px solid rgba(0,255,65,0.25);
  color: var(--primary);
}

/* ─── MODES SHOWCASE ─────────────────────────── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.mode-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.mode-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
}

.mode-card:hover {
  transform: translateY(-4px);
}

.mode-card:hover::after {
  opacity: 1;
}

.mode-card.ultraplinian {
  background: linear-gradient(135deg, rgba(255,0,85,0.08) 0%, rgba(255,102,0,0.06) 100%);
  border-color: rgba(255,80,50,0.2);
}

.mode-card.parseltongue {
  background: linear-gradient(135deg, rgba(45,90,39,0.1) 0%, rgba(74,124,67,0.06) 100%);
  border-color: rgba(74,124,67,0.25);
}

.mode-card.classic {
  background: linear-gradient(135deg, rgba(138,43,226,0.1) 0%, rgba(255,0,128,0.06) 100%);
  border-color: rgba(168,85,247,0.25);
}

.mode-card.standard {
  background: linear-gradient(135deg, rgba(0,200,255,0.08) 0%, rgba(0,100,200,0.05) 100%);
  border-color: rgba(0,200,255,0.2);
}

.mode-emoji {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}

.mode-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.mode-card.ultraplinian .mode-name { color: #ff6b6b; }
.mode-card.parseltongue .mode-name { color: #4a7c43; }
.mode-card.classic      .mode-name { color: #a855f7; }
.mode-card.standard     .mode-name { color: #00c8ff; }

.mode-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ─── TECH STACK STRIP ───────────────────────── */
.tech-strip {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mid);
  padding: 8px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: all var(--transition);
}

.tech-pill:hover {
  border-color: var(--border-bright);
  color: var(--text);
}

.tech-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
}

/* ─── BIG CTA SECTION ────────────────────────── */
.cta-section {
  text-align: center;
  padding: clamp(80px, 12vw, 140px) clamp(16px, 5vw, 80px);
  position: relative;
  z-index: 1;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: min(600px, 90vw);
  height: 300px;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,255,65,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--primary);
  opacity: 0.7;
  margin-bottom: 20px;
}

.cta-title {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.1;
}

.cta-title span { color: var(--primary); text-shadow: var(--glow-md); }

.cta-desc {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-mid);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

.cta-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.cta-note a {
  color: var(--primary);
  text-decoration: none;
}

.cta-note a:hover {
  text-decoration: underline;
}

/* ─── CREDITS / ABOUT ────────────────────────── */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.credit-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.credit-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.credit-avatar {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: rgba(0,255,65,0.08);
  border: 1px solid rgba(0,255,65,0.15);
}

.credit-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.credit-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--primary);
  opacity: 0.7;
  margin-bottom: 10px;
}

.credit-bio {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

.credit-links {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.credit-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all var(--transition);
}

.credit-link:hover {
  color: var(--primary);
  border-color: rgba(0,255,65,0.3);
}

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px clamp(16px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.footer-brand span {
  color: var(--primary);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--primary);
  background: rgba(0,255,65,0.08);
  border: 1px solid rgba(0,255,65,0.2);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* ─── DIVIDER ────────────────────────────────── */
.section-divider {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  position: relative;
  z-index: 1;
}

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

/* Tablet landscape: 1024px and below */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats {
    gap: 24px;
  }
}

/* Tablet portrait: 768px and below */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-menu-btn { display: flex; align-items: center; }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-divider { display: none; }

  .nav-links {
    display: none;
  }
  
  .nav-menu-btn {
    display: flex;
  }

  .nav-cta {
    display: none !important;
  }

  .hero-title {
    font-size: clamp(32px, 8vw, 64px);
  }

  .stat-divider {
    display: none;
  }

  .hero-stats {
    gap: 32px;
  }
}

/* Phone portrait: 480px and below */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(28px, 10vw, 44px);
  }

  .btn-launch, .btn-ghost {
    justify-content: center;
    width: 100%;
    margin: 6px 0;
    padding: 10px 20px;
    font-size: 12px;
    gap: 8px;
  }

  .btn-launch-icon {
    font-size: 12px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
    gap: 10px;
  }

  .modes-grid, .features-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: 180px;
  }

  .feature-card {
    min-height: 200px;
  }

  .hero-stats {
    gap: 20px;
    flex-direction: column;
  }

  .tech-strip {
    gap: 8px;
  }

  .terminal-body {
    font-size: 11px;
    line-height: 1.8;
    padding: 12px;
  }
}

/* Small phones: 360px and below */
@media (max-width: 360px) {
  .nav {
    padding: 0 12px;
  }

  .hero {
    padding: 88px 12px 48px;
  }

  .section {
    padding: 48px 12px;
  }

  .hero-eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
    padding: 5px 12px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .feature-card {
    padding: 24px 20px;
    min-height: 220px;
  }
}

/* Very old small phones: 320px and below */
@media (max-width: 320px) {
  .hero-title {
    font-size: 26px;
    letter-spacing: 0;
  }

  .stat-number {
    font-size: 24px;
  }

  .btn-launch {
    padding: 14px 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .section-title {
    font-size: 20px;
  }
}

/* Landscape phone: short viewport */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 20px 40px;
  }

  .hero-stats {
    margin-top: 32px;
  }

  .hero-terminal {
    margin-top: 32px;
  }
}

/* Touch: improve tap targets */
@media (hover: none) and (pointer: coarse) {
  .nav-link, .nav-cta, .btn-launch, .btn-ghost,
  .footer-link, .credit-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-menu-btn {
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
  }

  .feature-card:hover,
  .mode-card:hover,
  .credit-card:hover {
    transform: none;
  }
}

/* ─── MODALS ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), var(--glow-md);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

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

.modal-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}

.modal-body h2 {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 18px;
  margin: 24px 0 12px;
}

.modal-body h2:first-child { margin-top: 0; }

.modal-body p { margin-bottom: 16px; }

.modal-body ul { margin-bottom: 20px; padding-left: 20px; }

.modal-body li { margin-bottom: 8px; }

.modal-body strong { color: var(--text); }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  text-align: right;
}

.modal-btn {
  background: var(--primary);
  color: var(--bg);
  border: none;
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

@media (max-width: 480px) {
  .modal-btn {
    padding: 6px 16px;
    font-size: 11px;
  }
  
  .nav-cta {
    padding: 6px 14px;
    font-size: 11px;
  }
}

.modal-btn:hover {
  background: #00e639;
  transform: translateY(-1px);
}


