:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.15);
  --yellow: #ffd23f;
  --yellow-dim: rgba(255, 210, 63, 0.15);
  --red: #ff4d6a;
  --red-dim: rgba(255, 77, 106, 0.12);
  --blue: #4d8cff;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,255,136,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,136,0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: 800px;
  letter-spacing: -0.03em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero h1 .yellow {
  color: var(--yellow);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--fg-muted);
  max-width: 540px;
  margin-top: 1.5rem;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* === CTA BUTTON === */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 2.5rem;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}

.hero-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.hero-cta:active { transform: scale(0.97); }

/* === SYSTEM SECTION === */
.system {
  padding: 6rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.system-header {
  text-align: center;
  margin-bottom: 4rem;
}

.system-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.system-header p {
  color: var(--fg-muted);
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.timeline {
  display: grid;
  gap: 1.5rem;
}

.day-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  transition: background 0.2s;
}

.day-card:hover {
  background: var(--bg-card-hover);
}

.day-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.day-num.d2 { background: var(--yellow); }
.day-num.d3 { background: var(--blue); color: #fff; }
.day-num.d4 { background: var(--red); color: #fff; }

.day-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.day-content p {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.day-target {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
}

.day-target.t2 { background: var(--yellow-dim); color: var(--yellow); }
.day-target.t3 { background: rgba(77,140,255,0.15); color: var(--blue); }
.day-target.t4 { background: var(--red-dim); color: var(--red); }

/* === LOOPS SECTION === */
.loops {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,255,136,0.02) 50%, transparent 100%);
}

.loops-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.loops h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.loops > .loops-inner > p.loops-sub {
  text-align: center;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.loop-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.loop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.loop-card.l1::before { background: var(--accent); }
.loop-card.l2::before { background: var(--yellow); }
.loop-card.l3::before { background: var(--blue); }

.loop-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.loop-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.loop-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

.loop-examples {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.loop-examples li {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  color: var(--fg-muted);
}

/* === CLOSING === */
.closing {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}

.closing h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 700px;
  margin: 0 auto;
  letter-spacing: -0.03em;
}

.closing h2 .accent { color: var(--accent); }

.closing p {
  color: var(--fg-muted);
  max-width: 480px;
  margin: 1.5rem auto 0;
  font-size: 1.05rem;
}

/* === FOOTER === */
footer {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-family: var(--mono);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .loop-grid {
    grid-template-columns: 1fr;
  }

  .day-card {
    grid-template-columns: 1fr;
  }

  .day-num {
    width: auto;
    height: auto;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    justify-self: start;
  }

  .hero-stats {
    gap: 2rem;
  }
}