/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --dark:          #090B10;
  --dark-surface:  #0F1119;
  --dark-raised:   #161C28;
  --dark-border:   rgba(255, 255, 255, 0.07);

  --red:           #EB3F51;
  --red-dark:      #C93344;
  --red-glow:      rgba(235, 63, 81, 0.18);

  --text-primary:  #EDE9E2;
  --text-muted:    #5C6272;
  --text-faint:    #3A3F4E;

  --light-bg:      #F3F2EE;
  --light-surface: #FFFFFF;
  --light-text:    #141414;
  --light-muted:   #6B6E78;
  --light-border:  #E0DDD8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --max-w:    1140px;
  --nav-h:    66px;
  --radius:   6px;
  --radius-lg:12px;
  --ease:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h3 {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
}
h4 {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(235, 63, 81, 0.32);
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--dark-border);
  color: var(--text-muted);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background var(--ease), border-bottom var(--ease), backdrop-filter var(--ease);
}
.nav.scrolled {
  background: rgba(9, 11, 16, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dark-border);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
}
.nav__logo { width: 26px; height: 26px; flex-shrink: 0; }
.nav__wordmark {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
}
.nav__links a:hover { color: var(--text-primary); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--ease);
}

.nav__mobile {
  display: none;
  background: rgba(9, 11, 16, 0.97);
  border-top: 1px solid var(--dark-border);
  padding: 1.25rem 1.75rem 1.5rem;
}
.nav__mobile.open { display: block; }
.nav__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nav__mobile a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
}
.nav__mobile a:hover { color: var(--text-primary); }
.nav__mobile .btn { width: 100%; justify-content: center; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 5rem) 1.75rem 5rem;
  overflow: hidden;
  background: var(--dark);
}

/* Radial glow behind content */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(235, 63, 81, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}

.hero__heading {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.hero__heading em {
  font-style: italic;
  color: var(--text-muted);
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

/* ============================================================
   Waitlist Form
   ============================================================ */
.waitlist-form__row {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto 0.75rem;
}
.waitlist-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--ease), background var(--ease);
}
.waitlist-form__input::placeholder { color: var(--text-faint); }
.waitlist-form__input:focus {
  border-color: rgba(235, 63, 81, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.waitlist-form__note {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-align: center;
}

/* ============================================================
   Success Message
   ============================================================ */
.success-msg {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(235, 63, 81, 0.07);
  border: 1px solid rgba(235, 63, 81, 0.18);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  max-width: 480px;
  margin: 0 auto;
}
.success-msg__check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red-glow);
  border: 1px solid rgba(235, 63, 81, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
}
.success-msg__heading {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.success-msg__sub { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   Scroll Indicator
   ============================================================ */
.hero__scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0.5;
}
.hero__scroll span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  80%  { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0; }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 7rem 0; }
.section--dark  { background: var(--dark); }
.section--surface { background: var(--dark-surface); }
.section--light { background: var(--light-bg); }

.section__header {
  text-align: center;
  margin-bottom: 4.5rem;
}
.section__header h2 {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  max-width: 560px;
  margin: 0 auto;
}
.section--dark    .section__header h2,
.section--surface .section__header h2 { color: var(--text-primary); }
.section--light   .section__header h2 { color: var(--light-text); }

/* ============================================================
   Problem
   ============================================================ */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.problem__card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.problem__icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(235, 63, 81, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 1.2rem;
}
.problem__card h3 {
  color: var(--light-text);
  font-size: 0.975rem;
  margin-bottom: 0.5rem;
}
.problem__card p { color: var(--light-muted); font-size: 0.875rem; }

/* ============================================================
   Features
   ============================================================ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--dark-raised);
  padding: 2.5rem 2.5rem 2.25rem;
  border-right: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  transition: background var(--ease);
  position: relative;
  overflow: hidden;
}
.feature:nth-child(even) { border-right: none; }
.feature:nth-last-child(-n+2) { border-bottom: none; }

.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(235,63,81,0.04), transparent 60%);
  opacity: 0;
  transition: opacity var(--ease);
}
.feature:hover::after  { opacity: 1; }

.feature__num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: rgba(235, 63, 81, 0.1);
  line-height: 1;
  margin-bottom: 1rem;
  user-select: none;
}
.feature h3 {
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  font-size: 1.0rem;
}
.feature p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }

/* ============================================================
   Steps – How It Works
   ============================================================ */
.steps {
  max-width: 600px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 2rem;
}
.step__spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.step__dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(235, 63, 81, 0.1);
}
.step__line {
  width: 1px;
  flex: 1;
  min-height: 2.5rem;
  background: var(--light-border);
  margin: 0.6rem 0;
}
.step__body { padding-bottom: 3rem; }
.step__body h3 {
  color: var(--light-text);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  padding-top: 0.55rem;
}
.step__body p { color: var(--light-muted); font-size: 0.875rem; }

/* ============================================================
   Trust / Security
   ============================================================ */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto;
}
.trust__card {
  display: flex;
  gap: 1.1rem;
  padding: 1.75rem;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  background: var(--dark-raised);
  transition: border-color var(--ease), background var(--ease);
}
.trust__card:hover {
  border-color: rgba(235, 63, 81, 0.2);
  background: #1A2030;
}
.trust__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--red-glow);
  border: 1px solid rgba(235, 63, 81, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.trust__card h4 {
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.trust__card p { color: var(--text-muted); font-size: 0.845rem; line-height: 1.65; }

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
}
.cta__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta__inner h2 {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.cta__sub {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 2.75rem 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.footer__logo { width: 22px; height: 22px; }
.footer__brand span {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.footer__tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 340px;
}
.footer__links { display: flex; gap: 2rem; }
.footer__links a {
  font-size: 0.78rem;
  color: var(--text-faint);
  transition: color var(--ease);
}
.footer__links a:hover { color: var(--text-muted); }
.footer__copy { font-size: 0.72rem; color: var(--text-faint); }

/* ============================================================
   Reveal Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .problem__grid { grid-template-columns: 1fr; }
  .trust__grid   { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .features__grid { grid-template-columns: 1fr; }
  .feature { border-right: none; }
  .feature:nth-last-child(-n+2) { border-bottom: 1px solid var(--dark-border); }
  .feature:last-child { border-bottom: none; }

  .waitlist-form__row { flex-direction: column; }
  .waitlist-form__input { width: 100%; }

  .section { padding: 5rem 0; }
  .section__header { margin-bottom: 3rem; }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  .footer__links { flex-direction: column; gap: 0.75rem; }
}
