*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:     #0e1117;
  --ink-2:   #3a3f4b;
  --ink-3:   #7a7f8e;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --surface-3: #eceef2;
  --accent:  #00b74f;
  --accent-2:#388E3C;
  --accent-glow: rgba(0,168,74,.12);
  --green:   #00a84a;
  --radius:  14px;
  --shadow:  0 4px 24px rgba(12, 23, 17,.08);
  --shadow-lg: 0 16px 56px rgba(14,17,23,.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-3);
  transition: box-shadow .2s;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; color: var(--ink);
  text-decoration: none; letter-spacing: -.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .9rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--ink); color: #fff;
  padding: .55rem 1.4rem; border-radius: 8px;
  font-size: .875rem; font-weight: 600; text-decoration: none;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

/* ── HERO ── */
.page-hero {
  padding: 140px 5% 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--surface-3) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-3) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .5; z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255,255,255,0) 0%, var(--surface) 75%);
  z-index: 1;
}
.page-hero-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.section-label {
  font-size: .75rem; font-weight: 600; color: var(--accent);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .75rem; display: block;
}
.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeUp .6s ease both;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p {
  font-size: 1.1rem; color: var(--ink-2);
  margin-bottom: 2.5rem;
  animation: fadeUp .6s .1s ease both;
}

/* step jump pills */
.step-pills {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  position: relative; z-index: 2;
  animation: fadeUp .6s .2s ease both;
}
.step-pill {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--surface-3);
  font-size: .85rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none;
  background: var(--surface);
  transition: all .2s;
}
.step-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-1px);
}
.step-pill-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent); font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── STEP BLOCKS ── */
.step-block {
  max-width: 1100px; margin: 0 auto;
  padding: 5rem 5%;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
  border-bottom: 1px solid var(--surface-3);
  position: relative;
}
.step-block:nth-child(even) .step-visual { order: -1; }
.step-block:last-child { border-bottom: none; }

.step-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; color: var(--accent);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .75rem;
}
.step-tag-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-block h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -.025em; line-height: 1.15;
  margin-bottom: 1rem;
}
.step-block h2 em { font-style: italic; color: var(--accent); }
.step-block > div > p {
  font-size: .975rem; color: var(--ink-2);
  line-height: 1.75; margin-bottom: 1.5rem;
}

.substeps { display: flex; flex-direction: column; gap: .75rem; }
.substep {
  display: flex; align-items: flex-start; gap: .875rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--surface-3);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.substep:hover {
  border-color: #388e3c75;
  box-shadow: var(--shadow);
}
.substep-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.substep-text { flex: 1; }
.substep-title { font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: .15rem; }
.substep-desc  { font-size: .8rem; color: var(--ink-3); line-height: 1.5; }

/* ── VISUAL MOCKUPS ── */
.step-visual {
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--surface-3);
  background: #0e1117;
}
.mock-bar {
  background: #1a1d24;
  padding: .65rem 1rem;
  display: flex; align-items: center; gap: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r{background:#ff5f57;} .dot.y{background:#febc2e;} .dot.g{background:#28c840;}
.mock-bar-title { flex: 1; text-align: center; font-size: .7rem; color: #4a5060; }

/* ── STEP 1: DOWNLOAD VISUAL ── */
.dl-mock { background: #13151c; padding: 2rem; text-align: center; }
.dl-os-row { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem; }
.dl-os-card {
  flex: 1; background: #1a1d24;
  border: 1.5px solid #1e2130; border-radius: 14px;
  padding: 1.25rem 1rem;
  cursor: pointer; transition: border-color .2s;
}
.dl-os-card:hover { border-color: rgba(56, 142, 60, 0.2); }
.dl-os-card.selected { border-color: rgba(56, 142, 60, 0.2); background: rgba(57, 142, 61, 0.06); }
.dl-os-icon { font-size: 2rem; margin-bottom: .5rem; }
.dl-os-name { font-size: .8rem; color: #c9cdd6; font-weight: 600; }
.dl-os-req  { font-size: .65rem; color: #4a5060; margin-top: .2rem; }
.dl-btn {
  background: #1a6bff; color: #fff;
  border-radius: 10px; padding: .85rem 2rem;
  font-size: .9rem; font-weight: 700;
  display: inline-block; margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.dl-note { font-size: .65rem; color: #4a5060; }
.dl-progress { margin: 1rem auto 0; max-width: 260px; }
.dl-progress-bar {
  height: 4px; background: #1e2130; border-radius: 999px; overflow: hidden;
  margin-bottom: .4rem;
}
.dl-progress-fill {
  height: 100%; width: 72%; background: linear-gradient(90deg, #1a6bff, #6b9fff);
  border-radius: 999px;
  animation: progress 2.5s ease-in-out infinite alternate;
}
@keyframes progress {
  from { width: 20%; } to { width: 90%; }
}
.dl-progress-label { font-size: .62rem; color: #6b9fff; text-align: left; }

/* ── STEP 2: ACTIVATION VISUAL ── */
.act-mock { background: #13151c; padding: 2rem; }
.act-card {
  background: #1a1d24; border: 1.5px solid #1e2130; border-radius: 14px;
  padding: 1.5rem; text-align: center;
}
.act-icon { font-size: 2rem; margin-bottom: .75rem; }
.act-title { font-size: .9rem; color: #e2e4e9; font-weight: 700; margin-bottom: .4rem; }
.act-sub { font-size: .7rem; color: #6b7280; margin-bottom: 1.25rem; }
.act-input {
  background: #0e1117; border: 1.5px solid #1e2130;
  border-radius: 8px; padding: .65rem 1rem;
  font-size: .85rem; color: #6b9fff; text-align: center;
  letter-spacing: .1em; font-weight: 600;
  margin-bottom: 1rem; display: block; width: 100%;
}
.act-btn {
  background: #1a6bff; color: #fff;
  border-radius: 8px; padding: .7rem;
  font-size: .8rem; font-weight: 700; width: 100%;
  display: block; 
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.act-success {
  background: rgba(0,168,120,.08); border: 1px solid rgba(0,168,120,.2);
  border-radius: 10px; padding: .85rem;
  display: flex; align-items: center; gap: .6rem;
}
.act-success-icon { font-size: 1.1rem; }
.act-success-text { font-size: .72rem; color: #00a878; font-weight: 600; text-align: left; }
.act-success-sub  { font-size: .62rem; color: #6b7280; }

/* ── STEP 3: DATA SETUP VISUAL ── */
.setup-mock { background: #13151c; }
.setup-tabs {
  display: flex; border-bottom: 1px solid #1e2130;
  padding: 0 1rem;
}
.setup-tab {
  padding: .65rem .9rem; font-size: .7rem; font-weight: 600;
  color: #6b7280; border-bottom: 2px solid transparent;
  cursor: pointer; transition: color .2s;
}
.setup-tab.active { color: #6b9fff; border-bottom-color: #1a6bff; }
.setup-body { padding: 1.25rem; }
.setup-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .75rem; border-radius: 8px;
  border: 1px solid #1e2130; background: #1a1d24;
  margin-bottom: .5rem;
}
.setup-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.setup-name { font-size: .73rem; color: #c9cdd6; font-weight: 500; flex: 1; }
.setup-badge {
  font-size: .58rem; font-weight: 600; border-radius: 999px;
  padding: .15rem .55rem;
}
.setup-badge.new { background: rgba(26,107,255,.15); color: #6b9fff; }
.setup-badge.done { background: rgba(0,168,120,.12); color: #00a878; }
.setup-progress-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem 0; font-size: .7rem; color: #6b7280;
}
.setup-progress-bar {
  flex: 1; height: 4px; background: #1e2130; border-radius: 999px; overflow: hidden;
}
.setup-progress-fill { height: 100%; border-radius: 999px; background: #00a878; }

/* ── STEP 4: RUN GYM VISUAL ── */
.run-mock { background: #13151c; }
.run-dash-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .5rem; padding: 1rem;
}
.run-card {
  background: #1a1d24; border: 1px solid #1e2130;
  border-radius: 10px; padding: .85rem;
}
.run-card-label { font-size: .58rem; color: #4a5060; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .25rem; }
.run-card-val { font-size: 1.4rem; color: #e2e4e9; font-weight: 700; font-family: 'DM Serif Display', serif; }
.run-card-val.blue { color: #6b9fff; }
.run-card-val.green { color: #00a878; }
.run-card-val.red { color: #ef4444; }
.run-card-sub { font-size: .62rem; color: #6b7280; margin-top: .2rem; }
.run-checkin {
  margin: 0 1rem 1rem;
  background: #1a1d24; border: 1px solid rgba(0,168,120,.25);
  border-radius: 10px; padding: .85rem 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.run-checkin-icon { font-size: 1.2rem; }
.run-checkin-info { flex: 1; }
.run-checkin-name { font-size: .75rem; color: #c9cdd6; font-weight: 600; }
.run-checkin-time { font-size: .62rem; color: #6b7280; }
.run-checkin-badge { font-size: .62rem; font-weight: 700; color: #00a878; background: rgba(0,168,120,.1); border-radius: 999px; padding: .15rem .55rem; }
.run-module-list { display: flex; gap: .4rem; flex-wrap: wrap; padding: 0 1rem 1rem; }
.run-module { font-size: .65rem; color: #8a8f9e; background: #1a1d24; border: 1px solid #1e2130; border-radius: 6px; padding: .25rem .6rem; }

/* ── TIMELINE CONNECTOR ── */
.timeline-section {
  background: var(--surface-2);
  border-top: 1px solid var(--surface-3);
  padding: 6rem 5%;
}
.timeline-inner { max-width: 760px; margin: 0 auto; }
.timeline-inner .section-label { display: block; margin-bottom: .75rem; }
.timeline-inner h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  letter-spacing: -.025em; margin-bottom: .75rem;
}
.timeline-inner > p { color: var(--ink-2); margin-bottom: 3rem; font-size: .95rem; }

.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute; left: 10px; top: 8px; bottom: 0;
  width: 2px; background: var(--surface-3);
}
.timeline-item { position: relative; padding-bottom: 2.25rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -2.5rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  top: 3px;
  box-shadow: var(--shadow);
}
.timeline-dot-check { font-size: .55rem; color: #fff; font-weight: 900; }
.timeline-time { font-size: .72rem; font-weight: 600; color: var(--accent); margin-bottom: .25rem; }
.timeline-event { font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.timeline-desc  { font-size: .85rem; color: var(--ink-3); }

/* ── CTA ── */
.cta-strip {
  text-align: center;
  padding: 6rem 5%;
  background: var(--ink);
}
.cta-strip h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff; letter-spacing: -.025em; margin-bottom: 1rem;
}
.cta-strip h2 em { font-style: italic; color: #6bcf96; }
.cta-strip p { color: #6b7280; margin-bottom: 2.5rem; font-size: 1rem; }
.btn-primary {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: .9rem 2.2rem; border-radius: 10px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,168,74,.4);
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  padding: 3rem 5%;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--surface-3);
}
.footer-logo { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--ink); }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .85rem; color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: .8rem; color: var(--ink-3); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media(max-width: 768px) {
  .step-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .step-block:nth-child(even) .step-visual { order: 0; }
  .dl-os-row { flex-direction: column; }
}