/* ---------- Tokens ---------- */
:root {
  --bg: #0b0e12;
  --bg-elevated: #12161c;
  --bg-elevated-2: #191f27;
  --border: #262c36;
  --border-soft: #1c222b;

  --text-primary: #f5f6f7;
  --text-secondary: #9aa3af;
  --text-tertiary: #5c6470;

  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --on-accent: #0b0e12;

  --health: #34d399;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --max-width: 1120px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
}

p { margin: 0; }

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

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Ambient glow ---------- */
.glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.glow--top {
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(56,189,248,0.16) 0%, rgba(52,211,153,0.08) 45%, transparent 70%);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  padding-top: 28px;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.brand__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand--small { gap: 8px; }
.brand--small span { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease), opacity 200ms var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  padding: 15px 22px;
  box-shadow: 0 0 0 0 rgba(56,189,248,0);
}
.btn--primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 6px 24px rgba(56,189,248,0.25);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 18px;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { font-size: 0.88rem; padding: 9px 16px; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(56,189,248,0.5);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56,189,248,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(56,189,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 96px 24px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  max-width: 16ch;
}

.hero__subtitle {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--text-secondary);
}

/* ---------- Waitlist form ---------- */
.waitlist-form {
  margin-top: 36px;
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 440px;
}
.waitlist-form__input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.waitlist-form__input::placeholder { color: var(--text-tertiary); }
.waitlist-form__input:hover { border-color: #333b47; }
.waitlist-form__input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated-2);
}
.waitlist-form__input:user-invalid {
  border-color: #f87171;
}

.waitlist-form__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.waitlist-form__note.is-success { color: var(--health); font-weight: 600; }
.waitlist-form__note.is-error { color: #f87171; font-weight: 600; }

@media (max-width: 480px) {
  .waitlist-form { flex-direction: column; }
}

/* ---------- Product preview ---------- */
.preview {
  position: relative;
  z-index: 1;
  margin: 72px auto 0;
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.7);
}

.preview__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.preview__bar span:not(.preview__bar-title) {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2a313c;
}
.preview__bar-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.preview__body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
}
@media (max-width: 720px) {
  .preview__body { grid-template-columns: 1fr; }
}

.preview__live {
  position: relative;
  background: #0d1116;
  border-right: 1px solid var(--border-soft);
  min-height: 260px;
  overflow: hidden;
}
@media (max-width: 720px) {
  .preview__live { border-right: none; border-bottom: 1px solid var(--border-soft); }
}
.preview__scene-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.preview__live-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,14,18,0.55) 0%, rgba(11,14,18,0.05) 28%, rgba(11,14,18,0.05) 70%, rgba(11,14,18,0.6) 100%);
}

.preview__live-badge {
  position: absolute;
  top: 20px; left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(11,14,18,0.7);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f5f6f7;
}
.preview__live-badge i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #f87171;
  display: inline-block;
}

.preview__report {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.preview__report-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  font-weight: 600;
}
.preview__score {
  display: flex;
  align-items: center;
  gap: 14px;
}
.preview__score-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}
.preview__score-label {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.preview__stats {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preview__stats li {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
}
.preview__stats li:last-child { border-bottom: none; padding-bottom: 0; }
.preview__stats b { color: var(--text-primary); font-weight: 600; }
.preview__stats b.ok { color: var(--health); }
.preview__stats b.alert { color: #f87171; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Features ---------- */
.features { padding: 140px 24px 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .features__grid { grid-template-columns: 1fr; }
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 250ms var(--ease), transform 250ms var(--ease);
}
.feature-card:hover {
  border-color: #333b47;
  transform: translateY(-3px);
}
.feature-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56,189,248,0.1);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-card__icon--health {
  background: rgba(52,211,153,0.12);
  color: var(--health);
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Section head ---------- */
.section-head {
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.section-head p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- Pricing ---------- */
.pricing { padding: 140px 24px 0; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .pricing__grid { grid-template-columns: 1fr; }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 250ms var(--ease), transform 250ms var(--ease);
}
.pricing-card:hover { transform: translateY(-3px); }

.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(56,189,248,0.09), var(--bg-elevated) 65%);
  box-shadow: 0 30px 70px -30px rgba(56,189,248,0.35);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-card__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pricing-card__price {
  margin-top: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}
.pricing-card__price span {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-left: 4px;
}
.pricing-card__desc {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pricing-card__list {
  list-style: none;
  margin: 24px 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.pricing-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.pricing-card__list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.pricing-card__cta {
  margin-top: auto;
  width: 100%;
}

.pricing__note {
  margin-top: 28px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.82rem;
}

/* ---------- Why ---------- */
.why { padding: 140px 24px 0; }
.why__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.why h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: 20ch;
  margin: 0 auto;
}
.why p {
  margin-top: 22px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
}
.why em { color: var(--text-primary); font-size: 1.06em; }

/* ---------- FAQ ---------- */
.faq { padding: 140px 24px 0; }
.faq__title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 44px;
}
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: 4px 22px;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 0.98rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-left: 16px;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 250ms var(--ease);
}
.faq__icon::before { top: 8px; left: 2px; width: 14px; height: 2px; }
.faq__icon::after { top: 2px; left: 8px; width: 2px; height: 14px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__item[open] summary { color: var(--accent); }
.faq__item p {
  padding: 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 62ch;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 150px 24px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-cta h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  max-width: 18ch;
}
.final-cta .waitlist-form { margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 130px;
  padding: 34px 24px 40px;
  border-top: 1px solid var(--border-soft);
  position: relative;
  z-index: 1;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer p {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}
