/* ============================================================
 * Aimo — Landing Page v2 (PRD-faithful)
 * Typography-driven, no product mockup, waitlist-focused.
 * Layered on top of colors_and_type.css.
 * ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Keep section anchors clear of the sticky nav */
[id] { scroll-margin-top: 88px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(222,222,222,0.08); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(222,222,222,0.16); }

img { display: block; max-width: 100%; }
button, input { font-family: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }
.container--narrow { max-width: 880px; }

/* ---------- Buttons --------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; cursor: pointer; border: 0; line-height: 1;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary  { background: var(--accent); color: var(--accent-fg); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--glow-accent-sm); }
.btn--ghost { background: rgba(222,222,222,0.06); color: var(--fg); }
.btn--ghost:hover { background: rgba(222,222,222,0.12); }
.btn--invert { background: var(--aimo-black-bean); color: var(--accent); }
.btn--invert:hover { background: #000; }
.btn--lg { padding: 16px 28px; font-size: 15px; }

/* ---------- Nav ------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  padding: 14px 0;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(6, 22, 13, 0.62);
  border-bottom: 1px solid rgba(222,222,222,0.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand img { height: 28px; width: auto; }
.nav__brand-word { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--fg-1); letter-spacing: -0.02em; line-height: 1; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: 14px; color: var(--fg-2); padding: 8px 14px; border-radius: 999px;
  text-decoration: none; transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--fg-1); background: rgba(222,222,222,0.05); opacity: 1; }
@media (max-width: 720px) { .nav__links { display: none; } }

/* ---------- HERO ----------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
}
@media (max-width: 720px) { .hero { padding: 64px 0 48px; } }

/* aurora behind headline */
.hero__aurora {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.hero__aurora::before, .hero__aurora::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.55;
}
.hero__aurora::before {
  width: 700px; height: 700px;
  left: 50%; top: -120px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(167,249,50,0.25), rgba(167,249,50,0) 70%);
  animation: hero-drift 12s ease-in-out infinite alternate;
}
.hero__aurora::after {
  width: 540px; height: 540px;
  left: 64%; top: 120px;
  background: radial-gradient(closest-side, rgba(72,103,76,0.55), rgba(72,103,76,0) 70%);
  animation: hero-drift 16s ease-in-out infinite alternate-reverse;
}
.hero__supergraphic {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -42%);
  width: 1100px; opacity: 0.06; pointer-events: none; z-index: 0;
}
@keyframes hero-drift {
  0%   { transform: translate(-50%, 0) scale(1); }
  100% { transform: translate(-40%, 60px) scale(1.08); }
}

.hero__inner { position: relative; z-index: 1; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 10px;
  border-radius: 999px;
  background: rgba(167,249,50,0.10);
  border: 1px solid rgba(167,249,50,0.30);
  color: var(--accent); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  margin-bottom: 36px;
}
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 144px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--fg-1);
  margin: 0 auto 28px;
  max-width: 13ch;
  text-wrap: balance;
}
.hero__title .accent { color: var(--accent); }
.hero__title .stop { color: var(--accent); }

.hero__sub {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--fg-2); font-weight: 300;
  max-width: 620px; margin: 0 auto 40px;
  text-wrap: balance;
}

/* email form */
.waitlist {
  display: flex; align-items: center; gap: 6px;
  width: min(540px, 100%);
  margin: 0 auto 24px;
  padding: 6px;
  position: relative;
  border-radius: 999px;
  background: rgba(11,31,19,0.7);
  border: 1px solid rgba(222,222,222,0.10);
  backdrop-filter: blur(12px);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.waitlist:focus-within {
  border-color: rgba(167,249,50,0.40);
  box-shadow: 0 0 0 4px rgba(167,249,50,0.10);
}
.waitlist[data-invalid="true"] {
  border-color: rgba(255, 92, 92, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 92, 92, 0.12);
  animation: waitlist-shake 360ms var(--ease-out);
}
@keyframes waitlist-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(7px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(3px); }
}

/* Custom error tooltip — replaces the native browser bubble */
.waitlist__err {
  position: absolute;
  left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 10px 14px;
  background: var(--bg-1);
  border: 1px solid rgba(255, 92, 92, 0.40);
  color: #FF7878;
  font-size: 13px; font-weight: 500;
  border-radius: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  display: inline-flex; align-items: center; gap: 8px;
  z-index: 5;
}
.waitlist__err::after {
  content: "";
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px;
  background: var(--bg-1);
  border-right: 1px solid rgba(255, 92, 92, 0.40);
  border-bottom: 1px solid rgba(255, 92, 92, 0.40);
  transform: translate(-50%, -50%) rotate(45deg);
}
.waitlist[data-invalid="true"] .waitlist__err {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
.waitlist__err svg { flex: 0 0 auto; }

/* invert variant on acid-green section */
.waitlist--invert .waitlist__err {
  background: var(--accent-fg);
  border-color: rgba(0,0,0,0.4);
  color: #FF7878;
}
.waitlist--invert .waitlist__err::after {
  background: var(--accent-fg);
  border-color: rgba(0,0,0,0.4);
}
.waitlist__input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  padding: 12px 18px;
  color: var(--fg-1); font-size: 15px;
}
.waitlist__input::placeholder { color: var(--fg-3); }
.waitlist__btn {
  flex: 0 0 auto;
  background: var(--accent); color: var(--accent-fg);
  border: 0; border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out);
}
.waitlist__btn:hover { background: var(--accent-hover); }

.waitlist--success {
  justify-content: center; padding: 18px;
  background: rgba(167,249,50,0.08);
  border-color: rgba(167,249,50,0.30);
  color: var(--accent);
  font-weight: 500; font-size: 14.5px;
}
.waitlist--success.waitlist--invert {
  background: rgba(6,22,13,0.92);
  border-color: rgba(6,22,13,1);
  color: var(--accent);
}
.waitlist--success svg { flex: 0 0 auto; }

/* stats row */
.hero__stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  margin-top: 40px;
}
.hero__stat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 22px;
  color: var(--fg-3); font-size: 13.5px;
  font-family: var(--font-body); font-weight: 300;
  border-right: 1px solid rgba(222,222,222,0.10);
}
.hero__stat:last-child { border-right: 0; }
.hero__stat strong {
  font-family: var(--font-display); font-weight: 600;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
@media (max-width: 720px) {
  .hero__stats { flex-direction: column; gap: 10px; margin-top: 32px; }
  .hero__stat { border-right: 0; padding: 0; }
}

/* ---------- Social proof strip ---------------------------- */
.social-proof {
  padding: 56px 0;
  border-top: 1px solid rgba(222,222,222,0.06);
  border-bottom: 1px solid rgba(222,222,222,0.06);
  text-align: center;
}
.social-proof__line {
  color: var(--fg-3);
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
}
.social-proof__nodes {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: nowrap;
  max-width: 100%; margin: 0 auto;
}
.proof-node {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(222,222,222,0.03);
  border: 1px solid rgba(222,222,222,0.06);
  color: var(--fg-2); font-size: 13px; font-weight: 500;
  white-space: nowrap;
  cursor: default;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.proof-node:hover {
  transform: translateY(-2px);
  background: rgba(167, 249, 50, 0.06);
  border-color: rgba(167, 249, 50, 0.35);
  color: var(--fg-1);
  box-shadow: 0 8px 24px rgba(167, 249, 50, 0.12);
}
.proof-node__dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(167,249,50,0.5), rgba(72,103,76,0.5));
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.proof-node:hover .proof-node__dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
@media (max-width: 980px) {
  .social-proof__nodes { flex-wrap: wrap; }
  .proof-node { padding: 10px 14px; font-size: 12.5px; }
}

/* ---------- Section scaffold ------------------------------ */
.section {
  padding: 128px 0;
  position: relative;
}
@media (max-width: 720px) { .section { padding: 80px 0; } }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section__head--left { text-align: left; margin-left: 0; }

.section__eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--fg-1);
  margin: 0;
  text-wrap: balance;
}
.section__title .accent { color: var(--accent); }
.section__sub {
  font-size: 18px; line-height: 1.5;
  color: var(--fg-2); font-weight: 300;
  margin: 18px auto 0; max-width: 580px;
  text-wrap: balance;
}

/* ---------- Old way vs New way ---------------------------- */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  position: relative;
}
@media (max-width: 880px) { .compare { grid-template-columns: 1fr; } }

.compare__card {
  padding: 36px;
  border-radius: 28px;
  position: relative;
  min-height: 460px;
}
.compare__old {
  background: rgba(222,222,222,0.03);
  border: 1px dashed rgba(222,222,222,0.12);
  opacity: 0.85;
}
.compare__new {
  background: linear-gradient(180deg, rgba(20,58,37,0.6), rgba(11,31,19,0.6));
  border: 1px solid rgba(167,249,50,0.30);
  box-shadow: 0 0 0 1px rgba(167,249,50,0.05) inset, 0 30px 80px rgba(0,0,0,0.4);
}
.compare__tag {
  display: inline-block;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.compare__old .compare__tag {
  background: rgba(255,92,92,0.10); color: #FF7878;
}
.compare__new .compare__tag {
  background: rgba(167,249,50,0.14); color: var(--accent);
}
.compare__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; letter-spacing: -0.025em;
  color: var(--fg-1); margin: 0 0 28px;
}
.compare__old .compare__title { color: var(--fg-2); }
.compare__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.compare__list li {
  display: flex; gap: 14px;
  font-size: 15.5px; line-height: 1.45;
  color: var(--fg);
  padding: 10px 0;
  border-top: 1px solid rgba(222,222,222,0.06);
}
.compare__list li:first-child { border-top: 0; padding-top: 0; }
.compare__old .compare__list li { color: var(--fg-2); }
.compare__icon {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
  font-weight: 700; font-size: 12px;
}
.compare__old .compare__icon {
  background: rgba(255,92,92,0.12); color: #FF7878;
}
.compare__new .compare__icon {
  background: rgba(167,249,50,0.16); color: var(--accent);
}

/* divider chip between cards (desktop only) */
.compare__divider {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px;
  box-shadow: 0 0 0 6px var(--bg), 0 16px 36px rgba(167,249,50,0.25);
  z-index: 2;
}
@media (max-width: 880px) { .compare__divider { display: none; } }

/* ---------- Benefits — uniform 3x3 grid ------------------ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .benefits-grid { grid-template-columns: 1fr; } }

/* All 9 cards use the same .benefit-card style — uniform size,
   equal heights via stretching, body fills available space. */
.benefit-card {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20,58,37,0.55), rgba(11,31,19,0.55));
  border: 1px solid rgba(222,222,222,0.08);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.benefit-card:hover { transform: translateY(-4px); border-color: rgba(167,249,50,0.30); }
.benefit-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(167,249,50,0.12); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  flex: 0 0 auto;
}
.benefit-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 21px; letter-spacing: -0.02em;
  color: var(--fg-1); margin: 0 0 12px;
  line-height: 1.2;
}
.benefit-card__body {
  font-size: 14.5px; line-height: 1.55; color: var(--fg-2);
  font-weight: 300; margin: 0;
  flex: 1;
}

/* ---------- How it works --------------------------------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 56px;
  position: relative;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

.step {
  padding: 8px 32px 8px 0;
  position: relative;
}
.step + .step::before {
  content: "";
  position: absolute;
  left: -16px; top: 22px;
  width: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
@media (max-width: 880px) {
  .step { padding: 0; padding-bottom: 24px; border-bottom: 1px solid rgba(222,222,222,0.06); }
  .step + .step::before { display: none; }
  .step:last-child { border-bottom: 0; }
}
.step__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 56px; line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.step__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; color: var(--fg-1);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.step__body {
  font-size: 15.5px; line-height: 1.55; color: var(--fg-2);
  font-weight: 300; margin: 0;
  max-width: 320px;
}
.steps-cta { text-align: center; }

/* ---------- FAQ ------------------------------------------ */
.faq { display: flex; flex-direction: column; }

.faq__item {
  border-bottom: 1px solid rgba(222,222,222,0.10);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 8px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 19px; color: var(--fg-1);
  letter-spacing: -0.01em;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__chev {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-2);
  transition: transform 360ms var(--ease-spring), color var(--dur-base) var(--ease-out);
}
.faq__item[open] .faq__chev {
  transform: rotate(135deg);
  color: var(--accent);
}

/* Smooth open/close — JS toggles inline height; CSS tweens it.
   We also fade + slide the answer in for a softer reveal. */
.faq__answer {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: height 360ms var(--ease-out),
              opacity 240ms var(--ease-out),
              transform 360ms var(--ease-out);
}
.faq__item[open] .faq__answer {
  opacity: 1;
  transform: translateY(0);
}
.faq__answer-inner {
  padding: 0 8px 28px;
  color: var(--fg-2); font-size: 16px; line-height: 1.6;
  font-weight: 300;
  max-width: 720px;
}

/* ---------- Final CTA ------------------------------------ */
.final-cta {
  position: relative; overflow: hidden;
  margin: 0;
  padding: 120px 0;
  background: var(--accent);
  color: var(--accent-fg);
  text-align: center;
}
.final-cta__supergraphic {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 1400px; opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.final-cta__inner { position: relative; z-index: 1; }
.final-cta__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.96; letter-spacing: -0.045em;
  color: var(--accent-fg);
  margin: 0 auto 24px;
  max-width: 14ch;
  text-wrap: balance;
}
.final-cta__sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(6,22,13,0.78);
  margin: 0 auto 36px;
  max-width: 540px;
  font-weight: 400;
  text-wrap: balance;
}
.waitlist--invert {
  background: rgba(6,22,13,0.92);
  border-color: rgba(6,22,13,1);
}
.waitlist--invert .waitlist__input { color: #fff; }
.waitlist--invert .waitlist__input::placeholder { color: rgba(222,222,222,0.55); }
.waitlist--invert .waitlist__btn { background: var(--accent-fg); color: var(--accent); }
.waitlist--invert .waitlist__btn:hover { background: #000; }
.final-cta__fineprint {
  margin-top: 18px;
  color: rgba(6,22,13,0.6);
  font-size: 13px;
}

/* ---------- Footer --------------------------------------- */
.footer { padding: 80px 0 48px; border-top: 1px solid rgba(222,222,222,0.06); background: var(--bg); }
.footer__top { display: grid; grid-template-columns: 1fr auto; gap: 32px; margin-bottom: 56px; align-items: start; }
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand img { height: 32px; margin-bottom: 16px; }
.footer__brand p { color: var(--fg-3); font-size: 14px; max-width: 280px; line-height: 1.5; margin: 0; }
.footer__col a { display: inline-flex; align-items: center; gap: 10px; }
.footer__icon-link { color: var(--fg); display: inline-flex; align-items: center; justify-content: center; padding: 4px; }
.footer__icon { display: inline-block; flex: 0 0 auto; transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.footer__icon-link:hover { opacity: 1; }
.footer__icon-link:hover .footer__icon { transform: scale(1.08); color: var(--accent); }
.footer__col h5 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3); font-family: var(--font-body); font-weight: 600;
  margin: 0 0 16px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--fg); font-size: 14px; text-decoration: none; }
.footer__col a:hover { color: var(--accent); opacity: 1; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid rgba(222,222,222,0.06);
  color: var(--fg-3); font-size: 13px; gap: 16px; flex-wrap: wrap;
}
.footer__legal a { color: var(--fg-3); text-decoration: none; margin-left: 16px; }
.footer__legal a:hover { color: var(--fg); opacity: 1; }
.footer__social { display: flex; gap: 6px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(222,222,222,0.04);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-2);
}
.footer__social a:hover { background: rgba(167,249,50,0.10); color: var(--accent); opacity: 1; }

/* ============================================================
 * Success modal — shown after waitlist email submission
 * ============================================================ */

.modal-backdrop {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  background: rgba(6, 22, 13, 0.78);
  backdrop-filter: blur(14px) saturate(120%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 280ms var(--ease-out);
}
.modal-backdrop[data-open] { opacity: 1; pointer-events: auto; }

.modal {
  position: relative;
  width: min(460px, 100%);
  background: linear-gradient(180deg, rgba(20, 58, 37, 0.96), rgba(11, 31, 19, 0.96));
  border: 1px solid rgba(167, 249, 50, 0.28);
  border-radius: 28px;
  padding: 48px 36px 32px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(167, 249, 50, 0.06) inset;
  text-align: center;
  transform: scale(0.88) translateY(24px);
  opacity: 0;
  transition: transform 460ms var(--ease-spring), opacity 280ms var(--ease-out);
  overflow: hidden;
}
.modal-backdrop[data-open] .modal { transform: scale(1) translateY(0); opacity: 1; }

.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: 0; border-radius: 999px;
  background: rgba(222, 222, 222, 0.06);
  color: var(--fg-2);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  z-index: 3;
}
.modal__close:hover { background: rgba(222, 222, 222, 0.12); color: var(--fg-1); }

/* ---------- success animation ---------------------------- */
.success-anim {
  position: relative;
  width: 96px; height: 96px;
  margin: 8px auto 28px;
}

/* expanding rings */
.success-ring {
  position: absolute; inset: 0;
  border-radius: 999px;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
.modal-backdrop[data-open] .success-ring {
  animation: ring-expand 2s var(--ease-out) 600ms infinite;
}
.success-ring--2 { animation-delay: 1000ms !important; }
.success-ring--3 { animation-delay: 1400ms !important; }
@keyframes ring-expand {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* check disc */
.success-check {
  position: absolute; inset: 0;
  z-index: 2;
  border-radius: 999px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(167, 249, 50, 0.45);
  transform: scale(0);
}
.modal-backdrop[data-open] .success-check {
  animation: pop-in 540ms var(--ease-spring) 120ms forwards;
}
@keyframes pop-in {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.success-check svg { width: 56px; height: 56px; color: var(--accent-fg); }
.success-check__path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.modal-backdrop[data-open] .success-check__path {
  animation: draw-check 400ms var(--ease-out) 520ms forwards;
}
@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

/* confetti burst */
.confetti {
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}
.confetti:nth-child(7n) { background: var(--fg-1); }
.confetti:nth-child(5n) { background: #4ADE80; }
.confetti:nth-child(3n) { width: 7px; height: 7px; border-radius: 999px; }
.confetti:nth-child(4n) { width: 4px; height: 11px; }
.modal-backdrop[data-open] .confetti {
  animation: confetti-burst 1100ms var(--ease-out) 540ms forwards;
}
@keyframes confetti-burst {
  0% {
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(0) rotate(0deg);
    opacity: 1;
  }
  60%  { opacity: 1; }
  100% {
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(calc(-1 * var(--dist, 120px))) rotate(720deg);
    opacity: 0;
  }
}

.modal__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 32px; color: var(--fg-1);
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.modal__sub {
  color: var(--fg-2); font-size: 15.5px; line-height: 1.55;
  margin: 0 0 28px;
  font-weight: 300;
  max-width: 320px; margin-left: auto; margin-right: auto;
}
.modal__sub strong { color: var(--fg-1); font-weight: 500; }

.modal__share {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(222, 222, 222, 0.04);
  border: 1px solid rgba(222, 222, 222, 0.06);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.modal__share-label {
  color: var(--fg-2); font-size: 13.5px;
  text-align: left;
}
.modal__socials { display: flex; gap: 6px; }
.modal__socials a {
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(167, 249, 50, 0.10); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out);
}
.modal__socials a:hover { background: rgba(167, 249, 50, 0.20); opacity: 1; }

.modal__dismiss {
  width: 100%;
  padding: 14px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg);
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.modal__dismiss:hover { background: var(--accent-hover); }

/* ============================================================
 * Scroll reveal — JS adds .reveal then toggles .is-visible
 * as each element scrolls into view. Stagger is set inline.
 * ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-spring);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition: none !important; }
  .modal { transition: opacity 200ms ease !important; transform: none !important; }
  .modal-backdrop[data-open] .success-check,
  .modal-backdrop[data-open] .success-check__path,
  .modal-backdrop[data-open] .confetti,
  .modal-backdrop[data-open] .success-ring { animation: none !important; }
  .success-check { transform: scale(1) !important; }
  .success-check__path { stroke-dashoffset: 0 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
