/* ── Surfacing Website — Global Stylesheet ─────────────────────────────────── */

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

/* ── Reset & Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg:        #050D1E;
  --bg2:       #030A16;
  --surface:   #091929;
  --surface2:  #0D2140;
  --surface3:  #112650;
  --border:    #1A3670;
  --border2:   #112650;
  --text:      #E2EEFF;
  --text2:     #7AAED5;
  --text3:     #3A6090;
  --blue:      #3B8EF0;
  --blue2:     #2471DC;
  --blue-dim:  rgba(59,142,240,0.12);
  --blue-glow: rgba(59,142,240,0.28);
  --teal:      #4ECDC4;
  --teal2:     #38b2aa;
  --teal-dim:  rgba(78,205,196,0.10);
  --teal-glow: rgba(78,205,196,0.20);
  --danger:    #e05555;
  --amber:     #f59e0b;
  --purple:    #8b5cf6;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --nav-h:     68px;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --mono:      'JetBrains Mono', 'Courier New', monospace;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: var(--blue); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

/* ── Typography ─────────────────────────────────────────────────────────────── */
.display { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900; letter-spacing: -2px; line-height: 1.05; }
.h1      { font-size: clamp(2rem,  4vw, 3.4rem); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; }
.h2      { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -1px;  line-height: 1.2; }
.h3      { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.5px; line-height: 1.3; }
.lead    { font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 400; color: var(--text2); line-height: 1.75; }
.label   { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); }
.mono    { font-family: var(--mono); }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
section.tight { padding: 60px 0; }

/* ── Nav ─────────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(5,13,30,0.90);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0;
  font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: var(--text);
  text-decoration: none;
}
.nav-logo img { width: 34px; height: 34px; border-radius: 8px; margin-right: 10px; }
.nav-logo span { color: var(--teal); }
.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav-links a {
  color: var(--text2); font-size: 14px; font-weight: 500;
  padding: 7px 14px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: var(--surface2);
}
.nav-cta {
  background: var(--blue); color: #fff !important;
  font-weight: 700 !important; border-radius: var(--radius-sm);
  padding: 8px 18px !important;
  transition: opacity var(--transition) !important;
}
.nav-cta:hover { opacity: 0.88 !important; background: var(--blue) !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; border: none; background: transparent;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(5,13,30,0.97); backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 22px; font-weight: 700; color: var(--text); padding: 12px 24px;
  width: 100%; text-align: center; border-radius: var(--radius);
  transition: background var(--transition);
}
.mobile-menu a:hover { background: var(--surface); }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: var(--nav-h);
  background:
    radial-gradient(ellipse 120% 80% at 60% -10%, rgba(30,100,220,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 10% 80%, rgba(15,60,150,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 60%, rgba(20,80,200,0.20) 0%, transparent 55%),
    linear-gradient(180deg, #07112A 0%, #050D1E 60%, #040B1A 100%);
}

/* Light rays */
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 70%;
  background: repeating-linear-gradient(
    -12deg,
    transparent 0px,
    transparent 80px,
    rgba(80,150,255,0.04) 80px,
    rgba(80,150,255,0.04) 120px,
    transparent 120px,
    transparent 220px
  );
  pointer-events: none; z-index: 0;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}
.hero-left { display: flex; flex-direction: column; gap: 0; }
.hero-right {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-right img {
  width: 100%; max-width: 580px;
  border-radius: 16px;
  filter: drop-shadow(0 32px 80px rgba(10,60,180,0.6)) drop-shadow(0 0 60px rgba(59,142,240,0.3));
  animation: float-img 7s ease-in-out infinite;
}
@keyframes float-img {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Bubbles */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.38) 0%, rgba(100,160,255,0.10) 55%, transparent 80%);
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
  animation: bubble-rise linear infinite;
}
@keyframes bubble-rise {
  0%   { transform: translateY(0) scale(1);    opacity: 0; }
  8%   { opacity: 0.85; }
  92%  { opacity: 0.5; }
  100% { transform: translateY(-105vh) scale(1.08); opacity: 0; }
}

.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.hero-eyebrow-pill {
  background: var(--blue-dim); border: 1px solid rgba(59,142,240,0.35);
  color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  padding: 5px 14px; border-radius: 100px;
}
.hero-title { margin-bottom: 24px; }
.hero-title .gradient-text {
  background: linear-gradient(135deg, #64B5F6 0%, #ffffff 45%, #90CAF9 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 200%; animation: shimmer 4s linear infinite;
}
@keyframes shimmer { 0%{background-position:0%} 100%{background-position:200%} }
.hero-sub { max-width: 520px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

/* Three free badges */
.free-badges {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.free-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; font-weight: 600; color: var(--text2);
  letter-spacing: 0.3px;
}
.free-badge .check { color: var(--teal); font-weight: 800; }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text3); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll svg { opacity: 0.4; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700;
  border: none; cursor: pointer; transition: all var(--transition); white-space: nowrap;
  text-decoration: none; font-family: var(--font);
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue2); opacity: 1; transform: translateY(-1px); box-shadow: 0 10px 36px rgba(59,142,240,0.45); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); opacity: 1; }
.btn-ghost { background: var(--surface2); color: var(--text2); }
.btn-ghost:hover { background: var(--surface3); color: var(--text); opacity: 1; }
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(59,142,240,0.35);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(59,142,240,0.12);
}
.card-glass {
  background: rgba(9,25,41,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
}
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-dim); margin-bottom: 20px;
  font-size: 24px;
}
.card-icon.purple { background: rgba(139,92,246,0.15); }
.card-icon.amber  { background: rgba(245,158,11,0.15); }
.card-icon.green  { background: rgba(34,197,94,0.12); }
.card-icon.red    { background: rgba(224,85,85,0.12); }
.card-icon.teal   { background: var(--teal-dim); }

/* ── Grids ───────────────────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── Section headers ─────────────────────────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .label { margin-bottom: 14px; }
.section-head .h2 { margin-bottom: 16px; }
.section-head .lead { max-width: 580px; margin: 0 auto; }

/* ── Stats bar ───────────────────────────────────────────────────────────────── */
.stats-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  flex: 1; min-width: 160px; padding: 36px 28px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2.8rem; font-weight: 900; letter-spacing: -2px; color: var(--blue); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text2); margin-top: 6px; font-weight: 500; }

/* ── Feature strip ───────────────────────────────────────────────────────────── */
.feature-strip {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 16px;
}
.feature-strip-icon { font-size: 28px; flex-shrink: 0; }
.feature-strip-body h4 { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.feature-strip-body p  { font-size: 14px; color: var(--text2); }

/* ── Condition pills ─────────────────────────────────────────────────────────── */
.condition-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.condition-pill {
  padding: 7px 16px; border-radius: 100px;
  background: var(--surface2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text2);
  transition: all var(--transition);
}
.condition-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }

/* ── Timeline ────────────────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--blue), transparent);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: ''; position: absolute; left: -28px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px var(--blue-dim);
}
.timeline-item h4 { font-weight: 700; margin-bottom: 6px; }
.timeline-item p  { color: var(--text2); font-size: 15px; }

/* ── Callout box ─────────────────────────────────────────────────────────────── */
.callout {
  border-radius: var(--radius-lg); padding: 32px 36px;
  border-left: 4px solid var(--blue);
  background: var(--blue-dim);
}
.callout.teal  { border-left-color: var(--teal); background: var(--teal-dim); }
.callout.amber { border-left-color: var(--amber); background: rgba(245,158,11,0.08); }
.callout.purple { border-left-color: var(--purple); background: rgba(139,92,246,0.10); }
.callout h4 { font-weight: 700; margin-bottom: 8px; }
.callout p { color: var(--text2); font-size: 15px; }

/* ── CTA Section ─────────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(59,142,240,0.14) 0%, rgba(78,205,196,0.07) 100%);
  border: 1px solid rgba(59,142,240,0.22); border-radius: 24px;
  padding: 80px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,142,240,0.18) 0%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}

/* ── Contact Form ────────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text2); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font); font-size: 15px;
  padding: 13px 16px; transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--surface2); }
.form-success {
  display: none; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius); padding: 20px 24px; color: #4ade80;
  font-weight: 600; text-align: center;
}

/* ── Badge ───────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600;
}
.badge-blue   { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(59,142,240,0.3); }
.badge-teal   { background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(78,205,196,0.3); }
.badge-green  { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.badge-purple { background: rgba(139,92,246,0.12); color: #a78bfa; border: 1px solid rgba(139,92,246,0.25); }
.badge-amber  { background: rgba(245,158,11,0.1); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }

/* ── Divider ─────────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── Page hero (interior pages) ──────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(30,100,220,0.25) 0%, transparent 65%),
    linear-gradient(180deg, #07112A 0%, #050D1E 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .badge { margin-bottom: 20px; }
.page-hero .h1 { margin-bottom: 16px; }
.page-hero .lead { max-width: 600px; margin: 0 auto; }

/* ── Checklist ───────────────────────────────────────────────────────────────── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text2);
}
.checklist li::before {
  content: '✓'; flex-shrink: 0; margin-top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-dim); color: var(--blue);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ── Code block ──────────────────────────────────────────────────────────────── */
.code-block {
  background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 24px 28px; font-family: var(--mono); font-size: 13px; color: var(--text2);
  overflow-x: auto; line-height: 1.8;
}
.code-block .c-blue  { color: var(--blue); }
.code-block .c-teal  { color: var(--teal); }
.code-block .c-green { color: #4ade80; }
.code-block .c-amber { color: #fbbf24; }
.code-block .c-comment { color: var(--text3); }

/* ── Accordion ───────────────────────────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 8px; }
.accordion-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 15px;
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--surface2); }
.accordion-header .icon { font-size: 18px; transition: transform var(--transition); }
.accordion-item.open .accordion-header .icon { transform: rotate(45deg); }
.accordion-body { display: none; padding: 0 24px 24px; color: var(--text2); font-size: 15px; line-height: 1.75; }
.accordion-item.open .accordion-body { display: block; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand p { font-size: 14px; color: var(--text3); margin-top: 12px; max-width: 280px; line-height: 1.7; }
.footer-col h5 { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text3); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--text2); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--blue); opacity: 1; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--border2);
  font-size: 13px; color: var(--text3);
}
.footer-bottom a { color: var(--text3); }
.footer-bottom a:hover { color: var(--blue); opacity: 1; }

/* ── Animations ──────────────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ── Glow border ─────────────────────────────────────────────────────────────── */
.glow-border { position: relative; }
.glow-border::before {
  content: ''; position: absolute; inset: -1px; border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, rgba(59,142,240,0.45), rgba(78,205,196,0.2), rgba(59,142,240,0.1));
  z-index: -1; opacity: 0; transition: opacity var(--transition);
}
.glow-border:hover::before { opacity: 1; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */

/* ─── Tablet wide: ≤1100px ─── */
@media (max-width: 1100px) {
  .hero-split { gap: 40px; }
  .hero-right img { max-width: 460px; }
  .nav-links a { padding: 7px 10px; font-size: 13px; }
}

/* ─── Tablet: ≤960px ─── */
@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr; gap: 40px;
    text-align: center; padding: 60px 24px;
  }
  .hero-left { align-items: center; }
  .hero-sub { max-width: 100%; }
  .hero-btns, .free-badges { justify-content: center; }
  .hero-right { justify-content: center; }
  .hero-right img { max-width: 440px; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 1 1 45%; min-width: 0; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:last-child,
  .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  /* Hide iso graphics at tablet — they need full desktop width */
  .iso-wrapper { display: none; }
}

/* ─── Phone: ≤720px ─── */
@media (max-width: 720px) {
  :root { --nav-h: 62px; }

  /* ── Layout ── */
  section       { padding: 60px 0; }
  section.tight { padding: 40px 0; }
  .container    { padding: 0 18px; }
  .container-sm { padding: 0 18px; }
  .section-head { margin-bottom: 40px; }

  /* ── Navigation ── */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 0 18px; }
  .nav-logo  { font-size: 18px; }
  .nav-logo img { width: 30px; height: 30px; }

  /* ── Mobile overlay menu ── */
  .mobile-menu {
    gap: 6px; padding: 24px 16px;
    justify-content: flex-start; padding-top: 32px;
  }
  .mobile-menu a {
    font-size: 20px; font-weight: 700;
    padding: 14px 20px; border-radius: var(--radius);
    width: 100%; max-width: 340px; margin: 0 auto;
  }
  .mobile-menu a:hover { background: rgba(59,142,240,0.1); }

  /* ── Hero ── */
  .hero { min-height: auto; }
  .hero-split {
    grid-template-columns: 1fr; gap: 30px;
    text-align: center; padding: 44px 18px 36px;
  }
  .hero-left { align-items: center; }
  .hero-sub  { max-width: 100%; margin-bottom: 24px; }
  .hero-btns {
    flex-direction: column; align-items: stretch;
    width: 100%; max-width: 300px; gap: 12px;
  }
  .hero-btns .btn { justify-content: center; width: 100%; }
  .free-badges    { justify-content: center; gap: 8px; }
  .hero-right {
    display: flex !important;
    justify-content: center; width: 100%;
  }
  .hero-right img {
    max-width: 280px; width: 80%;
    filter: drop-shadow(0 20px 50px rgba(10,60,180,0.55)) drop-shadow(0 0 40px rgba(59,142,240,0.28));
    animation: float-img 7s ease-in-out infinite;
  }
  .hero-scroll { display: none; }

  /* Bubbles — scale positions for narrow viewport */
  .bubble { opacity: 0.7; }

  /* ── Grids ── */
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  /* Inline 2-col grids not covered by class-based rules */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  /* Terminal CTA box — tighten padding */
  .terminal-cta-box { padding: 24px 18px !important; }
  /* Terminal CTA button — block, full-width, text wraps */
  .terminal-cta-box .btn {
    display: block; width: 100%; text-align: center;
    white-space: normal; word-break: break-word;
    box-sizing: border-box;
  }
  /* Episode entry cards — readable font sizes on mobile */
  .ep-entries > div { padding: 16px !important; }
  .ep-entries > div > div { font-size: 14px !important; margin-bottom: 7px !important; line-height: 1.55 !important; }

  /* ── Stats ── */
  .stats-bar { flex-direction: column; border-radius: var(--radius); }
  .stat-item {
    border-right: none  !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 24px 20px; min-width: auto; flex: 1;
  }
  .stat-item:last-child { border-bottom: none !important; }
  .stat-num   { font-size: 2.2rem; }
  .stat-label { font-size: 12px; }

  /* ── Cards ── */
  .card { padding: 22px 18px; }
  .card-icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 14px; }

  /* ── Callout ── */
  .callout { padding: 22px 20px; }

  /* ── CTA ── */
  .cta-section { padding: 44px 20px; border-radius: 16px; }

  /* ── Page hero ── */
  .page-hero { padding: calc(var(--nav-h) + 40px) 0 48px; }

  /* ── Buttons — minimum 44px touch target ── */
  .btn     { min-height: 44px; }
  .btn-lg  { padding: 14px 26px; font-size: 16px; }
  .btn-sm  { padding: 10px 18px; min-height: 40px; }

  /* ── Forms — 16px prevents iOS auto-zoom ── */
  .form-row { grid-template-columns: 1fr; }
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: 1; }
  .footer-bottom {
    flex-direction: column; align-items: center;
    text-align: center; gap: 8px;
  }
  footer { padding: 44px 0 24px; }

  /* ── Code blocks — horizontal scroll on mobile ── */
  .code-block {
    font-size: 11.5px; padding: 14px 16px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }

  /* ── Accordion ── */
  .accordion-header { font-size: 14px; padding: 16px 18px; }
  .accordion-body   { padding: 0 18px 18px; font-size: 14px; }

  /* ── Timeline ── */
  .timeline { padding-left: 22px; }

  /* ── Isometric graphics ── */
  .iso-wrapper { display: none !important; }

  /* ── Feature strip ── */
  .feature-strip { padding: 16px 18px; gap: 12px; }
  .feature-strip-body h4 { font-size: 15px; }
}

/* ─── Small phone: ≤480px ─── */
@media (max-width: 480px) {
  .container    { padding: 0 14px; }
  .container-sm { padding: 0 14px; }
  .nav-inner    { padding: 0 14px; }

  /* ── Typography ── */
  .display { font-size: 2.1rem; letter-spacing: -1.5px; }
  .h1      { font-size: 1.8rem;  letter-spacing: -1px; }
  .h2      { font-size: 1.4rem; }
  .lead    { font-size: 0.95rem; }

  /* ── Hero ── */
  .hero-split { padding: 38px 14px 30px; gap: 24px; }
  .hero-right img { max-width: 220px; width: 84%; }
  .hero-eyebrow-pill { font-size: 11px; padding: 4px 12px; }
  .hero-title { margin-bottom: 16px; }
  .hero-btns  { max-width: 260px; }

  /* ── Cards ── */
  .card         { padding: 18px 14px; }
  .cta-section  { padding: 32px 14px; }

  /* ── Badges & pills ── */
  .free-badges { flex-direction: column; align-items: center; }
  .free-badge  { font-size: 11px; padding: 5px 12px; }
  .condition-pill { font-size: 12px; padding: 5px 12px; }

  /* ── Spacing ── */
  .section-head { margin-bottom: 32px; }
  .card-icon    { margin-bottom: 12px; }

  /* ── Footer ── */
  .footer-col h5 { margin-bottom: 10px; }
  .footer-col ul { gap: 8px; }

  /* ── Buttons ── */
  .btn-lg { padding: 13px 20px; font-size: 15px; }

  /* ── Stats ── */
  .stat-num { font-size: 2rem; }

  /* ── Accordion ── */
  .accordion-header { padding: 14px 16px; }
  .accordion-body   { padding: 0 16px 16px; }
}
