/* ═══════════════════════════════════════════════════════════════
   ADNU READER WEBSITE — adnu.ca/reader
   Shared stylesheet used by index.html (this file only — advanced.html,
   lite.html, and signup.html currently keep their own inline <style>
   blocks and are not yet wired to this file).

   Design: Deep navy · Green/teal accent · Modern editorial
   Fonts:  Inter (display/body) · DM Mono (numbers, code, timestamps)
   Author: Solen / ADNU Books  ·  June 2026

   ── TABLE OF CONTENTS ──────────────────────────────────────────
   1.  Design tokens (:root variables)
   2.  Global resets & base element styles
   3.  Navigation bar
   4.  Mobile menu (hamburger + full-screen overlay)
   5.  Hero (headline, sub-text, CTA buttons)
   6.  Hero video background + gradient overlay + preloader
   7.  Section common styles (eyebrow / headline / lead, shared
       by every content section below)
   8.  Reader Lite section (feature cards + live iframe demo)
   9.  Live reader iframe frame (browser-chrome styling)
   10. Advanced CMS section (feature cards + CMS demo embed)
   11. Plan comparison table
   12. Contact section
   13. Footer
   14. Animation system (scroll-reveal, floats, line-draw)
   15. Responsive breakpoints (1024px tablet, 768px / 480px / 400px
       mobile — kept at the bottom so later rules correctly override
       earlier desktop-first rules)
   ════════════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ───────────────────────────────────────────
   All colors, fonts, spacing, and timing values used across the site
   live here as CSS custom properties. Change a value once, it updates
   everywhere that variable is referenced. ─────────────────────── */
:root {
  --c-base: #03080f;
  --c-surface: #111520;
  --c-surface-2: #181d2a;
  --c-teal: #2a2e38;
  --c-teal-mid: #363a47;
  --c-green: #3dd68c;
  --c-green-2: #39ff7e;
  --c-grad: linear-gradient(90deg, #3dd68c, #39ff7e);
  --c-green-dim: #1fa85e;
  --c-green-glow: rgba(61, 214, 140, 0.12);
  --c-text: #ffffff;
  --c-text-mid: #b0b8c8;
  --c-text-dim: #5a6070;
  --c-border: rgba(61, 214, 140, 0.18);
  --c-blue: #4ab3d6;
  --c-blue-dim: rgba(74, 179, 214, 0.1);
  --c-blue-brd: rgba(74, 179, 214, 0.25);
  --c-border-dim: rgba(255, 255, 255, 0.09);

  --f-display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --f-mono: 'DM Mono', monospace;

  --nav-h: 72px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --t-fast: 0.15s ease;
  --t-mid: 0.3s ease;
  --t-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── 2. GLOBAL RESETS & BASE ELEMENTS ───────────────────────────
   Browser default spacing/sizing stripped out, then sane defaults
   applied to raw HTML tags (links, buttons, inputs, scrollbar). ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: var(--f-body);
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: var(--f-body);
}

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

::-webkit-scrollbar-track {
  background: var(--c-base);
}

::-webkit-scrollbar-thumb {
  background: var(--c-green-dim);
  border-radius: 3px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ─── 3. NAVIGATION BAR ───────────────────────────────────────────
   Fixed header strip. .scrolled is toggled by JS once the page has
   scrolled past the hero, swapping to a more opaque background so
   text underneath doesn't show through. ──────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: rgba(3, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(61, 214, 140, 0.15);
  transition: background var(--t-mid), box-shadow var(--t-mid);
}

#nav.scrolled {
  background: rgba(3, 8, 15, 0.97);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(1);
}

.nav-logo-divider {
  width: 1px;
  height: 28px;
  background: rgba(61, 214, 140, 0.3);
}

.nav-logo-sub {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}


/* ─── 5. HERO ─────────────────────────────────────────────────────
   Full-viewport intro section. Layout/copy styles here; the video
   background, gradient overlay, and preloader have their own section
   immediately below since they're a self-contained visual system. ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 40px 80px;
}

/* ─── 6. HERO VIDEO BACKGROUND ───────────────────────────────────
   Stacking order (z-index): video (0) → gradient overlay (1) →
   particle canvas (2) → text content (3, set inline in the HTML).

   #hero-overlay uses two pseudo-elements layered on top of each
   other rather than one gradient, because the legibility problem
   has two different shapes:
     ::before — horizontal left-to-right fade, dark on the left where
                the headline sits, fading to transparent on the right
                where the video itself is the visual interest
     ::after  — vertical top/bottom vignette, keeping the nav bar and
                CTA buttons readable regardless of what's playing
                behind them at that moment
   Both layers get re-tuned per breakpoint further down — see the
   responsive section near the bottom of this file for the tablet/
   mobile/small-mobile variants of each. ──────────────────────── */
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  filter: blur(1px);
  transition: opacity 1.2s ease;
}

#hero-video.ready {
  opacity: 1;
}

/* Dark overlay — horizontal left shadow + soft vignette */
#hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Layer 1: horizontal left-to-centre shadow */
#hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.90) 0%,
      rgba(0, 0, 0, 0.80) 15%,
      rgba(0, 0, 0, 0.62) 30%,
      rgba(0, 0, 0, 0.35) 46%,
      rgba(0, 0, 0, 0.10) 58%,
      rgba(0, 0, 0, 0.00) 66%);
}

/* Layer 2: top vignette + strong bottom ramp covering sub-text and CTAs */
#hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(3, 8, 15, 0.50) 0%,
      rgba(3, 8, 15, 0.00) 22%,
      rgba(3, 8, 15, 0.00) 52%,
      rgba(3, 8, 15, 0.45) 68%,
      rgba(3, 8, 15, 0.72) 84%,
      rgba(3, 8, 15, 0.85) 100%);
}

/* Preloader */
#hero-preloader {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--c-base);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

#hero-preloader.done {
  opacity: 0;
}

.preloader-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(61, 214, 140, 0.15);
  border-top-color: #3dd68c;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Canvas sits above video, below overlay content */
#hero-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  z-index: 2;
}

/* Responsive object-position */
@media(max-width:768px) {
  #hero-video {
    object-position: 60% center;
  }
}

@media(max-width:480px) {
  #hero-video {
    object-position: 70% center;
  }
}

/* ── Tablet only (769px–1024px): text still left-aligned but video
   is more centred, so widen the horizontal shadow to ~65%.
   Explicitly scoped with min-width so it NEVER affects mobile. ── */
@media(min-width:769px) and (max-width:1024px) {
  #hero-overlay::before {
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.78) 18%,
        rgba(0, 0, 0, 0.58) 36%,
        rgba(0, 0, 0, 0.28) 54%,
        rgba(0, 0, 0, 0.00) 66%);
  }

  #hero-overlay::after {
    background: linear-gradient(180deg,
        rgba(3, 8, 15, 0.55) 0%,
        rgba(3, 8, 15, 0.05) 25%,
        rgba(3, 8, 15, 0.05) 65%,
        rgba(3, 8, 15, 0.65) 100%);
  }
}

/* ── Mobile: text stacks full-width over the video.
   ::before covers full width heavily — video is behind ALL text.
   ::after holds dark through the entire middle zone where sub-text lives,
   only brightening slightly at the very centre of the hero. ── */
@media(max-width:768px) {
  #hero-overlay::before {
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.96) 0%,
        rgba(0, 0, 0, 0.90) 18%,
        rgba(0, 0, 0, 0.78) 38%,
        rgba(0, 0, 0, 0.60) 58%,
        rgba(0, 0, 0, 0.42) 76%,
        rgba(0, 0, 0, 0.28) 100%);
  }

  #hero-overlay::after {
    background: linear-gradient(180deg,
        rgba(3, 8, 15, 0.72) 0%,
        rgba(3, 8, 15, 0.52) 18%,
        rgba(3, 8, 15, 0.40) 38%,
        rgba(3, 8, 15, 0.48) 58%,
        rgba(3, 8, 15, 0.68) 76%,
        rgba(3, 8, 15, 0.88) 100%);
  }
}

/* ── Small mobile (≤480px): maximum coverage — the entire hero is
   a text canvas. Both layers stay heavily dark across the full height
   and width so every element from eyebrow to CTA is clearly legible. ── */
@media(max-width:480px) {
  #hero-overlay::before {
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.97) 0%,
        rgba(0, 0, 0, 0.92) 20%,
        rgba(0, 0, 0, 0.82) 42%,
        rgba(0, 0, 0, 0.65) 64%,
        rgba(0, 0, 0, 0.48) 82%,
        rgba(0, 0, 0, 0.32) 100%);
  }

  #hero-overlay::after {
    background: linear-gradient(180deg,
        rgba(3, 8, 15, 0.80) 0%,
        rgba(3, 8, 15, 0.60) 15%,
        rgba(3, 8, 15, 0.50) 35%,
        rgba(3, 8, 15, 0.55) 55%,
        rgba(3, 8, 15, 0.72) 75%,
        rgba(3, 8, 15, 0.92) 100%);
  }
}


/* Hero text content — small label, big headline, sub-paragraph,
   and the two call-to-action buttons. */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, #3dd68c, #39ff7e);
}

.hero-headline {
  font-family: var(--f-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  color: #ffffff;
  max-width: 700px;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-headline em {
  font-style: italic;
  color: var(--c-green);
  display: block;
}

.hl-line {
  display: block;
}

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: linear-gradient(90deg, #3dd68c, #39ff7e);
  color: #03080f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(57, 255, 126, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: transparent;
  color: var(--c-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: 1px solid rgba(61, 214, 140, 0.18);
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.btn-secondary:hover {
  background: var(--c-green-glow);
  border-color: rgba(61, 214, 140, 0.4);
  transform: translateY(-2px);
}

/* ─── 7. SECTION COMMON ──────────────────────────────────────────
   Shared building blocks reused by every content section below
   (Reader Lite, Advanced CMS, Contact, etc.): the small green
   "eyebrow" label, the big headline, and the lead paragraph. ──── */
section {
  position: relative;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3dd68c;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, #3dd68c, #39ff7e);
}

.section-headline {
  font-family: var(--f-display);
  font-size: clamp(28px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 16px;
}

.section-headline em {
  font-style: italic;
  color: var(--c-green);
}

.section-lead {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  max-width: 580px;
  margin-bottom: 52px;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 0
  }

  100% {
    background-position: 300% 0
  }
}

.accent-rule {
  width: 100%;
  height: 1px;
  margin: 80px 0;
  opacity: 0.55;
  background: linear-gradient(90deg, transparent 0%, #3dd68c 20%, #39ff7e 40%, rgba(255, 255, 255, 0.35) 55%, #3dd68c 70%, transparent 100%);
  background-size: 300% 100%;
  animation: gradientFlow 6s linear infinite;
}

/* ─── 8. READER LITE SECTION ─────────────────────────────────────
   Two-column layout: feature-card list on the left, live working
   reader demo embedded on the right via iframe. The iframe itself
   is styled separately in the next section. ──────────────────── */
#lite {
  padding: 100px 0;
}

.lite-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.lite-layout>.reader-col {
  display: flex;
  flex-direction: column;
}

.lite-features-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.feature-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color var(--t-mid), background var(--t-mid);
}

.feature-item:hover {
  border-color: rgba(74, 179, 214, 0.3);
  background: rgba(74, 179, 214, 0.04);
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--c-blue);
}

.feature-body h4 {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.feature-body p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.lite-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 22px;
  background: rgba(74, 179, 214, 0.08);
  border: 1px solid rgba(74, 179, 214, 0.3);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-blue);
}

.lite-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-blue);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.6);
  }
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.tech-tag {
  padding: 5px 12px;
  background: rgba(74, 179, 214, 0.07);
  border: 1px solid rgba(74, 179, 214, 0.3);
  border-radius: 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.06em;
}



#lite .lite-eyebrow {
  color: var(--c-blue);
}

#lite .lite-eyebrow::before {
  background: linear-gradient(90deg, var(--c-blue), #7dd3f0);
}

#lite .section-headline em {
  color: var(--c-blue);
  -webkit-text-fill-color: var(--c-blue);
  background: none;
}



/* ─── 9. LIVE READER IFRAME FRAME ────────────────────────────────
   The browser-chrome look (title bar + traffic-light-style dots,
   rounded frame) wrapped around the actual <iframe> showing the
   live Reader Lite demo. Purely decorative — the iframe content
   itself is a separate HTML file loaded inside it. ───────────── */
/* Inspired by portfolio window style: traffic lights left, Fullscreen btn right, no center label */
.reader-frame-wrap {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
}

.reader-frame {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--c-border-dim), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.reader-titlebar {
  height: 44px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border-dim);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  position: relative;
}

/* Traffic lights — left, decorative */
.tls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* traffic light colors removed */

/* Fullscreen button — right */
.reader-fs-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(74, 179, 214, 0.08);
  border: 1px solid rgba(74, 179, 214, 0.25);
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.reader-fs-btn:hover {
  background: rgba(74, 179, 214, 0.18);
  border-color: rgba(74, 179, 214, 0.5);
}

.reader-fs-btn svg {
  width: 12px;
  height: 12px;
}

.reader-iframe {
  display: block;
  width: 100%;
  height: 900px;
  min-height: 480px;
  border: none;
  background: var(--c-base);
}

/* Fullscreen modal for reader */
#reader-fs-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(3, 8, 15, 0.96);
  flex-direction: column;
  opacity: 0;
  transition: opacity var(--t-mid);
}

#reader-fs-modal.open {
  display: flex;
  opacity: 1;
}

.fs-modal-bar {
  height: 52px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border-dim);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  flex-shrink: 0;
}

.fs-modal-tls {
  display: flex;
  gap: 7px;
  align-items: center;
}

.fs-close-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(74, 179, 214, 0.08);
  border: 1px solid rgba(74, 179, 214, 0.25);
  border-radius: var(--r-sm);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
  cursor: pointer;
  transition: background var(--t-fast);
}

.fs-close-btn:hover {
  background: rgba(74, 179, 214, 0.2);
}

.fs-reader-iframe {
  display: block;
  width: 100%;
  flex: 1;
  border: none;
}

/* ─── 10. ADVANCED CMS SECTION ───────────────────────────────────
   Mirrors the Reader Lite section's structure: feature-card grid,
   then the live CMS admin console embedded via iframe below it.
   Card grid is 3-up desktop / 2-up tablet / 1-up mobile — see the
   responsive section for the breakpoint rules. ───────────────── */
#advanced {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(167, 139, 250, 0.04) 40%, rgba(74, 179, 214, 0.03) 70%, transparent 100);
}

#advanced .section-headline em {
  background: linear-gradient(90deg, #a78bfa, #4ab3d6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#advanced .section-eyebrow {
  color: #a78bfa;
}

#advanced .section-eyebrow::before {
  background: linear-gradient(90deg, #a78bfa, #4ab3d6);
}

.advanced-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.advanced-header .section-eyebrow {
  justify-content: center;
}

.advanced-header .section-eyebrow::before {
  display: none;
}

.advanced-header .section-lead {
  margin: 0 auto;
  text-align: center;
}

.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 20px;
  margin-bottom: 22px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a78bfa;
}

.advanced-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 60px;
}

.adv-card {
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-mid), transform var(--t-mid);
}

.adv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity var(--t-mid);
}

.adv-card:nth-child(1)::before,
.adv-card:nth-child(4)::before {
  background: linear-gradient(90deg, #a78bfa, #7dd3f0);
}

.adv-card:nth-child(2)::before,
.adv-card:nth-child(5)::before {
  background: linear-gradient(90deg, #4ab3d6, #3dd68c);
}

.adv-card:nth-child(3)::before,
.adv-card:nth-child(6)::before {
  background: linear-gradient(90deg, #3dd68c, #a78bfa);
}

.adv-card:hover {
  border-color: rgba(74, 179, 214, 0.3);
  transform: translateY(-4px);
}

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

.adv-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
}

.adv-card:nth-child(1) .adv-card-icon,
.adv-card:nth-child(4) .adv-card-icon {
  color: #a78bfa;
}

.adv-card:nth-child(2) .adv-card-icon,
.adv-card:nth-child(5) .adv-card-icon {
  color: #4ab3d6;
}

.adv-card:nth-child(3) .adv-card-icon,
.adv-card:nth-child(6) .adv-card-icon {
  color: #3dd68c;
}

.adv-card h4 {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.adv-card p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
}

.advanced-preview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  position: relative;
}

.preview-image-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
  background: rgba(255, 255, 255, 0.02);
}

.preview-image-card.span-row {
  grid-row: 1/3;
}

.preview-image-card .img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 15, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--t-mid);
}

.preview-image-card:hover .img-overlay {
  opacity: 1;
}

.img-overlay-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cms-mock {
  width: 100%;
  min-height: 340px;
  background: #070d1a;
  display: flex;
  overflow: hidden;
}

.cms-sidebar {
  width: 52px;
  background: #040910;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.cms-sb-icon {
  width: 20px;
  height: 20px;
  opacity: 0.3;
  color: var(--c-green);
}

.cms-sb-icon.active {
  opacity: 1;
}

.cms-main {
  flex: 1;
  padding: 14px;
  overflow: hidden;
}

.cms-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.cms-tab {
  padding: 4px 10px;
  font-family: var(--f-mono);
  font-size: 8px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  color: rgba(61, 214, 140, 0.35);
}

.cms-tab.active {
  background: rgba(61, 214, 140, 0.12);
  color: var(--c-green);
}

.cms-title-bar {
  height: 6px;
  width: 60%;
  background: rgba(61, 214, 140, 0.3);
  border-radius: 2px;
  margin-bottom: 10px;
}

.cms-row {
  display: flex;
  gap: 6px;
  margin-bottom: 7px;
}

.cms-cell {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cms-cell.green-hi {
  border-color: rgba(61, 214, 140, 0.2);
  background: rgba(61, 214, 140, 0.04);
}

.cms-cell.w2 {
  flex: 2;
}

.cms-stat-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.cms-stat {
  flex: 1;
  height: 40px;
  background: rgba(74, 179, 214, 0.08);
  border-radius: 4px;
  border-top: 2px solid var(--c-green);
}

.admin-mock {
  width: 100%;
  min-height: 155px;
  background: #05101f;
  padding: 14px;
}

.admin-input-row {
  height: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  margin-bottom: 8px;
}

.admin-btn-mock {
  width: 70px;
  height: 22px;
  background: rgba(61, 214, 140, 0.25);
  border-radius: 3px;
  border: 1px solid rgba(61, 214, 140, 0.5);
  margin-top: 6px;
}

.preview-lock-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(3, 8, 15, 0.85);
  border: 1px solid rgba(61, 214, 140, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-lock-overlay svg {
  width: 14px;
  height: 14px;
  color: var(--c-green);
}

/* ─── 11. PLAN COMPARISON TABLE ──────────────────────────────────
   Side-by-side feature comparison between Reader Lite (free) and
   Reader Advanced (paid tiers). Scrolls horizontally on narrow
   screens rather than collapsing, so columns stay aligned. ───── */
#compare {
  padding: 100px 0;
}

.compare-header {
  text-align: center;
  margin-bottom: 56px;
}

.compare-header .section-eyebrow {
  justify-content: center;
}

.compare-header .section-eyebrow::before {
  display: none;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.compare-table thead tr th {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid rgba(61, 214, 140, 0.15);
}

.compare-table thead th:first-child {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  width: 40%;
}

.tier-col-head {
  background: var(--c-surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.tier-col-head.green-tier {
  border-top: 2px solid var(--c-green);
}

.tier-col-head.teal-tier {
  border-top: 2px solid var(--c-green);
}

.tier-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.tier-label.green {
  color: var(--c-green);
}

.tier-label.teal {
  color: #4ab3d6;
}

.tier-desc {
  font-size: 12px;
  color: var(--c-text-mid);
}

.compare-table tbody tr td {
  padding: 13px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
  color: var(--c-text-mid);
  vertical-align: middle;
}

.compare-table tbody tr td:first-child {
  color: #ffffff;
}

.compare-table tbody tr td:not(:first-child) {
  text-align: center;
  background: var(--c-surface);
}

.check-yes {
  color: var(--c-green);
  font-size: 16px;
}

.check-no {
  color: var(--c-text-dim);
  font-size: 16px;
  opacity: 0.4;
}

.check-teal {
  color: #4ab3d6;
  font-size: 16px;
}

/* ─── 12. CONTACT SECTION ────────────────────────────────────────
   Simple two-column layout: brief copy on the left, contact form
   on the right. Form submission handling lives in the page's
   inline <script>, not in this stylesheet. ───────────────────── */
#contact {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(74, 179, 214, 0.03) 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-aside h3 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 18px;
}

.contact-aside h3 em {
  font-style: italic;
  color: var(--c-green);
}

.contact-aside p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text-mid);
  margin-bottom: 36px;
}


.form-row {
  margin-bottom: 20px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-md);
  color: #fff;
  font-size: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(61, 214, 140, 0.4);
  box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-honeypot {
  display: none;
  position: absolute;
  left: -9999px;
}

/* Plan selector cards (order-form "Choose Plan" grid). Base appearance
   lives here (not inline on the labels) so the .selected class below can
   actually override border/background — inline styles on the elements
   would otherwise always beat an external class rule. */
.plan-opt {
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: var(--r-md);
  padding: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}
.plan-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.plan-opt:hover {
  border-color: rgba(61,214,140,0.4);
}
.plan-opt.lite-tier {
  border-color: rgba(61,214,140,0.35);
  background: rgba(61,214,140,0.04);
}
.plan-opt.selected {
  border-color: var(--c-green);
  background: rgba(61,214,140,0.05);
  box-shadow: inset 0 0 0 3px rgba(61,214,140,0.05);
}

.form-submit {
  width: 100%;
  padding: 14px;
  margin-top: 24px;
  background: var(--c-green);
  color: var(--c-base);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-submit:hover {
  background: #5aebb0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 214, 140, 0.3);
}

.form-submit:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.form-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  display: none;
}

.form-msg.success {
  background: rgba(40, 202, 65, 0.1);
  color: #5ee874;
  border: 1px solid rgba(40, 202, 65, 0.2);
}

.form-msg.error {
  background: rgba(255, 80, 80, 0.1);
  color: #ff8080;
  border: 1px solid rgba(255, 80, 80, 0.2);
}

.recaptcha-notice {
  font-size: 11px;
  color: var(--c-text-dim);
  line-height: 1.5;
  margin-top: 16px;
}

.recaptcha-notice a {
  color: var(--c-green);
}

/* ─── 13. FOOTER ──────────────────────────────────────────────── */
#footer {
  padding: 56px 40px 36px;
  border-top: 1px solid var(--c-border-dim);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-img {
  height: 24px;
  width: auto;
  filter: brightness(0.7);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--c-green);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--c-border-dim);
}

.footer-copy {
  font-size: 12px;
  color: var(--c-text-dim);
}

.footer-copy a {
  color: var(--c-green);
}

.footer-tagline {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* ─── 14. ANIMATION SYSTEM ───────────────────────────────────────
   Scroll-triggered reveals (.reveal and variants — JS adds .visible
   via IntersectionObserver when an element enters the viewport),
   plus small ambient float/line-draw animations used in a few
   spots above. Respects prefers-reduced-motion at the very bottom
   of the responsive section. ──────────────────────────────────── */

/* Base reveal — fade + lift */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.reveal-d1,
.reveal-left-d1,
.reveal-right-d1,
.reveal-scale-d1 {
  transition-delay: 0.08s;
}

.reveal-d2,
.reveal-left-d2,
.reveal-right-d2,
.reveal-scale-d2 {
  transition-delay: 0.16s;
}

.reveal-d3,
.reveal-left-d3,
.reveal-right-d3,
.reveal-scale-d3 {
  transition-delay: 0.24s;
}

.reveal-d4,
.reveal-left-d4,
.reveal-right-d4,
.reveal-scale-d4 {
  transition-delay: 0.32s;
}

.reveal-d5,
.reveal-left-d5,
.reveal-right-d5,
.reveal-scale-d5 {
  transition-delay: 0.40s;
}

.reveal-d6 {
  transition-delay: 0.48s;
}

/* Per-line headline animation handled by .reveal class */

/* Floating parallax layer */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Feature card hover lift */
.feature-item {
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 214, 140, 0.3);
  background: rgba(61, 214, 140, 0.04);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Adv card hover */
.adv-card {
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.adv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 179, 214, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.adv-card::before {
  transition: opacity 0.3s ease;
}

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

/* Section background parallax orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.bg-orb-green {
  background: radial-gradient(ellipse, rgba(61, 214, 140, 0.07) 0%, transparent 70%);
}

.bg-orb-blue {
  background: radial-gradient(ellipse, rgba(74, 179, 214, 0.07) 0%, transparent 70%);
}

/* Number counter animation */
.count-up {
  display: inline-block;
}

/* Progress bar animation */
.anim-bar {
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-bar.visible {
  width: var(--bar-w, 100%);
}

/* Glowing accent pulse */
@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(61, 214, 140, 0);
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 24px 4px rgba(61, 214, 140, 0.2);
    opacity: 0.85;
  }
}

.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

/* Floating animation for hero elements */
@keyframes floatA {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatB {

  0%,
  100% {
    transform: translateY(-6px);
  }

  50% {
    transform: translateY(6px);
  }
}

.float-a {
  animation: floatA 6s ease-in-out infinite;
}

.float-b {
  animation: floatB 8s ease-in-out infinite;
}

/* Line draw animation */
@keyframes drawLine {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.draw-line {
  transform: scaleX(0);
  transform-origin: left;
  animation: drawLine 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.draw-line.paused {
  animation-play-state: paused;
}

.draw-line.running {
  animation-play-state: running;
}

/* ─── 15. RESPONSIVE BREAKPOINTS ─────────────────────────────────
   Site is built desktop-first, so these are all max-width overrides
   layered on top of the desktop rules above. Ordered widest to
   narrowest:
     1024px → tablet (also where the hamburger menu takes over
               from the inline nav-links)
     768px  → standard mobile
     480px  → small phones
     400px  → very small phones
   Mobile menu styling lives inline within this section (see the
   note above .nav-hamburger) since it's only ever relevant here.
   prefers-reduced-motion sits at the very end, disabling all
   animation/transition durations for users who've requested it
   at the OS level. ─────────────────────────────────────────────── */
@media(max-width:1024px) {
  .lite-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .reader-frame-wrap {
    position: static;
  }

  .advanced-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .advanced-preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-image-card.span-row {
    grid-row: auto;
  }
}

@media(max-width:768px) {
  .container {
    padding: 0 20px;
  }

  .advanced-cards {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row-split {
    grid-template-columns: 1fr;
  }

  .reader-iframe {
    height: 672px;
    min-height: 530px;
  }
}

@media(max-width:480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media(max-width:480px) {
  .container {
    padding: 0 18px;
  }
}

@media(max-width:400px) {
  .container {
    padding: 0 14px;
  }

  .section {
    padding: 60px 0;
  }
}

.adv-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media(max-width:1024px) {
  .adv-teaser-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media(max-width:1024px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

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


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

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-mid);
  transition: color var(--t-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #3dd68c, #39ff7e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-blue);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.btn-nav {
  padding: 9px 22px;
  background: linear-gradient(90deg, #3dd68c, #39ff7e);
  color: #03080f !important;
  border-radius: var(--r-sm);
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transition: background var(--t-fast) !important;
}

.btn-nav:hover {
  background: linear-gradient(90deg, #4aedaa, #52ff96) !important;
}

.btn-nav::after {
  display: none !important;
}

/* ─── 4. MOBILE MENU ──────────────────────────────────────────────
   Kept here near the responsive rules rather than up by the main NAV
   section since it only ever applies below the 1024px breakpoint —
   grouping it with its trigger media query avoids hunting through
   two places to understand when it's active.

   Hamburger button: three equal-width bars; .open adds the X-cross
   transform via rotate + translate on bars 1 and 3, fades bar 2. ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 25px;
  height: 25px;
  padding: 3px;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  z-index: 1002;
  position: relative;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, width 0.3s ease;
  transform-origin: center;
  width: 100%;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  width: 100%;
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 100%;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 100%;
}

/* MOBILE MENU */
/* Full-screen overlay menu (opacity-fade pattern, not slide-down).
   JS toggles display:flex + .open; the staggered nth-child transition
   delays on .mm-link below make each link fade in slightly after
   the previous one once the menu opens. */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(3, 8, 15, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mm-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 480px;
}

.mm-link {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-display, var(--f-body));
  font-size: clamp(24px, 7vw, 36px);
  font-weight: 700;
  font-style: normal;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}

#mobile-menu.open .mm-link {
  opacity: 1;
  transform: translateX(0);
}

#mobile-menu.open .mm-link:nth-child(1) {
  transition-delay: 0.05s;
}

#mobile-menu.open .mm-link:nth-child(2) {
  transition-delay: 0.10s;
}

#mobile-menu.open .mm-link:nth-child(3) {
  transition-delay: 0.15s;
}

#mobile-menu.open .mm-link:nth-child(4) {
  transition-delay: 0.20s;
}

#mobile-menu.open .mm-link:nth-child(5) {
  transition-delay: 0.25s;
}

#mobile-menu.open .mm-link:nth-child(6) {
  transition-delay: 0.30s;
}

.mm-link:last-child {
  border-bottom: none;
}

.mm-link .mm-num {
  display: none;
}

.mm-link:hover {
  color: var(--c-green, #3dd68c);
}

.mm-link.mm-cta {
  color: var(--c-green, #3dd68c);
}

.mm-footer {
  margin-top: 32px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media(max-width:1024px) {
  .nav-links {
    display: none !important;
  }

  .nav-hamburger {
    display: flex !important;
    flex-shrink: 0 !important;
    width: 25px !important;
    height: 25px !important;
  }

  #mobile-menu {
    display: flex !important;
  }

  .nav-logo {
    max-width: calc(100% - 60px);
    overflow: hidden;
  }

  .nav-logo img {
    max-width: 120px;
  }
}

.mm-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s ease;
}

.mm-close:hover {
  color: #fff;
}

.mm-close svg {
  width: 20px;
  height: 20px;
}
/* CMS demo iframe — responsive height for tablet/mobile */
@media(max-width:1024px){
  #idx-cms-iframe{height:640px;}
}
@media(max-width:768px){
  #idx-cms-iframe{height:520px;}
}
@media(max-width:480px){
  #idx-cms-iframe{height:440px;}
}
