/* ═══════════════════════════════════════════════════════════════
   HelixGate v2 — Shared Stylesheet
   Design system: Lattice v2 — Sentinel (Indigo + Sora/Inter)
   Matches the platform application design exactly.
   ═══════════════════════════════════════════════════════════════ */

/* ── Self-hosted fonts ── Sora (headlines), Inter (body), DM Mono (code) ── */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sora-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/sora-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/sora-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/sora-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
  size-adjust: 100%;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
  size-adjust: 100%;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
  size-adjust: 100%;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700.woff2') format('woff2');
  size-adjust: 100%;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-mono-500.woff2') format('woff2');
}

/* ── Design Tokens — Sentinel Dark (matches platform index.css) ── */
:root {
  /* Backgrounds */
  --bg:          #0B0F19;
  --bg-card:     #111827;
  --bg-surface:  #1E293B;
  --bg-elevated: #1f2a3c;

  /* Borders */
  --border:      rgba(203, 213, 225, 0.06);
  --border-md:   rgba(203, 213, 225, 0.12);
  --border-hi:   rgba(99, 102, 241, 0.25);

  /* Primary — indigo (Sentinel) */
  --accent:      #6366F1;
  --accent-hover:#4F46E5;
  --accent-dim:  rgba(99, 102, 241, 0.10);
  --accent-glow: rgba(99, 102, 241, 0.25);
  --accent-text: #a5b4fc;

  /* Semantic */
  --green:       #22c55e;
  --green-text:  #4ade80;
  --red:         #f87171;
  --amber:       #fbbf24;

  /* Text */
  --text:        #d8e3fb;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;

  /* Section accent colours (matches platform) */
  --section-governance: #a78bfa;
  --section-security:   #f87171;
  --section-business:   #f472b6;

  /* Typography — Sentinel */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Border radius — Sentinel (slightly rounded) */
  --radius-sm:  4px;
  --radius:     6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow:     0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md:  0 8px 24px rgba(0, 0, 0, 0.5);

  /* Layout */
  --max-w: 1160px;

  /* Motion */
  --transition:      0.2s ease;
  --transition-fast: 0.1s ease;
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
code { font-family: var(--font-mono); font-size: 0.875em; }

/* ── Background grid texture (matches platform tint) ──────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Container ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ── Nav ──────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #0a0e14;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 5px 11px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(56, 189, 248, 0.06);
}
.nav-links a.active { color: var(--accent); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Nav Dropdown ─────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  padding: 5px 11px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-trigger:hover { color: var(--text); background: rgba(56,189,248,0.06); }
.nav-dropdown-trigger::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-trigger::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 300;
}
.nav-dropdown-menu-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-md);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-dropdown-menu a:hover { color: var(--text); background: rgba(56,189,248,0.06); }
.nav-dropdown-menu a.active { color: var(--accent); }
.nav-dropdown-menu .dd-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-md);
  background: rgba(203, 213, 225, 0.05);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-hi);
}
.btn-outline:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.4);
}
.btn-primary {
  background: var(--accent);
  color: #0a0e14;
  font-weight: 600;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 24px var(--accent-glow);
  color: #0a0e14;
}
.btn-lg {
  padding: 10px 22px;
  font-size: 14px;
}

/* ── Typography ───────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}
.eyebrow.muted { color: var(--text-muted); }
.eyebrow.muted::before { background: var(--text-dim); }
.eyebrow.purple { color: var(--section-governance); }
.eyebrow.purple::before { background: var(--section-governance); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
}
h4 { font-size: 0.95rem; font-weight: 600; }

p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 14px;
}
p:last-child { margin-bottom: 0; }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-md); }
.card-surface {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
}
.card-accent {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

/* ── Check list ───────────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 9px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-family: var(--font-body);
}
.check-item .chk {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-text);
  font-size: 9px;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-item strong { color: var(--text); font-weight: 500; }

/* ── Tag / Pill ───────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--accent-dim);
  color: var(--accent-text);
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.tag.green {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green-text);
  border-color: rgba(34, 197, 94, 0.25);
}
.tag.purple {
  background: rgba(167, 139, 250, 0.1);
  color: var(--section-governance);
  border-color: rgba(167, 139, 250, 0.2);
}
.tag.amber {
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.2);
}

/* ── Section spacing ──────────────────────────────────────────── */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }

/* ── Page hero ────────────────────────────────────────────────── */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.page-hero .lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
}

/* ── Grid helpers ─────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.col-gap-lg { gap: 56px; }
.align-start { align-items: start; }
.align-center { align-items: center; }

/* ── CTA Band ─────────────────────────────────────────────────── */
.cta-band {
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(56,189,248,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 500px; margin: 0 auto 28px; }
.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Disclosure steps ─────────────────────────────────────────── */
.disclosure-step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: var(--accent-dim);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ── Code / mono accents ──────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  color: var(--accent-text);
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand-mark {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: #0a0e14;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 16px;
}
.footer-col-heading {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  font-family: var(--font-body);
}
.footer-col-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--text-dim); font-family: var(--font-body); }
.footer-legal-links { display: flex; gap: 18px; }
.footer-legal-links a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal-links a:hover { color: var(--text-muted); }

/* ── Animations ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
.anim-fade-up { animation: fadeUp 0.6s ease both; }
.anim-delay-1 { animation-delay: 0.08s; }
.anim-delay-2 { animation-delay: 0.16s; }
.anim-delay-3 { animation-delay: 0.24s; }
.anim-delay-4 { animation-delay: 0.32s; }

/* ── Mobile nav ───────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  background: transparent;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: all 0.25s;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 2px;
    z-index: 199;
  }
  .nav-links.open a { padding: 9px 10px; font-size: 14px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-lg { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { padding: 36px 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .btn-lg { padding: 9px 18px; font-size: 13.5px; }
  h1 { font-size: 2rem; }
}
