:root {
  --bg: #0d2626;
  --bg-soft: #1a3e3e;
  --text: #f4f8ff;
  --muted: #b4c3d1;
  --brand: #00d4ff;
  --brand-2: #a78bdb;
  --line: rgba(255, 255, 255, 0.12);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  --glass-border: rgba(255, 255, 255, 0.1);
  --container: min(1120px, 100%);
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Sora", "Space Grotesk", sans-serif; margin: 0; }
p { margin: 0; color: var(--muted); }
a { color: inherit; }

.container {
  width: var(--container);
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Background atmosphere ── */

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}
.bg-glow-1 {
  background: var(--brand);
  width: 50vw; height: 50vw;
  top: -18vw; left: -14vw;
}
.bg-glow-2 {
  background: var(--brand-2);
  width: 40vw; height: 40vw;
  bottom: -12vw; right: -8vw;
}

/* ── Navigation ── */

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(13, 38, 38, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Buttons ── */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.65rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: #031019;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); filter: none; }
.btn-small { padding: 0.4rem 0.85rem; border-radius: 8px; font-size: 0.84rem; }
.btn.btn-small,
.btn.btn-small:visited { color: #031019; }

/* ── Hero ── */

.hero {
  padding: 5rem 0 3.5rem;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
  font-weight: 500;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 820px;
}

.lede {
  margin-top: 1.2rem;
  max-width: 640px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.6;
}

.quiet {
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.7;
  margin-top: 0.6rem;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.hero-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hero-grid article {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.3rem;
}
.hero-grid h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.hero-grid p {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ── Sections ── */

.section {
  padding: 4rem 0;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* ── Steps (How It Works) ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.steps article {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.3rem;
}
.steps article span {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}
.steps article h3 {
  margin: 0.5rem 0;
  font-size: 1.02rem;
}
.steps article p {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ── Track Cards (Coaching Pages) ── */

.track-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 16px;
  padding: 1.5rem;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(
      ellipse 120% 80% at 10% 90%,
      hsla(var(--track-hue), 60%, 55%, 0.08) 0%,
      transparent 60%
    ),
    linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.02) 100%
    );
  backdrop-filter: blur(6px);
  transition:
    border-color 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}

.track-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(
      ellipse 100% 100% at 20% 80%,
      hsla(var(--track-hue), 55%, 55%, 0.12) 0%,
      transparent 55%
    );
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.track-card:hover {
  border-color: hsla(var(--track-hue), 50%, 65%, 0.35);
  transform: translateY(-3px);
  box-shadow:
    0 8px 28px -6px hsla(var(--track-hue), 50%, 40%, 0.18),
    0 0 0 1px hsla(var(--track-hue), 50%, 65%, 0.06);
}

.track-card:hover::before { opacity: 1; }

.track-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: hsla(var(--track-hue), 50%, 55%, 0.12);
  color: var(--track-accent);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.track-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.track-hook {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--track-accent);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.track-detail {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: auto;
}

.track-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--track-accent);
  transition: gap 0.2s ease;
}

.track-card:hover .track-cta { gap: 0.5rem; }

.track-card--featured {
  grid-column: 1 / -1;
  background:
    radial-gradient(
      ellipse 80% 90% at 8% 85%,
      hsla(var(--track-hue), 55%, 55%, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 70% at 95% 15%,
      hsla(var(--track-hue), 55%, 55%, 0.06) 0%,
      transparent 45%
    ),
    linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.065) 0%,
      rgba(255, 255, 255, 0.025) 100%
    );
  border-color: hsla(var(--track-hue), 40%, 60%, 0.18);
}

.track-badge {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--track-accent);
  background: hsla(var(--track-hue), 50%, 55%, 0.14);
  border: 1px solid hsla(var(--track-hue), 45%, 60%, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

@keyframes trackReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.track-card {
  animation: trackReveal 0.5s ease both;
}
.track-card:nth-child(1) { animation-delay: 0s; }
.track-card:nth-child(2) { animation-delay: 0.07s; }
.track-card:nth-child(3) { animation-delay: 0.14s; }
.track-card:nth-child(4) { animation-delay: 0.21s; }
.track-card:nth-child(5) { animation-delay: 0.28s; }
.track-card:nth-child(6) { animation-delay: 0.35s; }
.track-card:nth-child(7) { animation-delay: 0.42s; }

/* ── Why PULS3 (proof) ── */

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.4rem;
}
.card h3 { margin-bottom: 0.45rem; }
.card p { line-height: 1.6; }

.bullets {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  list-style: none;
}
.bullets li {
  position: relative;
  margin-bottom: 0.65rem;
  padding-left: 0.4rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.7;
}

/* ── Release Notes ── */

.release-list {
  margin-top: 0.5rem;
}

.release-entry {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.release-entry:first-child { padding-top: 0.5rem; }
.release-entry:last-child { border-bottom: none; padding-bottom: 0; }

.release-date {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.release-entry h3 {
  font-size: 1.02rem;
  margin: 0.35rem 0 0.4rem;
}
.release-note {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Waitlist ── */

.waitlist-section {
  padding: 4rem 0 5rem;
  text-align: center;
}

.waitlist-section h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.waitlist-section > p {
  font-size: 1.02rem;
  line-height: 1.6;
}

.waitlist-form {
  display: flex;
  gap: 0.6rem;
  margin: 1.5rem auto 0;
  max-width: 480px;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist-form input {
  flex: 1;
  min-width: 220px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.72rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.waitlist-form input:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.4);
}
.waitlist-form input::placeholder { color: #6a8598; }

.waitlist-form button[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.waitlist-status {
  min-height: 1.2rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.waitlist-status[data-tone="success"] { color: #7ef3ba; }
.waitlist-status[data-tone="error"] { color: #ff9f9f; }

.footnote { margin-top: 1rem; font-size: 0.88rem; }
.footnote a { color: var(--brand); text-decoration: none; }
.footnote a:hover { text-decoration: underline; }

/* ── Footer ── */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #7a93a8;
  font-size: 0.88rem;
}
.footer > div { display: flex; gap: 1.2rem; }
.footer a { text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--text); }

/* ── Slug navigation (pillar pages) ── */

.slug-hub {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  margin: 0.55rem 0 1.35rem;
  background: rgba(255, 255, 255, 0.03);
}

.slug-hub-title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.55rem;
}

.slug-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slug-pill {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.86rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition: color 0.2s, border-color 0.2s;
}

.slug-pill:hover {
  color: var(--text);
  border-color: rgba(0, 212, 255, 0.35);
}

.slug-pill.is-active {
  color: #031019;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* ── Utilities ── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero-grid, .steps, .split { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr; }
  .track-card--featured { grid-column: auto; }
  .nav-links a:not(.btn) { display: none; }
}

@media (max-width: 560px) {
  .hero { padding: 3.5rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .hero-grid { gap: 0.75rem; }
}
