/* ============================================================
   Avocado Bets — Landing page
   Robinhood-matched design system
   Palette + type sampled from robinhood.com:
     bg  #110E08  (warm near-black)   accent #CCFF00 (lime)
     taupe #35322D  surfaces/borders
     fonts: Instrument Serif (display) + Geist (sans)
   ============================================================ */

:root {
  /* palette */
  --bg:        #110e08;   /* warm near-black — body */
  --bg-2:      #17130b;   /* lifted warm surface */
  --bg-3:      #1e190f;   /* cards */
  --taupe:     #35322d;   /* borders / secondary surface */
  --taupe-2:   #4d4a46;
  --lime:      #ccff00;   /* signature accent */
  --lime-dim:  #b8e600;
  --cream:     #f7f5ef;   /* warm white text */
  --text:      #f7f5ef;
  --text-mut:  #a8a49b;   /* warm muted */
  --text-dim:  #7d7a72;
  --on-lime:   #110e08;   /* text on lime */
  --line:      rgba(247,245,239,0.12);
  --line-2:    rgba(247,245,239,0.18);

  --radius:     18px;
  --radius-lg:  36px;      /* Robinhood's very-rounded cards */
  --pill:       100px;
  --maxw:       1200px;
  --nav-h:      74px;

  --shadow-md:  0 24px 70px rgba(0,0,0,0.5);
  --ease:       cubic-bezier(.22,.61,.36,1);

  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* Editorial serif display helper */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-bg: var(--lime);
  --btn-fg: var(--on-lime);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* lime fill (primary) */
.btn--green, .btn--lime { --btn-bg: var(--lime); --btn-fg: var(--on-lime); }
.btn--green:hover, .btn--lime:hover { --btn-bg: var(--lime-dim); box-shadow: 0 12px 34px rgba(204,255,0,0.25); }

/* dark pill (nav on dark) */
.btn--pill { --btn-bg: var(--cream); --btn-fg: var(--on-lime); padding: 11px 20px; font-size: 14px; }
.btn--pill:hover { --btn-bg: #fff; }

/* outline (lime border + text) — Robinhood's ghost */
.btn--ghost, .btn--outline {
  --btn-bg: transparent; --btn-fg: var(--cream); --btn-bd: var(--line-2);
}
.btn--ghost:hover, .btn--outline:hover { --btn-fg: var(--lime); --btn-bd: var(--lime); }

.btn--lg    { padding: 17px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn__apple { margin-top: -3px; flex: none; }

.link-arrow {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
  font-size: 15px;
  color: var(--lime);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.link-arrow:hover { border-bottom-color: var(--lime); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; gap: 32px;
}

.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.nav__brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: url('res/icon.png') center / cover no-repeat;
  flex: none;
}
.nav__brand-dot { color: var(--lime); }

.nav__links { display: flex; gap: 28px; margin-right: auto; }
.nav__links a {
  font-size: 15px; font-weight: 500;
  color: var(--text-mut);
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--lime); }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__login {
  font-size: 15px; font-weight: 600;
  color: var(--cream);
  transition: color .2s var(--ease);
}
.nav__login:hover { color: var(--lime); }

/* solid state (scrolled) — stays dark/warm */
.nav.is-solid {
  background: rgba(17,14,8,0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}

/* mobile toggle */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--cream);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__drawer {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 26px;
  display: none; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-md);
}
.nav__drawer a {
  padding: 13px 4px;
  font-size: 17px; font-weight: 600;
  color: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav__drawer a:hover { color: var(--lime); }
.nav__drawer a.btn { margin-top: 14px; color: var(--btn-fg); border-bottom: 0; }
.nav.is-open .nav__drawer { display: flex; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; color: var(--cream);
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(17,14,8,0.72) 0%, rgba(17,14,8,0.45) 42%, rgba(17,14,8,0.94) 100%),
    radial-gradient(120% 90% at 18% 26%, rgba(0,0,0,0.35), transparent 60%);
}
.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw);
  margin-inline: auto;
  padding: calc(var(--nav-h) + 40px) 24px 90px;
}
.hero__eyebrow {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 26px;
}
.hero__title em { font-style: italic; }
.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: rgba(247,245,239,0.82);
  max-width: 56ch;
  margin-bottom: 40px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(247,245,239,0.4);
  border-radius: 14px;
  display: flex; justify-content: center;
}
.hero__scroll span {
  width: 4px; height: 8px; margin-top: 7px;
  background: var(--lime); border-radius: 3px;
  animation: scrollDot 1.6s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(-4px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ============================================================
   Statement band + stats
   ============================================================ */
.band { padding: clamp(80px, 11vw, 150px) 0 clamp(50px, 7vw, 90px); }
.band__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.02em; line-height: 1.02;
  max-width: 16ch;
}
.band__title .hl { font-style: italic; color: var(--lime); }
.band__lede {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--text-mut);
  max-width: 62ch;
}

.stat-grid {
  margin-top: clamp(52px, 6vw, 84px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.stat { border-top: 1px solid var(--line-2); padding-top: 20px; }
.stat__num {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  letter-spacing: -0.01em; line-height: 1;
  color: var(--lime);
}
.stat__label { margin-top: 12px; color: var(--text-mut); font-size: 15px; }

/* ============================================================
   Feature rows
   ============================================================ */
.feature { padding: clamp(20px, 3vw, 40px) 0 clamp(70px, 9vw, 110px); }
.feature__row {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(32px, 6vw, 90px);
  padding: clamp(44px, 6vw, 84px) 24px;
}
.feature__row--reverse .feature__media { order: -1; }

.feature__kicker {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 16px;
}
.feature__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.01em; line-height: 1.04;
  margin-bottom: 20px;
}
.feature__body { font-size: 1.12rem; color: var(--text-mut); max-width: 46ch; }

.feature__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Feature grid (cards)
   ============================================================ */
.grid-sec {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(80px, 10vw, 130px) 0;
}
.grid-sec__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  letter-spacing: -0.01em; line-height: 1.04;
  text-align: center; max-width: 20ch;
  margin: 0 auto clamp(44px, 5vw, 68px);
}
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--lime); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: var(--lime);
  background: rgba(204,255,0,0.10);
  border: 1px solid rgba(204,255,0,0.28);
  border-radius: 14px;
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h4 { font-size: 1.18rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--text-mut); font-size: 15px; }

/* ============================================================
   Vision band
   ============================================================ */
.vision {
  padding: clamp(90px, 12vw, 170px) 0;
  background:
    radial-gradient(130% 120% at 82% 0%, rgba(204,255,0,0.08), transparent 55%),
    var(--bg);
}
.vision__inner { max-width: 940px; }
.vision__kicker {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 22px;
}
.vision__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  letter-spacing: -0.02em; line-height: 1.03;
  margin-bottom: 26px;
}
.vision__body { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--text-mut); max-width: 60ch; }

/* ============================================================
   Final CTA / waitlist — full-bleed lime moment
   ============================================================ */
.cta { background: var(--lime); color: var(--on-lime); padding: clamp(80px, 10vw, 140px) 0; }
.cta__inner { max-width: 760px; margin-inline: auto; text-align: center; }
.cta__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  letter-spacing: -0.02em; line-height: 1;
  margin-bottom: 18px;
}
.cta__sub { font-size: 1.2rem; color: rgba(17,14,8,0.72); margin-bottom: 36px; }
.cta__actions { display: flex; justify-content: center; }
.cta .btn--green, .cta .btn--lime { --btn-bg: var(--on-lime); --btn-fg: var(--lime); }
.cta .btn--green:hover, .cta .btn--lime:hover { --btn-bg: #000; box-shadow: 0 12px 30px rgba(17,14,8,0.28); }

.cta__fineprint { margin-top: 22px; font-size: 13px; color: rgba(17,14,8,0.6); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--cream); padding: clamp(60px, 7vw, 88px) 0 44px; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid var(--line);
}
.nav__brand--footer { font-size: 20px; margin-bottom: 16px; }
.footer__tag { color: var(--text-mut); max-width: 30ch; margin-bottom: 22px; }
.footer__social { display: flex; gap: 18px; }
.footer__social a { color: var(--lime); font-weight: 600; font-size: 14px; }
.footer__social a:hover { color: var(--cream); }

.footer__col h5 {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 18px; font-weight: 700;
}
.footer__col a {
  display: block; color: var(--text-mut); font-size: 15px;
  padding: 7px 0; transition: color .2s var(--ease);
}
.footer__col a:hover { color: var(--lime); }

.footer__legal { padding-top: 32px; }
.footer__legal p { color: var(--text-dim); font-size: 12.5px; line-height: 1.75; max-width: 92ch; }
.footer__copy { margin-top: 16px; color: var(--text-mut); }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__actions .nav__login { display: none; }
  .nav__toggle { display: flex; }

  /* group the CTA + hamburger neatly at the right, tighter spacing */
  .nav__inner { gap: 14px; }
  .nav__brand { margin-right: auto; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .cards { grid-template-columns: repeat(2, 1fr); }

  .feature__row, .feature__row--reverse { grid-template-columns: 1fr; gap: 28px; }
  .feature__row--reverse .feature__media { order: 0; }
  .feature__media { aspect-ratio: 16 / 10; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .wrap, .nav__inner, .hero__content { padding-inline: 18px; }

  /* shrink brand + CTA on phones so the pill and hamburger both fit */
  .nav__inner { gap: 10px; }
  .nav__brand { font-size: 18px; }
  .nav__brand-mark { width: 24px; height: 24px; }
  .btn--pill { padding: 9px 15px; font-size: 13px; }

  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .stat-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cta__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}
