/* Visual system for SyntheticFounder.com: responsive dark theme, animated background layers, scroll reveal states, and active navigation styling. */
:root {
  --bg-0: hsl(218 30% 6%);
  --bg-1: hsl(219 37% 10%);
  --bg-2: hsl(205 45% 11%);
  --surface: hsl(220 26% 13% / 0.68);
  --surface-strong: hsl(221 24% 18% / 0.88);
  --border: hsl(210 30% 70% / 0.2);
  --text-main: hsl(210 27% 96%);
  --text-muted: hsl(215 18% 75%);
  --accent: hsl(174 68% 53%);
  --accent-soft: hsl(184 100% 76% / 0.25);
  --nav-height: 74px;
  --radius: 16px;
  --shadow: 0 20px 50px hsl(220 65% 2% / 0.32);
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-0);
  line-height: 1.6;
  min-height: 100vh;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.gradient-layer {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 14% calc(18% + 24% * var(--scroll-progress)), hsl(186 90% 60% / 0.18), transparent 38%),
    radial-gradient(circle at calc(74% - 28% * var(--scroll-progress)) 72%, hsl(150 82% 49% / 0.14), transparent 44%),
    linear-gradient(
      165deg,
      var(--bg-0) 5%,
      hsl(214 34% calc(8% + 5% * var(--scroll-progress))) 52%,
      var(--bg-2) 100%
    );
  filter: saturate(112%);
  transform: scale(1.12);
}

.shape {
  position: absolute;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  border-radius: 100%;
  filter: blur(60px);
  opacity: 0.24;
  animation: drift 22s ease-in-out infinite alternate;
}

.shape-a {
  top: -10%;
  left: -8%;
  background: hsl(178 81% 55% / 0.45);
  animation-duration: 26s;
}

.shape-b {
  top: 22%;
  right: -10%;
  background: hsl(203 100% 69% / 0.35);
  animation-duration: 31s;
}

.shape-c {
  bottom: -18%;
  left: 32%;
  background: hsl(154 78% 42% / 0.4);
  animation-duration: 34s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4%, -6%, 0) scale(1.12);
  }
}

.particle-layer {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: hsl(190 80% 82% / 0.6);
  box-shadow: 0 0 12px hsl(189 100% 80% / 0.45);
  transform: translate3d(0, 0, 0);
}

.noise-layer {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(hsl(0 0% 100% / 0.06) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  opacity: 0.1;
  mix-blend-mode: soft-light;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, hsl(219 33% 8% / 0.9), hsl(219 33% 8% / 0.52));
  border-bottom: 1px solid hsl(210 26% 60% / 0.12);
}

.nav-wrap {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  padding: 0;
  margin: 0;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 10px 4px;
  border-bottom: 2px solid transparent;
  transition: color 220ms ease, border-color 220ms ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--text-main);
  border-color: var(--accent);
}

.section {
  padding: clamp(68px, 9.2vw, 122px) 0;
  scroll-margin-top: calc(var(--nav-height) + 22px);
}

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  align-items: center;
  padding-top: clamp(50px, 9vh, 88px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.77rem;
  color: hsl(188 50% 74%);
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.35rem, 7.5vw, 5.7rem);
  max-width: 10ch;
  letter-spacing: -0.03em;
}

.hero-subheading {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.58vw, 1.3rem);
  margin-top: 24px;
}

h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.45rem);
  margin-bottom: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
}

.dictionary-card,
.list-card,
.capability-card {
  background: linear-gradient(155deg, var(--surface), hsl(218 24% 14% / 0.56));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dictionary-card {
  padding: clamp(22px, 3vw, 32px);
}

.term-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin: 0;
}

.term {
  font-size: clamp(1.2rem, 2.7vw, 1.75rem);
  font-weight: 700;
}

.phonetic {
  font-size: 0.94rem;
  color: hsl(186 56% 72%);
}

.part-of-speech {
  margin: 8px 0 0;
  font-style: italic;
  color: var(--text-muted);
}

.definition-text {
  margin: 14px 0 0;
  font-size: clamp(1rem, 1.55vw, 1.17rem);
}

.definition-explainer {
  margin-top: 20px;
  color: var(--text-muted);
  max-width: 68ch;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.list-card {
  padding: 22px;
}

.list-card h3 {
  margin-bottom: 14px;
  font-size: 1.08rem;
}

.list-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
}

.capability-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.capability-card {
  padding: 22px;
  transition: transform 260ms ease, border-color 260ms ease;
}

.capability-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.capability-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.capability-card:hover {
  transform: translateY(-3px);
  border-color: hsl(174 70% 56% / 0.46);
}

.future-copy {
  max-width: 76ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.site-footer {
  border-top: 1px solid hsl(210 26% 60% / 0.12);
  padding: 26px 0 34px;
}

.site-footer p {
  margin: 0;
  color: hsl(214 16% 64%);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(3px);
  transition: opacity 760ms ease, transform 760ms ease, filter 760ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (max-width: 940px) {
  .nav-wrap {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  :root {
    --nav-height: 110px;
  }

  .nav-list {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .list-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 116px;
    --radius: 14px;
  }

  .hero {
    min-height: 78vh;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .nav-list a {
    font-size: 0.86rem;
  }

  .shape {
    opacity: 0.18;
    filter: blur(72px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .shape,
  .capability-card,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
