/* ============================================================
   MODELYX — LANDING PAGE STYLESHEET  (TradingView-style redesign)
   ============================================================
   3-act structure:
     Act 1: Full-viewport hero with transparent nav + centered text
     Act 2: Product showcase with framed screenshot
     Act 3: Detail sections (pillars, workflow, audience, CTA)
   ============================================================ */


/* ------------------------------------------------------------
   RESET (scoped)
   ------------------------------------------------------------ */
.landing-page,
.landing-page *,
.landing-page *::before,
.landing-page *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Visual walkthrough H4: every link in the brand palette should inherit
   its :link color when visited. Without this rule, browser defaults the
   :visited state to purple/magenta and any link the user has previously
   clicked (e.g. the footer Access link on /onboarding) breaks the brand
   palette. Scoped to .landing-page so it doesn't disturb the dashboard
   workspace, which has its own anchor styles. */
.landing-page a:visited {
  color: inherit;
}

/* Native <select> dropdown panel styling — global scope so every
   dropdown on every page (onboarding wizard, pricing forms, account
   forms, etc.) renders the OPEN options list with our brand tokens
   instead of the OS-default white/grey. color-scheme: dark is the
   fallback for browsers that ignore option styling (Safari). */
select {
  color-scheme: dark;
}
select option {
  background: var(--surface-raise);
  color: var(--text-primary);
}


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
.landing-page {
  /* ---- Surfaces — Account/Marketing palette ----
     Slightly lighter than dashboard's "operator cockpit" palette BY DESIGN.
     Used by: landing, pricing, membership, terms, privacy, refund, access,
     onboarding, error. These pages are admin/marketing tier — forms, cards,
     prose, navigation — they should feel warm and inviting. Dashboard stands
     alone with darker surfaces for sustained data-dense work. Do not unify. */
  --foundation:     #12100a;
  --surface:        #201c14;
  --surface-raise:  #29241a;
  --border:         #342d23;

  /* ---- Text ---- */
  --text-primary:   #fafafa;
  --text-secondary: #b8b8c0;
  --text-muted:     #8b8b94;
  --text-dormant:   #52525b;

  /* ---- Brand gold ---- */
  --brand-gold:       #c9a063;
  --brand-gold-light: #d4ad72;   /* Hover/active state on gold CTA — Batch 4B (audit I14) */
  --brand-gold-dim:   #8b6f3d;
  --brand-gold-deep:  #1a1208;

  /* ---- On-brand text ----
     The foundation color repurposed as a text color when the
     background is gold (e.g., tier-card gold CTA). Adding as a
     named token instead of raw #12100a — Batch 4B (audit I15). */
  --text-on-brand:    #12100a;

  /* ---- Semantic state palette (shared with dashboard) ----
     Marketing surfaces use these sparingly — check-marks, error
     text, intentional accents. Values match the dashboard's
     canonical RGB exactly so the brand reads identically across
     surfaces. Added in Batch 4B (audit P6, P7). */
  --emerald: #10b981;
  --rose:    #e11d48;

  /* ---- Fonts ---- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* ---- Type Scale (shared with dashboard.html for site-wide consistency) ---- */
  --fs-fine:       10px;    /* Watermarks, version lines, fine print              */
  --fs-mono:       11px;    /* Monospaced UI: eyebrows, badges, micro-labels      */
  --fs-body:       13px;    /* Default body text / UI                             */
  --fs-body-lg:    15px;    /* Emphasized body, nav links, lead-in                */
  --fs-lead:       17px;    /* Hero subhead, tier descriptions, lead prose        */
  --fs-h3:         24px;    /* Sub-section headers, pricing tier numbers          */
  --fs-h2:         32px;    /* Section headlines                                  */
  --fs-h1:         44px;    /* Page hero                                          */
  --fs-display:    64px;    /* Landing-page hero only                             */

  /* ---- Font Weights ---- */
  --fw-light:      300;
  --fw-body:       400;
  --fw-medium:     500;
  --fw-semibold:   600;
  --fw-bold:       700;

  /* ---- Radius (audit I12 / Batch 4A) ----
     --radius-micro   2px  → tiny indicators, dot-style badges
     --radius-small   3px  → chips, version badges, small action buttons
     --radius         4px  → default — cards, inputs, primary buttons
     --radius-large   6px  → larger panels (war room, dialogs, overlays)
     1px (chart hairlines) and 999px (full pill) are documented exceptions. */
  --radius-micro: 2px;
  --radius-small: 3px;
  --radius:       4px;
  --radius-large: 6px;

  /* ---- Spacing ---- */
  --space-section-y: 100px;
  --space-header-gap: 56px;
  --space-container: 1200px;
  --space-gutter: 48px;

  /* ---- Motion ---- */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --anim-speed-fast: 200ms;
  --anim-speed-base: 400ms;

  /* ---- Base ---- */
  font-family: var(--font-sans);
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--foundation);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}


/* ============================================================
   2. LAYOUT CONTAINERS
   ============================================================ */
.landing-page .section-inner,
.landing-page .footer-inner,
.landing-page .landing-nav-inner,
.landing-page .showcase-inner {
  max-width: var(--space-container);
  margin: 0 auto;
  padding: 0 var(--space-gutter);
}


/* ============================================================
   3. TOP NAV — transparent, floating on hero
   ============================================================ */
.landing-page .landing-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: 32px;
}

.landing-page .landing-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.landing-page .landing-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.landing-page .brand-logo {
  width: 209px;
  height: auto;
  display: block;
  /* Crop ~3px dead alpha at top, ~4px at bottom so flex bottom-align targets the
     real visible letterform baseline rather than the PNG canvas edge. Calibrated
     for logo03.png at 209px wide. */
  margin-top: -3px;
  margin-bottom: -4px;
  margin-left: -40px;
}

.landing-page .landing-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  /* Shift the whole nav-right group (button + sign-out) rightward as a unit,
     preserving their internal gap. */
  position: relative;
  left: 12px;
}

.landing-page .landing-nav-link {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  transition: color var(--anim-speed-fast) ease;
}

.landing-page .landing-nav-link:hover {
  color: var(--text-primary);
}


/* ============================================================
   4. BUTTONS
   ============================================================ */
.landing-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 52px;
  padding: 0 28px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  line-height: 1;
  cursor: pointer;
  transition: background var(--anim-speed-fast) ease, color var(--anim-speed-fast) ease,
              border-color var(--anim-speed-fast) ease, box-shadow var(--anim-speed-fast) ease,
              transform 0.15s ease;
}

.landing-page .btn:active {
  transform: scale(0.98);
}

.landing-page .btn-primary {
  background: var(--brand-gold);
  color: var(--brand-gold-deep);
  border-color: var(--brand-gold);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.landing-page .btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: var(--brand-gold-light);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out-expo);
  z-index: -1;
}

.landing-page .btn-primary:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.landing-page .btn-primary:hover {
  background: transparent;
  color: var(--brand-gold-deep);
  box-shadow: 0 0 20px rgba(201, 160, 99, 0.30);
}

.landing-page .btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.landing-page .btn-secondary:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  box-shadow: 0 0 12px rgba(201, 160, 99, 0.10);
}

.landing-page .btn-nav {
  min-width: 0;
  height: 32px;
  padding: 0 16px;
  font-size: var(--fs-fine);
  letter-spacing: 0.10em;
}

/* Nav CTA override — outline by default to differentiate from hero CTA.
   When .btn-nav is combined with .btn-primary, downgrade to outline style
   so the small nav shortcut doesn't compete visually with the loud hero. */
.landing-page .btn-nav.btn-primary {
  background: transparent;
  color: var(--brand-gold);
  border-color: var(--brand-gold);
}
.landing-page .btn-nav.btn-primary::before {
  display: none;  /* Disable the ripple animation — too dramatic for a small utility shortcut */
}
.landing-page .btn-nav.btn-primary:hover {
  background: var(--brand-gold);
  color: var(--brand-gold-deep);
  box-shadow: 0 0 12px rgba(201, 160, 99, 0.2);
}

/* Hero CTA — larger, more prominent */
.landing-page .btn-hero {
  height: 56px;
  min-width: 220px;
  font-size: var(--fs-body-lg);
  letter-spacing: 0.10em;
  border-radius: 6px;
}



/* ============================================================
   5. SECTION DIVIDER
   ============================================================ */
.landing-page .section-divider {
  position: relative;
  max-width: var(--space-container);
  margin: 0 auto;
  padding: 0 var(--space-gutter);
  height: 1px;
}

.landing-page .section-divider::before {
  content: "";
  position: absolute;
  left: var(--space-gutter);
  right: var(--space-gutter);
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand-gold-dim) 20%,
    var(--brand-gold) 50%,
    var(--brand-gold-dim) 80%,
    transparent
  );
  opacity: 0.55;
  transform: translateY(-50%);
}

.landing-page .section-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--brand-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow:
    0 0 0 1px rgba(201, 160, 99, 0.28),
    0 0 40px rgba(201, 160, 99, 0.40),
    0 0 120px rgba(201, 160, 99, 0.18),
    0 0 240px rgba(201, 160, 99, 0.10);
}


/* ============================================================
   6. SHARED SECTION HEADER
   ============================================================ */
.landing-page .section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.landing-page .section-headline {
  font-family: var(--font-sans);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.landing-page .section-headline em {
  font-style: italic;
  font-weight: 600;
  color: var(--brand-gold);
}

.landing-page .section-body {
  font-family: var(--font-sans);
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}


/* ============================================================
   ACT 1 — HERO (full viewport)
   ============================================================ */
.landing-page .hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  /* Maintain native aspect ratio to match Hero02 (1536×929 — JPG, ~320 KB) */
  aspect-ratio: 1536 / 929;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  background: url('/static/assets/landing/Hero02.jpg') no-repeat center center;
  background-size: cover;
}

/* Dark overlay — strong center vignette for text readability */
.landing-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Center darkening where text sits */
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(10, 8, 4, 0.65) 0%, transparent 80%),
    /* Top edge darken for nav */
    linear-gradient(180deg,
      rgba(10, 8, 4, 0.7) 0%,
      rgba(10, 8, 4, 0.35) 25%,
      rgba(10, 8, 4, 0.25) 50%,
      rgba(10, 8, 4, 0.4) 75%,
      rgba(10, 8, 4, 0.85) 100%
    );
  z-index: 1;
  pointer-events: none;
}

/* Hero content — centered, above overlay */
.landing-page .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-gutter);
  /* Text lift = (m1+m2-40)/2 = 35, CTA shift = (m1-m2+40)/2 = -30.
     Eyebrow/headline/subhead lifted 35px above original center; CTA pinned at
     30px below its original position. */
  margin-bottom: 5px;
}

/* Eyebrow label */
.landing-page .hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: sovereign-enter var(--anim-speed-base) var(--ease-out-expo) forwards;
  animation-delay: 0ms;
}

/* Headline */
.landing-page .hero-headline {
  font-family: var(--font-sans);
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 28px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.5);
}

.landing-page .hero-headline em {
  font-style: italic;
  font-weight: 600;
  color: var(--text-primary);
}

/* Subhead */
.landing-page .hero-subhead {
  font-family: var(--font-sans);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  /* margin-bottom zeroed so .hero-ctas margin-top controls the gap directly
     (no margin-collapse interference with the lift/CTA-shift math) */
  margin-bottom: 0;
  /* Widened so the longest line ("stress scenarios, and fragility signals into
     executive-grade verdicts") fits before the explicit <br> in landing.html */
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.6);
}

/* CTAs */
.landing-page .hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  /* Subhead margin-bottom is 0 (zeroed to prevent collapse) so this margin-top
     literally controls the subhead-to-CTA gap. With m1=5, m2=105 → text lift 35,
     CTA pinned at -30 below original (no change from previous CTA position). */
  margin-top: 105px;
}

/* Reassurance line */
.landing-page .hero-reassure {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Scroll indicator */
.landing-page .hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--brand-gold);
  opacity: 0.5;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}


/* ============================================================
   ACT 2 — PRODUCT SHOWCASE
   ============================================================ */
.landing-page .showcase {
  padding: 64px 0;
  position: relative;
  overflow: visible;
  /* Data-network background image — full image visible */
  background:
    linear-gradient(to bottom, rgba(15, 14, 12, 0.35) 0%, transparent 15%),
    linear-gradient(to top, rgba(15, 14, 12, 0.5) 0%, transparent 20%),
    url('/static/assets/landing/section09.jpg') center center / 100% 100% no-repeat;
}

.landing-page .showcase-headline {
  font-family: var(--font-sans);
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.landing-page .showcase-headline em {
  font-style: italic;
  font-weight: 600;
  color: var(--brand-gold);
}

.landing-page .showcase-subhead {
  font-family: var(--font-sans);
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--text-secondary);
  /* Widened so the longest of the two lines fits before the explicit <br>
     (the natural-wrap point on the previous 520px max-width was making it 3 lines). */
  max-width: 720px;
  margin: 0 auto;
}

/* Animated demo container */
.landing-page .showcase-demo {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
  padding-bottom: 32px;
}

/* Browser frame — single animated frame */
.landing-page .showcase-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 160, 99, 0.20);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.60),
    0 0 120px rgba(201, 160, 99, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  background: var(--surface);
  width: 92%;
  margin: 0 auto;
}

/* Room navigation tabs — inside browser chrome */
.landing-page .showcase-tabs {
  display: flex;
  gap: 0;
  background: var(--surface-raise);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
}

.landing-page .showcase-tab {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 20px;
  cursor: pointer;
  transition: color var(--anim-speed-fast) ease, border-color var(--anim-speed-fast) ease;
  white-space: nowrap;
}

.landing-page .showcase-tab:hover {
  color: var(--text-secondary);
}

.landing-page .showcase-tab.active {
  color: var(--brand-gold);
  border-bottom-color: var(--brand-gold);
}

/* Animated screen — contains stacked slides + cursor */
.landing-page .showcase-screen-animated {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2320 / 992;
  background: var(--foundation);
}

/* Real product demo video */
.landing-page .showcase-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--foundation);
}

/* .showcase-slide retired (audit P5 / Batch 4D). The landing page
   switched to <video> for the demo loop; the legacy crossfade rules
   were already unused. Git history preserves the original styling. */

/* Animated cursor */
.landing-page .showcase-cursor {
  position: absolute;
  width: 20px;
  height: 24px;
  z-index: 10;
  pointer-events: none;
  /* 0.8s is intentional ceremony — the cursor sweep across the
     showcase video is a feature, not a transition. Kept raw with
     this note instead of being tokenized (audit P5 / Batch 4D). */
  transition: left 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              top 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transform: translate(-2px, -2px);
}

/* Click ripple */
.landing-page .showcase-ripple {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--brand-gold);
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: none;
}

.landing-page .showcase-ripple.ripple-active {
  animation: showcase-ripple-burst 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes showcase-ripple-burst {
  0%   { opacity: 0.8; transform: translate(-50%, -50%) scale(0); }
  60%  { opacity: 0.4; transform: translate(-50%, -50%) scale(1.8); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(2.5); }
}

/* Progress bar — bottom of screen */
.landing-page .showcase-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 11;
}

.landing-page .showcase-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-dim));
  transition: none;
}

.landing-page .showcase-progress-fill.running {
  animation: showcase-progress-sweep 3.5s linear forwards;
}

@keyframes showcase-progress-sweep {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Screen area */
.landing-page .showcase-screen {
  width: 100%;
  background: var(--foundation);
}

.landing-page .showcase-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* CTA below showcase */
.landing-page .showcase-cta {
  text-align: center;
  margin-top: 48px;
}


/* ============================================================
   ACT 3a — DELIVER (pillars)
   ============================================================ */
.landing-page .deliver {
  padding: var(--space-section-y) 0;
  position: relative;
}


/* ============================================================
   ACT 3c — FEATURE GALLERY (2×3 grid)
   ============================================================ */

/* Responsive: showcase on tablet + mobile */
@media (max-width: 1024px) {
  .landing-page .showcase-tab {
    font-size: var(--fs-fine);
    padding: 8px 14px;
  }
  .landing-page .showcase-frame {
    width: 96%;
  }
}
@media (max-width: 600px) {
  .landing-page .showcase-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .landing-page .showcase-tab {
    font-size: var(--fs-fine);
    padding: 8px 10px;
  }
  .landing-page .showcase-frame {
    width: 100%;
  }
}


/* ============================================================
   ACT 2a — WORKFLOW STRIP (3-step pipeline)
   ============================================================ */
.landing-page .workflow-strip {
  padding: 64px 0;
  position: relative;
}

.landing-page .workflow-strip-inner {
  max-width: var(--space-container);
  margin: 0 auto;
  padding: 0 var(--space-gutter);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

/* Each step */
.landing-page .workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  max-width: 220px;
}

/* Numbered circle */
.landing-page .workflow-step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--brand-gold);
  margin-top: 1px;
}

/* Step text */
.landing-page .workflow-step-title {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.landing-page .workflow-step-desc {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Arrow connectors */
.landing-page .workflow-connector {
  display: flex;
  align-items: center;
  padding: 6px 4px 0;
  color: var(--brand-gold-dim);
  flex-shrink: 0;
}

/* Responsive: stack on narrow screens */
@media (max-width: 768px) {
  .landing-page .workflow-strip-inner {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .landing-page .workflow-step {
    max-width: 400px;
  }
  .landing-page .workflow-connector {
    transform: rotate(90deg);
    padding: 0;
  }
}


/* ============================================================
   ACT 2b — FEATURE BREAKDOWN (Room-by-room explainer grid)
   ============================================================ */
.landing-page .feature-breakdown {
  padding: 64px 0;
  position: relative;
}

.landing-page .feature-breakdown-inner {
  max-width: var(--space-container);
  margin: 0 auto;
  padding: 0 var(--space-gutter);
}

/* Eyebrow label */
.landing-page .feature-breakdown-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 10px;
}

/* Headline */
.landing-page .feature-breakdown-headline {
  font-family: var(--font-sans);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.landing-page .feature-breakdown-headline em {
  font-style: italic;
  color: var(--brand-gold);
}

/* Subheadline */
.landing-page .feature-breakdown-subhead {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Card grid — 3 columns side by side (6 cards → 2 rows of 3) */
.landing-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}


/* Individual card */
.landing-page .feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--anim-speed-fast) ease, box-shadow var(--anim-speed-fast) ease, transform var(--anim-speed-fast) ease;
  position: relative;
}

.landing-page .feature-card:hover {
  border-color: var(--brand-gold-dim);
  box-shadow:
    0 0 0 1px rgba(201, 160, 99, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* Gold top-edge accent on hover */
.landing-page .feature-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
  opacity: 0;
  transition: opacity var(--anim-speed-fast) ease;
  border-radius: 1px;
}

.landing-page .feature-card:hover::before {
  opacity: 0.6;
}

/* Icon container */
.landing-page .feature-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--brand-gold-deep);
  border: 1px solid rgba(201, 160, 99, 0.15);
  color: var(--brand-gold);
  flex-shrink: 0;
}

/* Card title */
.landing-page .feature-card-title {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  margin: 0;
}

/* Card description */
.landing-page .feature-card-desc {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Responsive: tablet — grid stays at 3 cols (same as desktop); only shrink headline */
@media (max-width: 1100px) {
  .landing-page .feature-breakdown-headline {
    font-size: var(--fs-h2);
  }
}

@media (max-width: 768px) {
  .landing-page .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Responsive: mobile */
@media (max-width: 500px) {
  .landing-page .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .landing-page .feature-breakdown {
    padding: 64px 0;
  }
  .landing-page .feature-breakdown-headline {
    font-size: var(--fs-h3);
  }
}



/* ============================================================
   ACT 3b — LIVE SIGNAL FEED (command-terminal aesthetic)
   ============================================================ */
.landing-page .signal-feed {
  padding: 64px 0;
  position: relative;
}

.landing-page .signal-feed-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.landing-page .signal-feed-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.landing-page .signal-feed-headline {
  font-family: var(--font-sans);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
  text-transform: uppercase;
  margin: 0;
}

.landing-page .signal-feed-headline em {
  font-style: italic;
  color: var(--brand-gold);
}

.landing-page .signal-feed-desc {
  font-family: var(--font-sans);
  font-size: var(--fs-lead);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Hanging indent: wrapped portions of each line align under the first letter
   (after the em-dash + space), not back under the dash. */
.landing-page .signal-feed-desc .hang-line {
  display: block;
  padding-left: 1.5em;
  text-indent: -1.5em;
}

.landing-page .signal-feed-right {
  min-width: 0; /* prevent grid blowout */
}

.landing-page .signal-feed-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.landing-page .signal-feed-label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.landing-page .signal-feed-timestamp {
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  color: var(--text-tertiary, #666);
  margin-left: auto;
}

.landing-page .signal-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}

.landing-page .signal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.04));
  transition: background 0.15s ease;
}

.landing-page .signal-item:last-child {
  border-bottom: none;
}

.landing-page .signal-item:hover {
  background: rgba(255,255,255,0.02);
}

.landing-page .signal-severity {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.landing-page .signal-category {
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid;
  border-radius: 3px;
  flex-shrink: 0;
  min-width: 52px;
  text-align: center;
}

.landing-page .signal-headline {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--text-primary);
  flex: 1;
  line-height: 1.4;
}

.landing-page .signal-time {
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  color: var(--text-tertiary, #666);
  flex-shrink: 0;
  min-width: 42px;
  text-align: right;
}

.landing-page .signal-source {
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  color: var(--text-tertiary, #555);
  flex-shrink: 0;
  min-width: 60px;
  text-align: right;
  opacity: 0.7;
}

.landing-page .signal-feed-loading,
.landing-page .signal-feed-empty {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--text-tertiary, #666);
  text-align: center;
  padding: 24px 14px;
  letter-spacing: 0.04em;
}

/* Signal feed — tablet responsive */
@media (max-width: 900px) {
  .landing-page .signal-feed-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .landing-page .signal-feed-left {
    text-align: center;
    align-items: center;
  }
  .landing-page .signal-feed-headline br {
    display: none;
  }
}

/* Signal feed — mobile responsive */
@media (max-width: 768px) {
  .landing-page .signal-feed {
    padding: 32px 0;
  }
  .landing-page .signal-feed-inner {
    padding: 0 16px;
  }
  .landing-page .signal-item {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
  }
  .landing-page .signal-headline {
    order: 5;
    flex-basis: 100%;
    white-space: normal;
    margin-top: 2px;
  }
  .landing-page .signal-source {
    display: none;
  }
}


/* ============================================================
   ACT 3d — FINAL CTA
   ============================================================ */
.landing-page .final-cta {
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.landing-page .final-headline {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 48px;
}

.landing-page .final-headline em {
  font-style: italic;
  font-weight: 600;
  color: var(--brand-gold);
}

.landing-page .final-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-page .final-cta .section-inner {
  max-width: 900px;
  position: relative;
  z-index: 1;
}


/* ============================================================
   PRICING GRID (2-tier transparent pricing)
   ============================================================ */
.landing-page .pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 680px;
  margin: 0 auto 24px;
}

.landing-page .pricing-card {
  padding: 28px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background:
    linear-gradient(
      180deg,
      rgba(201, 160, 99, 0.02) 0%,
      rgba(24, 22, 18, 0.95) 40%
    );
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.landing-page .pricing-card-featured {
  border-color: rgba(201, 160, 99, 0.35);
  background:
    linear-gradient(
      180deg,
      rgba(201, 160, 99, 0.06) 0%,
      rgba(24, 22, 18, 0.95) 40%
    );
  box-shadow:
    0 0 24px rgba(201, 160, 99, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(201, 160, 99, 0.10);
}

/* Gold line on featured card */
.landing-page .pricing-card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 160, 99, 0.5),
    transparent
  );
}

.landing-page .pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--foundation);
  background: var(--brand-gold);
  padding: 4px 14px;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(201, 160, 99, 0.4), 0 0 24px rgba(201, 160, 99, 0.15);
}

.landing-page .pricing-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--brand-gold);
  margin-bottom: 8px;
}

.landing-page .pricing-price {
  margin-bottom: 12px;
}

.landing-page .pricing-amount {
  font-family: var(--font-mono);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.landing-page .pricing-period {
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
  letter-spacing: 0.02em;
}

.landing-page .pricing-desc {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 260px;
}

.landing-page .pricing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 200px;
  height: 36px;
  padding: 0 24px;
  font-size: var(--fs-mono);
  letter-spacing: 0.10em;
  margin-top: auto;
  align-self: center;
}

.landing-page .pricing-btn-outline {
  background: transparent;
  border: 1px solid rgba(201, 160, 99, 0.4);
  color: var(--brand-gold);
}

.landing-page .pricing-btn-outline:hover {
  background: rgba(201, 160, 99, 0.08);
  border-color: rgba(201, 160, 99, 0.6);
}

/* Manage Subscription link — shown only to logged-in users in place of the
   per-card CTAs. Quieter than a button; the cards still imply tier info. */
.landing-page .pricing-manage {
  text-align: center;
  margin: 16px 0 8px;
}
.landing-page .pricing-manage a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-gold);
  text-decoration: none;
  padding: 6px 14px;
  transition: color var(--anim-speed-fast) ease, transform var(--anim-speed-fast) ease;
}
.landing-page .pricing-manage a:hover {
  color: var(--text-primary);
  transform: translateX(2px);
}

.landing-page .pricing-footnote {
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.9;
  opacity: 0.82;
  text-align: center;
}

.landing-page .pricing-footnote a {
  color: var(--brand-gold);
  text-decoration: none;
  opacity: 0.8;
}

.landing-page .pricing-footnote a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Responsive: stack on mobile */
@media (max-width: 600px) {
  .landing-page .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }
}


/* ============================================================
   FOOTER — Multi-column institutional layout
   ============================================================ */
.landing-page .landing-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: url('/static/assets/landing/section03.jpg?v=9') center 75% / cover no-repeat;
  overflow: hidden;
}

.landing-page .footer-main {
  position: relative;
  z-index: 1;
  max-width: var(--space-container);
  margin: 0 auto;
  /* Top padding keeps columns lifted toward the top (anchoring below the world map).
     Bottom padding reduced to bring footer height down. */
  padding: 48px var(--space-gutter) 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Brand column */
.landing-page .footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: start;
  /* Lower the footer logo within the brand column to balance the column-headers
     visually (which are smaller text vs the wider logo banner) */
  padding-top: 8px;
}

.landing-page .brand-logo-footer {
  width: 208px;
  height: auto;
  display: block;
  /* Logo03 at 208px scales to ~45px tall. Crop margins scaled accordingly
     (~3px top, ~4px bottom dead alpha). */
  margin-top: -3px;
  margin-bottom: -4px;
  margin-left: 50px;
}

.landing-page .footer-copyright {
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
  margin-left: 35px;
}

.landing-page .footer-tagline {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0;
}

.landing-page .footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.landing-page .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--anim-speed-fast) ease, border-color var(--anim-speed-fast) ease, background var(--anim-speed-fast) ease;
}

.landing-page .footer-social a:hover {
  color: var(--brand-gold);
  border-color: rgba(201, 160, 99, 0.3);
  background: rgba(201, 160, 99, 0.05);
}

/* Column titles */
.landing-page .footer-col-title {
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

/* Column links */
.landing-page .footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-page .footer-col-links a,
.landing-page .footer-col-links span {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--anim-speed-fast) ease;
  line-height: 1.4;
}

.landing-page .footer-col-links a:hover {
  color: var(--brand-gold);
}

.landing-page .footer-detail {
  font-family: var(--font-sans);
  font-size: var(--fs-mono);
  color: var(--text-muted);
  opacity: 0.5;
  line-height: 1.4;
}

/* Data Sources column — uses same styles as other footer columns */

/* Bottom bar */
.landing-page .footer-bottom {
  position: relative;
  z-index: 1;
  max-width: var(--space-container);
  margin: 0 auto;
  /* Asymmetric padding lifts the copyright text upward within the strip */
  padding: 4px var(--space-gutter) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.landing-page .footer-legal {
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
}

/* Footer — tablet */
@media (max-width: 900px) {
  .landing-page .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 24px 32px;
  }
  .landing-page .footer-col-brand {
    grid-column: 1 / -1;
  }
  .landing-page .footer-bottom {
    padding: 16px 24px;
  }
}

/* Footer — mobile */
@media (max-width: 600px) {
  .landing-page .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px 24px;
  }
  .landing-page .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 12px 16px;
  }
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.landing-page :focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.landing-page a:focus-visible,
.landing-page .btn:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.landing-page .skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  color: var(--foundation);
  background: var(--brand-gold);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  opacity: 0;
  transition: top 0.15s ease, opacity 0.15s ease;
}

.landing-page .skip-nav:focus {
  top: 8px;
  opacity: 1;
}


/* ============================================================
   SOVEREIGN MOTION SYSTEM
   ============================================================ */
@keyframes sovereign-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.landing-page .sov-enter {
  opacity: 0;
  animation: sovereign-enter var(--anim-speed-base) var(--ease-out-expo) forwards;
}

/* Stagger — hero */
.landing-page .sov-enter-hero-headline { animation-delay: 0ms; }
.landing-page .sov-enter-hero-subhead  { animation-delay: 60ms; }
.landing-page .sov-enter-hero-ctas     { animation-delay: 120ms; }

/* Stagger — items */
.landing-page .sov-enter-item-0 { animation-delay: 0ms; }
.landing-page .sov-enter-item-1 { animation-delay: 80ms; }
.landing-page .sov-enter-item-2 { animation-delay: 160ms; }
.landing-page .sov-enter-item-3 { animation-delay: 240ms; }
.landing-page .sov-enter-item-4 { animation-delay: 320ms; }

/* Stagger — feature gallery (6 cards) */
.landing-page .sov-enter-item-4 { animation-delay: 320ms; }
.landing-page .sov-enter-item-5 { animation-delay: 400ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .landing-page .sov-enter {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .landing-page .btn-primary::before {
    transition-duration: 0.01ms !important;
  }
  .landing-page .hero-scroll-indicator {
    animation: none !important;
  }
}
