/* ==========================================================================
   RegionMirror — shared stylesheet
   Plain CSS, no build step. Loaded by index.html, blog.html,
   blog/why-i-built-regionmirror.html, and privacy-policy.html.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */

:root {
  /* Canvas */
  --bg-0: #070709;
  --bg-1: #111117;
  --bg-2: #1a1a22;
  --border: #26262e;
  --border-strong: #34343e;

  /* Liquid-glass materials */
  --glass: rgba(255, 255, 255, 0.042);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --glass-nav: rgba(13, 13, 18, 0.55);
  --rim-hi: rgba(255, 255, 255, 0.16);
  --rim-mid: rgba(255, 255, 255, 0.035);
  --rim-lo: rgba(255, 255, 255, 0.08);

  /* Text (all AA+ on bg-0) */
  --text-1: #f5f5f7;
  --text-2: #b8b8c4;
  --text-3: #8b8b96;

  /* Brand purple */
  --accent: #b19cd9;
  --accent-hover: #cdbbee;
  --accent-muted: rgba(177, 156, 217, 0.12);

  /* Region blue — reserved for the "shared region" motif (matches the
     app's blue share-window border). Never used on buttons. */
  --blue: #0a84ff;
  --blue-text: #64b1ff;
  --blue-glow: rgba(10, 132, 255, 0.3);

  /* Buttons: lavender fill + near-black text (~8.5:1) */
  --btn-primary-bg: var(--accent);
  --btn-primary-fg: #16101f;

  /* Type scale */
  --fs-display: clamp(2.5rem, 5.4vw, 3.9rem);
  --fs-h2: clamp(1.65rem, 3.2vw, 2.3rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-caption: 0.8125rem;

  /* Layout */
  --section-pad: clamp(4.5rem, 10vw, 7.5rem);
  --container: 1120px;
  --container-narrow: 740px;
  --container-wide: 1240px;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.25, 0.5, 1);

  /* Layered elevation */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.35), 0 16px 48px rgba(0, 0, 0, 0.45);
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
}

/* --- Base --------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* keep anchors clear of the floating nav */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Aurora depth field — two soft color pools + a faint film-grain layer.
   Pure CSS/SVG, zero network requests. */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42% 34% at 24% 12%, rgba(177, 156, 217, 0.11), transparent 70%),
    radial-gradient(36% 30% at 78% 6%, rgba(10, 132, 255, 0.07), transparent 70%),
    radial-gradient(50% 40% at 50% 108%, rgba(177, 156, 217, 0.05), transparent 70%);
}

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

::selection {
  background: rgba(177, 156, 217, 0.35);
  color: var(--text-1);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  border: 2px solid var(--bg-0);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

h1,
h2,
h3,
h4 {
  color: var(--text-1);
  line-height: 1.2;
}

h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 650;
  letter-spacing: -0.022em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-1);
  color: var(--text-1);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
  z-index: 200;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* --- Layout helpers ------------------------------------------------------ */

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.container-narrow {
  width: min(var(--container-narrow), 100% - 3rem);
  margin-inline: auto;
}

.container-wide {
  width: min(var(--container-wide), 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

/* Uniform canvas — hierarchy comes from glass, light, and whitespace */
.section-alt {
  background: transparent;
  border: 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head p {
  margin-top: 0.9rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* Glass chip (hero badge) */
.chip {
  display: inline-flex;
  align-items: center;
  margin-top: 1.15rem; /* rides below the display board */
  gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-2);
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(177, 156, 217, 0.9);
}

@media (prefers-reduced-motion: no-preference) {
  .chip .dot {
    animation: chip-pulse 2.6s ease-in-out infinite;
  }

  @keyframes chip-pulse {
    0%,
    100% {
      box-shadow: 0 0 4px rgba(177, 156, 217, 0.5);
    }

    50% {
      box-shadow: 0 0 12px rgba(177, 156, 217, 1);
    }
  }
}

.small {
  font-size: var(--fs-small);
}

.muted {
  color: var(--text-3);
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
    transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.08s;
}

.btn-primary {
  background: linear-gradient(180deg, #cbb9ea 0%, #a68dd4 100%);
  color: var(--btn-primary-fg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(177, 156, 217, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #d8caf2 0%, #b39cdf 100%);
  color: var(--btn-primary-fg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.3),
    0 10px 32px rgba(177, 156, 217, 0.32);
}

.btn-secondary {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.btn-secondary:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-1);
}

.btn-sm {
  padding: 0.5rem 1.05rem;
  font-size: var(--fs-small);
}

/* --- Navbar --------------------------------------------------------------- */

.navbar {
  position: sticky;
  top: 14px;
  z-index: 100;
}

.navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 58px;
  padding-inline: 1.4rem 0.5rem;
  max-width: 880px;
  margin-inline: auto;
  background: var(--glass-nav);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.055), var(--shadow-1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-right: auto;
}

.nav-logo:hover {
  color: var(--text-1);
  text-decoration: none;
}

.nav-logo img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-1);
  cursor: pointer;
  padding: 0.55rem;
  margin-right: 0.35rem;
  border-radius: 999px;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
}

.nav-toggle svg {
  display: block;
}

/* --- Cards ---------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--glass);
  border: 0;
  border-radius: var(--radius-l);
  padding: 1.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 1px 2px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out);
}

/* Rim light: 1px gradient border drawn with a masked overlay */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--rim-hi) 0%, var(--rim-mid) 45%, var(--rim-lo) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.35s var(--ease-out);
}

/* Cursor-tracking glow (position fed by script.js as --mx / --my) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -20%),
      rgba(177, 156, 217, 0.075), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.3), 0 20px 48px rgba(0, 0, 0, 0.38);
}

.card:hover::before {
  opacity: 1;
}

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

.card > * {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: var(--fs-small);
  color: var(--text-2);
}

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

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

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

/* --- Hero ------------------------------------------------------------------ */

.hero {
  padding-block: 0.5rem var(--section-pad);
  text-align: center;
}

/* --- RM signal (searchlight projecting the logo on the night sky) ---------- */

.signal-sky {
  position: relative;
  height: clamp(220px, 25vw, 320px);
  margin-top: -38px; /* sky tucks behind the nav, with 0.5in of air below the pill */
  margin-bottom: 0.5rem;
  pointer-events: none;
  perspective: 900px;
  z-index: 0;
}

@media (max-width: 640px) {
  .signal-sky {
    margin-top: 14px; /* keep the projection clear of the nav pill */
    height: 210px;
  }
}

.signal-atmo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* three.js rendition of the signal scene (js/three-hero.js). The canvas is
   injected at runtime; .three-on swaps the SVG fallback out once WebGL is
   actually rendering. */
.signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.signal-sky.three-on .signal-atmo,
.signal-sky.three-on .signal-mark {
  display: none;
}

/* Full-page ambient particle field (three.js). Sits with the aurora layers,
   behind all content. */
.ambient3d {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* The projected emblem, hovering in the pool of light.
   Kept as HTML so it gets a true 3D perspective tilt. */
.signal-mark {
  position: absolute;
  left: 50%;
  top: 47.5%; /* matches the disc center (152/320) in the SVG */
  width: clamp(64px, 8vw, 100px);
  height: auto;
  overflow: visible;
  opacity: 0.85; /* a projection on the clouds, not a solid object */
  transform: translate(-50%, -50%) rotateX(16deg) rotateY(-8deg);
  filter: drop-shadow(0 0 18px rgba(201, 178, 239, 0.45))
    drop-shadow(0 0 55px rgba(169, 143, 214, 0.35));
}

.signal-mark .holo-text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, sans-serif;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1px;
}

/* Searchlight ignition: the cone extends up from its source, the pool blooms
   when the light arrives, the clouds catch it, then the emblem materializes. */
@media (prefers-reduced-motion: no-preference) {
  .signal-beams {
    transform-box: fill-box;
    transform-origin: 100% 100%; /* the searchlight aperture, lower right */
    animation: beam-grow 1.8s var(--ease-out) 0.2s both,
      signal-breathe 6.5s ease-in-out 3.2s infinite;
  }

  @keyframes beam-grow {
    from {
      transform: scale(0.05);
      opacity: 0;
    }

    25% {
      opacity: 1;
    }

    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  .signal-disc {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: disc-in 1s var(--ease-out) 1.75s both,
      signal-breathe 6.5s ease-in-out 3.2s infinite;
  }

  @keyframes disc-in {
    from {
      opacity: 0;
      transform: scale(0.6);
    }

    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes signal-breathe {
    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0.82;
    }
  }

  .signal-clouds {
    animation: clouds-in 1.4s ease-out 1.95s both,
      cloud-drift 26s ease-in-out 3.2s infinite alternate;
  }

  @keyframes clouds-in {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes cloud-drift {
    from {
      transform: translateX(-12px);
    }

    to {
      transform: translateX(12px);
    }
  }

  .signal-mark {
    animation: mark-in 1.2s var(--ease-out) 2.1s both,
      holo-flicker 3.6s linear 3.4s infinite,
      mark-hover 7s ease-in-out 3.4s infinite;
  }

  @keyframes mark-in {
    from {
      opacity: 0;
    }

    to {
      opacity: 0.85;
    }
  }

  /* A surge of light leaves the searchlight, rides the cone, and passes
     through the hologram. The pulse and the logo flare share one 3.6s
     clock (same duration + delay) so the hit lands exactly on arrival. */
  .beam-pulse {
    animation: beam-pulse-travel 3.6s linear 3.4s infinite;
  }

  @keyframes beam-pulse-travel {
    0% {
      opacity: 0;
      transform: translate(0, 0);
    }

    4% {
      opacity: 0.9;
    }

    26% {
      opacity: 0.85;
      transform: translate(-368px, -150px);
    }

    34% {
      opacity: 0;
      transform: translate(-470px, -192px);
    }

    100% {
      opacity: 0;
      transform: translate(-470px, -192px);
    }
  }

  /* The hologram flares as the surge passes through it, then settles */
  @keyframes holo-flicker {
    0%,
    26% {
      opacity: 0.85;
    }

    30% {
      opacity: 1;
    }

    33% {
      opacity: 0.62;
    }

    36% {
      opacity: 0.96;
    }

    39% {
      opacity: 0.74;
    }

    44%,
    100% {
      opacity: 0.85;
    }
  }

  /* Gentle wobble only — the panel stays locked to the frustum rays */
  @keyframes mark-hover {
    0%,
    100% {
      transform: translate(-50%, -50%) rotateX(16deg) rotateY(-8deg);
    }

    50% {
      transform: translate(-50%, -52.5%) rotateX(14deg) rotateY(-6deg);
    }
  }

  /* Each star twinkles on its own randomized cycle (per-star CSS vars) */
  .signal-stars .tw {
    animation: star-twinkle var(--twd, 4s) ease-in-out var(--twl, 0s) infinite;
  }

  @keyframes star-twinkle {
    0%,
    100% {
      opacity: var(--two, 0.7);
    }

    50% {
      opacity: calc(var(--two, 0.7) * 0.25);
    }
  }

  /* Scanlines roll upward like a projected raster */
  .holo-scan {
    animation: holo-scan-roll 1.4s linear 3.4s infinite;
  }

  @keyframes holo-scan-roll {
    from {
      transform: translateY(0);
    }

    to {
      transform: translateY(-5px);
    }
  }

  /* Panel sweep rides the same 3.6s clock as the beam pulse: it enters from
     the right edge as the surge arrives and exits left as the flare settles */
  .holo-sweep {
    animation: holo-sweep-pass 3.6s linear 3.4s infinite;
  }

  @keyframes holo-sweep-pass {
    0%,
    24% {
      transform: skewX(-16deg) translateX(0);
    }

    36% {
      transform: skewX(-16deg) translateX(-210px);
    }

    100% {
      transform: skewX(-16deg) translateX(-210px);
    }
  }

  /* Searchlight glare on the parapet: ignites as the growing cone clears the
     roofline (~0.55s into beam-grow), then answers each surge on the shared
     3.6s clock — brightening just as the pulse crosses the rooftops */
  .src-glow {
    animation: src-ignite 0.7s var(--ease-out) 0.55s both,
      src-flare 3.6s linear 3.4s infinite;
  }

  @keyframes src-ignite {
    from {
      opacity: 0;
    }

    to {
      opacity: 0.8;
    }
  }

  @keyframes src-flare {
    0%,
    4% {
      opacity: 0.8;
    }

    9% {
      opacity: 1;
    }

    16%,
    100% {
      opacity: 0.8;
    }
  }

  /* Aircraft-warning beacon on the tall tower — slow throb */
  .beacon {
    animation: beacon-blink 3s ease-in-out 1.1s infinite;
  }

  @keyframes beacon-blink {
    0%,
    100% {
      opacity: 0.1;
    }

    12%,
    26% {
      opacity: 1;
    }

    48% {
      opacity: 0.12;
    }
  }

  /* A couple of windows switch off and back on across the night */
  .win-t1 {
    animation: win-cycle 21s linear 7s infinite;
  }

  .win-t2 {
    animation: win-cycle 27s linear 15s infinite;
  }

  @keyframes win-cycle {
    0%,
    63.6% {
      opacity: var(--wo, 0.7);
    }

    64%,
    77.6% {
      opacity: 0;
    }

    78%,
    100% {
      opacity: var(--wo, 0.7);
    }
  }
}

.hero h1 {
  max-width: 820px;
  margin: 1rem auto 0; /* board sits tight under the city band */
  background: linear-gradient(180deg, #ffffff 55%, #c9bfe2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Visually hidden, still read by assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Display-board headline: the h1 carries a stable hidden tagline for search
   and screen readers; the visible board flips through product lines one
   character-flap at a time (split-flap style). Without JS or with reduced
   motion it stays a static gradient headline. */
.hero h1.hero-board {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text-1);
}

.board {
  display: block;
  background: linear-gradient(180deg, #ffffff 55%, #c9bfe2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.board--live {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text-1);
}

.bword {
  display: inline-block;
  perspective: 480px;
  white-space: nowrap;
}

/* Each character is its own cell. Solid fill, not gradient-clipped text:
   background-clip: text does not survive the compositing the transition
   effects force (chars render blank), so the live board approximates the
   static headline's gradient with a near-white fill and a lavender bloom. */
.bchar {
  display: inline-block;
  text-align: center;
  color: #f2eef8;
  text-shadow: 0 2px 22px rgba(177, 156, 217, 0.28);
}

/* Undecoded glyphs read as projection static: dimmer, lavender-shifted */
.bchar.scr {
  color: #b9a6e0;
  opacity: 0.72;
  text-shadow: 0 0 14px rgba(177, 156, 217, 0.45);
}

/* The board hosts the decode light-sweep */
.board {
  position: relative;
}

.board::after {
  content: "";
  position: absolute;
  inset: -6px 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg,
      transparent 38%,
      rgba(190, 165, 255, 0.1) 46%,
      rgba(255, 255, 255, 0.16) 50%,
      rgba(190, 165, 255, 0.1) 54%,
      transparent 62%);
  transform: translateX(-108%);
}

.hero .lede {
  max-width: 620px;
  margin: 1.4rem auto 0;
  font-size: 1.17rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.3rem;
}

.hero-note {
  margin-top: 1.1rem;
  font-size: var(--fs-caption);
  color: var(--text-3);
  letter-spacing: 0.01em;
}

.hero-visual {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

/* Staggered entrance for hero content */
@media (prefers-reduced-motion: no-preference) {
  .hero .chip,
  .hero h1,
  .hero .lede,
  .hero .hero-ctas,
  .hero .hero-note {
    opacity: 0;
    transform: translateY(14px);
    animation: hero-in 0.9s var(--ease-out) forwards;
  }

  .hero .chip {
    animation-delay: 0.08s; /* board leads now; chip follows it in */
  }

  .hero .lede {
    animation-delay: 0.16s;
  }

  .hero .hero-ctas {
    animation-delay: 0.24s;
  }

  .hero .hero-note {
    animation-delay: 0.32s;
  }

  @keyframes hero-in {
    to {
      opacity: 1;
      transform: none;
    }
  }

  .hero-visual .tilt-back {
    animation: monitor-in 1.1s var(--ease-out) 0.25s both,
      monitor-float 9s ease-in-out 1.4s infinite;
  }

  @keyframes monitor-in {
    from {
      opacity: 0;
      transform: rotateX(8deg) translateY(26px);
    }

    to {
      opacity: 1;
      transform: rotateX(8deg) translateY(0);
    }
  }

  @keyframes monitor-float {
    0%,
    100% {
      transform: rotateX(8deg) translateY(0);
    }

    50% {
      transform: rotateX(8deg) translateY(-7px);
    }
  }

  /* Holo-glitch out: the line tears into RGB-split slices and drops out.
     step-end timing makes the jumps discrete — signal loss, not a fade. */
  .board.is-glitch {
    animation: board-glitch 0.32s step-end forwards;
  }

  .board.is-glitch .bchar {
    text-shadow: 3px 0 rgba(255, 82, 118, 0.55), -3px 0 rgba(96, 168, 255, 0.55);
  }

  .board.is-glitch .bword:nth-child(odd) {
    transform: translateY(1.6px);
  }

  .board.is-glitch .bword:nth-child(even) {
    transform: translateY(-1.6px);
  }

  @keyframes board-glitch {
    0% {
      clip-path: inset(-8% 0 -8% 0);
      transform: translateX(0);
    }

    20% {
      clip-path: inset(10% 0 56% 0);
      transform: translateX(-7px);
    }

    40% {
      clip-path: inset(50% 0 16% 0);
      transform: translateX(6px);
    }

    60% {
      clip-path: inset(74% 0 2% 0);
      transform: translateX(-5px);
      opacity: 0.85;
    }

    80% {
      clip-path: inset(26% 0 42% 0);
      transform: translateX(8px);
    }

    100% {
      clip-path: inset(46% 0 46% 0);
      transform: translateX(0);
      opacity: 0;
    }
  }

  /* Decode-in: a locking glyph snaps bright (.hot, no transition) and eases
     back to rest over the base transition — flash-and-settle per character */
  .bchar {
    transition: color 0.24s var(--ease-out), text-shadow 0.24s var(--ease-out),
      transform 0.24s var(--ease-out), opacity 0.18s ease;
  }

  .bchar.hot {
    transition: none;
    color: #ffffff;
    transform: scale(1.16);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.8), 0 0 34px rgba(177, 156, 217, 0.6);
  }

  /* Light-sweep rides across the board while the glyphs lock left to right */
  .board.is-decode::after {
    animation: board-scan 0.78s linear forwards;
  }

  @keyframes board-scan {
    0% {
      opacity: 0;
      transform: translateX(-108%);
    }

    12% {
      opacity: 1;
    }

    88% {
      opacity: 1;
    }

    100% {
      opacity: 0;
      transform: translateX(108%);
    }
  }

  /* Brand line (RegionMirror): once it has decoded in, the whole word swells
     purple and settles back to white — a one-shot glow while this slide holds
     a beat longer than the rest. Delay lets the decode lock-flash settle
     first; 0%/100% match the resting .bchar style so it ends with no jump. */
  .board.is-brand .bchar {
    animation: brand-glow 2.6s ease-in-out 0.3s;
  }

  /* Peak tint stays in the site's lavender family: #b89ce6 is the beam's
     mid stop, and both halo colors are the accent RGBs used by the signal
     glows (177,156,217 / 169,143,214) */
  @keyframes brand-glow {
    0%,
    100% {
      color: #f2eef8;
      text-shadow: 0 2px 22px rgba(177, 156, 217, 0.28);
    }

    42%,
    58% {
      color: #b89ce6;
      text-shadow: 0 0 20px rgba(177, 156, 217, 0.95),
        0 0 48px rgba(169, 143, 214, 0.75);
    }
  }
}

/* --- Mockups ----------------------------------------------------------------
   Hand-built SVG depictions of a curved ultrawide monitor and meeting windows.
   Shared gradients + app-window symbols live in the hidden #mock-defs sprite
   in index.html; the hero and comparison SVGs instance them with <use>.
   ----------------------------------------------------------------------------- */

.mock-ultrawide {
  width: 100%;
  height: auto;
  display: block;
}

/* 3D scene treatment */

.scene-3d {
  perspective: 1500px;
}

.tilt-back {
  transform: rotateX(8deg);
  transform-origin: 50% 90%;
}

.tilt-left {
  transform: perspective(1100px) rotateY(-5deg) rotateX(3deg);
  transform-origin: 50% 50%;
}

.tilt-right {
  transform: perspective(1100px) rotateY(5deg) rotateX(3deg);
  transform-origin: 50% 50%;
}

.monitor-shadow {
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 110px rgba(177, 156, 217, 0.12));
}

/* Monitor hardware */

.mock-bezel {
  fill: #0d0d11;
  stroke: #3a3a46;
  stroke-width: 2;
}

.mock-stand {
  fill: #1a1a21;
  stroke: #2c2c36;
  stroke-width: 1;
}

.mock-floor {
  fill: #000;
  opacity: 0.5;
}

/* App-window mockup parts (used inside the SVG symbols) */

.app-frame {
  fill: #1b1b23;
  stroke: #3a3a47;
  stroke-width: 1;
}

.app-bar {
  fill: #23232c;
}

.app-side {
  fill: #1d1d25;
}

.app-inset {
  fill: #22222c;
}

.dot-r {
  fill: #ff5f57;
}

.dot-y {
  fill: #febc2e;
}

.dot-g {
  fill: #28c840;
}

/* Syntax-token bars and code text */

.tok-kw {
  fill: #c792ea;
}

.tok-fn {
  fill: #82aaff;
}

.tok-str {
  fill: #c3e88d;
}

.tok-num {
  fill: #f78c6c;
}

.tok-txt {
  fill: #a9a9b6;
}

.tok-cmt {
  fill: #62626e;
}

.code-text {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
}

.ui-text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, sans-serif;
}

.code-text .kw {
  fill: #c792ea;
}

.code-text .fn {
  fill: #82aaff;
}

.code-text .str {
  fill: #c3e88d;
}

.code-text .num {
  fill: #f78c6c;
}

.code-text .cmt {
  fill: #7b7b88;
}

.code-text .txt {
  fill: #d6d6dd;
}

.code-text .prompt {
  fill: #58e07d;
}

.app-grid {
  stroke: #2a2a34;
  stroke-width: 1;
  fill: none;
}

.panel-shadow {
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.mock-region-glow {
  fill: none;
  stroke: var(--blue-glow);
  stroke-width: 7;
}

.mock-region {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
}

.mock-handle {
  fill: var(--blue);
}

.mock-label-pill {
  fill: var(--bg-0);
  stroke: var(--blue);
  stroke-width: 1;
}

.mock-label {
  fill: var(--blue-text);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
}

/* Region draw-in on load (disabled under reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .mock-region {
    stroke-dasharray: 1640;
    stroke-dashoffset: 1640;
    animation: mock-draw 1.6s ease-out 0.3s forwards;
  }

  @keyframes mock-draw {
    to {
      stroke-dashoffset: 0;
    }
  }
}

/* Before/after comparison */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.compare-panel {
  position: relative;
  background: var(--glass);
  border: 0;
  border-radius: var(--radius-l);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 1px 2px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.25);
}

.compare-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--rim-hi) 0%, var(--rim-mid) 45%, var(--rim-lo) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
}

.compare-panel .eyebrow {
  margin-bottom: 0;
}

.compare-panel figcaption {
  font-size: var(--fs-small);
  color: var(--text-3);
}

/* Meeting-window mockup (Panel B), pure HTML/CSS */

.mock-meeting {
  background: #17171e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mock-meeting-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 30px;
  padding-inline: 0.7rem;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}

.mock-meeting-bar .traffic {
  display: flex;
  gap: 5px;
}

.mock-meeting-bar .traffic span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.mock-meeting-bar .traffic span:nth-child(1) {
  background: #ff5f57;
}

.mock-meeting-bar .traffic span:nth-child(2) {
  background: #febc2e;
}

.mock-meeting-bar .traffic span:nth-child(3) {
  background: #28c840;
}

.mock-meeting-bar .title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-meeting-content {
  flex: 1;
  margin: 0.7rem;
  border: 2px solid var(--blue);
  border-radius: var(--radius-s);
  background: #101015;
  overflow: hidden;
  min-height: 0;
}

.mock-meeting-content svg,
.mock-meeting-screen svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Panel A variant: the raw shared desktop, no blue frame */
.mock-meeting-screen {
  flex: 1;
  margin: 0.7rem;
  border-radius: var(--radius-s);
  background: #000;
  overflow: hidden;
  min-height: 0;
}

.mock-meeting-tray {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem;
}

.mock-meeting-tray span {
  width: 44px;
  height: 14px;
  border-radius: 7px;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  display: block;
}

/* --- How it works ------------------------------------------------------------ */

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

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.step img {
  margin-top: 1.1rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  width: 100%;
}

.step-note {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-note img {
  width: 260px;
  flex: none;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
}

/* --- Feature showcase (built-in toolkit) -------------------------------------- */

.showcase {
  display: grid;
  gap: clamp(2.75rem, 6vw, 4.5rem);
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

/* Alternate the image side row to row */
.showcase-row:nth-child(even) .showcase-media {
  order: 2;
}

.showcase-text h3 {
  font-size: 1.45rem;
  margin: 0.35rem 0 0.7rem;
}

.showcase-text p {
  color: var(--text-2);
}

/* Reusable macOS window frame for screenshots */
.window-frame {
  background: var(--bg-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 64px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.showcase-row:hover .window-frame {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 4px 10px rgba(0, 0, 0, 0.35), 0 32px 80px rgba(0, 0, 0, 0.55);
}

.window-frame .wf-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline: 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.window-frame .wf-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.window-frame .wf-bar i:nth-child(1) {
  background: #ff5f57;
}

.window-frame .wf-bar i:nth-child(2) {
  background: #febc2e;
}

.window-frame .wf-bar i:nth-child(3) {
  background: #28c840;
}

.window-frame img {
  display: block;
  width: 100%;
}

/* Keycap visual for the instant-start feature */
.keycap-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  text-align: center;
}

.keycaps {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.keycap {
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #32323e 0%, #1d1d25 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2.5px 0 #0c0c10,
    0 8px 18px rgba(0, 0, 0, 0.5);
  color: var(--text-1);
  font-size: 1.3rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-out);
}

.keycap-panel:hover .keycap {
  transform: translateY(1.5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 0 #0c0c10,
    0 5px 12px rgba(0, 0, 0, 0.5);
}

.keycap-plus {
  color: var(--text-3);
  font-size: 1.1rem;
}

.keycap-panel .caption {
  font-size: var(--fs-small);
  color: var(--text-2);
}

.keycap-panel .caption strong {
  color: var(--text-1);
}

/* --- Use cases ----------------------------------------------------------------- */

.usecases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.usecase h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

/* --- Demo embed ------------------------------------------------------------------ */

.demo-frame {
  position: relative;
  padding-bottom: calc(56.67% + 41px); /* Arcade responsive embed ratio */
  height: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.35), 0 28px 72px rgba(0, 0, 0, 0.5),
    0 0 90px rgba(177, 156, 217, 0.07);
}

.demo-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  color-scheme: light;
}

/* --- Pricing ---------------------------------------------------------------------- */

.pricing-wrap {
  position: relative;
}

/* Soft aurora pool behind the pricing card */
.pricing-wrap::before {
  content: "";
  position: absolute;
  inset: -60px -80px;
  background: radial-gradient(46% 60% at 50% 45%, rgba(177, 156, 217, 0.13), transparent 70%);
  pointer-events: none;
}

.pricing-card {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  padding: 2.75rem 2.25rem;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
}

.pricing-card:hover {
  transform: none;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 1rem 0 0.25rem;
  background: linear-gradient(180deg, #ffffff 40%, #c9bfe2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.pricing-card ul {
  list-style: none;
  margin: 1.4rem 0;
  display: grid;
  gap: 0.55rem;
  text-align: left;
  font-size: var(--fs-small);
}

.pricing-card ul li {
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.85em;
  height: 0.45em;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.pricing-badge {
  display: inline-block;
  margin-top: 1.2rem;
}

/* --- FAQ ------------------------------------------------------------------------ */

.faq {
  display: grid;
  gap: 0.8rem;
}

.faq details {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-m);
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background-color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.faq details:hover,
.faq details[open] {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Smooth expand where the browser supports it; instant elsewhere */
.faq details::details-content {
  opacity: 0;
  block-size: 0;
  overflow: clip;
  transition: content-visibility 0.35s allow-discrete,
    opacity 0.35s var(--ease-out), block-size 0.35s var(--ease-out);
}

.faq details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--text-1);
  position: relative;
  border-radius: inherit;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 120ms ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  padding: 0 1.4rem 1.2rem;
  font-size: var(--fs-small);
}

/* --- Final CTA / footer ------------------------------------------------------------ */

.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  background: linear-gradient(180deg, #ffffff 55%, #c9bfe2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.final-cta .btn {
  margin-top: 1.75rem;
}

.site-footer {
  position: relative;
  border: 0;
  padding: 2.75rem 0 3.25rem;
  font-size: var(--fs-small);
  color: var(--text-3);
}

/* Center-fading hairline */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 50%, transparent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-3);
}

.footer-links a:hover {
  color: var(--text-1);
}

/* --- Prose pages (blog post, privacy policy) ----------------------------------------- */

.prose {
  padding-block: 3.5rem var(--section-pad);
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2.2rem 0 0.8rem;
}

.prose h3 {
  margin: 1.8rem 0 0.6rem;
}

.prose p,
.prose li {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.prose .meta {
  color: var(--text-3);
  font-size: var(--fs-small);
  margin-bottom: 2rem;
}

/* Blog index cards */

.post-card {
  display: block;
  color: inherit;
}

.post-card:hover {
  text-decoration: none;
  color: inherit;
}

.post-card h3 {
  color: var(--accent);
}

.post-card .meta {
  font-size: var(--fs-caption);
  color: var(--text-3);
  margin-bottom: 0.6rem;
}

/* --- Responsive ------------------------------------------------------------------------ */

@media (max-width: 980px) {
  .grid-3,
  .grid-4,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .compare {
    grid-template-columns: 1fr;
  }

  .showcase-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Always show the visual first when stacked */
  .showcase-row:nth-child(even) .showcase-media {
    order: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    background: rgba(16, 16, 22, 0.92);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    backdrop-filter: blur(24px) saturate(1.5);
    border-radius: var(--radius-l);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow-2);
    padding: 0.6rem;
  }

  .nav-links.open {
    display: flex;
    animation: menu-in 0.25s var(--ease-out);
  }

  @keyframes menu-in {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .steps {
    grid-template-columns: 1fr;
  }

  /* Icon-only logo keeps the pill roomy for the Download CTA */
  .navbar-inner {
    gap: 0.75rem;
    padding-inline: 1rem 0.4rem;
  }

  .nav-logo-text {
    display: none;
  }

  .step-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-note img {
    width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Scroll reveal (classes applied by script.js only when motion is allowed;
       without JS everything renders visible) --------------------------------------- */

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--rv-delay, 0ms);
}

.rv-in {
  opacity: 1;
  transform: none;
}

/* --- Reduced motion ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   SEO / ad landing pages (body.lp) — three.js logo hero + tighter rhythm.
   Scoped to body.lp so the homepage keeps its roomier spacing.
   ========================================================================== */
.hero-logo {
  width: clamp(78px, 9vw, 108px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.35rem;
  filter: drop-shadow(0 8px 22px rgba(177, 156, 217, 0.28));
}

.hero-logo canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Landing hero has no signal-sky above it: give it real top air and trim the
   oversized bottom gap that assumed the sky graphic. */
body.lp .hero {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}

/* Tighten the vertical rhythm between landing-page sections. */
body.lp .section {
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
}

/* The problem/solution text blocks reuse .prose for its paragraph/list
   typography, but .prose carries its own large padding-block meant for the
   standalone blog article. Zero it here so it doesn't double up with the
   surrounding .section padding (that stacking was the big mid-section gap). */
body.lp .prose {
  padding-block: 0;
}
