/* ═══════════════════════════════════════════════
   BASIS — Shared Stylesheet
═══════════════════════════════════════════════ */
/* Fonts loaded via <link> in HTML for render-performance */

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

:root {
  --bg:       #07101E;
  --bg2:      #050D18;
  --navy:     #040A14;
  --teal:     #CB7A18;
  --teal2:    #DC9030;
  --blue:     #8EC4E0;
  --blue2:    #A8D4EE;
  --purple:   #5BAFD4;
  --purple2:  #8EC4E0;
  --white:    #E8E0D0;
  --muted:    #6A8A9A;
  --bt: rgba(203,122,24,0.2);
  --bb: rgba(142,196,224,0.2);
  --bp: rgba(91,175,212,0.2);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── PARTICLE CANVAS ── */
#canvas-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ── BRAIN SVG ── */
.brain-svg { display: block; flex-shrink: 0; }
.brain-svg .n-t  { fill: #CB7A18; }
.brain-svg .n-b  { fill: #8EC4E0; }
.brain-svg .n-p  { fill: #8EC4E0; }
.brain-svg .n-w  { fill: rgba(255,255,255,0.85); }
.brain-svg .e-t  { stroke: #CB7A18; fill: none; }
.brain-svg .e-b  { stroke: #8EC4E0; fill: none; }
.brain-svg .e-p  { stroke: #8EC4E0; fill: none; }

/* hardcoded SVG presentation attribute overrides */
[stroke="#BF5FFF"] { stroke: #8EC4E0; }
[stroke="#9B20E0"] { stroke: #8EC4E0; }
[fill="#9B20E0"]   { fill: #8EC4E0; }
[fill="#BF5FFF"]   { fill: #8EC4E0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  background: rgba(7,16,30,0.9);
  backdrop-filter: blur(18px);
  display: flex; align-items: center;
  padding: 0 48px;
}
nav::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal) 25%, var(--blue) 55%, var(--purple) 80%, transparent);
  opacity: 0.45;
}
.nav-logo {
  display: flex; align-items: center; gap: 22px;
  text-decoration: none; margin-right: auto;
}
.nav-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 17px; letter-spacing: 0.06em; color: #fff;
}
.nav-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 6.5px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
  line-height: 1; white-space: nowrap;
}
.nav-brand { display: flex; flex-direction: column; gap: 3px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
  cursor: pointer; text-decoration: none;
  transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav-link:hover { color: var(--teal); }
.nav-link.active { color: var(--teal2); }
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}
.nav-cta {
  margin-left: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 9px 20px; border-radius: 5px;
  background: transparent; border: 1px solid var(--teal);
  color: var(--teal); cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--teal); color: #000;
  box-shadow: 0 0 24px rgba(203,122,24,0.4);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative; z-index: 1;
  padding: 120px 48px 64px;
  min-height: 383px;
  background: linear-gradient(160deg, var(--bg) 0%, rgba(5,15,30,0.95) 100%);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 10% 50%, rgba(0,150,255,0.06), transparent),
              radial-gradient(ellipse 40% 60% at 90% 30%, rgba(91,175,212,0.06), transparent);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 48px; right: 48px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--bt) 30%, var(--bb) 70%, transparent);
}
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--teal); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-tag::before { content: '//'; opacity: 0.45; }
h1.page-title {
  font-size: clamp(32px, 5vw, 56px); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.02em;
}
h1.page-title .ht { color: var(--teal); }
h1.page-title .hb { color: var(--blue2); }
h1.page-title .hp { color: var(--purple2); }
.page-sub-text {
  font-size: 16px; color: var(--muted); margin-top: 16px; max-width: 600px; line-height: 1.7;
}

/* ── SECTION ── */
.section {
  position: relative; z-index: 2;
  padding: 72px 48px;
  max-width: 1440px; margin-left: auto; margin-right: auto; width: 100%;
}
h2.section-title {
  font-size: 32px; font-weight: 800; margin-bottom: 48px; line-height: 1.2;
}
h2.section-title .ht { color: var(--teal); }
h2.section-title .hb { color: var(--blue2); }
h2.section-title .hp { color: var(--purple2); }

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 13px 26px; border-radius: 6px; border: none;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #000; cursor: pointer;
  box-shadow: 0 0 24px rgba(203,122,24,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block; text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(203,122,24,0.45); }

.btn-outline-t {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 12px 26px; border-radius: 6px;
  background: transparent; border: 1px solid var(--bt);
  color: var(--teal); cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  display: inline-block; text-decoration: none;
}
.btn-outline-t:hover { background: rgba(203,122,24,0.08); box-shadow: 0 0 20px rgba(203,122,24,0.15); }

.btn-outline-p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 12px 26px; border-radius: 6px;
  background: transparent; border: 1px solid var(--bp);
  color: var(--purple2); cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  display: inline-block; text-decoration: none;
}
.btn-outline-p:hover { background: rgba(91,175,212,0.08); box-shadow: 0 0 20px rgba(91,175,212,0.15); }

/* ── AI BADGE ── */
.ai-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); border: 1px solid var(--bt);
  padding: 5px 12px; border-radius: 4px;
  background: rgba(203,122,24,0.05); margin-bottom: 20px;
}
.ai-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(203,122,24,0.5); }
  50%      { opacity:.6; box-shadow:0 0 0 6px rgba(203,122,24,0); }
}

/* ── STATS BAR ── */
.stats-bar {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid rgba(203,122,24,0.1);
  border-bottom: 1px solid rgba(203,122,24,0.1);
  background: rgba(5,15,30,0.8);
}
.stat {
  padding: 28px 0; text-align: center;
  border-right: 1px solid rgba(203,122,24,0.1);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 48px; height: 2px;
}
.stat:nth-child(1)::before { background: var(--teal); }
.stat:nth-child(2)::before { background: var(--blue); }
.stat:nth-child(3)::before { background: var(--purple); }
.stat:nth-child(4)::before { background: linear-gradient(90deg,var(--teal),var(--purple)); }
.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px; font-weight: 700; line-height: 1;
}
.stat-num.t { color: var(--teal);    text-shadow: 0 0 20px rgba(203,122,24,0.4); }
.stat-num.b { color: var(--blue2);   text-shadow: 0 0 20px rgba(0,150,255,0.4); }
.stat-num.p { color: var(--purple2); text-shadow: 0 0 20px rgba(91,175,212,0.4); }
.stat-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); margin-top: 6px;
}

/* ── TICKER ── */
.ticker {
  display: none;
  border-top: 1px solid rgba(203,122,24,0.1);
  border-bottom: 1px solid rgba(203,122,24,0.1);
  display: flex; align-items: center;
}
.ticker-inner {
  display: flex; gap: 48px;
  animation: ticker 22s linear infinite;
  white-space: nowrap;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500; color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}
.ticker-item .ok   { color: var(--teal); }
.ticker-item .role { color: var(--white); }
.ticker-item .days { color: var(--blue2); }
.ticker-sep { color: rgba(91,175,212,0.4); font-size: 14px; }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 2;
  padding: 24px 48px;
  background: rgba(3,10,20,0.95);
  border-top: 1px solid rgba(203,122,24,0.08);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted); letter-spacing: 0.05em;
}
.footer-copy span { color: var(--teal); }
.footer-links { display: flex; gap: 20px; }
.footer-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted); text-decoration: none; letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.2s;
}
.footer-link:hover { color: var(--teal); }
.footer-legal {
  width: 100%; display: flex; justify-content: center; gap: 24px;
  margin-top: 8px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── TAG CHIPS ── */
.tag-t { font-family:'JetBrains Mono',monospace; font-size:9px; padding:3px 8px; border-radius:3px; background:rgba(203,122,24,0.08); color:var(--teal); border:1px solid rgba(203,122,24,0.18); }
.tag-b { font-family:'JetBrains Mono',monospace; font-size:9px; padding:3px 8px; border-radius:3px; background:rgba(0,150,255,0.08); color:var(--blue2); border:1px solid rgba(0,150,255,0.18); }
.tag-p { font-family:'JetBrains Mono',monospace; font-size:9px; padding:3px 8px; border-radius:3px; background:rgba(91,175,212,0.08); color:var(--purple2); border:1px solid rgba(91,175,212,0.18); }
.tags  { display:flex; flex-wrap:wrap; gap:6px; }

/* ── HAMBURGER BUTTON ── */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  margin-left: auto; padding: 4px; flex-shrink: 0;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAV OVERLAY ── */
#nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 98;
  background: rgba(3,10,20,0.6); backdrop-filter: blur(4px);
}
#nav-overlay.open { display: block; }

/* ── MOBILE DRAWER ── */
#nav-drawer {
  position: fixed; top: 0; right: -280px; bottom: 0;
  width: 280px; z-index: 99;
  background: rgba(5,12,24,0.98);
  border-left: 1px solid rgba(203,122,24,0.12);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  padding: 80px 32px 40px;
  gap: 8px;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
}
#nav-drawer.open { right: 0; }
.nav-drawer-link {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
  text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s;
}
.nav-drawer-link:hover, .nav-drawer-link.active { color: var(--teal); }
.nav-drawer-cta {
  margin-top: 24px; text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 12px 20px; border-radius: 5px;
  background: transparent; border: 1px solid var(--teal);
  color: var(--teal); cursor: pointer; text-decoration: none;
  transition: background 0.2s, color 0.2s;
  display: block;
}
.nav-drawer-cta:hover { background: var(--teal); color: #000; }

/* ══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  nav { padding: 0 28px; }
  .nav-links { gap: 20px; }
  .page-hero { padding: 108px 28px 52px; }
  .page-hero::after { left: 28px; right: 28px; }
  .section { padding: 60px 28px; }
  .calc-section { padding: 60px 28px; }
}

/* ── Mobile-L (≤ 768px) ── */
@media (max-width: 768px) {
  nav { padding: 0 18px; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-burger { display: flex; }

  .page-hero { padding: 96px 18px 44px; }
  .page-hero::after { left: 18px; right: 18px; }
  .section { padding: 48px 18px; }
  .calc-section { padding: 48px 18px; }

  /* Stats bar: 4→2 columns */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) {
    border-top: 1px solid rgba(203,122,24,0.1);
    border-right: 1px solid rgba(203,122,24,0.1);
  }
  .stat:nth-child(4) { border-top: 1px solid rgba(203,122,24,0.1); }
  .stat-num { font-size: 28px; }

  /* Ticker */
  .ticker-inner { gap: 28px; }

  footer {
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-links { flex-wrap: wrap; gap: 14px; }
}

/* ── Mobile-S (≤ 480px) ── */
@media (max-width: 480px) {
  nav { padding: 0 14px; height: 56px; }
  .nav-sub { display: none; }
  .nav-links { gap: 10px; }
  .nav-link { font-size: 9.5px; }
  .nav-cta { display: none; }

  .page-hero { padding: 80px 14px 36px; }
  .page-hero::after { left: 14px; right: 14px; }
  .section { padding: 36px 14px; }
  .calc-section { padding: 36px 14px; }

  /* Stats bar: 2 cols on small mobile */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 0; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 9px; }

  h1.page-title { font-size: clamp(24px, 7vw, 36px); }
  h2.section-title { font-size: 22px; margin-bottom: 28px; }
  .page-sub-text { font-size: 16px; }

  .ai-badge { font-size: 9px; }

  footer { padding: 16px 14px; }
}
