/* ==========================================================================
   SMAC™ — Sovereign AI Memory
   Design tokens
   ========================================================================== */

:root {
  /* Color */
  --void:        #070B12;   /* base background */
  --panel:       #0E1620;   /* card / panel surface */
  --panel-2:     #101A26;   /* alt panel, waitlist / footer */
  --wire:        #1E2B3D;   /* hairline borders, circuit trace */
  --wire-soft:   #16202E;
  --ink:         #EAF0F7;   /* primary text */
  --ink-dim:     #8A96A8;   /* secondary text */
  --ink-faint:   #56637A;
  --signal-blue: #3DA5FF;   /* "answer" packet / primary accent */
  --signal-red:  #FF4B5C;   /* "refusal" packet / secondary accent */
  --amber:       #FFB238;   /* action / CTA — reserved for buttons only */

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

ul { margin: 0; padding: 0; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal-blue);
  box-shadow: 0 0 8px 1px var(--signal-blue);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 14px;
}
.section-head p {
  color: var(--ink-dim);
  font-size: 16.5px;
  margin-top: 16px;
}
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }

section { position: relative; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wire);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal-blue);
  box-shadow: 0 0 10px 2px rgba(61,165,255,0.7);
}
.brand sup { font-size: 10px; color: var(--ink-faint); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14.5px;
  color: var(--ink-dim);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--wire);
  border-radius: 6px;
  width: 38px; height: 38px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--void);
    border-bottom: 1px solid var(--wire);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--wire-soft); }
}

/* ==========================================================================
   Hero + network visualization
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  isolation: isolate;
}

.hero-viz {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--void);
}

.circuit-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(7,11,18,0.35) 0%, rgba(7,11,18,0.72) 62%, rgba(7,11,18,0.94) 100%),
    linear-gradient(180deg, rgba(7,11,18,0.55) 0%, rgba(7,11,18,0.35) 30%, rgba(7,11,18,0.9) 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(68px, 11.5vw, 132px);
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin-top: 22px;
  background: linear-gradient(180deg, #8FE6FF 0%, #3DA5FF 50%, #1957D6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 14px 26px rgba(24, 100, 235, 0.45));
  text-shadow:
    1px 1px 0 rgba(12, 46, 102, 0.85),
    2px 2px 0 rgba(11, 40, 92, 0.8),
    3px 3px 0 rgba(9, 34, 80, 0.75),
    4px 4px 0 rgba(8, 28, 68, 0.7),
    5px 5px 1px rgba(6, 22, 56, 0.6),
    6px 8px 16px rgba(0, 0, 0, 0.45);
}

.hero h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(15px, 2.6vw, 30px);
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  margin-top: 12px;
}

.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-dim);
  line-height: 1.65;
}

.badges {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.badge {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  background: rgba(14, 22, 32, 0.75);
  border: 1px solid var(--wire);
  border-radius: 100px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(6px);
}
.badge.patent { color: var(--amber); border-color: rgba(255,178,56,0.35); }

.hub-labels {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hub-label {
  position: absolute;
  transform: translate(-50%, -135%);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: rgba(138, 150, 168, 0.75);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hub-labels { display: none; }
}

/* ==========================================================================
   Problem / narrative band
   ========================================================================== */

.band {
  padding: 88px 0;
  border-top: 1px solid var(--wire);
}
.band-intro {
  max-width: 720px;
  margin-bottom: 52px;
}
.band-intro h2 { font-size: clamp(26px, 3.2vw, 36px); margin-top: 14px; }
.band-intro p { margin-top: 16px; color: var(--ink-dim); font-size: 16.5px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--wire);
  border-radius: 14px;
  padding: 28px 26px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: rgba(61,165,255,0.35); transform: translateY(-2px); }

.card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--wire);
  margin-bottom: 18px;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.card p {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.6;
}
.card ul {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.card ul li {
  list-style: none;
  font-size: 14px;
  color: var(--ink-dim);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--signal-blue);
}

.band.alt { background: var(--panel-2); }

/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); margin: 4px auto; }
}
.step {
  background: var(--panel);
  border: 1px solid var(--wire);
  border-radius: 14px;
  padding: 30px 24px;
}
.step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal-blue);
  border: 1px solid rgba(61,165,255,0.35);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 17.5px; margin-bottom: 10px; }
.step p { color: var(--ink-dim); font-size: 14.5px; }
.step-arrow {
  color: var(--ink-faint);
  font-size: 20px;
  align-self: center;
  padding-top: 40px;
}

/* ==========================================================================
   Waitlist
   ========================================================================== */

.waitlist {
  padding: 90px 0;
  text-align: center;
  border-top: 1px solid var(--wire);
  position: relative;
}
.waitlist h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 14px; }
.waitlist-form {
  margin: 34px auto 0;
  display: flex;
  gap: 10px;
  max-width: 440px;
}
.waitlist-form input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--wire);
  border-radius: 9px;
  padding: 13px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
}
.waitlist-form input:focus {
  outline: none;
  border-color: var(--signal-blue);
  box-shadow: 0 0 0 3px rgba(61,165,255,0.15);
}
.waitlist-form input::placeholder { color: var(--ink-faint); }

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  border: none;
  border-radius: 9px;
  padding: 13px 22px;
  background: var(--amber);
  color: #16110A;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.waitlist-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-faint);
}
.waitlist-success {
  display: none;
  margin: 34px auto 0;
  max-width: 440px;
  border: 1px solid rgba(61,165,255,0.35);
  background: rgba(61,165,255,0.08);
  border-radius: 9px;
  padding: 16px;
  font-size: 14.5px;
  color: var(--ink);
}
.waitlist-success.show { display: block; }
.waitlist-form.hide { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  border-top: 1px solid var(--wire);
  padding: 48px 0 40px;
  background: var(--panel-2);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--wire);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-dim);
}
.footer-links a:hover { color: var(--ink); }
.footer-legal {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.7;
}

/* ==========================================================================
   Legal pages (Terms / Privacy)
   ========================================================================== */

.legal-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--wire);
}
.legal-hero .eyebrow { margin-bottom: 16px; }
.legal-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.legal-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.8;
}

.legal-body {
  padding: 56px 0 90px;
}
.legal-body .wrap { max-width: 820px; }
.legal-intro {
  font-size: 15px;
  color: var(--ink-dim);
  background: var(--panel);
  border: 1px solid var(--wire);
  border-left: 3px solid var(--signal-blue);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 44px;
}
.legal-body h2 {
  font-size: 20px;
  margin-top: 46px;
  margin-bottom: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--wire);
}
.legal-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body p {
  color: var(--ink-dim);
  font-size: 15px;
  margin-bottom: 14px;
}
.legal-body ul {
  margin: 14px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.legal-body ul li {
  list-style: none;
  color: var(--ink-dim);
  font-size: 15px;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--signal-blue);
}
.legal-body a.mail {
  color: var(--signal-blue);
  border-bottom: 1px solid rgba(61,165,255,0.35);
}
.legal-body strong { color: var(--ink); }
.legal-closing {
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--wire);
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.8;
}
