/* hoodfi landing — dark fintech, green accent, GSAP-driven */
:root {
  --bg: #07100b;
  --bg-soft: #0b1811;
  --panel: #0f2016;
  --line: rgba(142, 227, 180, 0.14);
  --ink: #eafff3;
  --muted: #9ab8a8;
  --green: #2ecc80;
  --green-soft: rgba(46, 204, 128, 0.14);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: #07100b; }

/* loader */
.loader {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  /* safety net: even with JS timers throttled (background tab), the loader never traps the page */
  animation: loader-out 0.6s ease 2.5s forwards;
}
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
/* and whatever the intro timeline had not revealed yet snaps into place */
.hero-title .char, .reveal-up, .nav, .ticker { animation: intro-fallback 0.5s ease 3s forwards; }
@keyframes intro-fallback { to { transform: none; opacity: 1; } }
.loader-word { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.loader-word span { color: var(--green); }
.loader-bar { width: 160px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--green); }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 16, 11, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--green); color: #07100b; }
.btn-solid:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(142, 227, 180, 0.3); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); transform: translateY(-2px); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 14px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
#chartCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%);
  opacity: 0.5;
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.orb-a { width: 520px; height: 520px; background: rgba(46, 204, 128, 0.16); top: -120px; right: -80px; }
.orb-b { width: 420px; height: 420px; background: rgba(46, 128, 204, 0.10); bottom: -60px; left: -120px; }

.hero-inner { position: relative; max-width: 1080px; padding: 120px clamp(20px, 5vw, 48px) 40px; }
.hero-kicker {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft); border: 1px solid rgba(46, 204, 128, 0.25);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(52px, 9.5vw, 128px); line-height: 0.98; letter-spacing: -0.03em;
  margin-bottom: 30px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .char { display: inline-block; transform: translateY(110%); }
.hero-title .accent { color: var(--green); }
.hero-sub { max-width: 560px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ticker */
.ticker {
  position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; overflow: hidden; background: rgba(11, 24, 17, 0.6);
}
.ticker-track { display: flex; gap: 42px; width: max-content; will-change: transform; }
.tick { display: flex; align-items: baseline; gap: 9px; font-size: 15px; white-space: nowrap; }
.tick b { font-family: var(--font-display); font-weight: 600; }
.tick span { color: var(--muted); font-variant-numeric: tabular-nums; }
.tick .up { color: var(--green); }

/* showreel */
.showreel { position: relative; }
.showreel-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.showreel-head { padding: 0 clamp(20px, 5vw, 48px) 36px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.sr-title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 60px); letter-spacing: -0.02em; }
.sr-caption { color: var(--muted); font-size: 15px; max-width: 420px; text-align: right; }
.showreel-track { display: flex; gap: clamp(24px, 4vw, 56px); padding: 0 clamp(20px, 5vw, 48px); width: max-content; will-change: transform; }
.shot {
  width: min(78vw, 980px); flex: none;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(46, 204, 128, 0.06);
  background: var(--panel);
  transform-origin: center;
}
.shot img { width: 100%; height: auto; }

/* features */
.features { max-width: 1180px; margin: 0 auto; padding: clamp(80px, 12vh, 150px) clamp(20px, 5vw, 48px); display: grid; gap: 18px; }
.feature {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 26px; align-items: center;
  border: 1px solid var(--line); border-radius: 20px; padding: 34px clamp(20px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(15, 32, 22, 0.65), rgba(11, 24, 17, 0.4));
  transition: border-color 0.3s, transform 0.3s;
}
.feature:hover { border-color: rgba(46, 204, 128, 0.4); transform: translateY(-3px); }
.feature-num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--green); opacity: 0.9; }
.feature-body h3 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.01em; margin-bottom: 8px; }
.feature-body p { color: var(--muted); max-width: 640px; }
.feature-tag {
  font-size: 13px; font-weight: 600; color: var(--green); white-space: nowrap;
  border: 1px solid rgba(46, 204, 128, 0.3); background: var(--green-soft);
  padding: 8px 14px; border-radius: 999px;
}

/* statement */
.statement { padding: clamp(60px, 14vh, 160px) clamp(20px, 6vw, 60px); max-width: 1180px; margin: 0 auto; }
.statement-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 4.4vw, 54px); line-height: 1.25; letter-spacing: -0.02em;
}
.statement-text .word { opacity: 0.16; display: inline-block; }

/* how */
.how { max-width: 1080px; margin: 0 auto; padding: clamp(60px, 10vh, 120px) clamp(20px, 5vw, 48px); }
.section-title { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 54px); letter-spacing: -0.02em; margin-bottom: clamp(40px, 7vh, 80px); }
.how-rail { position: relative; padding-left: clamp(34px, 5vw, 60px); }
.how-line { position: absolute; left: 10px; top: 6px; height: calc(100% - 12px); width: 4px; }
.steps { list-style: none; display: grid; gap: clamp(36px, 6vh, 64px); }
.step { position: relative; max-width: 640px; }
.step::before {
  content: ""; position: absolute; left: calc(-1 * clamp(34px, 5vw, 60px) + 2px); top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--green);
}
.step h4 { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 8px; }
.step p { color: var(--muted); }

/* numbers */
.numbers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px;
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px) clamp(80px, 12vh, 150px);
}
.number {
  border: 1px solid var(--line); border-radius: 20px; padding: 34px 28px;
  background: linear-gradient(180deg, rgba(15, 32, 22, 0.65), rgba(11, 24, 17, 0.4));
}
.number .num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5.4vw, 68px); color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.number .label { color: var(--muted); font-size: 15px; }

/* cta */
.cta { padding: 0 clamp(20px, 5vw, 48px) clamp(80px, 14vh, 160px); }
.cta-card {
  position: relative; overflow: hidden; max-width: 1180px; margin: 0 auto; text-align: center;
  border: 1px solid rgba(46, 204, 128, 0.25); border-radius: 28px;
  padding: clamp(60px, 10vh, 110px) clamp(24px, 5vw, 60px);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(46, 204, 128, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(15, 32, 22, 0.8), rgba(11, 24, 17, 0.5));
}
.cta-card h2 { font-family: var(--font-display); font-size: clamp(34px, 5.4vw, 64px); letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-card h2 span { color: var(--green); }
.cta-card > p { color: var(--muted); margin-bottom: 34px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 30px; font-size: 13px; color: rgba(154, 184, 168, 0.75); max-width: 560px; margin-inline: auto; }

/* footer */
.footer {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 26px clamp(20px, 5vw, 48px); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}

/* responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .feature-num { font-size: 28px; }
  .feature-tag { justify-self: start; }
  .showreel-head { flex-direction: column; }
  .sr-caption { text-align: left; }
  .shot { width: 86vw; }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .hero-title .char { transform: none; }
  .statement-text .word { opacity: 1; }
}

/* ------------------------------------------------ generated background layers */
.bg-photo {
  position: absolute; inset: -4%;
  background: url(assets/bg-hero.jpg) center right / cover no-repeat;
  opacity: 0.55;
  mask-image: linear-gradient(100deg, rgba(0,0,0,0.25) 10%, rgba(0,0,0,0.75) 55%, #000 80%);
  will-change: transform;
  animation: bg-breathe 24s ease-in-out infinite alternate;
}
@keyframes bg-breathe { from { transform: scale(1.0) translateY(0); } to { transform: scale(1.07) translateY(-1.5%); } }

.cta-card {
  background-image:
    linear-gradient(100deg, rgba(7, 16, 11, 0.94) 25%, rgba(7, 16, 11, 0.72) 60%, rgba(7, 16, 11, 0.45)),
    url(assets/bg-cta.jpg);
  background-size: cover;
  background-position: center;
}

/* ------------------------------------------------ launch bar + countdown */
.launch-bar {
  margin-top: 40px;
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 22px 34px;
  border: 1px solid rgba(46, 204, 128, 0.28);
  background: linear-gradient(180deg, rgba(15, 32, 22, 0.72), rgba(7, 16, 11, 0.55));
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 18px 24px;
}
.launch-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46,204,128,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(46,204,128,0); } }
.countdown { display: flex; gap: 14px; }
.cd { text-align: center; min-width: 52px; }
.cd b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.launch-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ca-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 13.5px/1 "SF Mono", ui-monospace, Menlo, monospace;
  color: var(--muted); background: rgba(7, 16, 11, 0.6);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 16px; cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.ca-pill:hover { border-color: var(--green); color: var(--ink); }
.ca-pill.copied { border-color: var(--green); color: var(--green); }
#buyBtn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

@media (max-width: 860px) {
  .launch-bar { width: 100%; }
}

/* socials */
.socials { display: flex; gap: 6px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--muted); border: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.socials a:hover { color: var(--ink); border-color: var(--line); }
.foot-links { display: flex; gap: 18px; }
.foot-links a:hover { color: var(--ink); }
.cta-follow { margin-top: 26px; font-size: 15px; color: var(--muted); }
.cta-follow a { color: var(--green); }
@media (max-width: 860px) { .socials { margin-left: auto; } }
