@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #090b14;
  --surface: #11142450;
  --surface-hover: #1a1e36;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6ff;
  --text-dim: #9aa3c4;
  --text-faint: #6b7290;
  --accent: #00e6b8;
  --accent-2: #4d7cff;
  --radius-sm: 12px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- background ambience ---------- */
/* One fixed, very soft wash so the page reads as a single colour. It never
   moves with scroll — only a slow self-contained drift. */
.bg-glow {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px circle at 20% 20%, rgba(0, 230, 184, 0.06), transparent 70%),
    radial-gradient(900px circle at 80% 70%, rgba(77, 124, 255, 0.06), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 1.5%) scale(1.04); }
  100% { transform: translate(2%, -1%) scale(1.02); }
}

/* Cursor-following spotlight — a soft glow that trails the pointer. */
.cursor-spotlight {
  position: fixed;
  top: 0; left: 0;
  width: 500px; height: 500px;
  margin-left: -250px; margin-top: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 184, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* ---------- nav ---------- */
header.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  transition: padding 0.35s ease;
}
/* Once scrolled, a backdrop fades in behind the nav: solid where the links
   sit, dissolving to fully transparent below them — no band, no hard edge. */
header.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 -32px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(9, 11, 20, 0.95) 0%, rgba(9, 11, 20, 0.85) 55%, rgba(9, 11, 20, 0) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
header.topbar.scrolled::before { opacity: 1; }
header.topbar.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
}
header.topbar .brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
header.topbar .brand .mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  animation: pulse-glow 3s ease-in-out infinite;
  transition: transform 0.4s ease;
}
header.topbar .brand:hover .mark { transform: rotate(-8deg) scale(1.08); }
header.topbar .brand .mark svg { width: 18px; height: 18px; stroke: #06121a; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(0, 230, 184, 0.4); }
  50% { box-shadow: 0 0 30px rgba(0, 230, 184, 0.7); }
}
header.topbar nav { display: flex; align-items: center; gap: 6px; }
header.topbar nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 9px 18px;
  transition: all 0.2s ease;
}
header.topbar nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- hero ---------- */
.hero-section {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 60px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
h1.display {
  font-size: clamp(44px, 8vw, 108px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 26px;
  max-width: 1100px;
}
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 4s linear infinite;
}
@keyframes sheen {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.6;
  margin: 0 0 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.hero-illustration {
  width: min(640px, 88vw);
  aspect-ratio: 1 / 1;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

/* ---------- illustrations (transparent video / 3D model) ---------- */
.visual { aspect-ratio: 1 / 1; width: 100%; }
.visual video, .visual model-viewer,
.hero-illustration video { width: 100%; height: 100%; object-fit: contain; display: block; }
/* The tilt layer is a child, so its hover transform never fights the
   reveal / float transforms set on the parent. */
.tilt {
  width: 100%; height: 100%;
  transition: transform 0.6s cubic-bezier(.16,.8,.24,1);
  will-change: transform;
}
.tilt.active { transition: transform 0.12s ease-out; }

.visual.model { aspect-ratio: auto; text-align: center; }
.visual.model model-viewer { aspect-ratio: 1 / 1; height: auto; }
model-viewer {
  --poster-color: transparent;
  background: transparent;
  cursor: grab;
}
model-viewer:active { cursor: grabbing; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #06121a;
  border: none;
  border-radius: 100px;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 230, 184, 0.35); background: #29ecc4; }

/* ---------- reveal-on-scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.16,.8,.24,1), transform 0.8s cubic-bezier(.16,.8,.24,1); }
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].in { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].in { transform: translateX(0); }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.head-only { padding-bottom: 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
h2.h2 { font-size: clamp(30px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; line-height: 1.08; }
p.lead { color: var(--text-dim); font-size: 17px; line-height: 1.7; margin: 0; }

/* split row (illustration + text) */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-row.reverse > :first-child { order: 2; }
.split-row .visual { max-width: 540px; justify-self: center; }

/* small static icon badge next to a kicker */
.icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,230,184,0.18), rgba(77,124,255,0.14));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.icon-wrap svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.habit-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.habit-kicker .kicker { margin: 0; }
.split-row:hover .icon-wrap {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 0 0 6px rgba(0, 230, 184, 0.12), 0 0 28px rgba(0, 230, 184, 0.35);
  border-color: var(--accent);
}

/* tips list */
.tip-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.tip-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.55;
}
.tip-list li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0, 230, 184, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 230, 184, 0.5);
}
.tip-list li::after {
  content: "";
  position: absolute; left: 6px; top: 8px;
  width: 6px; height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* stats */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 28px; margin-top: 40px; }
.stat-num {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--text-dim); font-size: 14px; margin-top: 10px; font-weight: 600; }

/* 3-step process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { text-align: center; }
.step .visual { max-width: 260px; margin: 0 auto 8px; }
.step-num {
  display: inline-block;
  font-size: 13px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}
.step h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; }
.step p { color: var(--text-dim); font-size: 15px; line-height: 1.65; margin: 0 auto; max-width: 320px; }

/* daily routine timeline */
.routine { list-style: none; padding: 0; margin: 30px 0 0; }
.routine li {
  display: grid; grid-template-columns: 136px 1fr; gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.routine li:last-child { border-bottom: none; }
.routine .time { color: var(--accent); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.routine .what { color: var(--text); font-size: 15.5px; line-height: 1.5; }
.routine .what span { display: block; color: var(--text-dim); font-size: 14px; margin-top: 2px; }

/* closing */
.closing { text-align: center; max-width: 720px; margin: 0 auto; }
.closing .visual { max-width: 300px; margin: 0 auto 10px; animation: float 6s ease-in-out infinite; }

footer.foot {
  position: relative; z-index: 1;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  padding: 50px 24px 30px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

@media (max-width: 900px) {
  .split-row { grid-template-columns: 1fr; gap: 28px; }
  .split-row.reverse > :first-child { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 56px; }
  header.topbar nav a:not(:first-child) { display: none; }
}
