:root {
  --bg: #0d0f14;
  --bg-deep: #0a0c10;
  --bg-elevated: #171a21;
  --bg-window: #10131a;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.18);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ffffff;
  --accent-ink: #0a0c10;
  --danger: #d91f29;
  --danger-soft: #ff736b;
  --radius: 18px;
  --max: 1080px;
  /* Match Absorto SwiftUI: .system(..., design: .serif / .rounded) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --display: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --rounded: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(
      165deg,
      rgb(13, 15, 20) 0%,
      rgb(23, 26, 33) 45%,
      rgb(10, 13, 18) 100%
    );
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.nav,
main,
footer {
  position: relative;
  z-index: 1;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text) !important;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.brand-hero {
  font-family: var(--display);
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-line {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.72);
}

.lede {
  max-width: 36rem;
  margin: 1.35rem auto 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.cta-row {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.92);
}

.btn-meta {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.55;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.88);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.cta-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.stage {
  margin: 3.25rem auto 0;
  max-width: 420px;
  position: relative;
}

.window {
  position: relative;
  border-radius: 22px;
  background: rgba(16, 19, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  overflow: hidden;
  text-align: center;
}

.window-bar {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.window-bar span:first-child {
  background: rgba(255, 255, 255, 0.28);
}

.window-bar p {
  margin: 0;
  justify-self: center;
  transform: translateX(-18px);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.window-body {
  padding: 1.5rem 1.25rem 1.35rem;
}

.window-topic {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.ball-stage {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0;
}

.ball-svg {
  display: block;
  overflow: visible;
}

.timer-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 4;
}

.timer-progress {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 135px 135px;
  stroke-dasharray: 754;
  stroke-dashoffset: 0;
  transition: stroke 0.35s ease, stroke-dashoffset 0.4s linear;
}

.timer-progress.is-warning {
  stroke: rgba(217, 31, 41, 0.7);
}

.focus-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 5.5;
  transition: stroke 0.35s ease;
}

.focus-ring.is-warning {
  stroke: rgba(255, 255, 255, 0.14);
}

.ball-glow {
  fill: rgba(255, 255, 255, 0.1);
  filter: blur(14px);
  transition: fill 0.35s ease, opacity 0.35s ease;
}

.ball-glow.is-warning {
  fill: rgba(217, 31, 41, 0.28);
}

.ball {
  fill: url(#ballWhite);
  transform-origin: 135px 135px;
  transition: fill 0.35s ease;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.22));
}

.ball.is-warning {
  fill: url(#ballRed);
  filter: drop-shadow(0 0 22px rgba(217, 31, 41, 0.55));
}

.ball-empty {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 3;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ball-empty.visible {
  opacity: 1;
}

.window-status {
  margin: 0.35rem 0 0;
  min-height: 1.3em;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.window-status.is-warning {
  color: rgba(255, 115, 107, 0.9);
}

.window-metrics {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.1rem;
}

.window-metrics div {
  width: 72px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.window-metrics strong {
  font-family: var(--rounded);
  font-size: 1rem;
  font-weight: 600;
}

.window-metrics span {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: none;
  letter-spacing: 0;
}

.window-session {
  margin: 0.65rem 0 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
}

.how,
.pillars,
.final-cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-head h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
}

.section-head p,
.final-cta p {
  margin: 0.65rem auto 0;
  max-width: 28rem;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.steps li {
  padding: 1.25rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.step-num {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
}

.steps h3,
.pillars h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
}

.steps p,
.pillars p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.pillars article {
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.final-cta {
  text-align: center;
  padding-bottom: 4rem;
}

.final-cta .btn {
  margin-top: 1.35rem;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

footer a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .ball-svg {
    width: 220px;
    height: 220px;
  }

  .window-bar p {
    display: none;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
