/* ==========================================================
   MTD v3.0 CORE KIT — CANONICAL CSS CONTRACT
   File: /core/style.css
   Owner: GhostFire Digital
   Purpose: Generator-only. DO NOT EDIT PER DOMAIN.
   Changes require version bump + checksum update.

   CONTRACT VERSION: v3.0.0
   CHECKSUM (SHA-256): [RUN: shasum -a 256 style.css]
   LAST LOCKED: 2026-01-27
   ========================================================== */

/* ------------------------------
   0) Reset / Base
------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: calc(var(--nav-h) + 20px);
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

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

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

p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 0.75rem; line-height: 1.1; }

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-1) 70%, #fff 30%);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ------------------------------
   1) Global Tokens (Defaults)
------------------------------ */
:root {
  /* Typography */
  --font-sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-serif: Cinzel, ui-serif, Georgia, serif;

  /* Layout */
  --wrap: 1160px;
  --pad-x: 18px;
  --nav-h: 74px;
  --anchor-offset: calc(var(--nav-h) + 10px);

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 700ms;

  /* Default Theme Tokens (fallback) */
  --bg: #050608;
  --text: #f2f5f7;
  --muted: rgba(242,245,247,.72);
  --edge: rgba(255,255,255,.10);

  --accent-1: #ff6a00; /* ember */
  --accent-2: #ffd36a; /* gold */
  --accent-3: rgba(0,255,255,.40); /* cyan haze */

  /* Glass */
  --glass-bg: rgba(8,10,12,.58);
  --glass-brd: rgba(255,255,255,.12);
  --glass-blur: 12px;

  /* Shadows */
  --shadow-1: 0 16px 44px rgba(0,0,0,.55);
  --shadow-2: 0 26px 66px rgba(0,0,0,.65);

  /* Radius */
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Scrollbar */
  --scrollbar-track: rgba(255,255,255,.06);
  --scrollbar-thumb: rgba(255,255,255,.22);

  /* Utility */
  --hairline: 1px solid var(--edge);
}

/* ------------------------------
   2) Themes (token overrides)
------------------------------ */

/* NEON CYAN (TechCoin.ai / AI Finance) */
body[data-theme="neon-cyan"] {
  --bg: #03070a;
  --text: #e8f6ff;
  --muted: #b7d3e2;
  --edge: #061018;

  --accent-1: #38c0ff;
  --accent-2: #a5e4ff;
  --accent-3: #4b6b80;

  --glass-bg: rgba(6, 16, 24, 0.62);
  --glass-brd: rgba(255,255,255,.10);

  --scrollbar-track: rgba(6,16,24,.85);
  --scrollbar-thumb: rgba(56,192,255,.70);
}

/* BLACK LOTUS (Luxury / Latent AI) */
body[data-theme="black-lotus"] {
  --bg: #050505;
  --text: #f1f1f1;
  --muted: #b8b8b8;
  --edge: #101010;

  --accent-1: #d6b36a;
  --accent-2: #f0d58c;
  --accent-3: #7a6538;

  --glass-bg: rgba(10,10,10,.62);
  --glass-brd: rgba(255,255,255,.12);

  --scrollbar-track: rgba(16,16,16,.85);
  --scrollbar-thumb: rgba(214,179,106,.70);
}

/* CARBON VEIL (Institutional) */
body[data-theme="carbon-veil"] {
  --bg: #050608;
  --text: #e8ecef;
  --muted: #a6b0b8;
  --edge: #0b1116;

  --accent-1: #9aa4ad;
  --accent-2: #cfd6dc;
  --accent-3: #5b6670;

  --glass-bg: rgba(11,17,22,.62);
  --glass-brd: rgba(255,255,255,.10);

  --scrollbar-track: rgba(11,17,22,.85);
  --scrollbar-thumb: rgba(154,164,173,.70);
}

/* EMBER CORE (GhostFire Signature) */
body[data-theme="ember-core"] {
  --bg: #070404;
  --text: #f5f0ea;
  --muted: #c8b8a8;
  --edge: #1a0c08;

  --accent-1: #ff6a00;
  --accent-2: #ff9c42;
  --accent-3: #6b2b12;

  --glass-bg: rgba(26,12,8,.62);
  --glass-brd: rgba(255,255,255,.10);

  --scrollbar-track: rgba(26,12,8,.85);
  --scrollbar-thumb: rgba(255,106,0,.70);
}

/* ION STORM (Agentic / DeFi) */
body[data-theme="ion-storm"] {
  --bg: #020308;
  --text: #edf3ff;
  --muted: #9ca7c0;
  --edge: #070b16;

  --accent-1: #6bffea;
  --accent-2: #88a3ff;
  --accent-3: #2a3a68;

  --glass-bg: rgba(7,11,22,.62);
  --glass-brd: rgba(255,255,255,.10);

  --scrollbar-track: rgba(7,11,22,.85);
  --scrollbar-thumb: rgba(107,255,234,.70);
}

/* VOID ORACLE (AI / Oracle Networks) */
body[data-theme="void-oracle"] {
  --bg: #020309;
  --text: #f4f5ff;
  --muted: #aeb3d0;
  --edge: #0b0f1f;

  --accent-1: #b38cff;
  --accent-2: #7b9dff;
  --accent-3: #39406b;

  --glass-bg: rgba(11,15,31,.62);
  --glass-brd: rgba(255,255,255,.10);

  --scrollbar-track: rgba(11,15,31,.85);
  --scrollbar-thumb: rgba(179,140,255,.70);
}

/* PLASMA NYX (Underground / Gaming) */
body[data-theme="plasma-nyx"] {
  --bg: #05000a;
  --text: #fcefff;
  --muted: #bda7c7;
  --edge: #13041a;

  --accent-1: #ff4fa8;
  --accent-2: #7b4dff;
  --accent-3: #4a1e4f;

  --glass-bg: rgba(19,4,26,.62);
  --glass-brd: rgba(255,255,255,.10);

  --scrollbar-track: rgba(19,4,26,.85);
  --scrollbar-thumb: rgba(255,79,168,.70);
}

/* SPECTRAL MESH (Infrastructure / L2) */
body[data-theme="spectral-mesh"] {
  --bg: #040507;
  --text: #ecf1f8;
  --muted: #a9b4c3;
  --edge: #0c1016;

  --accent-1: #4fd0c8;
  --accent-2: #8fb4ff;
  --accent-3: #3b5569;

  --glass-bg: rgba(12,16,22,.62);
  --glass-brd: rgba(255,255,255,.10);

  --scrollbar-track: rgba(12,16,22,.85);
  --scrollbar-thumb: rgba(79,208,200,.70);
}

/* GENX REVERB (Cultural / Legacy Drop) */
body[data-theme="genx-reverb"] {
  --bg: #080606;
  --text: #f8f5ef;
  --muted: #b1a69a;
  --edge: #1b1613;

  --accent-1: #ffb400;
  --accent-2: #d7f0ff;
  --accent-3: #f14c28;

  --glass-bg: rgba(27,22,19,.62);
  --glass-brd: rgba(255,255,255,.10);

  --scrollbar-track: rgba(27,22,19,.85);
  --scrollbar-thumb: rgba(255,180,0,.70);
}

/* ECLIPSE LAB (R&D / Foundry) */
body[data-theme="eclipse-lab"] {
  --bg: #050607;
  --text: #f3f5f7;
  --muted: #9ca3af;
  --edge: #101316;

  --accent-1: #b5ff3b;
  --accent-2: #e0ff9a;
  --accent-3: #4b5a21;

  --glass-bg: rgba(16,19,22,.62);
  --glass-brd: rgba(255,255,255,.10);

  --scrollbar-track: rgba(16,19,22,.85);
  --scrollbar-thumb: rgba(181,255,59,.70);
}

/* ------------------------------
   3) Scrollbar
------------------------------ */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--scrollbar-track); }
*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
}

/* ------------------------------
   4) Helpers / Layout
------------------------------ */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 75%, var(--accent-2) 25%);
  margin-bottom: 12px;
}

.section {
  padding: clamp(52px, 6vw, 76px) 0;
  border-top: var(--hairline);
  scroll-margin-top: var(--anchor-offset);
}

.section.diag,
.section-alt {
  background:
    radial-gradient(circle at 15% 12%, color-mix(in srgb, var(--accent-1) 16%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 88% 72%, color-mix(in srgb, var(--accent-2) 12%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, transparent, color-mix(in srgb, #000 18%, transparent) 90%);
}

/* ========================================
   CINEMATIC SECTION (Background Image)
   Uses data-bg-enabled attribute instead of class
   ======================================== */

section[data-bg-enabled="true"] {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

section[data-bg-enabled="true"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: var(--section-bg-image);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: var(--section-bg-position, center center);
  background-size: var(--section-bg-size, cover);
  opacity: var(--section-bg-opacity, 0.15);
  pointer-events: none;
}

section[data-bg-enabled="true"] .wrap {
  position: relative;
  z-index: 2;
}

section[data-bg-enabled="true"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(5, 6, 8, 0.6) 0%,
    rgba(5, 6, 8, 0.8) 50%,
    rgba(5, 6, 8, 0.6) 100%
  );
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  section[data-bg-enabled="true"]::after {
    background-attachment: scroll;
  }
}

.section-head {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 74ch;
}

.section-heading,
.section-title {
  font-family: var(--font-serif);
  font-weight: 800;
   font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: .02em;
  margin: 0 0 10px;
}

.section-title.left { text-align: left; }

.section-sub {
  color: var(--muted);
  max-width: 72ch;
  margin: 0 auto 10px;
  font-size: 1.02rem;
}

.section-sub.left { text-align: left; }

/* ------------------------------
   5) Glass / Nav
   FIX #1: Sticky nav that persists through scroll
------------------------------ */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
}

.nav-pin {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 10px var(--pad-x);
}

.nav {
  max-width: var(--wrap);
  margin: 54 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  padding: 10px 16px;
  border-radius: 18px;

  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo,
.brand-mark img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
}

.brand-mark {
  width: 46px;
  height: 46px;
  padding: 2px;
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.brand-mark {
  transition: border-color 0.2s ease;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.brand:hover .brand-mark {
  box-shadow: none;
  border-color: rgba(255,255,255,.18);
}

.brand:hover .brand-mark img {
  transform: none;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-list a {
  display: inline-flex;
  padding: 10px 10px;
  border-radius: 12px;
  color: color-mix(in srgb, var(--muted) 86%, #fff 14%);
  font-weight: 700;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.nav-list a:hover {
  color: var(--accent-2);
  background: rgba(255,255,255,.04);
  transform: translateY(-1px);
}

.nav-list a.active {
  color: var(--accent-2);
  text-shadow: 0 0 14px color-mix(in srgb, var(--accent-1) 25%, transparent);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* FIX #2: Nav CTA button text color - black on primary buttons */
.nav-cta .btn-primary {
  color: #000;
  font-weight: 800;
}

/* Mobile nav CTA should also have black text */
.nav-cta-mobile .btn-primary {
  color: #000;
  font-weight: 800;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-2);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hide mobile CTA in desktop nav-list */
.nav-cta-mobile {
  display: none;
}

/* ------------------------------
   6) Buttons
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text);
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform var(--t-fast) var(--ease), filter var(--t-fast) var(--ease), 
              box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease), 
              border-color var(--t-fast) var(--ease);
  user-select: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.18);
}

.btn.primary,
.btn-primary {
  background: var(--accent-1);
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent-1) 26%, transparent);
}

.btn.primary:hover,
.btn-primary:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent-1) 42%, transparent);
}

.btn.secondary,
.btn-secondary,
.btn.ghost {
  background: rgba(0,0,0,.16);
  border-color: rgba(255,255,255,.14);
  color: var(--accent-2);
}

.btn.secondary:hover,
.btn-secondary:hover,
.btn.ghost:hover {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.18);
}

.btn-mini {
  padding: 10px 14px;
  font-size: .92rem;
}

.btn-block {
  width: 100%;
  box-sizing: border-box;
}

/* CTA row */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

/* ------------------------------
   7) Scroll Progress
------------------------------ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 100000;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: var(--hairline);
  min-height: min(100vh, 880px);
  margin-top: calc(-1 * (var(--nav-h) + 20px));
  padding-top: calc(var(--nav-h) + 20px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--accent-1) 18%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 86% 78%, color-mix(in srgb, var(--accent-2) 12%, transparent) 0%, transparent 60%),
    var(--bg);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  padding: clamp(40px, 4vw, 90px) 0;
}

/* Hero left column sits slightly closer to nav on desktop */
.hero-copy {
  transform: translateY(-8px);
}

/* Keep the two hero CTAs clean and balanced */
.hero-copy .cta-row {
  margin-top: 22px;
}

.hero-copy .cta-row .btn {
  min-width: 196px;
  justify-content: center;
}

.hero-copy .micro-proof {
  width: 100%;
  max-width: 460px;
}

/* Add slight extra left breathing room for hero composition on desktop */
.hero .wrap {
  padding-left: calc(var(--pad-x) + 6px);
}

.hero-copy .kicker {
  margin-bottom: 18px;
}

.hero-copy h1,
.headline {
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: .01em;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  max-width: 18ch;
}

.headline-line {
  white-space: nowrap;
}

.hero-sub,
.subhead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 56ch;
}

.hero-support {
  color: color-mix(in srgb, var(--muted) 88%, #fff 12%);
  font-size: 1.0rem;
  max-width: 64ch;
}

.hero-media {
  position: relative;
}

.hero-media img,
.media-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  box-shadow: var(--shadow-1);
  object-fit: cover;
}

.media-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}

/* Media Frame Variants */
/* Default: framed (standard) */
.media-frame.framed,
.media-frame {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
}

/* No-frame variant */
.media-frame.no-frame {
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.media-frame.no-frame img {
  border: none;
  border-radius: 0;
  background: transparent;
}

/* Circular variant - frameless with subtle glow */
.media-frame.circular {
  border-radius: 50%;
  aspect-ratio: 1;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent-1) 25%, transparent);
  max-width: 320px;
  margin: 0 auto;
}

.media-frame.circular img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  border: none;
  background: transparent;
  box-shadow: none;
}
/* ========================================
   Media Frame Effects (Optional Animations)
   Usage: mediaEffect in site.config.json
   ======================================== */

/* Float effect - gentle vertical bob */
.media-frame.float {
  animation: float 6s ease-in-out infinite;
}

/* Glow pulse effect */
.media-frame.glow {
  animation: glow-pulse 4s ease-in-out infinite;
}

/* Combined float + glow */
.media-frame.float-glow {
  animation: 
    float 6s ease-in-out infinite,
    glow-pulse 4s ease-in-out infinite;
}

/* Subtle breathe effect */
.media-frame.breathe {
  animation: breathe 5s ease-in-out infinite;
}

/* Rotate hint - very subtle rotation */
.media-frame.rotate-hint {
  animation: rotate-hint 20s linear infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes glow-pulse {
  0%, 100% { 
    box-shadow: 0 0 40px color-mix(in srgb, var(--accent-1) 20%, transparent);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 80px color-mix(in srgb, var(--accent-1) 40%, transparent);
    filter: brightness(1.05);
  }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.95; }
}

@keyframes rotate-hint {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  /* Disable non-essential reveal motion */
  .reveal {
    animation: none !important;
    transition: opacity 0.01s linear;
  }

  /* Keep hero identity motion alive */
  .hero .media-frame {
    animation-duration: 10s;
  }
}

/* Subtle glow frame */
.hero-media::after,
.media-glow {
  content: "";
  position: absolute;
  inset: -22%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent-1) 22%, transparent) 0%, transparent 58%);
  filter: blur(2px);
  opacity: .9;
  mix-blend-mode: screen;
}

/* Pills / tags */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--accent-2);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pill.accent {
  border-color: color-mix(in srgb, var(--accent-1) 40%, rgba(255,255,255,.12));
  color: var(--accent-2);
}

.pill.ghost {
  color: var(--muted);
}

.pill.wide {
  width: 100%;
  justify-content: flex-start;
}

.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--accent-2);
  margin-bottom: 8px;
  font-weight: 700;
  font-size: .86rem;
}

/* Hero badges / stats */
.hero-badges,
.micro-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.micro-proof {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.badge,
.stat {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}

.badge-k,
.stat-top,
.stat-label {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.badge-v,
.stat-big,
.stat-value {
  font-weight: 800;
  color: var(--accent-2);
}

/* Hero stats grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

/* ------------------------------
   9) Grids / Cards
   FIX #5: Grid3 properly centered and responsive
------------------------------ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.grid-3,
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 100%;
}

/* Alternative: Center grid items when fewer than 3 */
.grid3.centered {
  justify-items: center;
}

.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 18px 18px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--accent-1) 10%, transparent) 0%, transparent 60%),
    rgba(0,0,0,.18);
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), 
              box-shadow var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card h3 {
  color: var(--accent-2);
  font-weight: 900;
  letter-spacing: .01em;
  font-size: 1.05rem;
}

.card p {
  color: var(--muted);
  margin: 0 0 12px;
  flex-grow: 1;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-1) 36%, rgba(255,255,255,.12));
  box-shadow: var(--shadow-1);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-1);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent-1) 35%, transparent);
  flex-shrink: 0;
  /* Optical alignment */
  margin-top: 5px;
}

/* Lists inside cards */
.mini {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.mini li {
  margin: 6px 0;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 4vw, 44px);
  align-items: start;
}

/* Problem list / stack */
.stack {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.line-item {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
}

.line-item p {
  margin: 0;
  color: var(--muted);
}

/* Panel */
.panel {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent-1) 10%, transparent) 0%, transparent 55%),
    rgba(0,0,0,.18);
}

.panel-head {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.panel-title {
  margin: 0 0 8px;
  color: var(--accent-2);
}

.panel-sub {
  color: var(--muted);
  margin: 0 0 14px;
}

.panel-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-cta {
  margin-top: 14px;
}

/* Rail (demo modules) */
.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rail-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--accent-1) 10%, transparent) 0%, transparent 60%),
    rgba(0,0,0,.18);
  transition: transform .22s ease, border-color .22s ease;
}

.rail-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-1) 35%, rgba(255,255,255,.12));
}

.rail-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.chip {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  color: var(--accent-2);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: rgba(0,0,0,.18);
}

.chip.ghost {
  color: var(--muted);
}

.rail-card h3 {
  margin: 0 0 8px;
  color: var(--accent-2);
}

.rail-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

/* Key-value pairs */
.kv {
  display: grid;
  gap: 8px;
}

.kv > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.kv span {
  color: var(--muted);
}

.kv strong {
  color: var(--text);
}

/* Feature list */
.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.feat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
}

.feat-ic {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  color: var(--accent-2);
  background: rgba(0,0,0,.18);
  flex-shrink: 0;
}

.feat h3 {
  margin: 0 0 6px;
  color: var(--accent-2);
}

.feat p {
  margin: 0;
  color: var(--muted);
}

/* Stamp / imagery */
.stamp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  margin-bottom: 14px;
}

.stamp img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stamp-title {
  font-weight: 800;
  color: var(--accent-2);
}

.stamp-sub {
  color: var(--muted);
  font-size: .95rem;
}

.img-card {
  margin-top: 14px;
  border-radius: 18px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}

.img-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* CTA strip */
.cta-strip {
  margin-top: 22px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent-1) 12%, transparent) 0%, transparent 60%),
    rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-strip h3,
.cta-strip-inner h3 {
  margin: 0 0 6px;
  color: var(--accent-2);
}

.cta-strip p,
.cta-strip-inner p {
  margin: 0;
  color: var(--muted);
}

/* ------------------------------ 
   10) Footer (CANONICAL MTD v3)
   Institutional. Deterministic. Center-Locked.
------------------------------ */

.footer,
footer {
  width: 100%;
  padding: 72px 0 56px;
  background: var(--bg);
  border-top: 1px solid var(--edge);

  display: flex;
  justify-content: center; /* HARD CENTER LOCK */
}

/* Inner Wrapper */
.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);

  display: flex;
  flex-direction: column;
  align-items: center;     /* Horizontal center */
  justify-content: center; /* Vertical stack center */
  text-align: center;

  gap: 18px;
}

/* Logo */
.footer-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 82px;
  margin: 0 auto;
  opacity: 0.92;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.05));
}

/* Built With Line */
.footer-attribution {
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0;
  opacity: 0.75;
}

.footer-attribution a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}

.footer-attribution a:hover {
  color: var(--accent-1);
}

/* Divider */
.footer-divider {
  width: 48px;
  height: 1px;
  background: var(--edge);
  margin: 12px 0 8px;
  opacity: 0.6;
}

/* Copyright — ALWAYS FINAL */
.footer-copy {
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.72;
}

.footer-copy a {
  color: var(--accent-2);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--accent-1);
}

/* ------------------------------
   11) Back to Top
------------------------------ */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-1) 50%, rgba(255,255,255,.12));
  background: rgba(0,0,0,.28);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  font-size: 1.25rem;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent-1) 26%, transparent);
}

.back-to-top svg {
  width: 44px;
  height: 44px;
  fill: var(--accent-2);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent-1) 35%, transparent));
}

/* ------------------------------
   12) Reveal (JS adds .is-visible)
------------------------------ */
.reveal {
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
}

/* ------------------------------
   13) FAQ
------------------------------ */
.faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item,
.faq details {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  overflow: hidden;
}

.faq-item summary,
.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--accent-2);
  font-weight: 800;
}

.faq-body,
.faq p {
  padding: 0 16px 14px;
  color: var(--muted);
  margin: 10px 0 0;
}

.faq details.gfd {
  border: 1px solid color-mix(in srgb, var(--accent-1) 18%, rgba(255,255,255,.12));
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent-1) 6%, transparent);
}

/* ------------------------------
   14) Dropdown Menus
------------------------------ */
.dropdown {
  position: relative;
}

.dropbtn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropbtn:hover,
.dropdown.open .dropbtn {
  background: rgba(255,255,255,.04);
  color: var(--accent-2);
}

.caret {
  font-size: 0.7em;
  opacity: 0.7;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-brd);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  list-style: none;
  padding: 8px;
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.dropdown-menu li a:hover {
  background: rgba(255,255,255,.04);
  color: var(--accent-2);
}

/* ------------------------------
   15) Modal (Pro Gate)
------------------------------ */
.modalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal {
  width: min(720px, 100%);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16,16,24,.96), rgba(10,10,16,.94));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 28px 90px rgba(0,0,0,.70);
  overflow: hidden;
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.modalHeader .title {
  margin: 0;
  font-weight: 900;
}

.close {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 900;
}

.modalBody {
  padding: 16px;
}

.miniCard {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 14px;
}

.miniCard h4 {
  margin: 0 0 6px;
  font-size: 13px;
}

.miniCard p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12.5px;
  line-height: 1.55;
}

.formRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 10px;
}

input[type="email"] {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.92);
  outline: none;
}

input[type="email"]::placeholder {
  color: rgba(255,255,255,.46);
}

.status {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
}

.status b {
  color: var(--accent-2);
}

.hr {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 14px 0;
}

/* ------------------------------
   16) Special Sections
------------------------------ */
.section-cinematic {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 12vh, 10rem) 0;
}

.cinematic-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 50%, color-mix(in srgb, var(--accent-1) 25%, transparent),
              rgba(0,0,0,.85) 65%);
  opacity: .4;
  filter: blur(1.5px) saturate(1.15);
  transform: scale(1.05);
  z-index: 0;
  background-attachment: fixed;
}

.section-cinematic .wrap {
  position: relative;
  z-index: 1;
}

/* ------------------------------
   17) Responsive
------------------------------ */
/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { transition: none; transform: none; opacity: 1; }
  .card, .btn, .nav-list a { transition: none; }
}

/* Tablet */
@media (max-width: 980px) {
  .nav-pin {
    padding: 10px 10px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 86px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: none;
  }

  .hero-copy .kicker {
    justify-content: center;
  }

  .hero-copy .headline {
    max-width: none;
  }

  .hero-copy .subhead {
    max-width: 64ch;
  }

  .hero-copy .cta-row {
    justify-content: center;
  }

  .hero-copy .cta-row .btn {
    min-width: 0;
  }

  .hero-media {
    max-width: 280px;
    margin: 0 auto;
  }

  .media-frame.circular {
    max-width: 260px;
  }

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

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3,
  .grid3 {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .cols-3 {
    grid-template-columns: 1fr;
  }

  .rail {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    position: absolute;
    right: 14px;
    top: calc(100% + 10px);
    width: min(320px, calc(100vw - 28px));
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    display: none;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    padding: 10px 10px;
    border-radius: 12px;
  }

  /* Show mobile CTA in dropdown, hide desktop CTA */
  .nav-cta {
    display: none;
  }

  .nav-cta-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .cta-strip {
    flex-direction: column;
    text-align: center;
  }

  .micro-proof {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 0 0 12px;
  }

  .dropdown-menu li a {
    padding: 8px 0;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .rail {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-name {
    max-width: 42vw;
  }

  section {
    padding: 56px 0;
  }

  .nav-pin {
    padding: 8px 8px 0;
  }

.nav.nav-has-bg {
  background-image: var(--nav-bg-image);
  background-repeat: no-repeat;
  background-position: var(--nav-bg-position);
  background-size: var(--nav-bg-size);
}

  .hero {
    min-height: 64vh;
  }

  .hero-inner {
    padding: 44px 14px;
  }

  .hero-media {
    max-width: 220px;
  }

  .media-frame.circular {
    max-width: 200px;
    margin: 0 auto;
  }
}
/* =====================================================
   MTD v3.0 - CSS ADDITIONS
   Add these styles to your style.css
   ===================================================== */

/* ===== SYSTEM STEPS GRID ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.step-num {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 16px;
  opacity: 0.8;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== USE CASES GRID (4-column) ===== */
.grid4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

/* ===== ACQUIRE GRID (Flexible for 2 or 3 cards) ===== */
.grid-acquire {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Center 2 cards */
.grid-acquire:has(> :nth-child(2):last-child) {
  max-width: 700px;
}

/* ===== CONTACT CENTERED ===== */
.contact-centered {
  text-align: center;
  padding: 48px 0;
}

.contact-centered .btn-lg {
  padding: 18px 48px;
  font-size: 1.1rem;
}

/* ===== BTN-LG SIZE ===== */
.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* Ensure existing nav elements stay above the art */
.nav .brand {
  position: relative;
  z-index: 10;
}

.nav .nav-list {
  position: relative;
  z-index: 10;
}

.nav .nav-cta {
  position: relative;
  z-index: 10;
  margin-right: 20px; /* ✅ Prevents overlap with nav image */
}

.nav .nav-toggle {
  position: relative;
  z-index: 10;
}
/* Content Block for Problem Section */
.content-block {
  max-width: 72ch;
  margin: 0 auto 48px;
  text-align: center;
}

.content-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1em;
}

.content-block p:last-child {
  margin-bottom: 0;
}
