/* ============================================================
   SYNTROPY — REFERENCE THEME LAYER
   ------------------------------------------------------------
   Implements the exact color scheme, typography and background
   simulation of the reference index.html:
     Palette : deep-space ground #050d1a/#071427, cyan #00D4FF,
               teal #00FFC2, green #00FF55, orange #FF6B00,
               purple #8B5CF6, pink #FF006E, white, gray #b4c6c0
     Fonts   : Orbitron (headings / labels, weight 400)
               Rajdhani (body, weight 400)
     BG      : deep-space ground #050d1a / #071427 with the exact
               reference radial cyan/green fields, plus the
               #bg-system canvas particle simulation
   Load this stylesheet LAST on every page.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap');

/* ── REFERENCE DESIGN TOKENS ── */
:root {
  /* reference palette */
  --navy:    #0d3d31;
  --navy2:   #194d40;
  --cyan:    #00D4FF;
  --teal:    #00FFC2;
  --green:   #00FF55;
  --orange:  #FF6B00;
  --purple:  #8B5CF6;
  --pink:    #FF006E;
  --white:   #ffffff;
  --gray:    #b4c6c0;

  /* legacy token remap -> reference ground (#050d1a / #071427) */
  --void:        #050d1a;
  --void2:       #071427;
  --void3:       #071427;
  --void-2:      #071427;
  --void-3:      #071427;
  --amber:       #00D4FF;
  --amber2:      #00FFC2;
  --amber-bright:#00FFC2;
  --amber-glow:  rgba(0, 212, 255, 0.18);
  --gold:        #00D4FF;
  --gold-2:      #00FFC2;
  --gold-soft:   rgba(0, 212, 255, 0.12);
  --plasma:      #8B5CF6;
  --plasma2:     #C4B5FD;
  --ice:         #00D4FF;
  --ice2:        #00FFC2;
  --ember:       #FF6B00;
  --flux:        #00FF55;
  --rose:        #FF006E;

  --text-0: #ffffff;
  --text-1: #b4c6c0;
  --text-2: #94aca4;
  --text-3: #7fa39a;
  --text:   #ffffff;
  --ink:    #ffffff;
  --ink-2:  #b4c6c0;
  --ink-3:  #94aca4;
  --ink-4:  #7fa39a;
  --muted:  #b4c6c0;
  --quiet:  #94aca4;

  --pos-ink:   #ffffff;
  --pos-soft:  #b4c6c0;
  --pos-mute:  #94aca4;
  --pos-faint: #7fa39a;
  --pos-amber: #00D4FF;
  --pos-amber-light: #00FFC2;
  --pos-sage:  #93c7b5;
  --pos-line:  rgba(0, 212, 255, 0.18);
  --pos-line-soft: rgba(255, 255, 255, 0.075);
  --pos-panel: rgba(7, 31, 25, 0.74);
  --pos-panel-soft: rgba(255, 255, 255, 0.026);

  --border:    rgba(0, 212, 255, 0.28);
  --border-lt: rgba(0, 212, 255, 0.10);
  --border-ice: rgba(0, 255, 194, 0.22);
  --line:      rgba(0, 212, 255, 0.22);
  --glow-amber:  0 0 48px rgba(0, 212, 255, 0.35);
  --glow-plasma: 0 0 48px rgba(139, 92, 246, 0.35);
  --glow-ice:    0 0 48px rgba(0, 255, 194, 0.35);

  /* typography tokens -> reference fonts */
  --font-display: 'Orbitron', sans-serif;
  --font-heading: 'Orbitron', sans-serif;
  --font-body:    'Rajdhani', sans-serif;
  --font-mono:    'Orbitron', sans-serif;
  --pos-display:  'Orbitron', sans-serif;
  --pos-body:     'Rajdhani', sans-serif;
  --pos-mono:     'Orbitron', sans-serif;
}

/* ════════════════════════════════════════════════════════════
   BACKGROUND SYSTEM — exact simulation of the reference
   #bg-system canvas is injected by reference-bg.js
   ════════════════════════════════════════════════════════════ */

html {
  background: #050d1a;
}

/* exact reference background color (index.html body background) */
html::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,212,255,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,255,136,0.06), transparent 40%),
    linear-gradient(180deg, #050d1a, #071427, #050d1a);
  z-index: -5;
  pointer-events: none;
}

#bg-system,
#bg-colorfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#bg-system {
  z-index: -2;
}

/* the reference has no color-field layer — its radial accents live
   in the background color itself (above), so this stays off */
#bg-colorfield {
  display: none;
}

/* legacy background systems are retired — the reference simulation replaces them */
.syntropy-dynamic-bg,
#void-canvas,
#bg-canvas,
#alpha-canvas,
.syntropy-bg,
.dyn-bg {
  display: none !important;
}

/* ════════════════════════════════════════════════════════════
   TYPOGRAPHY — reference fonts, weights, sizes and colors
   ════════════════════════════════════════════════════════════ */

html { color-scheme: dark; }

body {
  background: transparent !important;
  color: var(--white);
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 400;
  line-height: 1.7;
}

p, span, a, li, div, dd, dt, td, th, blockquote, figcaption {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
}

/* Orbitron display headings at reference weight 400 */
h1, h2, h3, h4, h5, h6,
.pos-hero-title, .pos-title, .sec-title, .ms-title, .pc-title,
.domain-title, .road-title, .nav-brand, .nav-s, .stack-label,
.footer-col h3, .footer-col h4 {
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 400 !important;
  color: var(--white);
  line-height: 1.2;
}

/* reference display scale */
.pos-hero-title { font-size: clamp(26px, 5vw, 65px); }
.pos-title      { font-size: clamp(20px, 3.5vw, 44px); }

/* gradient accents -> reference cyan/green gradient */
.grad-amber, .grad-void, .accent, .pos-title .accent {
  background: linear-gradient(90deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.5));
}

/* primary buttons -> reference gradient */
.btn-primary, .form-submit, .btn-p {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: var(--navy);
}

/* eyebrow / section labels -> reference cyan glow */
.pos-eyebrow, .sec-label, .eyebrow {
  color: var(--cyan);
  text-shadow: 0 0 4px rgba(0, 212, 255, 0.6);
}
.pos-eyebrow::before, .pos-eyebrow.center::after {
  background: linear-gradient(90deg, transparent, var(--cyan));
}

/* mono labels keep Orbitron with reference letter-spacing */
.mono, code, .label-mono, .stat-label, .ci-label {
  font-family: 'Orbitron', sans-serif;
}

/* ════════════════════════════════════════════════════════════
   FLOATING NAVIGATION BAR — Always accessible & visible
   ════════════════════════════════════════════════════════════ */
nav,
#main-nav,
.site-header {
  position: fixed !important;
  top: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(1340px, calc(100% - 32px)) !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 28px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0, 212, 255, 0.22) !important;
  background: rgba(6, 26, 28, 0.90) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.60), 0 0 20px rgba(0, 212, 255, 0.08) !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Nav links styling */
#main-nav .nav-links,
nav .nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#main-nav .nav-links a,
nav .nav-links a {
  display: block !important;
  padding: 8px 12px !important;
  border-radius: 7px !important;
  color: var(--bluish-white) !important;
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  transition: color 0.2s ease, background 0.2s ease, text-shadow 0.2s ease !important;
}

#main-nav .nav-links a:hover,
#main-nav .nav-links a[aria-current="page"],
#main-nav .nav-links a.active,
nav .nav-links a:hover,
nav .nav-links a[aria-current="page"] {
  color: #FFDD88 !important;
  background: rgba(0, 212, 255, 0.12) !important;
  text-shadow: 0 0 10px rgba(255, 200, 90, 0.45) !important;
}

/* Submenu dropdown inside floating bar ("Research & More") */
#main-nav .nav-submenu,
nav .nav-submenu {
  position: relative !important;
}

#main-nav .nav-submenu summary,
nav .nav-submenu summary {
  list-style: none !important;
  cursor: pointer !important;
  color: var(--bluish-white) !important;
  padding: 8px 12px !important;
  border-radius: 7px !important;
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  transition: color 0.2s ease !important;
}

#main-nav .nav-submenu summary::-webkit-details-marker,
nav .nav-submenu summary::-webkit-details-marker {
  display: none !important;
}

#main-nav .nav-submenu summary:hover,
nav .nav-submenu summary:hover,
#main-nav .nav-submenu[open] summary,
nav .nav-submenu[open] summary {
  color: #FFDD88 !important;
}

#main-nav .nav-submenu-list,
nav .nav-submenu-list {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  min-width: 200px !important;
  padding: 8px !important;
  border: 1px solid rgba(0, 212, 255, 0.25) !important;
  border-radius: 10px !important;
  background: rgba(6, 26, 32, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 212, 255, 0.10) !important;
  list-style: none !important;
  z-index: 10001 !important;
}

#main-nav .nav-submenu-list li,
nav .nav-submenu-list li {
  list-style: none !important;
}

#main-nav .nav-submenu-list a,
nav .nav-submenu-list a {
  display: block !important;
  padding: 9px 14px !important;
  font-size: 13.5px !important;
  color: var(--bluish-white) !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
}

#main-nav .nav-submenu-list a:hover,
nav .nav-submenu-list a:hover {
  color: #FFDD88 !important;
  background: rgba(0, 212, 255, 0.14) !important;
}

/* Mobile responsive handling for floating nav */
@media (max-width: 900px) {
  nav,
  #main-nav,
  .site-header {
    width: calc(100% - 24px) !important;
    top: 10px !important;
    padding: 10px 16px !important;
  }
  #main-nav > .nav-links,
  nav > .nav-links {
    display: none !important;
  }
  .nav-menu {
    display: block !important;
  }
  .nav-menu > .nav-links {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 240px !important;
    padding: 12px !important;
    border: 1px solid rgba(0, 212, 255, 0.25) !important;
    border-radius: 12px !important;
    background: rgba(6, 26, 32, 0.97) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.70) !important;
  }
}

/* chat / modal glass panels -> navy glass */
#syn-chat-panel, .booking-modal, .modal-card {
  background: rgba(7, 31, 25, 0.92);
  border-color: rgba(0, 212, 255, 0.2);
}

/* intro start screen sits on the deep-space ground */
#intro-start-screen { background: #050d1a; }

/* keep the a11y skip-link fully off-canvas until focused */
.skip-link { top: -140px !important; }
.skip-link:focus { top: 16px !important; }

/* ════════════════════════════════════════════════════════════
   TEXT COLOR SYSTEM — golden & white / light bluish white
   ------------------------------------------------------------
   Text across every page is either golden (accents, headings,
   labels) or white / light bluish white (body). Golden text
   carries a soft glow. Background colors are NOT touched here.
   ════════════════════════════════════════════════════════════ */
:root {
  /* golden text palette */
  --gold-text:        #FFC94F;   /* primary golden */
  --gold-text-bright: #FFDD88;   /* bright golden (hovers, highlights) */
  --gold-deep:        #E89B2E;   /* deep golden (gradient end) */
  --gold-glow: 0 0 7px rgba(255, 205, 100, 0.40), 0 0 24px rgba(255, 175, 50, 0.22);

  /* light bluish white body tones */
  --bluish-white:       #E9F1FF;
  --bluish-white-dim:   #C9D7EE;
  --bluish-white-faint: #A9BBD9;

  /* body / muted text tokens -> white & bluish white */
  --white:   #F7FAFF;
  --text-0:  #F7FAFF;
  --text:    var(--bluish-white);
  --text-1:  var(--bluish-white-dim);
  --text-2:  var(--bluish-white-faint);
  --text-3:  #8FA3C7;
  --ink:     var(--bluish-white);
  --ink-2:   var(--bluish-white-dim);
  --ink-3:   var(--bluish-white-faint);
  --ink-4:   #8FA3C7;
  --muted:   var(--bluish-white-dim);
  --quiet:   var(--bluish-white-faint);
  --gray:    var(--bluish-white-dim);
  --pos-ink:   var(--bluish-white);
  --pos-soft:  var(--bluish-white-dim);
  --pos-mute:  var(--bluish-white-faint);
  --pos-faint: #8FA3C7;

  /* accent tokens that appear as TEXT -> golden family */
  --amber:           var(--gold-text);
  --amber2:          var(--gold-text-bright);
  --amber-bright:    var(--gold-text-bright);
  --gold:            var(--gold-text);
  --gold-2:          var(--gold-text-bright);
  --cyan:            var(--gold-text);
  --teal:            var(--gold-text-bright);
  --ice:             var(--gold-text);
  --ice2:            var(--gold-text-bright);
  --green:           var(--gold-deep);
  --flux:            var(--gold-deep);
  --pos-amber:       var(--gold-text);
  --pos-amber-light: var(--gold-text-bright);
}

/* ════════════════════════════════════════════════════════════
   HEADINGS & TITLES — clean white base across the board
   Key words / important phrases glow in refined golden.
   ════════════════════════════════════════════════════════════ */

/* Headings base color: clean crisp white across all pages */
h1, h2, h3, h4, h5, h6,
.pos-hero-title, .pos-title, .sec-title, .ms-title, .pc-title,
.domain-title, .road-title, .nav-brand, .nav-s, .stack-label,
.footer-col h3, .footer-col h4,
body.home .site-footer .footer-col h3,
body.home .site-footer .footer-col h4,
.artwork-heading, .expertise-heading, .hero-h1,
.pos-gap-card h3, .pos-service h3, .pos-audience h3, .pos-tier h3,
.pos-step h3, .pos-sample h3, .pos-advantage h3, .card h3 {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Key words / important words / accents: refined golden gradient with glow */
.grad-amber, .grad-void, .accent, .pos-title .accent, .pos-hero-title .accent,
.artwork-heading .accent, .expertise-heading .grad-gold, .hero-h1 .grad-gold,
.grad-gold, .grad-entropy, .pos-highlight, .accent-cyan,
h1 strong, h2 strong, h3 strong, .pos-hero-title strong, .pos-title strong,
body.home .accent, body.home .pos-title .accent, body.home .pos-hero-title .accent {
  background: linear-gradient(92deg, #FFE08A 0%, #FFC94F 45%, #E89B2E 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 0 6px rgba(255, 190, 70, 0.45)) drop-shadow(0 0 18px rgba(255, 165, 40, 0.25));
  display: inline;
}

/* Eyebrows and section labels: golden with subtle glow */
.pos-eyebrow, .sec-label, .eyebrow,
body.home .pos-eyebrow {
  color: var(--gold-text) !important;
  text-shadow: 0 0 10px rgba(255, 200, 90, 0.35);
}
.pos-eyebrow::before, .pos-eyebrow.center::after {
  background: linear-gradient(90deg, transparent, var(--gold-text)) !important;
}

/* Small numeric & metadata badges */
.pos-tier-level, .pos-sample-code, .pos-node-label, .pos-step-num,
body.home .pos-tier-level, body.home .pos-sample-code,
body.home .pos-node-label, body.home .pos-step-num {
  color: var(--gold-text) !important;
  text-shadow: 0 0 8px rgba(255, 195, 80, 0.30);
}

/* Footer signature + copy */
.footer-sig, body.home .footer-sig {
  color: var(--gold-text) !important;
  text-shadow: var(--gold-glow);
}
.footer-copy { color: #8FA3C7 !important; font-size: 14px !important; }

/* ════════════════════════════════════════════════════════════
   BODY TEXT ENHANCEMENT — Increased size, weight & readability
   ════════════════════════════════════════════════════════════ */

body {
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: var(--bluish-white) !important;
}

/* Core body text across the board */
p, dd, dt, td, th, blockquote {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--bluish-white);
}

/* Lead intro paragraphs */
.pos-lede, .lead {
  font-size: clamp(18px, 2vw, 22px) !important;
  font-weight: 500 !important;
  line-height: 1.75 !important;
  color: var(--bluish-white) !important;
}

/* Card, step, tier and service descriptions */
.pos-service p,
.pos-step p,
.pos-audience p,
.pos-advantage p,
.pos-tier p,
.pos-sample p,
.pos-gap-card p,
.pos-panel p,
.pos-callout p,
.pos-founder p,
.pos-quote p,
.pos-quote blockquote,
.audience-card p,
.card p,
.flow-step p,
.timeline-item p,
.expertise-intro p,
.moon-project p {
  font-size: 16.5px !important;
  font-weight: 500 !important;
  line-height: 1.72 !important;
  color: var(--bluish-white) !important;
}

/* List items inside cards and tiers */
.pos-tier ul,
.pos-tier li,
.pos-gap-card li,
.card li,
ul.feature-list li,
.flow-step li {
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.75 !important;
  color: var(--bluish-white-dim) !important;
}

/* Explanatory notes and captions */
.expertise-detail,
.pos-media-figure figcaption,
.stat-label,
.note,
.footer-about {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: var(--bluish-white-dim) !important;
}

/* homepage hardcoded leftovers -> golden / bluish white */
body.home #main-nav .nav-links a:hover,
body.home #main-nav .nav-links a[aria-current="page"],
body.home #main-nav .nav-links a.active {
  color: var(--gold-text-bright) !important;
  text-shadow: 0 0 12px rgba(255, 200, 90, 0.5);
}
body.home .nav-logotype span { color: var(--gold-text) !important; text-shadow: var(--gold-glow); }
body.home .nav-cta, body.home .nav-pill, body.home .nav-status { color: var(--gold-text) !important; }
body.home .site-footer a:hover { color: var(--gold-text-bright) !important; }
body.home .nav-sub,
body.home .pos-media-figure figcaption,
body.home .footer-tagline { color: var(--bluish-white-faint) !important; }


/* ════════════════════════════════════════════════════════════════════
   v3 — HERO & PAGE-TITLE GOLD ACCENT FIX
   reference-theme.css forces every <span> to Rajdhani, but the title
   itself is Orbitron — so the gold <span class="accent"> rendered in
   Rajdhani next to a white Orbitron title, and the family/x-height
   mismatch made the gold look smaller than the white. Weight changes on
   the gradient-clipped gold also shifted its perceived color.
   Fix: force the accent to the SAME font as its title (Orbitron) so they
   are identical in size, and one REAL weight-grade heavier (500 vs the
   title's 400) for a slight thickness difference. Gold gradient color
   (#FFE08A -> #FFC94F -> #E89B2E) is left completely untouched.
   ════════════════════════════════════════════════════════════════════ */
.pos-hero-title .accent,
.pos-title .accent,
.sec-title .accent,
.ms-title .accent,
.pc-title .accent {
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 500 !important;
}
