/* ==========================================================================
   Your Name in Landsat — NASA-inspired styles
   Color system tuned to NASA brand: deep navy, NASA blue, NASA red
   ========================================================================== */

:root {
  --nasa-blue: #0b3d91;
  --nasa-blue-bright: #1f5fd3;
  --nasa-red: #fc3d21;
  --nasa-red-bright: #ff5a40;

  --space-0: #04081a;
  --space-1: #060d22;
  --space-2: #0a1430;
  --space-3: #11214a;
  --space-4: #1c3370;
  --space-5: #2c4a9a;

  --ink-0: #ffffff;
  --ink-1: #e9eef9;
  --ink-2: #b8c5e0;
  --ink-3: #7a8aae;
  --ink-4: #4a587a;

  --line: rgba(120, 150, 220, 0.18);
  --line-strong: rgba(160, 190, 255, 0.32);
  --glow: 0 0 40px rgba(31, 95, 211, 0.35);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;

  --font-display: "Inter Tight", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --max-w: 1280px;
}

* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
h1, h2, h3, h4, p, .eyebrow { overflow-wrap: break-word; word-wrap: break-word; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-1);
  background: var(--space-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--ink-1); text-decoration: none; }
a:hover { color: var(--ink-0); }
button { font: inherit; cursor: pointer; }

/* Tasteful keyword emphasis — bright + semibold, never crude bold */
strong, b { color: var(--ink-0); font-weight: 600; }
.lead strong, p strong { color: var(--ink-0); }
.muted strong { color: var(--ink-1); }

/* SEO content blocks */
.kw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.kw-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  background: rgba(6, 13, 34, 0.55);
}
.kw-card h3 { font-size: 16px; margin-bottom: 6px; }
.kw-card p  { font-size: 13.5px; margin: 0; color: var(--ink-2); }

.lang-strip {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.lang-chip {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(11, 61, 145, 0.16);
  font-size: 13px; color: var(--ink-2);
}
.lang-chip strong { color: var(--ink-0); }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 22px 22px 64px; background: rgba(6, 13, 34, 0.5);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--nasa-red); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  box-shadow: 0 0 0 4px rgba(252, 61, 33, 0.18);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); }

.related-line {
  font-size: 13px; color: var(--ink-3); margin-top: 18px;
  padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px;
}
.related-line strong { color: var(--ink-1); font-weight: 500; }

/* ===================== Background: stars + earth glow ====================== */
.space-bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(31, 95, 211, 0.35), transparent 60%),
    radial-gradient(900px 600px at 5% 110%, rgba(252, 61, 33, 0.18), transparent 60%),
    linear-gradient(180deg, #02061a 0%, #04081a 35%, #060d22 100%);
}
.space-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 27% 41%, #cfe0ff, transparent),
    radial-gradient(1px 1px at 73% 22%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 67%, #fff, transparent),
    radial-gradient(1px 1px at 41% 78%, #c0d4ff, transparent),
    radial-gradient(1px 1px at 9% 88%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 54% 12%, #fff, transparent),
    radial-gradient(1px 1px at 64% 55%, #cfe0ff, transparent),
    radial-gradient(1px 1px at 33% 8%, #fff, transparent),
    radial-gradient(1px 1px at 92% 36%, #fff, transparent),
    radial-gradient(1px 1px at 18% 64%, #b6c8ee, transparent),
    radial-gradient(1px 1px at 79% 84%, #fff, transparent);
  opacity: 0.85;
  animation: twinkle 9s ease-in-out infinite alternate;
}
@keyframes twinkle {
  0%   { opacity: 0.6; }
  100% { opacity: 0.95; }
}

/* ============================ Layout helpers =============================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px;
  font-weight: 600; color: var(--ink-2);
  padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(11, 61, 145, 0.18);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--nasa-red); box-shadow: 0 0 12px var(--nasa-red); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-0); margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-2); }
.lead { font-size: 18px; max-width: 60ch; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; font-size: 13px; }

/* ============================== Navigation ================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 8, 26, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav > .container { position: relative; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; color: var(--ink-0);
  min-width: 0;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 30%, #2c4a9a, #0b3d91 60%, #04122e 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 0 18px rgba(31,95,211,0.5);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px;
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,0.12) 6px 7px);
  border-radius: 50%;
  mask: radial-gradient(circle at 50% 50%, #000 60%, transparent 65%);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 60%, transparent 65%);
}
.brand-name { font-size: 15px; letter-spacing: 0.02em; white-space: nowrap; }
.brand-name b { color: var(--nasa-red); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,0.05); color: var(--ink-0); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04); color: var(--ink-1);
  border: 1px solid var(--line-strong); border-radius: 10px;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle svg { width: 20px; height: 20px; }

/* ================================ Buttons ================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--nasa-red);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(252,61,33,0); 
}
.btn-primary:hover { background: var(--nasa-red-bright); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(252, 61, 33, 0.35); }
.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--ink-1);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.45); }
.btn-ghost {
  background: transparent; color: var(--ink-2);
}
.btn-ghost:hover { color: var(--ink-0); background: rgba(255,255,255,0.04); }
.btn-blue {
  background: var(--nasa-blue); color: #fff;
}
.btn-blue:hover { background: var(--nasa-blue-bright); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(31,95,211,0.4); }
.btn-lg { padding: 16px 22px; font-size: 16px; border-radius: 12px; }
.btn-icon { padding: 10px; border-radius: 8px; }

/* =============================== Hero ===================================== */
.hero {
  padding: 80px 0 80px; position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; gap: 56px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: stretch;
}
.hero-grid > .hero-copy { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero h1 b { color: transparent; background: linear-gradient(135deg, #ff8a6f, var(--nasa-red), var(--nasa-blue-bright)); -webkit-background-clip: text; background-clip: text; }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.hero-trust {
  display: flex; gap: 18px; align-items: center;
  margin-top: 32px; color: var(--ink-3); font-size: 13px;
  border-top: 1px solid var(--line); padding-top: 18px;
  flex-wrap: wrap;
}
.hero-trust strong { color: var(--ink-1); font-weight: 600; }

/* ============================= Hero showcase =============================== */
.hero-card {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 300px at 70% -10%, rgba(31, 95, 211, 0.35), transparent 60%),
    linear-gradient(180deg, #061029 0%, #0a1a40 100%);
  box-shadow: var(--glow), inset 0 0 0 1px rgba(255,255,255,0.04);
  display: flex; flex-direction: column;
  min-height: 460px;
}
@media (max-width: 960px) { .hero-card { min-height: 380px; } }

.hero-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 26, 0.45);
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(232, 240, 255, 0.65);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-card-head .hc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71; box-shadow: 0 0 10px #2ecc71;
  display: inline-block; margin-right: 8px; vertical-align: middle;
}
.hero-card-head .hc-title { color: var(--ink-1); font-weight: 600; }
.hero-card-head .hc-meta  { color: var(--nasa-red-bright); font-weight: 700; }

.hero-card-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 18px;
  flex: 1; min-height: 0;
}
.hero-card-inner .hc-tile {
  border-radius: 8px; overflow: hidden; position: relative;
  background: #0a1530; border: 1px solid var(--line);
}

.hero-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 26, 0.45);
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(232, 240, 255, 0.55);
}
.hero-card-foot .mono { font-family: inherit; }
.hero-card-foot strong { color: var(--ink-1); font-weight: 600; }

/* ============================ Features grid =============================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; background: linear-gradient(180deg, rgba(11,61,145,0.08), transparent 100%);
  transition: all 0.2s ease;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 14px; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(31, 95, 211, 0.18); color: var(--nasa-blue-bright);
  margin-bottom: 16px; border: 1px solid var(--line);
}

/* ============================ Section header =============================== */
.section-header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* ============================== Alphabet preview ========================== */
.alphabet-strip {
  display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px;
  background: rgba(6, 13, 34, 0.6);
}
@media (max-width: 760px) { .alphabet-strip { grid-template-columns: repeat(7, 1fr); } }
.alphabet-tile {
  aspect-ratio: 5/9; border-radius: 6px; overflow: hidden; position: relative;
  background: var(--space-2); border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.alphabet-tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.alphabet-tile-label {
  position: absolute; left: 6px; top: 6px; font-family: var(--font-mono);
  font-size: 11px; color: rgba(255,255,255,0.6); background: rgba(0,0,0,0.5);
  padding: 2px 6px; border-radius: 3px; letter-spacing: 0.1em;
}

/* =================================== FAQ ================================== */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 22px; background: rgba(6, 13, 34, 0.5);
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 600; color: var(--ink-1);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; color: var(--ink-3); transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 12px; }

/* =================================== CTA banner ============================ */
.cta-banner {
  border: 1px solid var(--line-strong); border-radius: 24px;
  padding: 56px; background:
    radial-gradient(800px 300px at 100% 0%, rgba(252, 61, 33, 0.15), transparent 60%),
    radial-gradient(800px 300px at 0% 100%, rgba(31, 95, 211, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(11, 61, 145, 0.18), rgba(4, 8, 26, 0.9));
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
@media (max-width: 760px) { .cta-banner { grid-template-columns: 1fr; padding: 32px; } }
.cta-banner h2 { font-size: clamp(28px, 4vw, 44px); }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ================================== Footer ================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px; color: var(--ink-3); font-size: 14px;
  background: rgba(4, 8, 26, 0.7);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: var(--ink-1); font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 12px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--ink-1); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}
.footer-disclaimer {
  margin-top: 12px; padding: 14px 16px; border: 1px dashed var(--line);
  border-radius: 10px; font-size: 12px; color: var(--ink-3); background: rgba(11,61,145,0.08);
}

/* ============================ Studio (interactive) ========================= */
.studio {
  min-height: 100vh; display: flex; flex-direction: column;
}
.studio-main {
  flex: 1; display: grid; grid-template-columns: 1fr 360px;
  gap: 0;
}
@media (max-width: 1100px) { .studio-main { grid-template-columns: 1fr; } }

.studio-canvas {
  display: flex; flex-direction: column; padding: 32px clamp(16px, 4vw, 48px);
  gap: 24px;
}
.input-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: rgba(6, 13, 34, 0.65); backdrop-filter: blur(8px);
  box-shadow: var(--glow);
}
.input-bar input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--ink-0); font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 32px);
  letter-spacing: 0.04em; font-weight: 600; padding: 12px 14px;
  text-transform: uppercase;
}
.input-bar input::placeholder { color: var(--ink-3); font-weight: 500; letter-spacing: 0.02em; }
.input-hint { color: var(--ink-3); font-size: 13px; padding: 0 4px; }

.studio-board {
  flex: 1; min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  background:
    radial-gradient(1000px 500px at 50% -20%, rgba(31, 95, 211, 0.18), transparent 60%),
    linear-gradient(180deg, #050a1f 0%, #04081a 100%);
  position: relative; overflow: hidden;
}
.studio-board::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}
.tiles-row {
  display: flex; gap: 6px; align-items: stretch; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 1;
}
.tile {
  position: relative; cursor: pointer;
  width: clamp(56px, 12vw, 120px);
  aspect-ratio: 5/9;
  border-radius: 6px; overflow: hidden;
  background: var(--space-2);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.tile.is-active { border-color: var(--nasa-red); box-shadow: 0 0 0 2px rgba(252,61,33,0.25), 0 12px 32px rgba(252,61,33,0.18); }
.tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.tile-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: var(--space-2);
}
.tile-fallback { position: absolute; inset: 0; }
.tile-letter-badge {
  position: absolute; left: 6px; top: 6px;
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.5); padding: 2px 6px; border-radius: 3px; letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.15);
}
.tile-shuffle {
  position: absolute; right: 6px; bottom: 6px;
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(0,0,0,0.55); color: #fff; border: 1px solid rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s ease;
}
.tile:hover .tile-shuffle, .tile.is-active .tile-shuffle { opacity: 1; }
.tile-shuffle:hover { background: var(--nasa-red); border-color: var(--nasa-red); }

.tile-space {
  width: clamp(28px, 6vw, 56px);
  background: transparent; border: 1px dashed rgba(120,150,220,0.18);
  cursor: default;
}
.tile-space:hover { transform: none; }

.studio-toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.studio-toolbar .spacer { flex: 1; }

/* ============================== Sidebar ================================== */
.studio-sidebar {
  border-left: 1px solid var(--line);
  padding: 28px clamp(16px, 2.6vw, 28px);
  background: rgba(4, 8, 26, 0.6); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 24px;
  min-width: 0;
}
@media (max-width: 1100px) { .studio-sidebar { border-left: none; border-top: 1px solid var(--line); } }
.sidebar-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-3); }
.tile-info {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  background: rgba(6, 13, 34, 0.7);
}
.tile-info h3 { margin-bottom: 6px; font-family: var(--font-display); }
.tile-info .coords { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); margin: 4px 0 12px; }
.tile-info .sat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  background: rgba(31, 95, 211, 0.18); color: var(--ink-1);
  border: 1px solid var(--line); font-family: var(--font-mono);
}

.variants-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.variant-card {
  position: relative; aspect-ratio: 5/9; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line); cursor: pointer; background: var(--space-2);
}
.variant-card.is-current { border-color: var(--nasa-red); }
.variant-card .vc-label {
  position: absolute; left: 6px; bottom: 6px; right: 6px;
  font-family: var(--font-mono); font-size: 10px; color: #fff;
  background: rgba(0,0,0,0.55); padding: 4px 6px; border-radius: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================== Modal ===================================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2,4,12,0.65); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  width: 100%; max-width: 520px;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: linear-gradient(180deg, #0a1432, #06102a);
  box-shadow: 0 28px 60px rgba(0,0,0,0.5), var(--glow);
  padding: 24px;
}
.modal h3 { font-size: 22px; margin-bottom: 8px; font-family: var(--font-display); }
.modal-close {
  background: transparent; border: none; color: var(--ink-3); font-size: 22px; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.modal-close:hover { color: var(--ink-0); background: rgba(255,255,255,0.06); }
.modal-row {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  background: rgba(0,0,0,0.3); margin-top: 12px;
}
.modal-row input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--ink-1); font-family: var(--font-mono); font-size: 13px;
}
.qrwrap {
  display: flex; align-items: center; justify-content: center;
  margin-top: 18px; padding: 16px; background: #fff; border-radius: 12px;
}
#qrcode canvas, #qrcode img { display: block; }

/* ============================== Toast ==================================== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(11, 61, 145, 0.95); color: #fff;
  padding: 12px 18px; border-radius: 10px; font-size: 14px;
  border: 1px solid var(--line-strong); box-shadow: 0 12px 36px rgba(0,0,0,0.4);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

/* ============================== Misc ===================================== */
.divider { height: 1px; background: var(--line); margin: 24px 0; border: none; }
.kbd {
  font-family: var(--font-mono); font-size: 11px;
  background: rgba(255,255,255,0.06); color: var(--ink-1);
  padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px;
}
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--ink-2);
  font-family: var(--font-mono);
}

/* ====================== Tablet (≤960) ====================== */
@media (max-width: 960px) {
  .container { padding: 0 20px; }

  /* Replace inline nav-links with a hamburger-driven dropdown */
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch;
    gap: 2px;
    padding: 12px 20px 16px;
    background: rgba(4, 8, 26, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    pointer-events: none;
  }
  body.nav-open .nav-links {
    max-height: 70vh; opacity: 1; pointer-events: auto;
  }
  .nav-links a {
    padding: 12px 14px; font-size: 15px; border-radius: 10px;
  }

  /* CTAs: drop the secondary one to keep the bar clean */
  .nav-cta .btn-secondary { display: none; }

  .section { padding: 72px 0; }
  .hero { padding: 56px 0 56px; }
}

/* ====================== Mobile (≤640) ====================== */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* Eyebrow chip — switch to inline-block so text wraps on word boundaries */
  .eyebrow {
    display: inline-flex;
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 2px;
    letter-spacing: 0.1em;
    white-space: normal;
    line-height: 1.4;
    padding: 8px 14px;
    font-size: 11px;
  }
  .eyebrow .dot { margin-right: 2px; }

  /* Hero copy + buttons stack full-width */
  .hero h1  { font-size: clamp(30px, 8vw, 44px); max-width: none; }
  .hero .lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 14px 18px; font-size: 15px; }

  .hero-trust { gap: 10px 14px; font-size: 12px; }
  .hero-trust span[aria-hidden] { display: none; }

  /* Hero card (live preview) */
  .hero-card { min-height: 320px; }
  .hero-card-head, .hero-card-foot { padding: 10px 12px; font-size: 10px; }
  .hero-card-inner { padding: 12px; gap: 4px; }

  /* Sections / typography */
  .section { padding: 56px 0; }
  h2 { font-size: clamp(26px, 6vw, 34px) !important; }

  /* Alphabet row gets tighter — 6 cols feels right at phone width */
  .alphabet-strip { grid-template-columns: repeat(6, 1fr) !important; }

  /* CTA banner / footer */
  .cta-banner { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr !important; }

  /* Studio surface */
  .studio-canvas { padding: 18px; }
  .input-bar { flex-wrap: wrap; }
  .input-bar input { min-width: 0; flex: 1 1 100%; }
  .input-bar .input-hint { display: none; }
}

/* ====================== Tiny phones (≤380) ====================== */
@media (max-width: 380px) {
  .nav-cta .btn { padding: 8px 12px; font-size: 13px; }
  .brand-name { font-size: 14px; }
  .brand-name b::before { content: ""; }
}
