/* =========================================================
   CoinDrip — Homepage Stylesheet
   Design tokens, base, layout, components
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

/* ---------- Tokens ---------- */
:root{
  /* surfaces */
  --bg:            #0a0e13;
  --bg-elevated:   #10151c;
  --surface:       #141a22;
  --surface-hover: #1a212b;
  --border:        #232b36;
  --border-soft:   #1b212a;

  /* text */
  --text:          #eef1f5;
  --text-muted:    #8d97a6;
  --text-faint:    #5c6675;

  /* accent — fresh teal/mint (growth, energy, trust) */
  --accent:        #2fdba0;
  --accent-dim:    #1f9e75;
  --accent-soft:   rgba(47,219,160,.12);
  --accent-ink:    #06231a;

  /* secondary — warm coral, used sparingly for energy/highlights */
  --spark:         #ff8a5b;
  --spark-soft:    rgba(255,138,91,.12);

  /* utility */
  --danger:        #e0654f;
  --radius-sm:      8px;
  --radius:         12px;
  --radius-lg:      20px;
  --shadow-card:    0 1px 0 rgba(255,255,255,.02) inset, 0 16px 34px -20px rgba(0,0,0,.65);

  /* type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; font-weight:600; letter-spacing:-0.01em; }
p{ margin:0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:4px;
}

/* ---------- Layout helpers ---------- */
.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:24px;
}
.section{ padding-block:96px; }
.section--tight{ padding-block:72px; }
.section-head{
  max-width:640px;
  margin-bottom:48px;
}
.section-head--center{ margin-inline:auto; text-align:center; }
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:6px; height:6px;
  border-radius:50%;
  background:var(--accent);
}
.section-title{
  font-size:clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  color:var(--text);
  margin-bottom:14px;
}
.section-desc{
  color:var(--text-muted);
  font-size:1rem;
  line-height:1.7;
}

/* ---------- Badges ---------- */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:var(--font-mono);
  font-size:.7rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:5px 11px;
  border-radius:999px;
  border:1px solid transparent;
}
.badge--featured{
  color:var(--accent-ink);
  background:var(--accent);
}
.badge--soon{
  color:var(--text-muted);
  background:transparent;
  border-color:var(--border);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 26px;
  border-radius:var(--radius-sm);
  font-family:var(--font-body);
  font-weight:600;
  font-size:.95rem;
  border:1px solid transparent;
  transition:transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn--primary{
  background:var(--accent);
  color:var(--accent-ink);
}
.btn--primary:hover{
  background:#4de6b5;
  box-shadow:0 10px 26px -12px rgba(47,219,160,.5);
}
.btn--ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--border);
}
.btn--ghost:hover{
  border-color:var(--accent-dim);
  background:var(--surface);
}
.btn--sm{ padding:9px 16px; font-size:.85rem; }
.btn--block{ width:100%; }
.btn[disabled], .btn--disabled{
  opacity:.5;
  pointer-events:none;
}

/* ---------- Navbar ---------- */
.navbar{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(10,14,19,.86);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--border-soft);
}
.navbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.15rem;
  color:var(--text);
}
.brand__mark{
  width:34px; height:34px;
  border-radius:10px;
  background:var(--accent);
  display:flex; align-items:center; justify-content:center;
  color:var(--accent-ink);
}
.brand__mark svg{ width:19px; height:19px; }

.nav-links{
  display:flex;
  align-items:center;
  gap:4px;
}
.nav-links a{
  padding:9px 14px;
  border-radius:var(--radius-sm);
  font-size:.92rem;
  font-weight:500;
  color:var(--text-muted);
  transition:color .15s ease, background-color .15s ease;
}
.nav-links a:hover{ color:var(--text); background:var(--surface); }
.nav-links a.is-active{ color:var(--accent); }

.navbar__actions{ display:flex; align-items:center; gap:10px; }

.nav-toggle{
  display:none;
  width:40px; height:40px;
  align-items:center; justify-content:center;
  background:transparent;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  color:var(--text);
}
.nav-toggle svg{ width:20px; height:20px; }

/* mobile nav */
@media (min-width: 901px){
  .nav-toggle{ display:none; }
  .nav-links__mobile-only{ display:none; }
}
@media (max-width: 900px){
  .nav-links{
    position:fixed;
    inset:72px 0 0 0;
    height:calc(100vh - 72px);
    background:var(--bg-elevated);
    flex-direction:column;
    align-items:stretch;
    padding:18px;
    gap:2px;
    transform:translateX(100%);
    transition:transform .25s ease;
    border-top:1px solid var(--border-soft);
    overflow-y:auto;
  }
  .nav-links.is-open{ transform:translateX(0); }
  .nav-links a{ padding:14px 12px; font-size:1rem; border-radius:var(--radius); }
  .nav-links__mobile-only{
    border-top:1px solid var(--border-soft);
    margin-top:8px;
    padding-top:12px;
  }
  .navbar__actions .btn--ghost{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding-block:100px 90px;
  border-bottom:1px solid var(--border-soft);
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  top:-200px; right:-160px;
  width:520px; height:520px;
  background:radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events:none;
}
.hero__inner{
  position:relative;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:56px;
  align-items:center;
}
.hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 14px;
  border:1px solid var(--border);
  border-radius:999px;
  font-family:var(--font-mono);
  font-size:.78rem;
  color:var(--text-muted);
  margin-bottom:24px;
}
.hero__badge svg{ width:14px; height:14px; color:var(--accent); }
.hero__title{
  font-size:clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  line-height:1.12;
  margin-bottom:22px;
}
.hero__title em{
  font-style:normal;
  color:var(--accent);
}
.hero__desc{
  color:var(--text-muted);
  font-size:1.05rem;
  max-width:520px;
  margin-bottom:34px;
}
.hero__cta{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.hero__note{
  margin-top:18px;
  font-size:.85rem;
  color:var(--text-faint);
}

/* hero visual — decorative faucet / drip graphic, no data implied */
.hero__visual{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:340px;
}
.drip-graphic{
  position:relative;
  width:100%;
  max-width:380px;
  aspect-ratio:1/1;
}
.drip-graphic__ring{
  position:absolute;
  inset:0;
  border-radius:50%;
  border:1px dashed var(--border);
}
.drip-graphic__ring--outer{ inset:-40px; opacity:.6; }
.drip-coin{
  position:absolute;
  border-radius:50%;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:var(--shadow-card);
  display:flex;
  align-items:center;
  justify-content:center;
}
.drip-coin svg{ width:44%; height:44%; color:var(--accent); }
.drip-coin--lg{ width:150px; height:150px; left:50%; top:50%; transform:translate(-50%,-50%); }
.drip-coin--sm{ width:64px; height:64px; top:14%; left:8%; animation:float 5s ease-in-out infinite; animation-delay:.6s; }
.drip-coin--sm svg{ color:var(--spark); }
.drip-coin--sm2{ width:52px; height:52px; bottom:10%; right:6%; animation:float 5s ease-in-out infinite; animation-delay:1.2s; }
@keyframes float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-10px); }
}

/* ---------- Card grid (earning methods) ---------- */
.grid-4{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
}
@media (max-width:980px){ .grid-4{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:560px){ .grid-4{ grid-template-columns:1fr; } }

.method-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:26px 22px;
  transition:transform .18s ease, border-color .18s ease, background-color .18s ease;
  display:flex;
  flex-direction:column;
}
.method-card:hover{
  transform:translateY(-4px);
  border-color:var(--accent-dim);
  background:var(--surface-hover);
}
.method-card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom:18px;
}
.method-card__icon{
  width:44px; height:44px;
  border-radius:12px;
  background:var(--accent-soft);
  color:var(--accent);
  display:flex; align-items:center; justify-content:center;
}
.method-card__icon svg{ width:22px; height:22px; }
.method-card__title{
  font-size:1.08rem;
  margin-bottom:8px;
}
.method-card__desc{
  color:var(--text-muted);
  font-size:.9rem;
  line-height:1.6;
  flex-grow:1;
}

/* Faucet card — featured / real feature */
.method-card--featured{
  border-color:var(--accent-dim);
  position:relative;
}
.method-card--featured .method-card__icon{
  background:var(--accent);
  color:var(--accent-ink);
}

/* Coming soon cards */
.method-card--soon{
  opacity:.86;
}
.method-card--soon .method-card__icon{
  background:var(--bg-elevated);
  color:var(--text-muted);
}

/* ---------- How it works ---------- */
.steps{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:0;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
}
.step{
  padding:32px 26px;
  border-left:1px solid var(--border-soft);
  position:relative;
}
.step:first-child{ border-left:none; }
.step__num{
  font-family:var(--font-mono);
  font-size:.78rem;
  color:var(--accent);
  margin-bottom:16px;
  display:block;
}
.step__title{ font-size:1.02rem; margin-bottom:8px; }
.step__desc{ color:var(--text-muted); font-size:.88rem; line-height:1.6; }

@media (max-width:900px){
  .steps{ grid-template-columns:repeat(2, 1fr); }
  .step:nth-child(3){ border-left:none; }
  .step:nth-child(1), .step:nth-child(2){ border-bottom:1px solid var(--border-soft); }
}
@media (max-width:560px){
  .steps{ grid-template-columns:1fr; }
  .step{ border-left:none !important; border-bottom:1px solid var(--border-soft); }
  .step:last-child{ border-bottom:none; }
}

/* ---------- Referral ---------- */
.referral{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:48px;
}
.referral__list{ display:flex; flex-direction:column; gap:16px; margin-top:24px; }
.referral__list li{
  display:flex; gap:12px; align-items:flex-start;
  color:var(--text-muted);
  font-size:.94rem;
}
.referral__list svg{ flex-shrink:0; width:18px; height:18px; color:var(--accent); margin-top:2px; }
.referral__panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px;
  text-align:left;
}
.referral__panel-icon{
  width:46px; height:46px;
  border-radius:12px;
  background:var(--spark-soft);
  color:var(--spark);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.referral__panel-icon svg{ width:22px; height:22px; }
.referral__panel h3{ font-size:1.1rem; margin-bottom:10px; }
.referral__panel p{ color:var(--text-muted); font-size:.9rem; line-height:1.65; }

@media (max-width:860px){
  .referral{ grid-template-columns:1fr; padding:32px 24px; }
}

/* ---------- FAQ ---------- */
.faq{
  max-width:760px;
  margin-inline:auto;
}
.faq-item{
  border-bottom:1px solid var(--border-soft);
}
.faq-item__q{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:none;
  border:none;
  color:var(--text);
  text-align:left;
  padding:20px 4px;
  font-family:var(--font-body);
  font-size:1rem;
  font-weight:600;
}
.faq-item__icon{
  flex-shrink:0;
  width:22px; height:22px;
  display:flex; align-items:center; justify-content:center;
  color:var(--accent);
  transition:transform .2s ease;
}
.faq-item.is-open .faq-item__icon{ transform:rotate(45deg); }
.faq-item__a{
  max-height:0;
  overflow:hidden;
  transition:max-height .25s ease;
}
.faq-item__a p{
  color:var(--text-muted);
  font-size:.92rem;
  line-height:1.7;
  padding:0 4px 20px;
  max-width:640px;
}

/* ---------- CTA banner ---------- */
.cta-banner{
  border:1px solid var(--border);
  background:var(--bg-elevated);
  border-radius:var(--radius-lg);
  padding:52px 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}
.cta-banner__title{ font-size:1.6rem; margin-bottom:8px; }
.cta-banner__desc{ color:var(--text-muted); max-width:440px; }

/* ---------- Footer ---------- */
.footer{
  border-top:1px solid var(--border-soft);
  padding-block:56px 28px;
  background:var(--bg-elevated);
}
.footer__grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:32px;
  margin-bottom:40px;
}
.footer__brand-desc{
  color:var(--text-muted);
  font-size:.9rem;
  line-height:1.7;
  margin-top:14px;
  max-width:280px;
}
.footer__heading{
  font-family:var(--font-mono);
  font-size:.75rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-faint);
  margin-bottom:16px;
}
.footer__links{ display:flex; flex-direction:column; gap:10px; }
.footer__links a{
  color:var(--text-muted);
  font-size:.9rem;
  transition:color .15s ease;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.footer__links a:hover{ color:var(--accent); }
.footer__links .tag-soon{
  font-family:var(--font-mono);
  font-size:.62rem;
  color:var(--text-faint);
  border:1px solid var(--border);
  border-radius:999px;
  padding:1px 7px;
}
.footer__bottom{
  border-top:1px solid var(--border-soft);
  padding-top:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}
.footer__bottom p{ color:var(--text-faint); font-size:.82rem; }
.footer__socials{ display:flex; gap:10px; }
.footer__socials a{
  width:36px; height:36px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-muted);
  transition:color .15s ease, border-color .15s ease;
}
.footer__socials a:hover{ color:var(--accent); border-color:var(--accent-dim); }
.footer__socials svg{ width:16px; height:16px; }

@media (max-width:860px){
  .footer__grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:520px){
  .footer__grid{ grid-template-columns:1fr; }
  .footer__bottom{ flex-direction:column; align-items:flex-start; }
}

/* ---------- Hero responsive ---------- */
@media (max-width:980px){
  .hero__inner{ grid-template-columns:1fr; }
  .hero__visual{ min-height:280px; order:-1; }
  .drip-graphic{ max-width:280px; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s ease, transform .5s ease;
}
.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* ---------- Misc ---------- */
.section-divider{ border:0; border-top:1px solid var(--border-soft); }
