/* ============================================================
   Vera5 — design tokens
   ============================================================ */

:root {
  /* Surfaces */
  --void-black: #0B0E11;
  --graphite: #13171C;
  --dark-slate: #1A2027;

  /* Accents */
  --electric-amber: #F5A524;
  --signal-red: #FF4D5A;
  --terminal-teal: #22C7A9;
  --deep-violet: #8B5CF6;

  /* Text */
  --text-primary: #F5F7FA;
  --text-secondary: #A7B0BA;
  --text-low: #6B7480;

  /* Borders */
  --border-soft: #262D36;
  --border-hard: #313A45;

  /* Typography */
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hero: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Spacing — 8px scale */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-2xl: 48px;
  --s-section: 72px;
  --s-hero: 96px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* Shadows */
  --shadow-low: 0 2px 8px rgba(0, 0, 0, 0.18);
  --shadow-med: 0 6px 18px rgba(0, 0, 0, 0.28);
  --shadow-high: 0 12px 32px rgba(0, 0, 0, 0.35);

  /* Motion */
  --t-hover: 140ms;
  --t-card: 200ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --content-max: 1200px;
}

/* ============================================================
   Base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void-black);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-hover) var(--ease-out);
}

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

h1, h2, h3, h4 {
  color: var(--text-primary);
  margin: 0;
}

p { margin: 0; }

ul, ol, dl { margin: 0; padding: 0; }

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--s-lg);
}

/* ============================================================
   Accessibility
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-md);
  background: var(--electric-amber);
  color: var(--void-black);
  padding: var(--s-sm) var(--s-md);
  border-radius: var(--r-sm);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus {
  top: var(--s-md);
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--electric-amber);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 17, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
  padding-top: var(--s-md);
  padding-bottom: var(--s-md);
}

.brand {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
}
.brand-mark::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--electric-amber);
  margin-left: 6px;
  border-radius: 1px;
  vertical-align: 4px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}
.primary-nav a {
  color: var(--text-secondary);
}
.primary-nav a:hover {
  color: var(--text-primary);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: var(--s-hero) 0 var(--s-section);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 0%, rgba(245, 165, 36, 0.07), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.05), transparent 60%),
    var(--void-black);
  border-bottom: 1px solid var(--border-soft);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(245, 247, 250, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-container {
  position: relative;
  z-index: 1;
}
.hero-marker {
  width: 36px;
  height: 2px;
  background: var(--electric-amber);
  margin-bottom: var(--s-lg);
}
.hero-title {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero-tagline {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-top: var(--s-lg);
  max-width: 820px;
}
.hero-description {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 660px;
  margin-top: var(--s-lg);
}
.status-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: var(--s-xl);
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  letter-spacing: 0.01em;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric-amber);
  box-shadow: 0 0 10px rgba(245, 165, 36, 0.45);
  flex-shrink: 0;
}
.hero-actions {
  margin-top: var(--s-xl);
  display: flex;
  gap: var(--s-md);
  flex-wrap: wrap;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out),
    box-shadow var(--t-hover) var(--ease-out),
    transform var(--t-hover) var(--ease-out),
    color var(--t-hover) var(--ease-out);
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--electric-amber);
  color: var(--void-black);
}
.btn-primary:hover {
  background: #F7B23F;
  box-shadow: 0 0 24px rgba(245, 165, 36, 0.22);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hard);
}
.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: var(--graphite);
  transform: translateY(-1px);
}

/* ============================================================
   Section primitives
   ============================================================ */

.section {
  padding: var(--s-section) 0;
  border-bottom: 1px solid var(--border-soft);
}
.section-alt {
  background: var(--graphite);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--electric-amber);
  margin-bottom: var(--s-md);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--electric-amber);
}

.section-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-xl);
  max-width: 820px;
}

.section-body {
  max-width: 720px;
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.section-body p + p { margin-top: var(--s-md); }

/* ============================================================
   Card grid — “What Vera5 Does”
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-md);
}
.card {
  background: var(--dark-slate);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  transition:
    border-color var(--t-card) var(--ease-out),
    transform var(--t-card) var(--ease-out),
    box-shadow var(--t-card) var(--ease-out);
}
.card:hover {
  border-color: var(--border-hard);
  transform: translateY(-2px);
  box-shadow: var(--shadow-low);
}
.card-icon {
  display: inline-flex;
  color: var(--electric-amber);
  margin-bottom: var(--s-md);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--s-sm);
  letter-spacing: -0.005em;
}
.card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   Trust list
   ============================================================ */

.trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--s-md);
}
.trust-item {
  display: flex;
  gap: var(--s-md);
  padding: var(--s-lg);
  background: var(--graphite);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  transition: border-color var(--t-hover) var(--ease-out);
}
.trust-item:hover { border-color: var(--border-hard); }
.trust-icon {
  flex-shrink: 0;
  color: var(--terminal-teal);
  margin-top: 2px;
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.trust-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Audience list
   ============================================================ */

.audience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--border-soft);
}
.audience-row {
  padding: var(--s-lg) var(--s-md) var(--s-lg) 0;
  border-bottom: 1px solid var(--border-soft);
}
.audience-row dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--electric-amber);
  margin-bottom: 8px;
  font-weight: 500;
}
.audience-row dd {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Status section
   ============================================================ */

.status-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--s-2xl);
  align-items: start;
}
.status-panel {
  background: var(--dark-slate);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
}
.status-panel-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  font-weight: 500;
  margin-bottom: var(--s-md);
}
.status-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.status-panel li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-md);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.status-panel li:last-child { border-bottom: 0; }
.status-panel .surface {
  color: var(--text-primary);
  font-weight: 500;
}
.status-panel .state {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.state-active { color: var(--electric-amber); }
.state-planned { color: var(--text-low); }

/* ============================================================
   Principles
   ============================================================ */

.principles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.principle {
  display: flex;
  gap: var(--s-lg);
  padding: var(--s-lg) 0;
  border-top: 1px solid var(--border-soft);
  align-items: baseline;
}
.principle:last-child { border-bottom: 1px solid var(--border-soft); }
.principle-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--electric-amber);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 32px;
}
.principle-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.principle-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.site-footer {
  background: var(--void-black);
  border-top: 1px solid var(--border-soft);
  padding: var(--s-2xl) 0 var(--s-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-xl);
  margin-bottom: var(--s-2xl);
}
.footer-brand h3 {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: var(--s-sm);
  letter-spacing: -0.01em;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  font-weight: 500;
  margin-bottom: var(--s-md);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-col a:hover { color: var(--electric-amber); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: var(--s-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-low);
  letter-spacing: 0.06em;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .status-grid { grid-template-columns: 1fr; gap: var(--s-xl); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root {
    --s-hero: 64px;
    --s-section: 56px;
    --s-2xl: 36px;
  }
  .container { padding: 0 var(--s-md); }
  .nav-container { gap: var(--s-md); }
  .primary-nav { gap: var(--s-md); font-size: 13.5px; }
  .hero-actions { width: 100%; }
  .btn { flex: 1 1 auto; justify-content: center; min-width: 140px; }
  .principle { flex-direction: column; gap: var(--s-sm); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-lg); }
  .footer-bottom { flex-direction: column; gap: var(--s-sm); text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(48px, 12vw, 72px); }
}
