/* ==========================================================================
   ETXCompany — shared stylesheet
   Dark hi-tech theme · purple / blue primary, cyan / green / gold accents
   Fonts: Sora (display), Inter (body), JetBrains Mono (labels) via Bunny Fonts
   No animations beyond short hover transitions. No scroll-driven effects.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #05060b;
  --bg-alt: #080a14;
  --surface: #0d1020;
  --surface-2: #13172b;
  --line: rgba(148, 163, 255, 0.12);
  --line-strong: rgba(148, 163, 255, 0.24);

  --text: #eceefb;
  --text-2: #c3c7e4;
  --muted: #9298bd;
  --dim: #6b7196;

  --purple: #8b5cf6;
  --purple-lt: #b197fc;
  --blue: #3b82f6;
  --blue-lt: #7aa7ff;
  --cyan: #22d3ee;
  --green: #34d399;
  --gold: #f5c451;
  --alert: #f87171; /* reserved for alerts / special emphasis only */

  --grad-brand: linear-gradient(100deg, var(--purple-lt) 0%, var(--blue-lt) 55%, var(--cyan) 100%);
  --grad-btn: linear-gradient(110deg, #7c4dff 0%, #4f6bff 55%, #2f8cff 100%);

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);

  --ease: cubic-bezier(.2, .7, .2, 1);

  /* default accent, overridden by .accent-* classes */
  --accent: var(--purple);
  --accent-2: var(--blue);
}

.accent-purple { --accent: var(--purple-lt); --accent-2: var(--purple); }
.accent-blue   { --accent: var(--blue-lt);   --accent-2: var(--blue); }
.accent-cyan   { --accent: var(--cyan);      --accent-2: var(--blue); }
.accent-green  { --accent: var(--green);     --accent-2: var(--cyan); }
.accent-gold   { --accent: var(--gold);      --accent-2: var(--purple); }

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* Ligatures off everywhere (fi, fl, ->, != etc. stay as separate characters) */
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Static ambient background: one fixed, non-animated layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(800px 600px at -10% 35%, rgba(59, 130, 246, 0.10), transparent 60%),
    radial-gradient(700px 500px at 70% 110%, rgba(34, 211, 238, 0.06), transparent 60%),
    var(--bg);
}

img { display: block; max-width: 100%; height: auto; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  font-feature-settings: inherit;
  font-variant-ligatures: inherit;
}

a { color: var(--blue-lt); text-decoration: none; }
a:hover { color: var(--text); }

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

p { margin: 0; }

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

figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn i { font-size: 0.85em; transition: color .2s var(--ease); }

/* Primary: the brand gradient dimmed over frosted glass (button-lab E1). */
.btn-primary {
  border-color: rgba(177, 151, 252, 0.42);
  background: linear-gradient(110deg, rgba(124, 77, 255, 0.28) 0%, rgba(79, 107, 255, 0.18) 55%, rgba(47, 140, 255, 0.12) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--text);
}
.btn-primary i { color: var(--purple-lt); }
.btn-primary:hover {
  border-color: rgba(177, 151, 252, 0.78);
  background: linear-gradient(110deg, rgba(124, 77, 255, 0.40) 0%, rgba(79, 107, 255, 0.28) 55%, rgba(47, 140, 255, 0.20) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 26px -12px rgba(124, 77, 255, 0.8);
  color: #fff;
}
.btn-primary:hover i { color: #fff; }

/* Secondary: same shape, neutral edge, no tint. */
.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
}
.btn-ghost i { color: var(--muted); }
.btn-ghost:hover {
  border-color: rgba(177, 151, 252, 0.5);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.btn-ghost:hover i { color: var(--purple-lt); }

.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 0.88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- 4. Header & navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 6, 11, 0.92);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  /* thin brand glow line under the bar */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), rgba(59, 130, 246, 0.6), transparent);
  opacity: 0.6;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; height: 44px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link i { font-size: 0.7em; color: var(--dim); transition: transform .2s var(--ease); }
.nav-link:hover,
.has-menu.is-open > .nav-link { color: var(--text); background: rgba(139, 92, 246, 0.08); }
.has-menu.is-open > .nav-link i { transform: rotate(180deg); color: var(--purple-lt); }

.nav-item--cta { margin-left: 10px; }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(139, 92, 246, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
/* invisible bridge so the hover menu doesn't close in the gap */
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -12px;
  height: 12px;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.93rem;
}
.nav-menu a i {
  width: 18px;
  text-align: center;
  --fa-primary-color: var(--purple-lt);
  --fa-secondary-color: var(--blue);
  --fa-secondary-opacity: 0.6;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { background: rgba(139, 92, 246, 0.12); color: var(--text); }

.has-menu.is-open > .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s;
}

@media (min-width: 961px) and (hover: hover) {
  .has-menu:hover > .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s;
  }
  .has-menu:hover > .nav-link { color: var(--text); }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
}

/* Mobile navigation */
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 36px; }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 24px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line-strong);
  }
  .site-header.nav-open .primary-nav { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 8px;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 6px 0 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-menu::before { display: none; }
  .has-menu.is-open > .nav-menu { display: block; }
  .nav-menu a { padding: 12px 12px; }

  .nav-item--cta { margin: 16px 0 0; }
  .nav-item--cta .btn { width: 100%; min-height: 48px; }
}

/* ---------- 5. Sections & headings ---------- */
.section {
  position: relative;
  --section-padding: clamp(56px, 9vw, 120px);
  padding-block: var(--section-padding);
}
.section--tight { --section-padding: clamp(48px, 6vw, 80px); }

/* Land near the content rather than above the section's decorative spacing. */
.section[id] { scroll-margin-block-start: calc(16px - var(--section-padding)); }

.section--alt {
  background: linear-gradient(180deg, rgba(13, 16, 32, 0) 0%, rgba(13, 16, 32, 0.7) 18%, rgba(13, 16, 32, 0.7) 82%, rgba(13, 16, 32, 0) 100%);
}

/* hairline divider at the top of each standard section */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--container), 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.section--tight + .section--tight::before { display: none; }

.section-header { max-width: 780px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-header--center { margin-inline: auto; text-align: center; }
.section-header--center .eyebrow { justify-content: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--purple-lt);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple-lt), var(--cyan));
}

.section-title {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-subtitle {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
}

.lead {
  max-width: 860px;
  margin-bottom: clamp(32px, 4vw, 48px);
  color: var(--text-2);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.7;
}

/* ---------- 6. Media placeholders ---------- */
/* Styled stand-in shows the filename + size until the real image exists.
   main.js removes the <img> if the file is missing, revealing the stand-in. */
.media {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 28% 22%, rgba(139, 92, 246, 0.30), transparent 55%),
    radial-gradient(circle at 78% 78%, rgba(34, 211, 238, 0.16), transparent 55%),
    linear-gradient(135deg, #0e1128 0%, #070912 100%);
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 85%);
  mask-image: radial-gradient(circle at center, #000 30%, transparent 85%);
}

.media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.media-label i {
  margin-bottom: 4px;
  font-size: 1.6rem;
  --fa-primary-color: var(--purple-lt);
  --fa-secondary-color: var(--blue);
  --fa-secondary-opacity: 0.5;
}
.media-label strong { color: var(--text); font-weight: 500; font-size: 0.82rem; word-break: break-all; }

.media--1x1  { aspect-ratio: 1 / 1; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--5x2  { aspect-ratio: 5 / 2; }
.media--4x5  { aspect-ratio: 4 / 5; }
.media--3x1  { aspect-ratio: 3 / 1; }

.media--glow {
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.18), 0 30px 80px -30px rgba(124, 77, 255, 0.55);
}

.section-banner { margin-bottom: clamp(32px, 4vw, 48px); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(64px, 8vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}

.hero-title {
  font-size: clamp(2.6rem, 1.5rem + 4.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-desc {
  max-width: 600px;
  margin: 24px 0 36px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.7;
}

.hero-art { position: relative; }
.hero-art::before {
  /* static orbit ring behind the art */
  content: "";
  position: absolute;
  inset: -6%;
  border: 1px dashed rgba(148, 163, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.hero-art .media { border-radius: 28px; }

/* ---------- 8. Cards ---------- */
.card-grid { display: grid; gap: 20px; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 23, 43, 0.85) 0%, rgba(11, 13, 26, 0.85) 100%);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card::before {
  /* accent line along the top edge */
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 20px 50px -28px color-mix(in srgb, var(--accent-2) 80%, transparent);
}

.card h3 { font-size: 1.2rem; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.98rem; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  font-size: 1.35rem;
  --fa-primary-color: var(--accent);
  --fa-secondary-color: var(--accent-2);
  --fa-secondary-opacity: 0.55;
  color: var(--accent);
}
.card-icon--sm { width: 44px; height: 44px; border-radius: 12px; font-size: 1.15rem; }

/* horizontal card: icon left, text right */
.card--row { flex-direction: row; align-items: flex-start; gap: 20px; }
.card--row > div { display: flex; flex-direction: column; gap: 10px; }

/* Agents grid: 7 cards → [wide + 1] [1 1 1] [1 + wide] on 3 columns */
@media (min-width: 1025px) {
  .card-grid--3 .card--wide,
  .card-grid--3 .card--wide-lg { grid-column: span 2; }
  .card--wide p,
  .card--wide-lg p { max-width: 640px; }
}

/* ---------- 9. Split layouts (text + image) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: clamp(32px, 4vw, 48px);
}
.split .lead { margin-bottom: 0; }
.split--reverse { margin-bottom: 0; }

/* ---------- 10. Hosting spotlight ---------- */
.section--spotlight {
  background:
    radial-gradient(700px 400px at 15% 30%, rgba(139, 92, 246, 0.10), transparent 70%),
    radial-gradient(600px 400px at 90% 80%, rgba(59, 130, 246, 0.08), transparent 70%);
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.spotlight-desc { color: var(--text-2); font-size: 1.05rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 32px;
}

.stat {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 16, 32, 0.8);
}
.stat dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stat dt i {
  --fa-primary-color: var(--accent);
  --fa-secondary-color: var(--accent-2);
  --fa-secondary-opacity: 0.5;
}
.stat dd { margin: 0; }
.stat-value {
  margin-top: 8px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-sub { margin-top: 2px; color: var(--dim); font-size: 0.85rem; }
.stat-bar {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(148, 163, 255, 0.1);
}
.stat-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.bar-100 { width: 100%; }
.bar-99  { width: 99%; }
.bar-80  { width: 80%; }

/* ---------- 11. DAO node list ---------- */
.node-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.node-list::before {
  /* vertical connector through the icons */
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 45px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), var(--green), var(--gold));
  opacity: 0.45;
}

.node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 16, 32, 0.85);
  transition: border-color .2s var(--ease);
}
.node:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.node h3 { font-size: 1.08rem; margin-bottom: 4px; }
.node p { color: var(--muted); font-size: 0.95rem; }

.node-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--accent) 60%, transparent);
  font-size: 1.15rem;
  color: var(--accent);
  --fa-primary-color: var(--accent);
  --fa-secondary-color: var(--accent-2);
  --fa-secondary-opacity: 0.55;
}

/* ---------- 12. Systems development timeline ---------- */
.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}
.dev-aside .lead { margin-bottom: 28px; }

@media (min-width: 1025px) {
  .dev-aside { position: sticky; top: calc(var(--header-h) + 32px); }
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 1px;
  background: linear-gradient(180deg, var(--purple), var(--blue), var(--cyan));
  opacity: 0.5;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
}

.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(177, 151, 252, 0.45);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 22px -6px rgba(139, 92, 246, 0.7);
  color: var(--purple-lt);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
}

.step-body {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 16, 32, 0.85);
}
.step-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-body p { color: var(--muted); font-size: 0.97rem; }

/* ---------- 13. Projects ---------- */
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 23, 43, 0.85) 0%, rgba(11, 13, 26, 0.85) 100%);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.project:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.project .media {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.project-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 26px 28px;
}
.project-body .card-icon { margin-top: -22px; background: var(--surface); position: relative; z-index: 2; }
.project-body h3 { font-size: 1.15rem; }
.project-body p { color: var(--muted); font-size: 0.96rem; }

/* ---------- 14. CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface);
}
.cta-media {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}
.cta-media .media-label { justify-content: flex-end; padding-bottom: 14px; opacity: 0.7; }
.cta::after {
  /* darkening veil so text stays readable over any art */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(5, 6, 11, 0.55) 0%, rgba(5, 6, 11, 0.85) 100%);
  pointer-events: none;
}
.cta-body {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  text-align: center;
}
.cta-title {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.cta-body p { margin: 16px 0 32px; color: var(--text-2); font-size: 1.1rem; }

/* ---------- 15. Partners ---------- */
.partners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.media--logo {
  aspect-ratio: 5 / 2;
  border-radius: var(--radius);
  background: rgba(13, 16, 32, 0.8);
  transition: border-color .2s var(--ease);
}
.media--logo::before { display: none; }
.media--logo img { object-fit: contain; padding: 22px 28px; }
.media--logo .media-label span { color: var(--dim); font-size: 0.68rem; }
.partner:hover .media--logo { border-color: var(--line-strong); }

/* ---------- 16. Footer ---------- */
.site-footer {
  position: relative;
  padding: clamp(56px, 7vw, 88px) 0 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 10, 20, 0.6), rgba(5, 6, 11, 1));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
}

.footer-brand .brand img { height: 40px; }
.footer-brand p { max-width: 420px; margin-top: 18px; color: var(--muted); font-size: 0.95rem; }

.footer-heading {
  margin-bottom: 18px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-list { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.footer-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 0.94rem; }
.footer-list i {
  width: 18px;
  margin-top: 4px;
  text-align: center;
  --fa-primary-color: var(--purple-lt);
  --fa-secondary-color: var(--blue);
  --fa-secondary-opacity: 0.55;
}
.footer-list a { color: var(--text-2); }
.footer-list a:hover { color: var(--text); }
.footer-list--plain li { display: block; }
.footer-note { color: var(--dim) !important; font-size: 0.85rem !important; line-height: 1.6; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.85rem;
}
.footer-tagline { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- 17. Legal page ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 6vw, 88px));
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.page-title {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.page-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.page-meta i { --fa-primary-color: var(--purple-lt); --fa-secondary-color: var(--blue); }

.section--legal { padding-top: clamp(40px, 5vw, 64px); }

.prose {
  max-width: 820px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(13, 16, 32, 0.75);
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.8;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  font-size: 1.4rem;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: 1.12rem; color: var(--purple-lt); }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--purple-lt); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(122, 167, 255, 0.5); }
.prose strong { color: var(--text); }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--3 .card--wide { grid-column: 1 / -1; }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotlight,
  .dev-grid { grid-template-columns: minmax(0, 1fr); }
  .spotlight-media { max-width: 720px; }
  .dev-aside .media { max-width: 480px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 520px; width: 100%; margin-inline: auto; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-media { max-width: 640px; }
  .split--reverse .split-media { order: -1; }
  .card-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .section-banner { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  .card-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .card--row { flex-direction: column; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 100%; }
  .node { align-items: flex-start; padding: 16px 18px; }
  .node-list::before { left: 41px; }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .step-num { width: 44px; height: 44px; font-size: 0.85rem; }
  .timeline::before { left: 21px; }
  .step-body { padding: 18px 18px; }
  .cta { border-radius: 20px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .card:hover, .project:hover { transform: none; }
}
