:root {
  --black: #0d0d0d;
  --white: #f5f5f5;
  --gray-400: #a2a2a2;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-100: #e5e5e5;
  --gray-150: #ebebeb;
  --accent: #3d69e1;
  --accent-hover: #5b82f0;
  --header-h: 52px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  margin: 0;
  max-width: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--black);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

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

.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;
}

/* Header — Tesla-like thin bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0px))
    0 max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px));
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.logo {
  min-width: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--white);
}

.nav {
  display: none;
  gap: clamp(16px, 2.5vw, 28px);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a {
  color: var(--gray-400);
  transition: color 0.2s ease;
}

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

.header-cta {
  flex-shrink: 0;
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 400px) {
  .header-cta {
    font-size: 13px;
    padding: 8px 16px;
  }
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 40px)
    max(clamp(20px, 5vw, 64px), env(safe-area-inset-right, 0px))
    max(72px, env(safe-area-inset-bottom, 0px))
    max(clamp(20px, 5vw, 64px), env(safe-area-inset-left, 0px));
  text-align: center;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 105, 225, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 255, 255, 0.04), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(255, 255, 255, 0.03), transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: min(920px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 5vw + 0.35rem, 4.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-title-lead {
  font-size: 0.88em;
  font-weight: 500;
}

.hero-sub {
  margin: 0 auto 28px;
  max-width: min(560px, 100%);
  min-width: 0;
  padding: 0 2px;
  font-size: clamp(0.9375rem, 2.4vw, 1.125rem);
  font-weight: 400;
  color: var(--gray-400);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Waitlist: stacked by default (in-app browsers, narrow phones). Pill only on wide + not .layout-compact */
.hero-waitlist-wrap {
  --waitlist-h: 60px;
  --waitlist-cap: calc(var(--waitlist-h) / 2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(640px, 100%);
  min-width: 0;
  margin: 0 auto 16px;
  padding: 0;
  box-sizing: border-box;
}

.hero-waitlist-cap {
  display: none;
  position: absolute;
  top: 50%;
  width: var(--waitlist-h);
  height: var(--waitlist-h);
  margin-top: calc(var(--waitlist-h) / -2);
  pointer-events: none;
  border-radius: 50%;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 45%,
    transparent 70%
  );
}

.hero-waitlist-cap--left {
  left: 0;
  clip-path: inset(0 50% 0 0);
}

.hero-waitlist-cap--right {
  right: 0;
  clip-path: inset(0 0 0 50%);
}

.hero-waitlist {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: var(--waitlist-h);
  margin: 0;
  max-width: none;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(18, 18, 18, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(61, 105, 225, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-waitlist-wrap:has(.waitlist-input:focus-visible) .hero-waitlist,
.hero-waitlist-wrap:has(.hero-waitlist-submit:focus-visible) .hero-waitlist {
  border-color: rgba(91, 130, 240, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(61, 105, 225, 0.35),
    0 12px 36px rgba(61, 105, 225, 0.12);
}

.hero-waitlist.is-error {
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(239, 68, 68, 0.35),
    0 8px 28px rgba(239, 68, 68, 0.08);
}

.waitlist-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  text-align: center;
  transition: background 0.2s ease;
}

.waitlist-input::placeholder {
  color: var(--gray-500);
}

.waitlist-input:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
}

.waitlist-input:focus {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.waitlist-input:disabled {
  opacity: 0.7;
  cursor: default;
}

.hero-waitlist .btn-primary {
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 0;
  border-left: none;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.hero-waitlist .btn-primary:disabled {
  opacity: 0.85;
  cursor: default;
}

.hero-waitlist-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin: 10px auto 24px;
  max-width: min(640px, 100%);
  min-width: 0;
  padding: 0 2px;
}

.hero-waitlist-note-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  border-radius: 9999px;
  background: linear-gradient(
    165deg,
    rgba(91, 130, 240, 0.22) 0%,
    rgba(61, 105, 225, 0.08) 50%,
    rgba(18, 24, 40, 0.65) 100%
  );
  border: 1px solid rgba(91, 130, 240, 0.55);
  box-shadow:
    0 0 0 1px rgba(61, 105, 225, 0.12),
    0 6px 28px rgba(61, 105, 225, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-shadow: 0 1px 12px rgba(61, 105, 225, 0.35);
}

.hero-waitlist-note-chip--scarcity {
  background: linear-gradient(
    165deg,
    rgba(91, 130, 240, 0.32) 0%,
    rgba(61, 105, 225, 0.14) 45%,
    rgba(30, 20, 18, 0.55) 100%
  );
  border-color: rgba(130, 160, 255, 0.65);
  box-shadow:
    0 0 0 1px rgba(91, 130, 240, 0.2),
    0 8px 36px rgba(61, 105, 225, 0.38),
    0 0 48px rgba(61, 105, 225, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-waitlist-note-live {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9eb7ff;
  box-shadow:
    0 0 0 2px rgba(61, 105, 225, 0.45),
    0 0 14px rgba(130, 160, 255, 0.95);
  animation: hero-waitlist-live 2.2s ease-in-out infinite;
}

@keyframes hero-waitlist-live {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 0 2px rgba(61, 105, 225, 0.45),
      0 0 14px rgba(130, 160, 255, 0.95);
  }
  50% {
    opacity: 0.88;
    transform: scale(0.88);
    box-shadow:
      0 0 0 3px rgba(61, 105, 225, 0.25),
      0 0 22px rgba(130, 160, 255, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-waitlist-note-live {
    animation: none;
  }
}

.hero-waitlist-success {
  margin: -8px auto 20px;
  max-width: min(640px, 100%);
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
}

.hero-waitlist-error {
  margin: -8px auto 20px;
  max-width: min(640px, 100%);
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: #f87171;
}

/* Wide screens: horizontal pill waitlist (skipped when .layout-compact — Threads / broken layout viewport) */
@media (min-width: 720px) {
  html:not(.layout-compact) .hero-waitlist-wrap {
    margin-bottom: 12px;
    padding: 0 var(--waitlist-cap);
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45))
      drop-shadow(0 0 48px rgba(61, 105, 225, 0.12));
  }

  html:not(.layout-compact) .hero-waitlist-cap {
    display: block;
  }

  html:not(.layout-compact) .hero-waitlist {
    flex-direction: row;
    flex-wrap: nowrap;
    border-radius: 9999px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 1px 0 rgba(0, 0, 0, 0.35);
  }

  html:not(.layout-compact) .waitlist-input {
    min-height: var(--waitlist-h);
    padding: 0 clamp(20px, 4vw, 32px);
    font-size: clamp(15px, 2.4vw, 17px);
    text-align: left;
  }

  html:not(.layout-compact) .hero-waitlist .btn-primary {
    width: auto;
    min-height: 0;
    padding: 0 clamp(22px, 5vw, 40px);
    font-size: clamp(14px, 2.2vw, 16px);
    border-top: none;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gray-100);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0.6;
}

/* Panels */
.panel {
  padding: clamp(56px, 10vh, 120px) max(clamp(20px, 5vw, 64px), env(safe-area-inset-right, 0px))
    clamp(56px, 10vh, 120px) max(clamp(20px, 5vw, 64px), env(safe-area-inset-left, 0px));
}

main {
  min-width: 0;
}

.panel-inner {
  max-width: min(1120px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.panel-inner.narrow {
  max-width: min(720px, 100%);
}

.panel-light {
  background: var(--white);
  color: var(--black);
}

.panel-dark {
  background: var(--black);
  color: var(--white);
}

.panel-mid {
  background: #141414;
  color: var(--white);
}

.panel-title {
  margin: 0 0 20px;
  font-size: clamp(1.45rem, 4.5vw + 0.5rem, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.panel-light .panel-title {
  color: var(--black);
}

.panel-lead {
  margin: 0;
  font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--gray-600);
  overflow-wrap: break-word;
}

.panel-dark .panel-lead,
.panel-mid .panel-lead {
  color: var(--gray-400);
}

.panel-note {
  margin: 28px 0 0;
  font-size: 15px;
  color: var(--gray-500);
}

.feature-grid {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: clamp(32px, 5vw, 48px);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-grid li p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
}

.feature-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
}

/* Pricing */
.panel-pricing .panel-lead.pricing-intro {
  margin-bottom: 40px;
  max-width: 520px;
}

.pricing-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pricing-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.price-card {
  padding: clamp(24px, 5vw, 32px) clamp(20px, 4vw, 28px);
  border-radius: 8px;
  border: 1px solid var(--gray-100);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  border-color: #d4d4d4;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.price-card.featured {
  border-color: var(--black);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.price-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.price {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.price .per {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
}

.price-was {
  margin-right: 0.35em;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.price-alt {
  margin: -4px 0 8px;
  font-size: 14px;
  color: var(--gray-500);
}

.price-detail {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-600);
}

/* CTA / contact */
.panel-cta {
  background: linear-gradient(180deg, #0d0d0d 0%, #111 100%);
  color: var(--white);
  text-align: center;
  padding-bottom: max(clamp(72px, 12vh, 140px), env(safe-area-inset-bottom, 0px));
}

.panel-cta .panel-title,
.panel-cta .panel-lead {
  color: var(--white);
}

.panel-cta .panel-lead {
  color: var(--gray-400);
  margin-bottom: 40px;
}

.email-cta {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 4px;
}

@media (min-width: 480px) {
  .email-cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    padding: 0;
  }
}

.email-link {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(0.875rem, 3.2vw, 1.05rem);
  font-weight: 500;
  color: var(--white);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.email-link:hover {
  color: var(--gray-100);
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.email-cta .btn-primary {
  flex: 0 0 auto;
  width: 100%;
  min-height: 48px;
  background: var(--accent);
  color: var(--white);
}

@media (min-width: 480px) {
  .email-cta .btn-primary {
    width: auto;
  }
}

.email-cta .btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.email-cta .btn-primary:disabled {
  opacity: 0.85;
  cursor: default;
}

.fineprint {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--gray-500);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding: 24px max(clamp(20px, 5vw, 64px), env(safe-area-inset-right, 0px))
    max(28px, env(safe-area-inset-bottom, 0px)) max(clamp(20px, 5vw, 64px), env(safe-area-inset-left, 0px));
  font-size: 12px;
  color: var(--gray-500);
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-tag {
  color: var(--gray-600);
}
