/* ══════════════════════════════════════
   HOME PAGE
══════════════════════════════════════ */

/* HERO */
.hero {
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 48px 96px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--b);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 65% 35%, rgba(232,255,71,.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 10% 100%, rgba(232,255,71,.04) 0%, transparent 55%),
    linear-gradient(170deg, #0e0e0e 0%, #0A0A0A 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-content { position: relative; z-index: 1; max-width: 960px; }
.hero h1 { font-size: clamp(60px, 9.5vw, 128px); margin-bottom: 28px; }
.hero h1 em { color: var(--y); font-style: normal; }
.hero-sub {
  font-size: 18px; line-height: 1.72; color: var(--tm);
  max-width: 580px; margin-bottom: 48px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn { font-size: 16px; padding: 17px 34px; }
.hero-note { font-size: 13px; color: var(--td); margin-left: 8px; }

/* STAT TICKER */
.stat-bar { background: var(--s1); border-bottom: 1px solid var(--b); }
.stat-bar-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 36px 32px;
  border-right: 1px solid var(--b);
  position: relative;
}
.stat-item:first-child { border-left: 1px solid var(--b); }
.stat-num {
  font-family: var(--font-mono); font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700; color: var(--y); line-height: 1; margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 12px; color: var(--td); line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}

/* PROBLEM */
.problem { border-bottom: 1px solid var(--b); }
.problem-inner {
  max-width: 1200px; margin: 0 auto; padding: 140px 48px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start;
}
.problem-left h2 { font-size: clamp(44px, 6.2vw, 84px); }
.problem-right p {
  font-size: 17px; line-height: 1.75; color: var(--tm); margin-bottom: 22px;
}
.problem-right p:last-of-type { margin-bottom: 0; }
.problem-callout { margin-top: 40px; border-left: 2px solid var(--y); padding-left: 24px; }
.problem-callout p {
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: .03em; text-transform: uppercase; color: var(--y);
  line-height: 1.25; margin: 0;
}

/* PRODUCT HEADER */
.product { background: var(--s1); border-bottom: 1px solid var(--b); }
.product-header {
  text-align: center; padding: 140px 48px 72px;
  max-width: 1200px; margin: 0 auto;
}
.product-header h2 { font-size: clamp(52px, 7.5vw, 108px); margin-bottom: 24px; }
.product-header p {
  font-size: 17px; color: var(--tm); max-width: 520px; margin: 0 auto;
  line-height: 1.65;
}

/* FEATURES GRID */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--b);
}
.feat {
  padding: 48px 40px;
  border-right: 1px solid var(--b);
  border-bottom: 1px solid var(--b);
  position: relative;
  transition: background .25s;
}
.feat:hover { background: var(--s2); }
.feat-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--y);
  margin-bottom: 24px; letter-spacing: .08em; font-weight: 700;
}
.feat h3 {
  font-family: var(--font-display); font-size: 26px;
  letter-spacing: .03em; text-transform: uppercase;
  margin-bottom: 14px; line-height: 1;
}
.feat p { font-size: 14px; line-height: 1.65; color: var(--tm); }
.feat-accent {
  position: absolute; top: 0; left: 0; width: 2px;
  height: 0; background: var(--y); transition: height .35s ease;
}
.feat:hover .feat-accent { height: 100%; }

/* DATA SHOWCASE — WHOOP-style two-panel */
.data-showcase { border-bottom: 1px solid var(--b); }
.data-showcase-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--b);
}
.data-panel { background: var(--bg); padding: 72px 56px; }
.data-panel.dark { background: var(--s1); }
.data-panel h3 { font-size: clamp(36px, 4.5vw, 60px); margin-bottom: 20px; }
.data-panel p {
  font-size: 16px; line-height: 1.7; color: var(--tm);
  max-width: 440px; margin-bottom: 32px;
}

/* Mock data viz — load score chart */
.viz-card {
  background: var(--s2); border: 1px solid var(--b);
  padding: 24px; margin-top: 24px;
}
.viz-label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--td); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 20px;
  display: flex; justify-content: space-between;
}
.viz-bars {
  display: flex; align-items: flex-end; gap: 6px;
  height: 110px; margin-bottom: 14px;
}
.viz-bar {
  flex: 1; border-radius: 2px 2px 0 0;
  background: var(--y); opacity: .8;
  transition: opacity .2s; position: relative;
}
.viz-bar:hover { opacity: 1; }
.viz-bar.low { background: var(--b2); }
.viz-bar.mid { background: #4a5a2a; }
.viz-legend {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--td); letter-spacing: .08em;
}

/* Mock heart rate zones */
.viz-zones { margin-top: 18px; }
.zone-row {
  display: grid; grid-template-columns: 80px 1fr auto;
  align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--b);
}
.zone-row:last-child { border-bottom: none; }
.zone-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--tm); letter-spacing: .06em;
}
.zone-bar {
  height: 6px; background: var(--b); border-radius: 3px; overflow: hidden; position: relative;
}
.zone-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 1s ease-out;
}
.zone-time {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--t); font-weight: 500;
}

/* PRICING */
.pricing {
  border-bottom: 1px solid var(--b);
  padding: 140px 48px;
  text-align: center;
}
.pricing h2 { font-size: clamp(48px, 7vw, 96px); margin-bottom: 56px; }
.pricing-card {
  background: var(--s1);
  border: 1px solid var(--b);
  padding: 64px 72px;
  max-width: 520px;
  margin: 0 auto 32px;
  position: relative;
}
.pricing-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--y);
}
.pricing-amount {
  font-family: var(--font-mono); font-size: clamp(60px, 9vw, 108px);
  font-weight: 700; color: var(--y); line-height: 1;
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.pricing-unit {
  font-size: 13px; color: var(--td);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 36px; font-weight: 600;
}
.pricing-context {
  font-size: 15px; color: var(--tm); line-height: 1.65;
  margin-bottom: 16px; max-width: 360px; margin-left: auto; margin-right: auto;
}
.pricing-compare {
  font-size: 13px; color: var(--td); line-height: 1.6;
  max-width: 340px; margin: 0 auto; font-style: italic;
}
.pricing-cta { margin-top: 24px; }

/* BUILD LOG PREVIEW */
.blog-preview { border-bottom: 1px solid var(--b); padding: 140px 48px; }
.blog-preview-inner { max-width: 1000px; margin: 0 auto; }
.blog-preview-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 56px; flex-wrap: wrap;
}
.blog-preview-head h2 { font-size: clamp(40px, 5.6vw, 72px); margin-bottom: 16px; }
.blog-preview-head p { font-size: 16px; color: var(--tm); max-width: 520px; line-height: 1.65; }

.blog-entries { display: flex; flex-direction: column; }
.blog-entry {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 28px; align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--b);
  cursor: pointer;
  transition: padding .2s;
}
.blog-entry:last-child { border-bottom: 1px solid var(--b); }
.blog-entry:hover { padding-left: 12px; }
.blog-entry:hover .blog-entry-title { color: var(--y); }
.blog-entry:hover .blog-entry-arrow { opacity: 1; transform: translateX(0); }

.blog-entry-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--td);
  letter-spacing: .08em;
}
.blog-entry-title {
  font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: .03em; text-transform: uppercase;
  margin-bottom: 4px; transition: color .2s; line-height: 1.1;
}
.blog-entry-meta {
  font-size: 12px; color: var(--td);
  display: flex; gap: 12px; flex-wrap: wrap;
}
.blog-entry-arrow {
  font-family: var(--font-mono); color: var(--y); font-size: 18px;
  opacity: 0; transform: translateX(-8px); transition: all .2s;
}

.blog-preview-cta { text-align: center; margin-top: 48px; }

/* WAITLIST */
.waitlist {
  padding: 140px 48px; text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(232,255,71,.04) 0%, transparent 70%),
    var(--bg);
  position: relative; overflow: hidden;
}
.waitlist h2 { font-size: clamp(52px, 8vw, 120px); margin-bottom: 20px; }
.waitlist-sub {
  font-size: 16px; color: var(--tm);
  max-width: 520px; margin: 0 auto 48px; line-height: 1.65;
}
.email-form {
  display: flex; max-width: 480px; margin: 0 auto 16px;
}
.email-form input {
  flex: 1; background: var(--s1); border: 1px solid var(--b2);
  border-right: none; color: var(--t); font-family: var(--font-body);
  font-size: 15px; padding: 16px 20px; outline: none;
  transition: border-color .2s;
}
.email-form input::placeholder { color: var(--td); }
.email-form input:focus { border-color: var(--y); }
.email-form button {
  background: var(--y); color: #0A0A0A;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  padding: 16px 28px; cursor: pointer; white-space: nowrap;
  transition: background .15s; letter-spacing: .04em;
}
.email-form button:hover { background: var(--yh); }
.form-note { font-size: 12px; color: var(--td); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    padding: 96px 20px 64px;
    min-height: auto;
    justify-content: center;
  }
  .hero h1 { font-size: clamp(44px, 10vw, 72px); margin-bottom: 24px; }
  .hero-sub { font-size: 16px; margin-bottom: 36px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { font-size: 14px; padding: 14px 24px; }
  .hero-note { margin-top: 16px !important; margin-left: 0 !important; font-size: 12px; }
  .stat-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-top: 1px solid var(--b); }
  .stat-item { padding: 28px 24px; }
  .problem-inner { grid-template-columns: 1fr; gap: 32px; padding: 80px 24px; }
  .product-header { padding: 80px 24px 48px; }
  .features { grid-template-columns: 1fr; }
  .feat { padding: 40px 24px; }
  .data-showcase-inner { grid-template-columns: 1fr; }
  .data-panel { padding: 56px 24px; }
  .pricing { padding: 80px 24px; }
  .pricing-card { padding: 48px 28px; }
  .blog-preview, .waitlist { padding: 80px 24px; }
  .blog-entry { grid-template-columns: 32px 1fr; gap: 16px; }
  .blog-entry-arrow { display: none; }
  .email-form { flex-direction: column; }
  .email-form input { border-right: 1px solid var(--b2); border-bottom: none; }
  .email-form button { width: 100%; }
}

/* ═══════════════════════════════════════════
   HERO WORD-REVEAL ANIMATION
═══════════════════════════════════════════ */

.hero h1 .hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

.hero h1.hero-h1-animate .hero-word {
  animation: heroWordIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroWordIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .hero-word,
  .hero h1.hero-h1-animate .hero-word {
    opacity: 1;
    transform: none;
    animation: none;
  }
}