/* ============ BasketIQ — Coming Soon · green & gold ============ */
:root {
  --green-900: #052e21;
  --green-800: #083d2c;
  --green-700: #0c5540;
  --emerald:   #10b981;
  --emerald-2: #34d399;
  --gold:      #ffcf33;
  --gold-2:    #ffe08a;
  --cream:     #fff8ea;
  --ink:       #eafff5;
  --muted:     #9fd8c2;
  --line:      rgba(255,255,255,.10);
  --card:      rgba(255,255,255,.05);
  --shadow:    0 20px 50px rgba(0,0,0,.35);
  --radius:    18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* on <html> + fixed so the gradient always covers the full page while scrolling */
  background:
    radial-gradient(1200px 700px at 80% -5%, rgba(16,185,129,.30), transparent 60%),
    radial-gradient(900px 600px at 10% 105%, rgba(255,207,51,.16), transparent 55%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 45%, #06251b 100%);
  background-attachment: fixed;
  background-color: var(--green-900);
}
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: transparent;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* soft blurred glows */
.glow { position: fixed; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; opacity: .55; }
.glow--gold  { width: 460px; height: 460px; background: var(--gold);    top: -160px; right: -120px; animation: drift 14s ease-in-out infinite; }
.glow--green { width: 520px; height: 520px; background: var(--emerald); bottom: -220px; left: -160px; animation: drift 18s ease-in-out infinite reverse; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-24px) scale(1.08); } }

/* drifting emoji decor */
.floaties { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.floaties span {
  position: absolute; bottom: -60px; font-size: 2rem; opacity: .16;
  animation: rise linear infinite;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
}
@keyframes rise {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .18; }
  90%  { opacity: .18; }
  100% { transform: translateY(-108vh) rotate(220deg); opacity: 0; }
}

/* ---------------- nav ---------------- */
.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(18px, 5vw, 56px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__logo {
  display: grid; place-items: center; width: 42px; height: 42px; font-size: 1.35rem;
  background: linear-gradient(135deg, var(--emerald), #059669);
  border-radius: 12px; box-shadow: 0 8px 20px rgba(16,185,129,.4);
  position: relative;
}
.brand__logo::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.brand__name { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -.5px; }
.brand__iq { color: var(--gold); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(8px);
}
.pill--live { color: var(--gold-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(255,207,51,.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,207,51,.55); } 70% { box-shadow: 0 0 0 10px rgba(255,207,51,0); } 100% { box-shadow: 0 0 0 0 rgba(255,207,51,0); } }

/* ---------------- hero ---------------- */
.hero {
  position: relative; z-index: 5;
  text-align: center;
  max-width: 860px; margin: 0 auto;
  padding: clamp(28px, 6vw, 70px) 22px 40px;
  animation: fadeUp .8s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--gold-2);
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,207,51,.32); background: rgba(255,207,51,.08);
  margin-bottom: 26px;
}
.flag { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.4); flex-shrink: 0; }

.hero__title { margin-bottom: 22px; }
.hero__soon {
  display: block;
  font-family: "Fredoka", sans-serif; font-weight: 700;
  font-size: clamp(3.4rem, 12vw, 7rem); line-height: 1.04; letter-spacing: -2px;
  padding-bottom: .08em; /* room for the "g" descender so background-clip:text doesn't crop it */
  background: linear-gradient(100deg, #fff 10%, var(--gold-2) 50%, var(--emerald-2) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 220% auto; animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 220% center; } }
.hero__sub {
  display: block; margin-top: 14px;
  font-family: "Fredoka", sans-serif; font-weight: 600;
  font-size: clamp(1.15rem, 3.6vw, 1.9rem); line-height: 1.2; color: var(--ink);
}
.grad { color: var(--emerald-2); }

.hero__tag {
  max-width: 620px; margin: 0 auto 30px;
  font-size: clamp(1rem, 2.4vw, 1.18rem); line-height: 1.6; color: var(--muted);
  /* reserve height so the rotating keyword can't reflow the paragraph and shove
     the signup box up/down as it types a longer word */
  min-height: 6.4em;
}
.rotator { color: var(--gold-2); font-weight: 700; }
.caret { color: var(--gold-2); animation: blink 1s steps(1) infinite; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }

/* signup */
.signup {
  display: flex; gap: 10px; max-width: 470px; margin: 0 auto 12px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  padding: 8px; border-radius: 999px; backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.signup:focus-within { border-color: rgba(52,211,153,.5); box-shadow: 0 0 0 4px rgba(16,185,129,.15), var(--shadow); }
.signup__input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--ink); font-size: 1rem; padding: 0 16px; font-family: inherit;
}
.signup__input::placeholder { color: var(--muted); }
.signup__btn {
  white-space: nowrap; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .98rem; color: #05271c;
  padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 22px rgba(255,207,51,.4);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.signup__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,207,51,.55); filter: brightness(1.05); }
.signup__btn:active { transform: translateY(0); }
.signup__note { font-size: .84rem; color: var(--muted); min-height: 1.2em; transition: color .2s; }
.signup__note.ok { color: var(--emerald-2); font-weight: 600; }
.signup__note.err { color: #ffb4a2; }

/* countdown */
.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 16px); margin-top: 40px; }
.cd {
  min-width: clamp(62px, 16vw, 92px);
  padding: 16px 8px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.cd__num {
  display: block; font-family: "Fredoka", sans-serif; font-weight: 700;
  font-size: clamp(1.6rem, 6vw, 2.5rem); line-height: 1;
  color: var(--gold-2); font-variant-numeric: tabular-nums;
}
.cd__lbl { display: block; margin-top: 6px; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* ---------------- stores marquee ---------------- */
.stores { position: relative; z-index: 5; margin: 30px 0 10px; }
.stores__label { text-align: center; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  background: var(--card); border: 1px solid var(--line);
}
.chip b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: .7rem; color: #05271c; }

/* ---------------- features ---------------- */
.features {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 980px; margin: 46px auto; padding: 0 22px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: left; backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(52,211,153,.4); background: rgba(255,255,255,.08); }
.card__ico { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: .94rem; line-height: 1.55; color: var(--muted); }

/* ---------------- footer ---------------- */
.foot { position: relative; z-index: 5; text-align: center; padding: 30px 22px 46px; color: var(--muted); }
.foot__brand { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: 8px; }
.foot p { font-size: .85rem; }
.foot__dev {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  display: inline-block; color: var(--muted);
}
.foot__dev b { color: var(--gold-2); font-weight: 700; }
.foot__dev-link { color: inherit; text-decoration: none; transition: opacity .15s ease; }
.foot__dev-link:hover { opacity: .85; }
.foot__handle { color: var(--emerald-2); font-weight: 600; border-bottom: 1px dashed rgba(52,211,153,.45); transition: color .15s ease, border-color .15s ease; }
.foot__dev-link:hover .foot__handle { color: var(--gold-2); border-color: rgba(255,224,138,.7); }
.heart { display: inline-block; animation: beat 1.3s ease-in-out infinite; }
@keyframes beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; max-width: 420px; }
  .nav { padding: 16px 18px; }
}
/* very narrow phones wrap the tagline to a 5th line as the keyword types out;
   give a touch more reserve there so the signup box never jumps */
@media (max-width: 359px) {
  .hero__tag { min-height: 8em; }
}

/* ---------------- floating sponsor banner ---------------- */
/* fixed to a corner — the page behind it stays fully scrollable */
.adfloat {
  position: fixed; z-index: 90;
  right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px);
  width: min(330px, calc(100vw - 28px));
  border-radius: 18px; padding: 12px;
  background: linear-gradient(155deg, #0a4733 0%, #06301f 100%);
  border: 1px solid rgba(255,207,51,.4);
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  /* start off-screen (down + faded) and slide up when .show is added */
  transform: translateY(140%); opacity: 0;
  transition: transform .5s cubic-bezier(.2,.9,.3,1.1), opacity .4s ease;
}
.adfloat[hidden] { display: none; }
.adfloat.show { transform: none; opacity: 1; }

.adfloat__x {
  position: absolute; top: -10px; right: -10px; width: 28px; height: 28px;
  display: grid; place-items: center; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: var(--ink);
  background: #0a4733; border: 1px solid rgba(255,207,51,.45); border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  transition: background .15s ease, transform .15s ease;
}
.adfloat__x:hover { background: #0c5540; transform: rotate(90deg); }

.adfloat__link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.adfloat__ico {
  flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; font-size: 1.9rem;
  background: rgba(255,207,51,.12); border: 1px solid rgba(255,207,51,.28); border-radius: 14px;
  animation: adBob 2.6s ease-in-out infinite;
}
@keyframes adBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.adfloat__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adfloat__tag { font-size: .64rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-2); }
.adfloat__title { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.3rem; line-height: 1.05; color: var(--ink); }
.ad__accent { color: var(--gold); }
.adfloat__copy { font-size: .82rem; line-height: 1.3; color: var(--muted); }
.adfloat__link:hover .adfloat__title { color: var(--gold-2); }

@media (max-width: 420px) {
  .adfloat { left: 14px; right: 14px; width: auto; }
  /* full-width banner sits over the footer at the bottom — reserve room so it can't cover it */
  body.ad-open .foot { padding-bottom: 150px; }
}
