/* ───────────────────────────────────────
   Recall — Design Tokens
   ─────────────────────────────────────── */
:root {
  --bg:      #1c1c1e;
  --bg-card: #2a2a2c;
  --text:    #e8e8e3;
  --text-dim:#9a9a95;
  --accent:  #7a9a7e;
  --font:    'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease:    cubic-bezier(.25, .46, .45, .94);
}

/* ───────────────────────────────────────
   Reset & Base
   ─────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ───────────────────────────────────────
   Section Layout
   ─────────────────────────────────────── */
.section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section__inner {
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.section__label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 48px;
}

/* ───────────────────────────────────────
   Scroll Reveal
   ─────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ───────────────────────────────────────
   Navigation
   ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  z-index: 100;
  transition: background 0.4s var(--ease);
}

.nav--scrolled {
  background: rgba(28, 28, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__logo {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  transition: color 0.4s var(--ease);
}

.nav--scrolled .nav__logo {
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(28, 28, 30, 0.7);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.3s var(--ease);
}

.nav__link:hover {
  color: var(--bg);
}

.nav--scrolled .nav__link {
  color: var(--text-dim);
}

.nav--scrolled .nav__link:hover {
  color: var(--text);
}

/* ───────────────────────────────────────
   Section 1 — Hook
   ─────────────────────────────────────── */
.section--hook {
  min-height: 100vh;
  min-height: 100dvh;
  background: url('../bg.png') no-repeat center center;
  background-size: cover;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
}

.hook__content {
  max-width: 640px;
  padding: 0 64px;
  text-align: left;
}

.hook__headline {
  font-family: var(--font);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--bg);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.3s forwards;
}

.hook__sub {
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(28, 28, 30, 0.55);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.6s forwards;
}

/* ───────────────────────────────────────
   Buttons
   ─────────────────────────────────────── */
.btn {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 14px 32px;
}

.btn--ghost {
  background: rgba(28, 28, 30, 0.08);
  color: var(--bg);
  border: 1px solid rgba(28, 28, 30, 0.25);
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.9s forwards;
}

.btn--ghost:hover {
  background: rgba(28, 28, 30, 0.15);
  border-color: rgba(28, 28, 30, 0.4);
  color: var(--bg);
}

.btn--solid {
  background: var(--text);
  color: var(--bg);
}

.btn--solid:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ───────────────────────────────────────
   Section 2 — Problem
   ─────────────────────────────────────── */
.section--problem {
  min-height: 100vh;
}

.problem__line {
  font-family: var(--font);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 32px;
  color: var(--text);
}

.problem__line:last-child {
  margin-bottom: 0;
}

/* Stagger reveal delays */
.problem__line:nth-child(2) { transition-delay: 0.15s; }
.problem__line:nth-child(3) { transition-delay: 0.3s; }

/* ───────────────────────────────────────
   Section 3 — Demo (Phone Frame)
   ─────────────────────────────────────── */
.section--demo {
  min-height: 100vh;
  padding: 100px 24px 120px;
  position: relative;
  overflow: hidden;
}

.section--demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(232, 232, 227, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
  z-index: 0;
  pointer-events: none;
}

.section--demo > .section__inner {
  position: relative;
  z-index: 1;
}

.phone {
  width: 300px;
  height: 620px;
  margin: 0 auto;
  background: #000;
  border-radius: 40px;
  border: 3px solid #3a3a3c;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 80px rgba(0,0,0,0.5);
}

.phone__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.phone__screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 44px 0 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.phone__screen::-webkit-scrollbar {
  display: none;
}

/* Demo internal styles */
.demo-header {
  padding: 16px 20px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.demo-header__title {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
}

.demo-header__date {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.demo-day {
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.demo-day:hover {
  background: rgba(255,255,255,0.03);
}

.demo-day__label {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.demo-day__card {
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
}

.demo-day__map {
  width: 100%;
  height: 100px;
  background: #252527;
  position: relative;
  overflow: hidden;
}

.demo-day__map-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
}

.demo-day__map-line {
  position: absolute;
  height: 1px;
  background: var(--accent);
  opacity: 0.25;
  transform-origin: left center;
}

.demo-day__stats {
  display: flex;
  gap: 0;
  padding: 12px 16px;
}

.demo-stat {
  flex: 1;
  text-align: center;
}

.demo-stat:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.06);
}

.demo-stat__value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

.demo-stat__label {
  font-size: 0.6rem;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Demo detail view */
.demo-detail {
  padding: 16px 20px;
  animation: fadeIn 0.3s ease;
}

.demo-detail__back {
  font-size: 0.75rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
  margin-bottom: 16px;
}

.demo-detail__title {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.demo-detail__block {
  margin-bottom: 16px;
}

.demo-detail__block-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.demo-detail__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.demo-detail__item-label {
  color: var(--text-dim);
}

.demo-detail__item-value {
  color: var(--text);
  font-weight: 400;
}

/* Demo Ask Recall */
.demo-ask {
  margin: 12px 16px 20px;
  position: relative;
}

.demo-ask__input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.8rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.demo-ask__input::placeholder {
  color: var(--text-dim);
}

.demo-ask__input:focus {
  border-color: var(--accent);
}

.demo-ask__response {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text);
  animation: fadeIn 0.4s ease;
  border-left: 2px solid var(--accent);
}

/* ───────────────────────────────────────
   Section 4 — How it works
   ─────────────────────────────────────── */
.section--how {
  min-height: 70vh;
}

.how__comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 56px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.how__side {
  flex: 1;
  text-align: center;
}

.how__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.how__side p {
  font-family: var(--font);
  font-size: 1.125rem;
  color: var(--text);
}

.how__arrow {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section__inner--wide {
  max-width: 900px;
}

.factors-layout {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  text-align: left;
}

.factors__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.factor-block {
  background: var(--bg-card);
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.factor-block:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.factor__title {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.factor__text {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.factors__connector {
  width: 80px;
  position: relative;
  flex-shrink: 0;
}

.factors__right {
  flex: 0.65;
  display: flex;
  align-items: center;
  padding-left: 16px;
}

.recall-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 32px;
  border-radius: 20px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.recall-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top left, rgba(122, 154, 126, 0.1), transparent 70%);
  pointer-events: none;
}

.recall-block__icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.recall-block__title {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.recall-block__text {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ───────────────────────────────────────
   Section 5 — Privacy
   ─────────────────────────────────────── */
.section--privacy {
  min-height: 60vh;
  position: relative;
  overflow: hidden;
}

.privacy__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.section--privacy > .section__inner {
  position: relative;
  z-index: 1;
}

.privacy__lock {
  color: var(--accent);
  margin-bottom: 32px;
}

.privacy__statement {
  font-family: var(--font);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 300;
  line-height: 1.5;
}

/* ───────────────────────────────────────
   Section 6 — Waitlist
   ─────────────────────────────────────── */
.section--waitlist {
  min-height: 80vh;
  flex-direction: column;
}

.waitlist__headline {
  font-family: var(--font);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 300;
  margin-bottom: 40px;
}

.waitlist__form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist__form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(232, 232, 227, 0.1);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.waitlist__form input::placeholder {
  color: var(--text-dim);
}

.waitlist__form input:focus {
  border-color: var(--accent);
}

.waitlist__note {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.waitlist__success {
  font-size: 1rem;
  color: var(--accent);
  margin-top: 16px;
}

/* ───────────────────────────────────────
   Footer
   ─────────────────────────────────────── */
.footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 100%;
  text-align: center;
}

.footer__text {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ───────────────────────────────────────
   Animations
   ─────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ───────────────────────────────────────
   Responsive
   ─────────────────────────────────────── */
@media (max-width: 768px) {
  .factors-layout {
    flex-direction: column;
    gap: 32px;
  }
  .factors__connector {
    display: none;
  }
  .factors__right {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 20px;
  }

  .hook__content {
    padding: 48px 24px;
  }

  .hook__headline {
    font-size: 2rem;
  }

  .phone {
    width: 260px;
    height: 540px;
    border-radius: 32px;
  }

  .how__comparison {
    flex-direction: column;
    gap: 16px;
  }
  .how__arrow svg {
    transform: rotate(90deg);
  }

  .waitlist__form {
    flex-direction: column;
    align-items: center;
  }

  .waitlist__form input {
    width: 100%;
  }
}
