/* ==========================================================================
   CTO Swarm — shared design system for the marketing site (www.ctoswarm.com)
   --------------------------------------------------------------------------
   Every page used to carry its own copy of this stylesheet inline. It now
   lives here once; pages keep only the rules unique to them.

   Palette, typography and 12px radius are unchanged from the original site —
   navy #1c2231, gold #FFD700, Geist. What changed is the execution: layered
   surfaces instead of flat fills, pill buttons (matching the Ghost theme at
   toolkit.ctoswarm.com), a glass header, real focus states, and motion that
   respects prefers-reduced-motion.
   ========================================================================== */

/* Variable font: 400-800 in one 57KB request instead of five static files
   from Google's CDN. Self-hosted, so no third-party request and no CLS on
   repeat visits. */
@font-face {
  font-family: Geist;
  src: url("../fonts/GeistVariable.woff2") format("woff2-variations"),
       url("../fonts/GeistVariable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ── TOKENS ─────────────────────────────────────────────────────────────── */

:root {
  /* Surfaces — unchanged hues, but now used as a deliberate elevation ramp */
  --bg:         #1c2231;
  --bg-dark:    #151c27;
  --bg-card:    #222a3e;
  --bg-card2:   #28324a;

  --accent:     #FFD700;
  --accent-dk:  #e6c200;
  --accent2:    #7c6fcd;   /* secondary badge hue, used on events */

  --text:       #f0f0f5;
  /* Was #8b8d9e — ~3.9:1 on the page background, under the 4.5:1 floor for
     body text. Nudged up; it still reads as "muted" against --text. */
  --text-muted: #a3a7bb;
  --text-dim:   #8b8d9e;   /* legal lines, captions — large or incidental only */

  --border:     #2e3a52;
  --border-soft: rgba(255, 255, 255, 0.07);

  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  18px;
  --radius-pill: 999px;

  /* Fluid type scale. clamp() everywhere so nothing steps at a breakpoint. */
  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.875rem);
  --step-0:  clamp(0.94rem, 0.91rem + 0.14vw, 1rem);
  --step-1:  clamp(1.05rem, 0.99rem + 0.28vw, 1.2rem);
  --step-2:  clamp(1.3rem, 1.17rem + 0.6vw, 1.6rem);
  --step-3:  clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  --step-4:  clamp(2rem, 1.5rem + 2.3vw, 3rem);
  --step-5:  clamp(2.2rem, 1.5rem + 3vw, 3.5rem);

  /* Spacing rhythm — section padding scales with the viewport */
  --section-y: clamp(56px, 7vw, 96px);
  --section-y-lg: clamp(72px, 9vw, 112px);
  --gutter: 24px;
  --wrap: 1120px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 28px 60px -24px rgba(0, 0, 0, 0.7);
  --glow-gold: 0 8px 28px -10px rgba(255, 215, 0, 0.55);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchors like #pricing used to land under the sticky header. */
  scroll-padding-top: 88px;
}

body {
  font-family: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  /* Glow layers sit behind everything and don't scroll — cheap depth that
     no single section has to own. */
  background-image:
    radial-gradient(900px 520px at 78% -6%, rgba(255, 215, 0, 0.07), transparent 62%),
    radial-gradient(760px 460px at 6% 12%, rgba(124, 111, 205, 0.07), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: inline-block; max-width: 100%; vertical-align: middle; }
ul { list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(255, 215, 0, 0.28); color: #fff; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #151c27;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ── BUTTONS ────────────────────────────────────────────────────────────── */

.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Gradient + inset highlight reads as a lit surface rather than a flat
     swatch, which is most of what dates the old buttons. */
  background: linear-gradient(180deg, #ffe14d 0%, var(--accent) 55%, var(--accent-dk) 100%);
  color: #14171f;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  padding: 12px 26px;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), var(--shadow-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), filter 0.16s var(--ease);
}
.btn-yellow:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), var(--glow-gold);
}
.btn-yellow:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn-outline:hover {
  background: var(--bg-card2);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  transform: translateY(-2px);
}

/* Full-width inside a pricing card; the plain button never stretches. */
.btn-block { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 0;
  transition: color 0.15s var(--ease), gap 0.15s var(--ease);
}
.btn-ghost:hover { color: var(--text); gap: 10px; }

/* ── HEADER ─────────────────────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
/* .is-scrolled is set by js/ctoswarm.js — the divider only appears once the
   page has moved, so the hero meets the header seamlessly at rest. */
header.is-scrolled {
  background: color-mix(in srgb, var(--bg-dark) 86%, transparent);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.9);
}
@supports not (backdrop-filter: blur(1px)) {
  header { background: var(--bg); }
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

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

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--accent); background: rgba(255, 215, 0, 0.09); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-login {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s var(--ease);
}
.nav-login:hover { color: var(--text); }

.btn-nav {
  background: linear-gradient(180deg, #ffe14d 0%, var(--accent) 55%, var(--accent-dk) 100%);
  color: #14171f;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), var(--glow-gold); }

/* Mobile menu. The old site simply hid .nav-links under 680px, leaving no
   way to reach Community / Events / Pricing on a phone. */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── BACKGROUND TEXTURE ─────────────────────────────────────────────────── */

/* The honeycomb nods at "swarm". It now fades out down the section instead of
   tiling edge to edge, so it reads as texture rather than wallpaper. */
.hex-pattern { position: relative; isolation: isolate; }
.hex-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34z' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3Cpath d='M28 100L0 84V50l28-16 28 16v34zM56 34L28 18V-16l28-16 28 16v34zM0 34L-28 18V-16l28-16 28 16v34z' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

/* ── SECTION FURNITURE ──────────────────────────────────────────────────── */

.section-title {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Banded sections: gradient fill + hairline rules, replacing the old flat
   fill with two hard 1px borders. */
.band {
  background: linear-gradient(180deg, var(--bg-card) 0%, color-mix(in srgb, var(--bg-card) 62%, var(--bg)) 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.band-dark {
  background: linear-gradient(180deg, var(--bg-dark) 0%, color-mix(in srgb, var(--bg-dark) 80%, #0d1118) 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* ── SURFACE / CARD ─────────────────────────────────────────────────────── */

/* One card treatment shared by benefits, inside, events and plans. The
   ::before draws a hairline that's brighter at the top edge — a lit bevel,
   which is what separates a 2026 card from a 2021 one. */
.surface {
  position: relative;
  background: linear-gradient(160deg, var(--bg-card) 0%, color-mix(in srgb, var(--bg-card) 78%, var(--bg-dark)) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 42%);
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
}
.surface-hover:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 215, 0, 0.08);
}

/* Icon tile shared by every feature card */
.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(255, 215, 0, 0.18), rgba(255, 215, 0, 0.06));
  border: 1px solid rgba(255, 215, 0, 0.16);
  color: var(--accent);
}
.icon-tile svg { width: 18px; height: 18px; }

/* Pill badge — hero eyebrow, plan label, event type */
.pill,
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 215, 0, 0.10);
  border: 1px solid rgba(255, 215, 0, 0.22);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
/* Short labels only — a long one (the hero's founding-members note) has to be
   free to wrap, or it sets the min-content width of its grid column. */
.pill { white-space: nowrap; }
.pill svg,
.hero-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── HERO (centred variant: community, events, pricing) ─────────────────── */

.hero {
  padding: clamp(64px, 8vw, 96px) var(--gutter) clamp(64px, 8vw, 88px);
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: var(--step-5);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-actions .btn-yellow { font-size: 1rem; padding: 14px 30px; }

/* ── FAQ (community, pricing) ───────────────────────────────────────────── */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.faq-question:hover h3 { color: var(--accent); }

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.15s var(--ease);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease), color 0.15s var(--ease);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }

/* grid-template-rows 0fr -> 1fr animates to the answer's real height. The old
   max-height:300px clipped any answer that ran long on a narrow screen. */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
/* The inner wrapper is the grid item and carries no padding of its own, so it
   collapses to exactly 0. min-height:0 because grid items default to
   min-height:auto and would otherwise refuse to shrink below their content. */
.faq-answer-inner { overflow: hidden; min-height: 0; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-bottom: 22px;
  max-width: 68ch;
  text-wrap: pretty;
}

/* ── CLOSING CTA ────────────────────────────────────────────────────────── */

.final-cta,
.closing-cta {
  position: relative;
  padding: var(--section-y-lg) var(--gutter);
  text-align: center;
  background:
    radial-gradient(620px 300px at 50% 0%, rgba(255, 215, 0, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-dark) 0%, #11161f 100%);
  border-top: 1px solid var(--border-soft);
}

.final-cta h2,
.closing-cta h2 {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 14px;
}

.final-cta p,
.closing-cta p {
  font-size: var(--step-0);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 34px;
  line-height: 1.7;
  text-wrap: pretty;
}

.final-cta-note,
.closing-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.closing-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.closing-cta .btn-yellow,
.closing-cta-actions .btn-yellow { width: auto; font-size: 1rem; padding: 14px 32px; }

.closing-secondary {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--text-muted) 45%, transparent);
  transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}
.closing-secondary:hover { color: var(--text); text-decoration-color: currentColor; }

/* ── PROSE (privacy, terms) ─────────────────────────────────────────────── */

.prose-section { padding: clamp(56px, 7vw, 80px) var(--gutter) var(--section-y-lg); }
.prose-wrap { max-width: 760px; margin: 0 auto; }

.prose-title {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 12px;
}

.prose-date { font-size: 0.95rem; color: var(--text-dim); }

.prose-block { margin-bottom: 44px; }

.prose-block h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.prose-block p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
  text-wrap: pretty;
}
.prose-block p:last-child { margin-bottom: 0; }

.prose-block ul {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.prose-block li::marker { color: var(--accent); }

.prose-block strong { color: var(--text); font-weight: 600; }

.prose-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 215, 0, 0.4);
  transition: text-decoration-color 0.15s var(--ease);
}
.prose-block a:hover { text-decoration-color: currentColor; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */

footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #10141d 100%);
  border-top: 1px solid var(--border-soft);
  padding: var(--section-y) var(--gutter) 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  max-width: var(--wrap);
  margin: 0 auto 48px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s var(--ease);
}
.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--text); }

/* Privacy and terms stack their legal line rather than splitting it. */
.footer-bottom-stack { flex-direction: column; text-align: center; gap: 8px; }

/* ── SCROLL REVEAL ──────────────────────────────────────────────────────── */

/* Opt-in per element. js/ctoswarm.js adds .is-visible as each enters the
   viewport; if the script never runs, the .no-js rule below leaves everything
   visible, so content is never hidden by a failed asset. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

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

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; order: 3; }
  .nav-right { order: 2; }
  .nav-right .nav-login { display: none; }

  .nav-links {
    position: absolute;
    inset: 68px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px var(--gutter) 20px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 0.95rem; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .btn-yellow:hover, .btn-outline:hover, .surface-hover:hover, .btn-nav:hover { transform: none; }
}
