/* ============================================================
   ParallaxOS — Sovereign Protector Design System
   Parallax Industries Pty Ltd · Hyper Accelerate Program · v1.0
   ============================================================ */

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }

/* -------- Sovereign Protector tokens -------- */
:root {
  /* Backgrounds */
  --bg-darkest: #0B1929;
  --bg-dark:    #0F2137;
  --bg-card:    #132D4A;
  --bg-elev:    #1B3F6E;
  --bg-panel:   #243447;

  /* Brand — Safety Orange */
  --brand:        #FF6B00;
  --brand-hover:  #E85F00;
  --brand-pressed:#CC5500;
  --brand-ghost:  rgba(255, 107, 0, 0.12);
  --brand-subtle: rgba(255, 107, 0, 0.06);

  /* Status / Semantic */
  --status-cleared: #10B981;
  --status-blocked: #EF4444;
  --status-warning: #F59E0B;
  --status-info:    #3B82F6;
  --status-ai:      #8B5CF6;
  --status-asset:   #06B6D4;

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.70);
  --text-tertiary:  rgba(255, 255, 255, 0.45);

  /* Borders */
  --border-default: rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(255, 255, 255, 0.15);
  --border-active:  rgba(255, 255, 255, 0.25);

  /* Radius */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;

  /* Shadows */
  --sh-card:       0 1px 3px rgba(0,0,0,0.3);
  --sh-card-hover: 0 4px 12px rgba(0,0,0,0.4);
  --sh-modal:      0 8px 32px rgba(0,0,0,0.5);
  --sh-glow:       0 8px 32px rgba(255, 107, 0, 0.4);

  /* Layout */
  --sidebar: 240px;
  --topbar:  64px;
  --container: 1240px;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Fira Code', Consolas, monospace;
}

/* -------- Base -------- */
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-darkest);
  background-image:
    radial-gradient(900px 500px at 85% -5%, rgba(255, 107, 0, 0.12), transparent 60%),
    radial-gradient(800px 400px at -10% 30%, rgba(27, 63, 110, 0.45), transparent 60%),
    radial-gradient(600px 350px at 50% 110%, rgba(139, 92, 246, 0.06), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

main { position: relative; z-index: 1; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* -------- Type scale (Sovereign Protector) -------- */
h1 { font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 24px; font-weight: 700; line-height: 1.2;  letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
h4 { font-size: 14px; font-weight: 600; }
.body-bold     { font-size: 14px; font-weight: 600; }
.body-regular  { font-size: 14px; font-weight: 400; color: var(--text-secondary); }
.body-small    { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.overline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Display sizes for marketing pages (extend the system) */
.display-xl {
  font-size: clamp(40px, 5.5vw + 12px, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.display-lg {
  font-size: clamp(32px, 3.5vw + 12px, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.lede { font-size: clamp(15px, 0.4vw + 13px, 18px); color: var(--text-secondary); line-height: 1.6; }

.gradient-text {
  background: linear-gradient(120deg, #FFFFFF 0%, #FFD9B8 55%, #FF6B00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------- Eyebrow / pills -------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 107, 0, 0.3);
  background: var(--brand-ghost);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  font-family: var(--font-mono);
}
.badge.cleared { color: var(--status-cleared); background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); }
.badge.blocked { color: var(--status-blocked); background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); }
.badge.warning { color: var(--status-warning); background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.3); }
.badge.info    { color: var(--status-info); background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.3); }
.badge.ai      { color: var(--status-ai); background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.3); }
.badge.asset   { color: var(--status-asset); background: rgba(6, 182, 212, 0.12); border-color: rgba(6, 182, 212, 0.3); }

/* -------- Buttons (60px+ glove-safe targets where needed) -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: var(--r-2xl);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #0A0F18;
  box-shadow: var(--sh-glow);
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-primary:active { background: var(--brand-pressed); transform: translateY(0); }

.btn-ghost {
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-ghost); color: var(--brand); }

.btn-sm { padding: 10px 18px; min-height: 40px; font-size: 13px; }

/* -------- Header / Nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar);
  backdrop-filter: blur(16px);
  background: rgba(11, 25, 41, 0.78);
  border-bottom: 1px solid var(--border-default);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  flex: none;
  filter: drop-shadow(0 2px 12px rgba(255, 107, 0, 0.25));
  transition: filter 0.2s ease;
}
.brand:hover .brand-logo { filter: drop-shadow(0 2px 16px rgba(255, 107, 0, 0.45)); }
.brand small {
  display: none; /* tagline lives elsewhere — logo speaks for itself */
}
@media (max-width: 540px) {
  .brand-logo { height: 30px; }
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-md);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--brand); background: var(--brand-ghost); }

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

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,0.03);
}
.menu-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--text-primary); margin: 4px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    inset: var(--topbar) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 25, 41, 0.97);
    padding: 16px;
    border-bottom: 1px solid var(--border-default);
    transform: translateY(-150%);
    transition: transform 0.25s ease;
    backdrop-filter: blur(20px);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 16px; font-size: 15px; }
  .menu-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* -------- Edge Mode banner (brutalist orange) -------- */
.edge-banner {
  display: none;
  background: var(--brand);
  color: #0A0F18;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.edge-banner.active { display: block; }
.edge-banner::before { content: '⚠ '; }

/* -------- Hero -------- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  z-index: 0;
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.orb.a { width: 420px; height: 420px; background: var(--brand); top: -120px; right: -80px; opacity: 0.35; }
.orb.b { width: 320px; height: 320px; background: var(--bg-elev); top: 30%; left: -100px; opacity: 0.7; }
.orb.c { width: 280px; height: 280px; background: var(--status-ai); bottom: -120px; left: 40%; opacity: 0.18; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.hero-inner h1 { margin: 20px 0 18px; }
.hero-inner .lede { max-width: 680px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px; color: var(--text-tertiary); font-size: 12px;
  font-family: var(--font-mono);
}
.hero-trust span::before { content: '✓ '; color: var(--status-cleared); margin-right: 4px; }

/* Hero metrics row */
.hero-metrics {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 64px;
  background: var(--border-default);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.hero-metric {
  background: var(--bg-card);
  padding: 24px 22px;
  text-align: center;
}
.hero-metric .num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.hero-metric .label {
  margin-top: 8px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* -------- Mock Admin dashboard -------- */
.dash-shell {
  margin-top: 72px;
  position: relative;
  z-index: 1;
  perspective: 1600px;
}
.dash-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transform: rotateX(6deg);
  transform-origin: center top;
  overflow: hidden;
  will-change: transform;
}
.dash-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-default);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 11px; height: 11px; border-radius: 50%; background: #2a3a52; }
.dash-dots span:nth-child(1) { background: #EF4444; }
.dash-dots span:nth-child(2) { background: #F59E0B; }
.dash-dots span:nth-child(3) { background: #10B981; }
.dash-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg-darkest);
  padding: 5px 12px;
  border-radius: 6px;
  flex: 1;
  max-width: 360px;
  text-align: center;
}
.dash-online {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--status-cleared);
  display: flex; align-items: center; gap: 6px;
}
.dash-online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--status-cleared); box-shadow: 0 0 8px var(--status-cleared); }

.dash-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 440px;
}
.dash-side {
  background: var(--bg-dark);
  border-right: 1px solid var(--border-default);
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.dash-side-section {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 12px 6px;
}
.dash-side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: default;
}
.dash-side-item.active { background: var(--brand-ghost); color: var(--brand); }
.dash-side-item .ico { width: 16px; height: 16px; opacity: 0.85; }

.dash-main { padding: 20px; display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); align-content: start; }
.dash-greeting { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.dash-greeting h3 { font-size: 17px; }
.dash-greeting p { color: var(--text-tertiary); font-size: 12px; margin-top: 4px; }

.dash-ai-bar {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-darkest);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--r-lg);
}
.dash-ai-bar .ai-pip {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--status-ai), #A78BFA);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  flex: none;
}
.dash-ai-bar .placeholder { color: var(--text-tertiary); font-size: 13px; flex: 1; }
.dash-ai-bar kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-tertiary);
}

.kpi {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: 16px;
}
.kpi .label { color: var(--text-tertiary); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.kpi .val { font-family: var(--font-mono); font-size: 22px; font-weight: 800; margin-top: 6px; }
.kpi .delta { font-size: 11px; margin-top: 4px; color: var(--status-cleared); }
.kpi.alert .val { color: var(--status-blocked); }
.kpi.warn .val { color: var(--status-warning); }

.sov-card {
  grid-column: span 2;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.sov-card .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sov-card .title { font-size: 13px; font-weight: 600; }
.sov-card .body { color: var(--text-tertiary); font-size: 12px; }
.sov-card .cta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sov-card .cta::after { content: ' →'; }

@media (max-width: 900px) {
  .dash-body { grid-template-columns: 1fr; min-height: auto; }
  .dash-side { display: none; }
  .dash-main { grid-template-columns: 1fr 1fr; }
  .sov-card { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .dash-main { grid-template-columns: 1fr; }
  .dash-frame { transform: none; }
}

/* -------- Sections -------- */
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin: 14px 0 14px; font-size: clamp(28px, 2.5vw + 16px, 40px); }
.section-head p { font-size: 16px; line-height: 1.6; }

/* -------- Logo strip / network strip -------- */
.networks {
  display: flex; flex-wrap: wrap; gap: 32px 44px; justify-content: center; align-items: center;
  padding: 24px 0;
}
.networks span {
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.networks span::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  margin-right: 10px;
  vertical-align: middle;
  opacity: 0.5;
}

/* -------- Animated logo marquee -------- */
.logo-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 32px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 24px;
  animation: marquee 80s linear infinite;
  will-change: transform;
}
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-marquee-item {
  flex: none;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.25);
}
.logo-marquee-item:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 14px 30px rgba(0,0,0,0.4); }
.logo-marquee-item img,
.logo-marquee-item svg {
  height: 100%;
  width: auto;
  display: block;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* -------- Hero brand video -------- */
.hero-logo-video {
  width: clamp(300px, 48vw, 560px);
  height: auto;
  margin: -12px auto 0;
  display: block;
  /* The clip's background is navy, not black; contrast crushes it to true
     black so screen-blend drops it, leaving the glowing mark on the hero. */
  filter: contrast(1.7);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-video { display: none; }
}

/* -------- Nav brand logo (transparent PNG) -------- */
/* override earlier rule to give the new transparent PNG more vertical room */
.brand-logo {
  height: 44px !important;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(255, 107, 0, 0.18));
}
@media (max-width: 540px) {
  .brand-logo { height: 36px !important; }
}

/* -------- Three-portal strip -------- */
.portals {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.portal {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.portal:hover { border-color: var(--border-active); transform: translateY(-2px); }
.portal .portal-tag { font-family: var(--font-mono); font-size: 11px; color: var(--brand); letter-spacing: 0.08em; text-transform: uppercase; }
.portal h3 { margin: 6px 0 10px; }
.portal p { font-size: 13px; }
.portal .portal-points { list-style: none; margin-top: 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.portal .portal-points li { font-size: 12.5px; color: var(--text-secondary); display: flex; gap: 8px; }
.portal .portal-points li::before { content: '▸'; color: var(--brand); flex: none; }

/* -------- Feature grid -------- */
.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--border-active); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--brand-ghost);
  border: 1px solid rgba(255, 107, 0, 0.25);
  color: var(--brand);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
}
.feature-card.ai .feature-icon { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.25); color: var(--status-ai); }
.feature-card.asset .feature-icon { background: rgba(6, 182, 212, 0.12); border-color: rgba(6, 182, 212, 0.25); color: var(--status-asset); }
.feature-card.cleared .feature-icon { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.25); color: var(--status-cleared); }
.feature-card.warning .feature-icon { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.25); color: var(--status-warning); }
.feature-card.info .feature-icon { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.25); color: var(--status-info); }
.feature-card h3 { margin-bottom: 8px; font-size: 16px; }
.feature-card p { font-size: 13px; line-height: 1.6; }

/* -------- AI agent grid -------- */
.agents-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.agent {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: 18px;
  transition: border-color 0.2s ease;
}
.agent:hover { border-color: rgba(139, 92, 246, 0.4); }
.agent .agent-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--status-ai);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.agent h4 { font-size: 14px; margin-bottom: 6px; }
.agent p { font-size: 12px; line-height: 1.55; color: var(--text-tertiary); }

/* -------- Stats strip -------- */
.stat-strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--border-default);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.stat {
  background: var(--bg-card);
  padding: 28px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.stat span { color: var(--text-tertiary); font-size: 12px; margin-top: 8px; display: block; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

/* -------- Pricing -------- */
.pricing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(255, 107, 0, 0.08), var(--bg-card) 60%);
  box-shadow: var(--sh-glow);
}
.price-card .tier {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.price-card h3 { font-size: 20px; margin: 6px 0 12px; }
.price-card .amount {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}
.price-card .amount small {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-left: 4px;
}
.price-card .cap { color: var(--text-tertiary); font-size: 12px; margin-top: 6px; font-family: var(--font-mono); }
.price-card .desc { color: var(--text-secondary); font-size: 13px; margin: 18px 0 22px; line-height: 1.6; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.price-list li::before { content: '✓'; color: var(--status-cleared); font-weight: 700; flex: none; }
.price-list li.muted { color: var(--text-tertiary); }
.price-list li.muted::before { content: '−'; color: var(--text-tertiary); }
.price-card .btn { margin-top: auto; width: 100%; }
.badge-pop {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--brand);
  color: #0A0F18;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  box-shadow: var(--sh-glow);
}

/* -------- Comparison table -------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--border-default);
}
.compare th { color: var(--text-tertiary); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--bg-dark); }
.compare th.center, .compare td.center { text-align: center; }
.compare tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--status-cleared); font-weight: 700; font-family: var(--font-mono); }
.compare .no  { color: var(--text-tertiary); font-family: var(--font-mono); }
.compare .lim { color: var(--status-warning); font-family: var(--font-mono); font-size: 11px; }
.compare .group td {
  background: var(--bg-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
@media (max-width: 720px) {
  .compare-wrap { overflow-x: auto; }
  .compare { min-width: 720px; }
}

/* -------- Testimonials -------- */
.tg {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.t-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: 24px;
}
.t-card .quote { color: var(--text-primary); font-size: 14px; line-height: 1.6; }
.t-card .who { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-default); }
.t-card .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-pressed));
  display: grid; place-items: center;
  color: #0A0F18;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-mono);
  flex: none;
}
.t-card .who b { display: block; font-size: 13px; }
.t-card .who span { color: var(--text-tertiary); font-size: 12px; }

/* -------- CTA banner -------- */
.cta-banner {
  position: relative;
  border-radius: var(--r-xl);
  padding: 64px 32px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 107, 0, 0.25), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border-active);
  overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(26px, 2.4vw + 12px, 36px); margin-bottom: 14px; }
.cta-banner p { max-width: 580px; margin: 0 auto 28px; font-size: 15px; }
.cta-banner .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* -------- Footer -------- */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border-default);
  background: var(--bg-darkest);
  padding: 56px 0 28px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1.5fr repeat(4, 1fr);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p { margin-top: 14px; max-width: 320px; font-size: 13px; }
.footer-brand .acn { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); margin-top: 12px; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-secondary); font-size: 13px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border-default);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-tertiary);
  font-size: 12px;
}
.footer-bottom .legal { display: flex; gap: 18px; }
.footer-bottom .legal a:hover { color: var(--brand); }

/* -------- Page header (interior) -------- */
.page-header {
  padding: 80px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(800px 320px at 50% 0%, rgba(255, 107, 0, 0.16), transparent 65%);
  z-index: 0;
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(32px, 3vw + 18px, 52px); margin: 14px 0 14px; }
.page-header p { max-width: 660px; margin: 0 auto; font-size: 16px; line-height: 1.6; }

/* -------- Forms -------- */
.form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  padding: 32px;
}
.form-grid { display: grid; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  background: var(--bg-darkest);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  padding: 12px 14px;
  color: var(--text-primary);
  outline: none;
  font-size: 14px;
  min-height: 44px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}
.form-row textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-status { font-size: 13px; color: var(--status-cleared); min-height: 1.2em; margin-top: 4px; }

/* -------- FAQ -------- */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq details[open] { border-color: var(--border-active); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: 20px;
  transition: transform 0.2s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > .a { padding: 0 22px 22px; color: var(--text-secondary); font-size: 13.5px; line-height: 1.65; }

/* -------- About / team -------- */
.team-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: 22px;
  text-align: center;
}
.team-card .avatar { width: 64px; height: 64px; margin: 0 auto 14px; font-size: 18px; }
.team-card b { display: block; font-size: 14px; }
.team-card span { color: var(--text-tertiary); font-size: 12px; }

/* Two column split */
.split {
  display: grid;
  gap: 36px;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
}
.split h2 { font-size: clamp(26px, 2.2vw + 14px, 36px); margin-bottom: 16px; }
.split p { font-size: 15px; margin-bottom: 14px; line-height: 1.7; }

/* -------- Code blocks -------- */
pre.code, .code-block {
  background: var(--bg-darkest);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #D8E1F0;
  line-height: 1.6;
}
.code-block .k { color: #C4B5FD; }
.code-block .s { color: #6EE7B7; }
.code-block .c { color: var(--text-tertiary); font-style: italic; }
.code-block .n { color: #FDBA74; }
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--brand-ghost);
  border: 1px solid rgba(255, 107, 0, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  color: #FED7AA;
}

/* -------- Docs layout -------- */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 32px 0 80px;
  align-items: start;
}
.docs-side {
  position: sticky;
  top: calc(var(--topbar) + 24px);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: 22px;
  max-height: calc(100vh - var(--topbar) - 60px);
  overflow-y: auto;
}
.docs-side h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 18px 0 8px;
}
.docs-side h4:first-child { margin-top: 0; }
.docs-side ul { list-style: none; }
.docs-side li a {
  display: block;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  margin-left: -12px;
}
.docs-side li a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }
.docs-side li a.active {
  color: var(--brand);
  background: var(--brand-ghost);
  border-left: 2px solid var(--brand);
  padding-left: 10px;
}
.docs-content { max-width: 760px; }
.docs-content h1 { font-size: 32px; margin-bottom: 8px; }
.docs-content h2 {
  font-size: 22px;
  margin: 40px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border-default);
}
.docs-content h3 { margin: 28px 0 10px; font-size: 17px; }
.docs-content p, .docs-content li { color: var(--text-secondary); font-size: 14.5px; line-height: 1.75; }
.docs-content p { margin-bottom: 14px; }
.docs-content ul, .docs-content ol { margin: 0 0 18px 22px; }
.docs-content li { margin-bottom: 6px; }
.docs-content a { color: var(--brand); border-bottom: 1px dashed rgba(255, 107, 0, 0.4); }
.docs-content a:hover { color: var(--brand-hover); }
.docs-content hr { border: none; border-top: 1px solid var(--border-default); margin: 32px 0; }
.callout {
  border-left: 3px solid var(--status-info);
  background: rgba(59, 130, 246, 0.07);
  padding: 14px 18px;
  border-radius: var(--r-md);
  margin: 18px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.callout.warn { border-color: var(--status-warning); background: rgba(245, 158, 11, 0.07); }
.callout.brand { border-color: var(--brand); background: rgba(255, 107, 0, 0.07); }
.callout.ai { border-color: var(--status-ai); background: rgba(139, 92, 246, 0.07); }
.callout b { color: var(--text-primary); }

.next-prev {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 50px; padding-top: 24px;
  border-top: 1px solid var(--border-default);
}
.next-prev a {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  transition: border-color 0.15s ease;
}
.next-prev a:hover { border-color: var(--brand); }
.next-prev a small { display: block; color: var(--text-tertiary); font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.next-prev a b { color: var(--text-primary); display: block; margin-top: 4px; font-size: 14px; }
.next-prev a.next { text-align: right; }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-side { position: static; max-height: none; }
}

/* -------- API table -------- */
.api-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 14px 0;
}
.api-table th, .api-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--border-default);
}
.api-table th { color: var(--text-tertiary); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--bg-dark); }
.api-table td:first-child { font-family: var(--font-mono); color: #FED7AA; font-size: 12px; }
.api-table tr:last-child td { border-bottom: none; }
.method {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  font-weight: 700;
  margin-right: 8px;
}
.method.get  { background: rgba(16, 185, 129, 0.15); color: var(--status-cleared); }
.method.post { background: rgba(139, 92, 246, 0.15); color: var(--status-ai); }
.method.del  { background: rgba(239, 68, 68, 0.15); color: var(--status-blocked); }

/* -------- ROI calculator -------- */
.roi {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--r-xl);
  padding: 32px;
  max-width: 760px;
  margin: 0 auto;
  display: grid; gap: 18px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) { .roi { grid-template-columns: 1fr; } }
.roi label { font-size: 12px; color: var(--text-secondary); font-weight: 600; display: block; margin-bottom: 6px; }
.roi input[type=range] { width: 100%; accent-color: var(--brand); }
.roi .num-out {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
}
.roi .out-label { color: var(--text-tertiary); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.roi .roi-block { background: var(--bg-darkest); padding: 18px; border-radius: var(--r-md); border: 1px solid var(--border-default); }
.roi .grand { grid-column: 1 / -1; text-align: center; padding: 22px; background: linear-gradient(120deg, rgba(255,107,0,0.1), transparent); border-radius: var(--r-md); }
.roi .grand .num-out { font-size: 40px; }

/* -------- Reveal (defensive: visible by default, JS adds the in-anim) -------- */
/* Sections are visible immediately. If JS loads and IntersectionObserver works,
   the .js-reveal class gets added (start hidden, animate in). If JS or IO fails,
   everything is still readable — content is never dependent on JS. */
.reveal { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }
.js-reveal { opacity: 0; transform: translateY(18px); }
.js-reveal.visible { opacity: 1; transform: translateY(0); }

/* Belt-and-braces: if scripting disabled by browser, force visible */
@media (scripting: none) {
  .reveal, .js-reveal { opacity: 1 !important; transform: none !important; }
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .dash-frame, .orb, .reveal, .js-reveal { transform: none !important; opacity: 1 !important; }
}

/* -------- Accessibility (audit 2026-06) -------- */
:root { --text-tertiary: rgba(255, 255, 255, 0.6); } /* lift small-caption contrast toward WCAG AA */
a:focus-visible, button:focus-visible, .btn:focus-visible, .menu-toggle:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--brand); color: #0A0F18; padding: 10px 16px; font-weight: 700; text-decoration: none; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }