:root {
  --primary: #2ea872;
  --green-950: #041a12;
  --green-900: #0b3022;
  --green-800: #0f4a35;
  --green-700: #126044;
  --green-600: #1a7a56;
  --green-500: #2ea872;
  --green-400: #5ec995;
  --gold: #d4af37;
  --gold-soft: #e8cc6a;
  --gold-dim: rgba(212, 175, 55, 0.35);
  --white: #ffffff;
  --text: #f4f7f5;
  --muted: rgba(244, 247, 245, 0.72);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--green-950);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 42vw;
  height: 42vw;
  top: -8%;
  left: -10%;
  background: radial-gradient(circle, #1a7a56 0%, transparent 70%);
}

.orb-2 {
  width: 36vw;
  height: 36vw;
  top: 35%;
  right: -12%;
  background: radial-gradient(circle, #0f4a35 0%, transparent 70%);
  animation-delay: -6s;
}

.orb-3 {
  width: 28vw;
  height: 28vw;
  bottom: 5%;
  left: 30%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
  animation-delay: -12s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(3%, 4%) scale(1.08);
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background: rgba(4, 26, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(46, 168, 114, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(46, 168, 114, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--green-950);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.3);
}

/* Arch mark */
.arch-mark {
  width: 56px;
  height: 28px;
  margin-bottom: 1rem;
  border: 2px solid var(--gold);
  border-bottom: none;
  border-radius: 56px 56px 0 0;
  position: relative;
}

.arch-mark::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.arch-mark-lg {
  width: 72px;
  height: 36px;
  margin-inline: auto;
}

/* Typography */
.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-400);
}

.eyebrow.gold {
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 600;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.lead,
.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 540px;
}

.lead {
  margin-top: 1.15rem;
}

.lead strong,
.section-lead strong {
  color: var(--gold-soft);
  font-weight: 600;
}

.section-lead.center {
  margin-inline: auto;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: calc(var(--header-h) + 3rem) 0 0;
  background: linear-gradient(180deg, var(--green-900) 0%, var(--green-950) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 80px);
}

.cta-row {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-pills {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-pills span {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.hero-pills .pill-new {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-dim);
  color: var(--gold-soft);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle, rgba(46, 168, 114, 0.35) 0%, transparent 65%);
  filter: blur(30px);
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

.hero-visual img {
  position: relative;
  width: min(420px, 100%);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

@keyframes pulse-glow {
  from {
    opacity: 0.6;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.hero-wave {
  color: var(--green-950);
  line-height: 0;
  margin-top: -1px;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* Ticker */
.ticker {
  position: relative;
  z-index: 1;
  padding: 1.1rem 0;
  background: var(--green-950);
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.ticker-track span::before {
  content: "◆";
  margin-right: 1rem;
  font-size: 0.55rem;
  vertical-align: middle;
  opacity: 0.6;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Streaks spotlight */
.spotlight {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    var(--green-950);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.feature-list {
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.spotlight-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.5s ease;
}

.spotlight-visual img:hover {
  transform: scale(1.02) rotate(-0.5deg);
}

.tilt {
  animation: tilt 8s ease-in-out infinite;
}

@keyframes tilt {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

/* Flow section */
.flow-section {
  position: relative;
  z-index: 1;
  padding: 5rem 0 6rem;
  background: linear-gradient(180deg, var(--green-950) 0%, var(--green-900) 50%, var(--green-950) 100%);
}

.section-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.flow-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.flow-card {
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.flow-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface-strong);
}

.flow-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.flow-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.flow-card-highlight {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.14), rgba(46, 168, 114, 0.1));
  border-color: var(--gold-dim);
}

.flow-card-highlight h3 {
  color: var(--gold-soft);
}

/* Showcase panels */
.showcase {
  position: relative;
  z-index: 1;
}

.showcase-panel {
  padding: 4.5rem 0;
  background: var(--green-950);
}

.showcase-panel-alt {
  background:
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(26, 122, 86, 0.12) 0%, transparent 60%),
    var(--green-900);
}

.showcase-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.showcase-row.reverse {
  grid-template-columns: 1.15fr 0.85fr;
}

.showcase-row.reverse .showcase-copy {
  order: 2;
}

.showcase-row.reverse .showcase-image {
  order: 1;
}

.showcase-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 420px;
}

.showcase-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-image img:hover {
  transform: scale(1.03);
}

/* Community */
.community {
  position: relative;
  z-index: 1;
  padding: 5rem 0 6rem;
  background: var(--green-950);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.community-block {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.community-img {
  margin-top: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* Download */
.download {
  position: relative;
  z-index: 1;
  padding: 5rem 0 6rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(46, 168, 114, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, var(--green-900), var(--green-950));
}

.download-inner {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.download-inner h2 {
  margin-bottom: 0.5rem;
}

.download-inner > p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

.signup-form {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.signup-form input {
  min-width: 260px;
  width: min(400px, 86vw);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  padding: 0.9rem 1.15rem;
  font: inherit;
}

.signup-form input::placeholder {
  color: rgba(244, 247, 245, 0.45);
}

.signup-form input:focus {
  outline: 2px solid var(--gold-dim);
  border-color: var(--gold);
}

.tiny {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: rgba(244, 247, 245, 0.5);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--green-950);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand p,
.footer-links {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--gold-soft);
}

/* Scroll reveal — visible by default; hidden only when JS is active */
.reveal {
  opacity: 1;
  transform: none;
}

html.js-reveal .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-reveal .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

main .legal-page {
  padding-top: calc(var(--header-h) + 3rem);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner,
  .spotlight-grid,
  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
  }

  .showcase-row.reverse .showcase-copy,
  .showcase-row.reverse .showcase-image {
    order: unset;
  }

  .hero-visual {
    order: -1;
  }

  .flow-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + 1.5rem);
  }

  .hero-inner {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .flow-cards {
    grid-template-columns: 1fr;
  }

  .spotlight,
  .flow-section,
  .showcase-panel,
  .community,
  .download {
    padding-block: 3.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb,
  .float,
  .tilt,
  .ticker-track,
  .phone-glow {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
