/* =========================================================
   AUREVON LABS — Design Tokens
   Dark near-black + Aurevon Electric Blue signature accent
   ========================================================= */

:root {
  /* ---- Type scale (fluid clamp) ---- */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 7vw, 7.5rem);

  /* ---- Spacing (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Surfaces: near-black navy ---- */
  --color-bg: #05070c;
  --color-surface: #090c14;
  --color-surface-2: #0d111c;
  --color-surface-offset: #10141f;
  --color-surface-offset-2: #141926;
  --color-surface-dynamic: #181e2d;
  --color-divider: #1a2030;
  --color-border: #232a3d;
  --color-border-strong: #2e3852;

  /* ---- Text ---- */
  --color-text: #eef2fb;
  --color-text-muted: #9aa4bd;
  --color-text-faint: #5c6580;
  --color-text-inverse: #05070c;

  /* ---- Aurevon Electric Blue (signature accent) ---- */
  --color-primary: #0a6cff;
  --color-primary-hover: #2e85ff;
  --color-primary-active: #0854cc;
  --color-primary-highlight: #0f1d3a;
  --color-glow: #00c2ff;
  --color-glow-2: #4da3ff;
  --color-spark: #e6f4ff;

  /* ---- Status (used sparingly) ---- */
  --color-success: #35d68f;
  --color-warning: #ffb545;
  --color-error: #ff5470;

  /* ---- Radius ---- */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* ---- Transitions ---- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Shadows (cool navy tone) ---- */
  --shadow-sm: 0 1px 2px rgba(0, 4, 16, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 4, 16, 0.55);
  --shadow-lg: 0 24px 64px rgba(0, 4, 16, 0.65);
  --shadow-glow-sm: 0 0 16px rgba(10, 108, 255, 0.35);
  --shadow-glow-md: 0 0 32px rgba(10, 108, 255, 0.4), 0 0 64px rgba(0, 194, 255, 0.15);

  /* ---- Content widths ---- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-max: 1360px;
  --content-full: 100%;

  /* ---- Fonts ---- */
  --font-display: 'Cabinet Grotesk', 'General Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* =========================================================
   Global element styles
   ========================================================= */

body {
  background: var(--color-bg);
  overflow-x: hidden;
}

/* Subtle procedural background: faint grid + radial vignette */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(35, 42, 61, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 42, 61, 0.28) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 85%);
  opacity: 0.5;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 60% 40% at 15% -5%, rgba(10, 108, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 35% at 100% 20%, rgba(0, 194, 255, 0.1), transparent 60%);
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

p {
  color: var(--color-text-muted);
  max-width: 68ch;
}

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

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-16));
}

section {
  position: relative;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-glow);
  font-weight: 600;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-glow);
  box-shadow: 0 0 8px 2px var(--color-glow);
}

.section-heading {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-block: var(--space-4) var(--space-5);
  max-width: 18ch;
}

.section-lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.6;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  isolation: isolate;
  overflow: visible;
  white-space: nowrap;
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(10, 108, 255, 0.5), var(--shadow-glow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 0 0 1px rgba(46, 133, 255, 0.7), var(--shadow-glow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover {
  border-color: var(--color-glow);
  color: var(--color-spark);
  box-shadow: 0 0 0 1px rgba(0, 194, 255, 0.35), 0 0 24px rgba(0, 194, 255, 0.15);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
}
.btn-ghost:hover {
  color: var(--color-text);
}

/* =========================================================
   Crackle edge-glow pulse — fired on the interactive element
   itself alongside a dramatic lightning strike (hover/click/focus)
   so the feedback reads as unmistakable, premium electricity.
   ========================================================= */
@keyframes crackle-pulse-ring {
  0% {
    box-shadow:
      0 0 0 0 rgba(0, 194, 255, 0),
      0 0 0 1px rgba(0, 194, 255, 0.4),
      0 0 0 rgba(77, 163, 255, 0);
    filter: brightness(1);
  }
  18% {
    box-shadow:
      0 0 0 2px rgba(230, 244, 255, 0.9),
      0 0 22px 4px rgba(0, 194, 255, 0.85),
      0 0 46px 10px rgba(10, 108, 255, 0.5);
    filter: brightness(1.35);
  }
  55% {
    box-shadow:
      0 0 0 1px rgba(0, 194, 255, 0.55),
      0 0 16px 2px rgba(0, 194, 255, 0.45),
      0 0 30px 6px rgba(10, 108, 255, 0.25);
    filter: brightness(1.12);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(0, 194, 255, 0),
      0 0 0 1px rgba(0, 194, 255, 0),
      0 0 0 rgba(10, 108, 255, 0);
    filter: brightness(1);
  }
}

.crackle-pulse {
  animation: crackle-pulse-ring 700ms ease-out;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(35, 42, 61, 0.6);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.site-header--hidden {
  transform: translateY(-100%);
}

.site-header--scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(10, 108, 255, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: 0.02em;
}

.nav-brand svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-glow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-interactive);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: all var(--transition-interactive);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) clamp(var(--space-5), 5vw, var(--space-16)) var(--space-6);
  border-top: 1px solid var(--color-divider);
  background: rgba(5, 7, 12, 0.98);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-secondary { display: none; }
}

@media (max-width: 560px) {
  .nav-actions #navCta { display: none; }
  .nav-brand span { font-size: var(--text-sm); }
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-block: clamp(var(--space-20), 14vw, var(--space-32)) var(--space-24);
  overflow: hidden;
}

.hero-canvas-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-scene3d-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.page-scene3d-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .page-scene3d-layer {
    opacity: 0.08;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-10);
  width: 100%;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.hero-shield {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 0 24px rgba(10, 108, 255, 0.55));
  animation: shield-pulse 4.5s ease-in-out infinite;
}

@keyframes shield-pulse {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(10, 108, 255, 0.5)); }
  50% { filter: drop-shadow(0 0 40px rgba(0, 194, 255, 0.75)); }
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-title .accent {
  background: linear-gradient(120deg, var(--color-glow) 0%, var(--color-primary) 55%, var(--color-glow-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-positioning {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
  line-height: 1.55;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(var(--space-6), 5vw, var(--space-12));
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-glow);
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

/* =========================================================
   Mission
   ========================================================= */

.mission-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}

.mission-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.mission-text p {
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 62ch;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.pillar-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(16, 20, 31, 0.6), rgba(9, 12, 20, 0.6));
}

.pillar-index {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-glow);
  font-weight: 700;
  flex-shrink: 0;
}

.pillar-item h3 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.pillar-item p {
  font-size: var(--text-sm);
  margin: 0;
}

.mission-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: radial-gradient(circle at 30% 20%, rgba(10, 108, 255, 0.18), transparent 60%), var(--color-surface);
  overflow: hidden;
}

.mission-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mission-visual-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5);
  background: linear-gradient(0deg, rgba(5, 7, 12, 0.92), transparent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================================
   Ecosystem cards
   ========================================================= */

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.eco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: linear-gradient(160deg, rgba(16, 20, 31, 0.7), rgba(9, 12, 20, 0.85));
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.eco-card canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.eco-card:hover,
.eco-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(0, 194, 255, 0.45);
  box-shadow: var(--shadow-glow-md), var(--shadow-lg);
}

.eco-card:nth-child(2) {
  border-color: rgba(35, 42, 61, 1);
}

.eco-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-glow);
}

.eco-icon svg {
  width: 100%;
  height: 100%;
}

.eco-tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-faint);
}

.eco-tag.live {
  color: var(--color-success);
  border-color: rgba(53, 214, 143, 0.4);
}

.eco-tag.preview {
  color: var(--color-warning);
  border-color: rgba(255, 181, 69, 0.4);
}

.eco-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}

.eco-card p {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.eco-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
}

.eco-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.eco-features li svg {
  width: 14px;
  height: 14px;
  color: var(--color-glow);
  flex-shrink: 0;
  margin-top: 3px;
}

.eco-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-glow);
  margin-top: var(--space-2);
}

.eco-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-interactive);
}

.eco-card:hover .eco-link svg {
  transform: translateX(4px);
}

/* =========================================================
   Values
   ========================================================= */

.values-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  margin-top: var(--space-8);
  align-items: start;
}

.values-list {
  display: flex;
  flex-direction: column;
}

.value-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
  cursor: default;
}

.value-row:last-child {
  border-bottom: 1px solid var(--color-divider);
}

.value-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  padding-top: var(--space-1);
}

.value-row h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  transition: color var(--transition-interactive);
}

.value-row:hover h3 {
  color: var(--color-glow);
}

.value-row p {
  font-size: var(--text-sm);
  max-width: 56ch;
}

.value-row canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.values-visual {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
}

.values-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.contact-section {
  border-top: 1px solid var(--color-divider);
  background: linear-gradient(180deg, transparent, rgba(10, 108, 255, 0.04));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(13, 17, 28, 0.5);
}

.contact-method svg {
  width: 22px;
  height: 22px;
  color: var(--color-glow);
  flex-shrink: 0;
}

.contact-method .label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
}

.contact-method .value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.founder-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(77, 163, 255, 0.35);
  background: rgba(10, 108, 255, 0.06);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

.founder-line svg {
  width: 18px;
  height: 18px;
  color: var(--color-glow);
  flex-shrink: 0;
}

.founder-line strong {
  color: var(--color-text);
  font-weight: 600;
}

.founder-line:hover,
.founder-line:focus-within {
  border-color: var(--color-glow);
  background: rgba(10, 108, 255, 0.1);
}

.contact-method:hover .value,
.contact-method:focus-within .value {
  color: var(--color-glow);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.social-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(13, 17, 28, 0.5);
  color: var(--color-text-muted);
  overflow: hidden;
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.social-link span {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
}

.social-link:hover {
  color: var(--color-spark);
  border-color: var(--color-glow);
  box-shadow: var(--shadow-glow-sm);
  transform: translateY(-3px);
}

.social-link canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

.footer-brand svg {
  width: 20px;
  height: 20px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-legal a:hover {
  color: var(--color-glow);
}

/* =========================================================
   Reveal on scroll (opacity/clip-path only — no CLS)
   ========================================================= */

.reveal {
  opacity: 1;
}

@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

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

@media (max-width: 980px) {
  .mission-grid,
  .values-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .mission-visual { order: -1; aspect-ratio: 16/9; }
  .ecosystem-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 5.5rem); }
}

@media (max-width: 700px) {
  .ecosystem-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .value-row { grid-template-columns: 40px 1fr; }
  .hero-stats { gap: var(--space-6); }
  section { padding-block: clamp(var(--space-12), 12vw, var(--space-20)); }
}

@media (max-width: 480px) {
  .hero-badge-row { gap: var(--space-3); }
  .hero-shield { width: 60px; height: 60px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}
