/* ============================================================
   EarnHive — earnhive.com landing
   Design system: warm off-white canvas · brand orange · one deep
   warm-black band for rhythm. Schibsted Grotesk + JetBrains Mono.
   ============================================================ */

:root {
  --bg: #fbfaf7;            /* warm off-white */
  --bg-2: #f4f2ec;          /* warm tinted panel */
  --ink: #14130f;           /* warm near-black */
  --ink-2: #56534b;         /* muted */
  --ink-3: #8a877d;         /* subtle */
  --ink-4: #b6b2a7;         /* faint */
  --line: #e8e5dc;          /* hairline */
  --line-2: #d8d4c8;        /* stronger hairline */
  --paper: #ffffff;

  --accent: #ff5b1f;        /* EarnHive orange */
  --accent-deep: #e2440f;
  --accent-soft: rgba(255, 91, 31, 0.10);
  --accent-tint: #fdeee6;

  /* dark band */
  --dk: #161410;
  --dk-2: #1f1c16;
  --dk-line: #2c2820;
  --dk-ink: #f6f3ec;
  --dk-ink-2: #aaa498;

  --maxw: 1200px;
  --r: 14px;
  --r-lg: 20px;
  --r-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(20,18,12,.05);
  --shadow: 0 2px 8px -2px rgba(20,18,12,.08), 0 1px 2px rgba(20,18,12,.05);
  --shadow-lg: 0 30px 60px -24px rgba(20,18,12,.28), 0 8px 20px -8px rgba(20,18,12,.10);
  --shadow-glow: 0 30px 80px -28px rgba(255,91,31,.45);

  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* selection on dark */
.dark ::selection { background: var(--accent); color: #fff; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { position: relative; }
.section-pad { padding: clamp(72px, 11vw, 140px) 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
.display {
  font-size: clamp(44px, 6.6vw, 92px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.h2 { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -0.035em; line-height: 1.02; }
.h3 { font-size: clamp(21px, 2.2vw, 26px); letter-spacing: -0.025em; line-height: 1.15; }
.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); line-height: 1.55; letter-spacing: -0.012em; }
.muted { color: var(--ink-2); }
.accent { color: var(--accent); }

/* mono eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow .idx { color: var(--accent); }
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.eyebrow.no-mark::before { display: none; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px;
  border-radius: 11px;
  font-family: var(--sans);
  font-size: 15.5px; font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s var(--ease), background .18s, box-shadow .25s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(226,68,15,.30), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-ink:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-4); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; border-radius: 10px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 500; color: var(--ink); font-size: 15.5px;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.tlink svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.tlink:hover { color: var(--accent); }
.tlink:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.hdr.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.hdr-logo { height: 26px; width: auto; }
.hdr-logo.white { display: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 15px; font-weight: 450; color: var(--ink-2);
  padding: 9px 14px; border-radius: 9px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.hdr-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; }

/* ---------- hero ---------- */
.hero { padding: 150px 0 clamp(60px, 8vw, 110px); }
.hero,
.cta-final {
  overflow-x: clip;
}
@supports not (overflow: clip) {
  .hero,
  .cta-final {
    overflow-x: hidden;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero h1 { margin: 22px 0 0; }
.hero .lede { margin: 26px 0 0; max-width: 33ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 14px; }
.hero-note .dot { width: 6px; height: 6px; border-radius: 99px; background: #2f9e54; box-shadow: 0 0 0 3px rgba(47,158,84,.16); }

/* ambient glow */
.glow {
  position: absolute; pointer-events: none; z-index: 0;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,91,31,.20), rgba(255,91,31,0) 62%);
  filter: blur(8px);
  top: -180px; right: -160px;
}

/* hero visual — floating offer board */
.board { position: relative; perspective: 1600px; z-index: 1; }
.board-inner {
  position: relative;
  transform: rotateY(-14deg) rotateX(6deg) rotate(1deg);
  transform-style: preserve-3d;
}
.offer-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex; gap: 14px; align-items: center;
}
.board .offer-card { position: relative; }
.board .offer-card + .offer-card { margin-top: 14px; }
.board .c1 { box-shadow: var(--shadow-lg); transform: translateZ(60px); z-index: 3; }
.board .c2 { transform: translateZ(30px) translateX(18px); z-index: 2; }
.board .c3 { transform: translateZ(0) translateX(2px); z-index: 1; opacity: .96; }
.thumb {
  width: 58px; height: 58px; border-radius: 11px; flex-shrink: 0;
  background:
    repeating-linear-gradient(135deg, var(--bg-2) 0 7px, var(--paper) 7px 14px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-4);
}
.thumb.solid { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); border-color: transparent; color: #fff; }
.offer-meta { flex: 1; min-width: 0; }
.offer-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.offer-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; font-family: var(--mono); letter-spacing: -0.01em; }
.offer-stat { text-align: right; flex-shrink: 0; }
.offer-stat .v { font-family: var(--mono); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.offer-stat .l { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 1px; }

/* floating payout pill */
.float-pill {
  position: absolute; z-index: 5;
  background: var(--ink); color: var(--dk-ink);
  border-radius: 13px; padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 11px;
  animation: floaty 5s var(--ease) infinite;
}
.float-pill.fp1 { bottom: -24px; left: 22px; }
.float-pill .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.float-pill .col { display: flex; flex-direction: column; gap: 2px; }
.float-pill .t { font-size: 12px; color: var(--dk-ink-2); line-height: 1.2; white-space: nowrap; }
.float-pill .a { font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- marquee / metric strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.metric { padding: 34px 28px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: none; }
.metric .v { font-family: var(--mono); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.metric .l { margin-top: 9px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- offers section ---------- */
.sec-head { max-width: 760px; }
.sec-head h2 { margin-top: 18px; }
.sec-head .lede { margin-top: 20px; }

.offers-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.offers-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.ocard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .3s, border-color .25s;
}
.ocard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.ocard-art {
  height: 168px; position: relative;
  background:
    radial-gradient(120% 120% at 100% 0%, var(--bg-2), var(--paper));
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.ocard-art .ph {
  font-family: var(--mono); font-size: 11px; color: var(--ink-4);
  letter-spacing: 0.05em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ocard-art .ph svg { width: 26px; height: 26px; opacity: .7; }
.ocard-art.alt { background: linear-gradient(150deg, var(--accent-tint), var(--paper)); }
.badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 99px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.badge.hot { background: var(--accent); color: #fff; border-color: transparent; }
.badge .pulse { width: 5px; height: 5px; border-radius: 99px; background: currentColor; }
.ocard-body { padding: 18px 18px 20px; }
.ocard-type { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }
.ocard-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-top: 7px; }
.ocard-stats { display: flex; gap: 22px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ocard-stats .s .v { font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.ocard-stats .s .v.pos { color: #2f9e54; }
.ocard-stats .s .l { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ---------- how it works ---------- */
.steps { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.step .n { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.05em; }
.step h3 { margin-top: 14px; }
.step p { margin: 12px 0 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- features ---------- */
.feat-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feat { background: var(--bg); padding: 34px 30px; transition: background .2s; }
.feat:hover { background: var(--paper); }
.feat .fic { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feat .fic svg { width: 21px; height: 21px; }
.feat h3 { margin-top: 20px; font-size: 19px; }
.feat p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* ---------- dark proof band ---------- */
.dark { background: var(--dk); color: var(--dk-ink); }
.dark .eyebrow { color: var(--dk-ink-2); }
.dark .lede { color: var(--dk-ink-2); }
.proof-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.proof-big { font-family: var(--mono); font-weight: 600; font-size: clamp(56px, 8vw, 104px); letter-spacing: -0.04em; line-height: 0.92; }
.proof-big .accent { color: var(--accent); }
.proof-sub { margin-top: 22px; max-width: 38ch; }

.feed { background: var(--dk-2); border: 1px solid var(--dk-line); border-radius: var(--r-lg); overflow: hidden; }
.feed-head { padding: 16px 20px; border-bottom: 1px solid var(--dk-line); display: flex; align-items: center; justify-content: space-between; }
.feed-head .live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dk-ink-2); }
.feed-head .live .d { width: 7px; height: 7px; border-radius: 99px; background: #36c172; box-shadow: 0 0 0 4px rgba(54,193,114,.16); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .4; } }
.feed-row { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--dk-line); }
.feed-row:last-child { border-bottom: none; }
.feed-row .av { width: 34px; height: 34px; border-radius: 99px; background: linear-gradient(135deg, #3a352c, #26221b); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--dk-ink); flex-shrink: 0; font-family: var(--mono); }
.feed-row .meta { flex: 1; min-width: 0; }
.feed-row .meta .t { font-size: 14px; font-weight: 500; }
.feed-row .meta .s { font-size: 12px; color: var(--dk-ink-2); margin-top: 1px; font-family: var(--mono); }
.feed-row .amt { font-family: var(--mono); font-weight: 600; color: #36c172; font-size: 15px; }

/* ---------- big CTA ---------- */
.cta-final { text-align: center; }
.cta-final .glow { top: auto; bottom: -260px; left: 50%; right: auto; transform: translateX(-50%); width: 900px; }
.cta-final h2 { margin: 22px auto 0; max-width: 16ch; }
.cta-final .lede { margin: 22px auto 0; max-width: 48ch; }
.cta-final .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.ft { background: var(--dk); color: var(--dk-ink); padding: 80px 0 40px; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ft-logo { height: 26px; width: auto; margin-bottom: 20px; }
.ft-blurb { color: var(--dk-ink-2); font-size: 15px; max-width: 320px; line-height: 1.6; }
.ft-col h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dk-ink-2); margin-bottom: 16px; }
.ft-col a { display: block; padding: 6px 0; color: var(--dk-ink); font-size: 15px; opacity: .82; transition: opacity .15s, color .15s; }
.ft-col a:hover { opacity: 1; color: var(--accent); }
.ft-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--dk-line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ft-bottom .cp { font-size: 13px; color: var(--dk-ink-2); }
.ft-pay { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dk-ink-2); }
.ft-pay .whop { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; background: var(--dk-2); border: 1px solid var(--dk-line); border-radius: 7px; color: var(--dk-ink); font-weight: 500; }
.ft-pay .whop .wm { width: 15px; height: 15px; border-radius: 4px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); display: inline-grid; place-items: center; color: #fff; font-size: 9px; font-weight: 700; }

/* ---------- reveal (transform-only entrance; opacity always 1 so content can NEVER be hidden) ---------- */
@keyframes revIn { from { transform: translateY(20px); } to { transform: none; } }
.reveal { animation: revIn .6s var(--ease) both; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .float-pill { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .proof-grid { grid-template-columns: 1fr; }
  .board { margin-top: 24px; max-width: 460px; }
  .board-inner { transform: none; }
  .board .c1, .board .c2, .board .c3 { transform: none; }
  .offers-grid, .feat-grid, .steps { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav { display: none; }
  .hdr-cta .btn-ghost { display: none; }
  .hero { padding: 120px 0 48px; }
  .offers-grid, .feat-grid, .steps { grid-template-columns: 1fr; }
  .feat-grid { gap: 1px; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .float-pill.fp1 { left: 0; bottom: -18px; }
  .btn { height: 48px; }
  .hero-cta .btn { flex: 1; }
}
@media (max-width: 460px) {
  .hero-copy,
  .board,
  .sec-head,
  .proof-grid > *,
  .cta-final .wrap {
    min-width: 0;
  }
  .display,
  .eyebrow,
  .lede,
  .hero-note {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .metrics { grid-template-columns: 1fr; }
  .metric,
  .metric:nth-child(2) {
    border-right: none;
  }
  .metric,
  .metric:nth-child(1),
  .metric:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .metric:last-child {
    border-bottom: none;
  }
  .ft-grid { grid-template-columns: 1fr; }
}
