/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* surfaces */
  --bg:          #060a08;
  --surface:     #0a100d;
  --surface-2:   #0d1512;
  --elevated:    #111c17;
  --line:        rgba(255,255,255,.07);
  --line-strong: rgba(255,255,255,.13);

  /* brand */
  --emerald:        #19c785;
  --emerald-bright: #1fd790;
  --emerald-deep:   #0c9268;
  --emerald-tint:   rgba(25,199,133,.1);
  --emerald-glow:   rgba(25,199,133,.18);

  /* text */
  --text:  #e9ece6;
  --muted: #7a8784;
  --slate: #4e5e56;

  /* semantic */
  --amber:  #e0a92e;
  --red:    #d8514e;
  --azure:  #3f8fd6;
  --violet: #9b7bd8;

  /* typography */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* radii */
  --r-control: 8px;
  --r-card:    16px;
  --r-pill:    999px;

  /* easing */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:   cubic-bezier(0.4, 0, 0.2, 1);
  --timing-base: 0.3s;
  --timing-slow: 0.65s;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.mono    { font-family: var(--font-mono); }
.muted   { color: var(--muted); }
.emerald { color: var(--emerald); }

/* Gradient text */
.text-gradient {
  background: linear-gradient(120deg, var(--emerald) 0%, #2de89c 38%, rgba(210,248,233,.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-3);
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(25,199,133,.5); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(25,199,133,0); }
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}
.section-lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 0;
}

.section-header { margin-bottom: 64px; }
.section-header--center { text-align: center; }
.section-header--center .eyebrow { justify-content: center; }
.section-header--center .section-lead { margin-left: auto; margin-right: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  transition: opacity var(--timing-base) var(--ease-out),
              transform var(--timing-base) var(--ease-out),
              box-shadow var(--timing-base) var(--ease-out),
              background var(--timing-base) var(--ease-out);
  cursor: pointer;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--emerald);
  color: #04140e;
  border-color: var(--emerald);
  box-shadow: 0 0 0 0 rgba(25,199,133,0);
}
.btn--primary:hover {
  background: var(--emerald-bright);
  border-color: var(--emerald-bright);
  box-shadow: 0 0 24px rgba(25,199,133,.35);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--secondary:hover { border-color: var(--emerald); color: var(--emerald); }

.btn--ghost-outlined {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost-outlined:hover { border-color: rgba(25,199,133,.4); color: var(--emerald); }

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--text); }

.btn--sm { font-size: 13px; padding: 8px 14px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--timing-base) var(--ease-io),
              border-color var(--timing-base) var(--ease-io);
}
.nav.scrolled {
  background: rgba(6,10,8,.88);
  border-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: var(--text);
}
.logo-dot { color: var(--emerald); }

.logo-mark { animation: logo-glow 3.5s ease-in-out infinite; }
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 1px rgba(25,199,133,.2)); }
  50%       { filter: drop-shadow(0 0 8px rgba(25,199,133,.7)); }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--timing-base);
}
.nav__link:hover, .nav__link--active { color: var(--text); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--timing-base) var(--ease-out), opacity var(--timing-base);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--bg);
}

/* Subtle grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,  rgba(255,255,255,.016) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.016) 0 1px, transparent 1px 64px);
  pointer-events: none;
  z-index: 0;
}

/* Gradient atmosphere blobs */
.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.blob--1 {
  width: 900px; height: 700px;
  top: -200px; right: -150px;
  background: radial-gradient(ellipse, rgba(25,199,133,.14) 0%, transparent 65%);
  animation: blob-drift 11s ease-in-out infinite;
}
.blob--2 {
  width: 600px; height: 600px;
  bottom: -100px; left: -80px;
  background: radial-gradient(ellipse, rgba(12,146,104,.09) 0%, transparent 65%);
  animation: blob-drift 16s ease-in-out infinite reverse;
}
.blob--3 {
  width: 500px; height: 400px;
  top: 35%; left: 25%;
  background: radial-gradient(ellipse, rgba(6,180,100,.05) 0%, transparent 65%);
  animation: blob-drift 22s ease-in-out infinite 5s;
}
.blob--4 {
  width: 400px; height: 600px;
  top: 10%; left: 40%;
  background: radial-gradient(ellipse, rgba(25,199,133,.04) 0%, transparent 65%);
  animation: blob-drift 18s ease-in-out infinite 2s reverse;
}
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%        { transform: translate(45px, -35px) scale(1.06); }
  66%        { transform: translate(-25px, 25px) scale(0.96); }
}

/* Centered hero text block */
.hero__text {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 168px;
  padding-bottom: 80px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 7vw, 96px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
  margin: var(--space-4) 0 var(--space-8);
}

.hero__sub {
  font-size: 18px;
  color: rgba(233,236,230,.6);
  line-height: 1.8;
  max-width: 52ch;
  margin: 0 auto var(--space-10);
}

.hero__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}
.badge-version {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 9px;
}
.meta-sep {
  font-size: 13px;
  color: var(--slate);
}
.meta-sep::before { content: '·'; margin-right: var(--space-3); }
.trust-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--emerald);
  transition: opacity var(--timing-base);
}
.trust-link:hover { opacity: 0.7; }



/* Scroll cue */
.hero__scroll-cue {
  position: absolute;
  bottom: 36px;
  right: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  opacity: 0.4;
  animation: fade-up 0.8s var(--ease-out) 1.2s both;
}
.scroll-cue__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--emerald), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.stats-bar__inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px var(--space-4);
  text-align: center;
}
.stat-num {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}
.stat-div {
  width: 1px;
  height: 40px;
  background: var(--line);
  flex-shrink: 0;
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section {
  padding: 100px 0;
  position: relative;
}

/* Alt sections: just a very subtle surface tint — lines handle the separation */
.section--alt { background: var(--surface); }

/* Thin glowing separator line at the bottom of every section */
.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1100px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent              0%,
    rgba(90,107,115,.35)    20%,
    rgba(25,199,133,.3)     50%,
    rgba(90,107,115,.35)    80%,
    transparent             100%
  );
  pointer-events: none;
}

/* ---- Per-section ambient effects ----------------------------------------- */

/* Features: emerald glow top-right */
#features {
  background-image:
    radial-gradient(ellipse 55% 45% at 95% 5%, rgba(25,199,133,.08) 0%, transparent 70%);
}

/* How it Works: azure glow left + subtle dot grid */
.showcase {
  background:
    radial-gradient(circle, rgba(90,107,115,.11) 1px, transparent 1px) center / 28px 28px,
    radial-gradient(ellipse 50% 70% at 5% 50%, rgba(63,143,214,.07) 0%, transparent 65%),
    var(--surface);
}

/* FAQ: soft emerald pulse from bottom-center */
#faq {
  background-image:
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(25,199,133,.05) 0%, transparent 70%);
}

/* Roadmap: emerald left-rail glow */
#roadmap {
  background:
    radial-gradient(ellipse 35% 65% at 0% 55%, rgba(25,199,133,.07) 0%, transparent 60%),
    var(--surface);
}

/* Trust: azure glow bottom-right */
.trust {
  background-image:
    radial-gradient(ellipse 55% 45% at 92% 90%, rgba(63,143,214,.07) 0%, transparent 70%);
}

/* Latest Patch: amber warm top-left */
.latest-patch {
  background:
    radial-gradient(ellipse 45% 55% at 8% 15%, rgba(224,169,46,.06) 0%, transparent 65%),
    var(--surface);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.feature-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-card);
  background: linear-gradient(145deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
  padding: var(--space-8);
  overflow: hidden;
  transition: border-color var(--timing-base) var(--ease-out),
              transform var(--timing-base) var(--ease-out);
}
/* Top gradient edge */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(25,199,133,.45) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--timing-base);
}
.feature-card:hover { border-color: rgba(25,199,133,.2); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }

/* Internal glow that animates on hover */
.feature-card__glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25,199,133,.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.feature-card:hover .feature-card__glow { opacity: 1; }

.feature-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--emerald-tint);
  border: 1px solid rgba(25,199,133,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  animation: icon-glow 3.5s ease-in-out infinite;
}
.feature-card:nth-child(2) .feature-card__icon { animation-delay: 0.5s; }
.feature-card:nth-child(3) .feature-card__icon { animation-delay: 1.0s; }
.feature-card:nth-child(4) .feature-card__icon { animation-delay: 1.5s; }
@keyframes icon-glow {
  0%, 100% { box-shadow: none; }
  50%       { box-shadow: 0 0 18px 0 rgba(25,199,133,.22); }
}

.feature-card__body { flex: 1; }
.feature-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: var(--space-2);
}
.feature-card__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}
.feature-card__tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--emerald-tint);
  border: 1px solid rgba(25,199,133,.2);
  border-radius: 5px;
  padding: 3px 9px;
  margin-top: auto;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare__wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: var(--surface-2);
  border-radius: 14px;
  overflow: hidden;
}

.compare-table thead tr {
  background: var(--elevated);
  border-bottom: 1px solid var(--line-strong);
}

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: center;
  font-size: 14px;
  vertical-align: middle;
}

.compare-table__feat {
  text-align: left !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  width: 50%;
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--line);
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: rgba(255,255,255,.025);
}

.compare-table__col {
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.compare-table__col--tasklo {
  background: rgba(25,199,133,.04);
  border-left: 1px solid rgba(25,199,133,.15);
  border-right: 1px solid rgba(25,199,133,.15);
}

.compare-col-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.compare-table__col--tasklo .compare-col-label {
  color: var(--emerald);
}

.cmp {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.cmp--yes     { color: var(--emerald); }
.cmp--no      { color: var(--slate);   }
.cmp--partial { color: var(--amber);   font-size: 20px; }

/* ============================================================
   HOW IT WORKS (steps)
   ============================================================ */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-block {
  flex: 1;
  text-align: center;
  padding: var(--space-8) var(--space-6);
}
.step-block__num {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--emerald);
  margin-bottom: var(--space-4);
}
.step-block__visual {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.step-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: var(--space-2);
}
.step-block__text { font-size: 14px; color: var(--muted); line-height: 1.65; }

.step-block__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  margin-top: -24px; /* visual center with the icon row */
}

/* ============================================================
   TRUST
   ============================================================ */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.trust-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  padding: var(--space-8) var(--space-6);
  transition: border-color var(--timing-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.trust-card:hover { border-color: rgba(25,199,133,.2); }

.trust-card__icon-wrap {
  width: 44px; height: 44px;
  background: var(--emerald-tint);
  border: 1px solid rgba(25,199,133,.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}
.trust-card__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.trust-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--emerald);
  transition: opacity var(--timing-base);
  margin-top: var(--space-2);
}
.trust-cta:hover { opacity: 0.7; }

/* ============================================================
   PATCH CARDS (shared)
   ============================================================ */
.patch-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface-2);
  padding: var(--space-6);
}
.patch-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.version-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 9px;
}
.type-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
}
.type-badge--release { background: var(--emerald-tint);          color: var(--emerald-bright); }
.type-badge--patch   { background: rgba(63,143,214,.12);          color: var(--azure); }
.type-badge--hotfix  { background: rgba(224,169,46,.14);          color: var(--amber); }
.patch-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.patch-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}
.change-list { display: flex; flex-direction: column; gap: 8px; }
.change {
  font-size: 14px;
  color: rgba(233,236,230,.8);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.change::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.change--add::before     { background: var(--emerald); }
.change--fix::before     { background: var(--amber); }
.change--improve::before { background: var(--azure); }
.change--remove::before  { background: var(--red); }
.patch-card__loading { color: var(--muted); font-size: 14px; }
.patch-card__more { margin-top: var(--space-4); font-size: 13px; color: var(--muted); }
.patch-card__more a { color: var(--emerald); }
.patch-card__more a:hover { text-decoration: underline; }

/* ============================================================
   LATEST PATCH SECTION
   ============================================================ */
.latest-patch .latest-patch__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
}
.latest-patch .section-title { margin-bottom: 0; }

/* ============================================================
   PATCH NOTES PAGE
   ============================================================ */
.patch-notes-page { padding-top: 64px; min-height: 100vh; }
.page-header {
  padding: var(--space-16) 0 var(--space-10);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-10);
}
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: var(--space-2) 0 var(--space-3);
}
.page-sub { font-size: 16px; color: var(--muted); }
.patch-list { display: flex; flex-direction: column; gap: var(--space-4); padding-bottom: var(--space-16); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: var(--space-8) 0 var(--space-6);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-4);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.footer__links a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--timing-base);
}
.footer__links a:hover { color: var(--text); }

.footer__note { font-size: 12px; color: var(--slate); }
.footer__admin { font-size: 11px; color: var(--line-strong); transition: color var(--timing-base); }
.footer__admin:hover { color: var(--slate); }

/* ============================================================
   ROADMAP
   ============================================================ */
.roadmap__timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 36px;
}

.roadmap__timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.roadmap__item {
  position: relative;
  padding-bottom: var(--space-8);
}
.roadmap__item:last-child { padding-bottom: 0; }

.roadmap__dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--slate);
  background: var(--surface);
  z-index: 1;
}

.roadmap__item--complete .roadmap__dot {
  border-color: var(--emerald);
  background: var(--emerald);
}
.roadmap__item--in-progress .roadmap__dot {
  border-color: var(--amber);
  background: var(--surface);
  animation: rm-pulse 2s ease-in-out infinite;
}
@keyframes rm-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(224,169,46,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(224,169,46,0); }
}

.roadmap__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.roadmap__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin: 0;
}

.roadmap__status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
}
.roadmap__item--complete   .roadmap__status { background: rgba(25,199,133,.15); color: var(--emerald); }
.roadmap__item--in-progress .roadmap__status { background: rgba(224,169,46,.15); color: var(--amber); }
.roadmap__item--planned    .roadmap__status { background: rgba(90,107,115,.15);  color: var(--slate); }

.roadmap__date {
  font-size: 12px;
  color: var(--slate);
  font-family: var(--font-mono);
  margin-left: auto;
}

.roadmap__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.roadmap__loading { color: var(--muted); font-size: 14px; }

/* ============================================================
   LOAD ANIMATIONS (hero content appears on page load)
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.load-1, .load-2, .load-3, .load-4, .load-5 {
  animation: fade-up var(--timing-slow) var(--ease-out) both;
}
.load-1 { animation-delay: 0.05s; }
.load-2 { animation-delay: 0.15s; }
.load-3 { animation-delay: 0.28s; }
.load-4 { animation-delay: 0.42s; }
.load-5 { animation-delay: 0.58s; }

/* ============================================================
   SCROLL REVEAL — --reveal-p set by JS scroll listener (0→1)
   Using translate/scale/rotate (not transform) so hover and
   card-float animations never conflict.
   ============================================================ */
@property --reveal-p {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

.reveal {
  opacity: var(--reveal-p);
  translate: 0 calc((1 - var(--reveal-p)) * 24px);
  transition: opacity 0.75s var(--ease-out), translate 0.75s var(--ease-out);
}

/* Direction variants */
.reveal--up    { translate: 0 calc((1 - var(--reveal-p)) * 28px); }
.reveal--left  { translate: calc((var(--reveal-p) - 1) * 28px) 0; }
.reveal--right { translate: calc((1 - var(--reveal-p)) * 28px) 0; }
.reveal--scale {
  translate: 0 calc((1 - var(--reveal-p)) * 14px);
  scale: calc(0.94 + var(--reveal-p) * 0.06);
  transition: opacity 0.75s var(--ease-out), translate 0.75s var(--ease-out), scale 0.75s var(--ease-out);
}
.reveal--fade  { translate: none; }

/* Feature cards: opacity only — card-float animation owns transform */
.feature-card.reveal { translate: none; }

/* ============================================================
   CINEMATIC IDLE ANIMATIONS
   ============================================================ */

/* Feature card staggered float — long delay clears reveal transition */
.feature-card:nth-child(1) { animation: card-float 5s ease-in-out 2.0s infinite; }
.feature-card:nth-child(2) { animation: card-float 5s ease-in-out 2.7s infinite; }
.feature-card:nth-child(3) { animation: card-float 5s ease-in-out 3.4s infinite; }
.feature-card:nth-child(4) { animation: card-float 5s ease-in-out 4.1s infinite; }
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
.feature-card:hover { animation: none; transform: translateY(-4px); }

/* Step number mono font */
.step-block__num span { font-family: var(--font-mono); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__text {
    padding-top: 120px;
    padding-bottom: 48px;
    text-align: left;
  }
  .hero__title { font-size: clamp(42px, 10vw, 64px); line-height: 1.0; }
  .hero__sub   { margin-left: 0; margin-right: 0; }
  .hero__cta   { justify-content: flex-start; }
  .hero__meta  { justify-content: flex-start; }
  .hero__preview-scene { display: none; }
  .hero__hud           { display: none; }
  .hero__scroll-cue    { display: none; }
  .trust__grid         { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__inner    { gap: var(--space-2); }
  .steps               { flex-direction: column; align-items: stretch; gap: var(--space-8); }
  .step-block__arrow   { display: none; }
  .step-block          { text-align: left; padding: 0; }
  .step-block__visual  { justify-content: flex-start; }
  .section             { padding: 80px 0; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.faq-item {
  position: relative;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-card);
  background: linear-gradient(145deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
  padding: var(--space-8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--timing-base) var(--ease-out),
              transform var(--timing-base) var(--ease-out);
}

/* FAQ card: spring pop-in via individual transform props */
.faq-item.reveal {
  translate: 0 calc((1 - var(--reveal-p)) * 36px);
  scale: calc(0.93 + var(--reveal-p) * 0.07);
  rotate: calc((1 - var(--reveal-p)) * -0.4deg);
  transition: border-color var(--timing-base) var(--ease-out),
              transform var(--timing-base) var(--ease-out),
              opacity 0.75s var(--ease-out),
              translate 0.75s var(--ease-out),
              scale 0.75s var(--ease-out),
              rotate 0.75s var(--ease-out);
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(25,199,133,.45) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--timing-base);
}

.faq-item:hover { border-color: rgba(25,199,133,.2); transform: translateY(-4px); }
.faq-item:hover::before { opacity: 1; }

.faq-item--cta {
  border-color: rgba(25,199,133,.18);
  background: linear-gradient(145deg, rgba(25,199,133,.06) 0%, rgba(25,199,133,.02) 100%);
}
.faq-item--cta::before { opacity: 0.6; }

.faq-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.faq-a {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}
.faq-a a      { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
.faq-a strong { color: var(--text); font-weight: 600; }

.faq-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

@media (max-width: 768px) {
  .faq-list { grid-template-columns: 1fr; }
}

.nav__link--discord:hover { color: #5865F2 !important; }

@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
  .trust__grid    { grid-template-columns: 1fr; }
  .stats-bar__inner { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .stat-div { display: none; }
  .stat-item { align-items: flex-start; }
  .latest-patch .latest-patch__header { flex-direction: column; align-items: flex-start; }
  .footer__inner  { gap: var(--space-4); }
  .footer__links  { margin-left: 0; }

  .nav__links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4) var(--space-6);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    gap: var(--space-3);
    z-index: 99;
  }
  .nav__links.open { display: flex; }
  .nav__burger     { display: flex; }
}

/* ============================================================
   ADDITIONAL ANIMATIONS & MICRO-INTERACTIONS
   ============================================================ */

/* Nav links: underline slides in from left on hover */
.nav__link { position: relative; }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); }

/* Footer links: same treatment */
.footer__links a { position: relative; }
.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease-out);
}
.footer__links a:hover::after { transform: scaleX(1); }

/* Primary button: shimmer sweep on hover */
.btn { position: relative; }
.btn--primary { overflow: hidden; }
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  translate: -200% 0;
  transition: translate 0.55s var(--ease-out);
  pointer-events: none;
  border-radius: inherit;
}
.btn--primary:hover::after { translate: 200% 0; }

/* Hero download: attention pulse ring */
@keyframes btn-ring-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(25,199,133,.55), 0 0 0   rgba(25,199,133,0); }
  70%  { box-shadow: 0 0 0 12px rgba(25,199,133,0),   0 0 22px rgba(25,199,133,.2); }
  100% { box-shadow: 0 0 0 0    rgba(25,199,133,0),   0 0 0   rgba(25,199,133,0); }
}
.btn--pulse { animation: btn-ring-pulse 2.8s ease-out 1.2s infinite; }
.btn--pulse:hover { animation: none; }

/* Logo mark: rotate + scale on hover */
.logo-mark { transition: transform 0.28s var(--ease-out); }
.nav__logo:hover .logo-mark { transform: rotate(-8deg) scale(1.1); }

/* Trust cards: top-down glow + lift on hover */
.trust-card {
  position: relative;
  transition: border-color var(--timing-base) var(--ease-out),
              transform var(--timing-base) var(--ease-out);
}
.trust-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(25,199,133,.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.trust-card:hover { border-color: rgba(25,199,133,.2); transform: translateY(-3px); }
.trust-card:hover::before { opacity: 1; }

/* Trust CTA: arrow nudges on hover */
.trust-cta svg { transition: translate 0.2s var(--ease-out); }
.trust-cta:hover svg { translate: 2px -2px; }

/* Patch card: hover border + lift */
.patch-card {
  transition: border-color var(--timing-base) var(--ease-out),
              transform var(--timing-base) var(--ease-out);
}
.patch-card:hover { border-color: rgba(25,199,133,.18); transform: translateY(-2px); }

/* Stat numbers: emerald + scale on hover */
.stat-num { transition: color var(--timing-base), transform var(--timing-base) var(--ease-out); }
.stat-item:hover .stat-num { color: var(--emerald); transform: scale(1.06); }

/* Stats bar: stagger slide-in on page load */
.stats-bar__inner > * { animation: fade-up 0.55s var(--ease-out) both; }
.stats-bar__inner > *:nth-child(1) { animation-delay: 0.28s; }
.stats-bar__inner > *:nth-child(2) { animation-delay: 0.37s; }
.stats-bar__inner > *:nth-child(3) { animation-delay: 0.46s; }
.stats-bar__inner > *:nth-child(4) { animation-delay: 0.55s; }
.stats-bar__inner > *:nth-child(5) { animation-delay: 0.64s; }
.stats-bar__inner > *:nth-child(6) { animation-delay: 0.73s; }
.stats-bar__inner > *:nth-child(7) { animation-delay: 0.82s; }
.stats-bar__inner > *:nth-child(8) { animation-delay: 0.91s; }
.stats-bar__inner > *:nth-child(9) { animation-delay: 1.00s; }

/* Eyebrow dot: pop in when section first enters view */
.section-header.revealed .eyebrow__dot {
  animation: dot-pop 0.5s var(--ease-out) both,
             dot-pulse 2.2s 0.5s ease-in-out infinite;
}
@keyframes dot-pop {
  0%   { transform: scale(0); opacity: 0; }
  65%  { transform: scale(1.5); }
  100% { transform: scale(1);   opacity: 1; }
}

/* Step numbers: emerald glow when step block fully enters view */
.step-block__num { transition: text-shadow 0.5s var(--ease-out); }
.step-block.revealed .step-block__num {
  text-shadow: 0 0 24px rgba(25,199,133,.55);
}

/* FAQ items: shimmer sweep when they fully enter view */
.faq-item.revealed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%);
  animation: faq-shimmer 0.75s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: none;
}
@keyframes faq-shimmer {
  from { translate: -160% 0; }
  to   { translate: 200% 0;  }
}

/* ============================================================
   REVEAL STAGGER — delay per nth-child so same-row elements
   appear one by one instead of all at once.
   Reset to 0s on hover so interactions stay snappy.
   ============================================================ */

/* Feature cards (4 across) */
.features__grid .feature-card:nth-child(2) { transition-delay: 0.13s; }
.features__grid .feature-card:nth-child(3) { transition-delay: 0.26s; }
.features__grid .feature-card:nth-child(4) { transition-delay: 0.39s; }
.features__grid .feature-card:hover        { transition-delay: 0s; }

/* Trust cards (3 across) */
.trust__grid .trust-card:nth-child(2) { transition-delay: 0.14s; }
.trust__grid .trust-card:nth-child(3) { transition-delay: 0.28s; }
.trust__grid .trust-card:hover        { transition-delay: 0s; }

/* Step blocks + arrows (5 children: block, arrow, block, arrow, block) */
.steps > *:nth-child(2) { transition-delay: 0.10s; }
.steps > *:nth-child(3) { transition-delay: 0.20s; }
.steps > *:nth-child(4) { transition-delay: 0.30s; }
.steps > *:nth-child(5) { transition-delay: 0.40s; }

/* FAQ grid (2 cols — right column lags 0.1s behind left) */
.faq-list .faq-item:nth-child(even) { transition-delay: 0.1s; }
.faq-list .faq-item:hover           { transition-delay: 0s; }

/* Source note — small contextual GitHub link below sections */
.source-note {
  text-align: center;
  margin-top: var(--space-10);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   STATUS BANNER
   ============================================================ */
.status-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
}
.status-banner--info    { background: var(--azure);   color: #fff; }
.status-banner--warning { background: var(--amber);   color: #0a0c0d; }
.status-banner--error   { background: var(--red);     color: #fff; }
.status-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.status-banner__close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}
.status-banner__close:hover { opacity: 1; }

/* ============================================================
   CONTRIBUTOR WALL
   ============================================================ */
.contributors__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-8);
}
.contributor-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: border-color var(--timing-base) var(--ease-out), transform var(--timing-base) var(--ease-out);
}
.contributor-card:hover { border-color: var(--emerald-tint-solid, rgba(25,199,133,.3)); transform: translateY(-2px); }
.contributor-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--emerald);
}
.contributor-note {
  font-size: 11px;
  color: var(--muted);
}

/* ============================================================
   MOBILE PERFORMANCE
   Expensive animations that run on desktop are disabled on
   mobile to prevent jank. filter:blur() and continuous rAF
   CSS animations are the primary culprits.
   ============================================================ */
@media (max-width: 768px) {
  /* Blobs: stop animation + reduce blur (filter:blur repaint every frame) */
  .blob { animation: none; filter: blur(55px); }
  .blob--3, .blob--4 { display: none; }

  /* Feature card float: continuous transform animation unnecessary on mobile */
  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4) { animation: none; }

  /* Logo + icon glow: filter animations, expensive on low-end GPUs */
  .logo-mark           { animation: none; }
  .feature-card__icon  { animation: none; }

  /* Roadmap pulse: stop box-shadow animation */
  .roadmap__item--in-progress .roadmap__dot { animation: none; }

  /* Reduce stagger delays on mobile — transitions still play but no long waits */
  .features__grid .feature-card:nth-child(2) { transition-delay: 0.07s; }
  .features__grid .feature-card:nth-child(3) { transition-delay: 0.14s; }
  .features__grid .feature-card:nth-child(4) { transition-delay: 0.21s; }
  .trust__grid .trust-card:nth-child(2)      { transition-delay: 0.07s; }
  .trust__grid .trust-card:nth-child(3)      { transition-delay: 0.14s; }
  .steps > *:nth-child(2) { transition-delay: 0.05s; }
  .steps > *:nth-child(3) { transition-delay: 0.10s; }
  .steps > *:nth-child(4) { transition-delay: 0.15s; }
  .steps > *:nth-child(5) { transition-delay: 0.20s; }

}
