/* ═══════════════════════════════════════════════════════════════════
   IMMERSE — Marketing Site Styles
   Theatrical aesthetic: dark warm background, bold serif display,
   restrained motion, generous spacing.
   ═══════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* TOKENS ────────────────────────────────────────────────────────── */
:root {
  /* warm, theatrical dark palette */
  --bg:           #0d0a07;
  --bg-elev:      #15110c;
  --bg-card:      #1a1510;
  --bg-card-hi:   #221b14;

  --ink:          #f4ead8;
  --ink-muted:    #a89c84;
  --ink-faded:    #6b6253;

  --amber-100:    #fef3c7;
  --amber-300:    #fcd34d;
  --amber-400:    #fbbf24;
  --amber-500:    #f59e0b;
  --amber-600:    #d97706;
  --amber-700:    #b45309;
  --amber-800:    #78350f;
  --amber-900:    #3b1d05;

  --rule:         rgba(244, 234, 216, 0.08);
  --rule-strong:  rgba(244, 234, 216, 0.15);

  --shadow-glow:  0 0 80px rgba(245, 158, 11, 0.15);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --max:          1280px;
  --pad-x:        clamp(1.25rem, 4vw, 3rem);
}

/* BASE ──────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'ss02';
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Soft grain overlay for theatrical texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.04;
  mix-blend-mode: overlay;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* SHARED LAYOUT ─────────────────────────────────────────────────── */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-header--center {
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-500);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--amber-800);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber-400);
}

/* NAVIGATION ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(13, 10, 7, 0.7);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--amber-400);
  transition: color 0.2s;
}
.brand:hover { color: var(--amber-300); }

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s;
  padding: 0.4rem 0;
  position: relative;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--ink);
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--amber-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  border: 1px solid var(--amber-800);
  border-radius: 999px;
  padding: 0.5rem 1.1rem !important;
  color: var(--amber-300) !important;
  background: rgba(245, 158, 11, 0.05);
  transition: all 0.2s;
}
.nav-cta:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--amber-600);
  color: var(--amber-100) !important;
}

/* HERO ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1100px;
  height: 1100px;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.15) 0%,
    rgba(217, 119, 6, 0.08) 30%,
    transparent 60%
  );
  filter: blur(80px);
  animation: breathe 12s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
}

.hero-eyebrow {
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.1s both;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-300);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--amber-700);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  position: relative;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-400);
  margin-right: 0.5rem;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--amber-500);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 7.5vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 2.25rem;
  font-feature-settings: 'ss01', 'ss02';
}

.hero-line {
  display: block;
  animation: fadeUp 1s both;
}
.hero-line:nth-child(1) { animation-delay: 0.2s; }
.hero-line:nth-child(2) { animation-delay: 0.35s; }
.hero-line:nth-child(3) { animation-delay: 0.5s; }

.hero-line--accent {
  color: var(--amber-400);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber-300);
  position: relative;
  display: inline-block;
}

.hero-lede {
  max-width: 38rem;
  margin: 0 auto 3rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-muted);
  animation: fadeUp 1s 0.6s both;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(4rem, 8vw, 6rem);
  animation: fadeUp 1s 0.75s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2.5rem;
  max-width: 880px;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
  animation: fadeUp 1s 0.9s both;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--amber-400);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faded);
  line-height: 1.5;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* BUTTONS ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.65rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.btn-primary {
  background: var(--amber-500);
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
}
.btn-primary:hover {
  background: var(--amber-400);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}
.btn-primary:hover .btn-icon { transform: translateY(2px); }

.btn-ghost {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--amber-600);
  color: var(--amber-200);
  background: rgba(245, 158, 11, 0.05);
}

/* PLATFORM SECTION ──────────────────────────────────────────────── */
.platform {
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--rule);
}

.platform-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 4rem 0 3rem;
  padding: 3rem 2rem;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 12px;
  position: relative;
}

.platform-diagram::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-700), transparent);
}

.diagram-stage {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.diagram-stage--stack {
  gap: 0.6rem;
}

.stage-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 0.25rem;
}

.stage-card {
  background: var(--bg-card);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.3s, transform 0.3s;
}
.stage-card:hover {
  border-color: var(--amber-700);
  transform: translateY(-2px);
}

.stage-card--accent {
  border-color: var(--amber-700);
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.08);
}

.stage-card--small {
  padding: 0.85rem 1rem;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--amber-400);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.stage-card--small .card-title {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card-body {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.diagram-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.flow-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-600), transparent);
  position: relative;
}
.flow-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid var(--amber-600);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.flow-line--alt {
  margin-top: 0.5rem;
}

.flow-label {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--amber-400);
  white-space: nowrap;
}

.diagram-flow--split {
  flex-direction: column;
  gap: 1.5rem;
}

.platform-note {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .platform-diagram {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .diagram-flow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }
}

/* FEATURES ──────────────────────────────────────────────────────── */
.features {
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--rule);
}

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

.feature {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.feature:hover {
  border-color: var(--amber-800);
  transform: translateY(-2px);
}

.feature--lg {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-card-hi), var(--bg-elev));
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--amber-500);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.feature-body {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  flex: 1;
}

.feature-code {
  margin-top: 1.5rem;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber-300);
  background: rgba(245, 158, 11, 0.06);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--amber-900);
  align-self: flex-start;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature--lg {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature--lg {
    grid-column: span 1;
  }
}

/* PRODUCTS ──────────────────────────────────────────────────────── */
.products {
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--rule);
  background: var(--bg-elev);
}

.products-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2.25rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.product:hover {
  border-color: var(--amber-700);
  transform: translateY(-3px);
}

.product--accent {
  background: linear-gradient(160deg, var(--bg-card-hi), var(--bg-card));
  border-color: var(--amber-800);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.06);
}
.product--accent::before {
  content: 'Core';
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--amber-400);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--amber-700);
  border-radius: 999px;
  text-transform: uppercase;
}

.product-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.product-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--amber-500);
  letter-spacing: 0.02em;
}

.product-platforms {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faded);
}

.product-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.product-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--amber-400);
  margin-bottom: 1.25rem;
}

.product-body {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--amber-300);
  background: rgba(245, 158, 11, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.product-points {
  margin-bottom: 1.75rem;
}

.product-points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}
.product-points li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--amber-500);
  font-weight: 600;
}

.link-arrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-400);
  border-bottom: 1px solid var(--amber-800);
  padding-bottom: 0.3rem;
  transition: all 0.2s;
}
.link-arrow:hover {
  color: var(--amber-300);
  border-bottom-color: var(--amber-500);
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .products-list {
    grid-template-columns: 1fr;
  }
}

/* AUDIENCE ──────────────────────────────────────────────────────── */
.audience {
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--rule);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.audience-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.audience-mark {
  display: inline-block;
  color: var(--amber-500);
  font-size: 1.1rem;
  margin-right: 0.5rem;
  font-family: var(--font-mono);
}

.audience-item h4 {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.audience-item p {
  margin-top: 0.6rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* CTA ───────────────────────────────────────────────────────────── */
.cta {
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--rule);
}

.cta-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(135deg, var(--bg-card-hi) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--amber-800);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.cta-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber-400);
}

.cta-body {
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 32rem;
}

.cta-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.cta-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 2.5rem;
  border-left: 1px solid var(--rule-strong);
}

.cta-channel {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faded);
}

.channel-link {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--amber-300);
  transition: color 0.2s;
}
.channel-link:hover {
  color: var(--amber-200);
}

@media (max-width: 800px) {
  .cta-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cta-aside {
    padding-left: 0;
    border-left: 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--rule-strong);
  }
}

/* FOOTER ────────────────────────────────────────────────────────── */
.footer {
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--amber-400);
  margin-bottom: 3rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--amber-300);
}

.footer-meta {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faded);
  letter-spacing: 0.05em;
}

.footer-version {
  color: var(--amber-500);
}

@media (max-width: 700px) {
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .footer-meta {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .nav-links a:not(.brand-text) {
    font-size: 0.7rem;
  }
  .nav-links {
    gap: 0.85rem;
  }
}

/* ACCESSIBILITY ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-glow { animation: none; }
}

::selection {
  background: var(--amber-600);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--amber-400);
  outline-offset: 3px;
  border-radius: 4px;
}
