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

:root {
  --purple: #6B4E8D;
  --purple-light: #8B6BAF;
  --purple-dark: #4A3562;
  --purple-bg: #F3EFF8;
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(107,78,141,0.3);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 1.3rem;
  font-weight: 600;
}

/* ========== Hero ========== */
.hero {
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 520px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--purple-bg);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-phone {
  flex-shrink: 0;
}

/* ========== Phone Mockup ========== */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 608px;
  border-radius: 44px;
  border: 6px solid #1C1C1E;
  background: #000;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-sm {
  width: 220px;
  height: 478px;
  border-radius: 36px;
  border-width: 5px;
}

.phone-sm .phone-notch {
  width: 72px;
  height: 20px;
  top: 6px;
}

/* ========== Waitlist Form ========== */
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--purple-light);
}

.waitlist-form .btn {
  flex-shrink: 0;
}

.form-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.form-success {
  font-weight: 600;
  color: var(--purple);
  font-size: 1.05rem;
  padding: 14px 0;
}

/* ========== Problem Section ========== */
.problem {
  padding: 60px 0 80px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}

.problem-card:hover {
  box-shadow: var(--shadow-md);
}

.problem-icon {
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== Section Headers ========== */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ========== Features ========== */
.features {
  padding: 80px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-bg);
  border-radius: 14px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== How It Works ========== */
.how-it-works {
  padding: 80px 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 260px;
}

.step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step-phone {
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 280px;
  opacity: 0.4;
}

/* ========== Screenshots ========== */
.screenshots {
  padding: 80px 0;
  background: var(--white);
  overflow: hidden;
}

.screenshot-gallery {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshot-gallery::-webkit-scrollbar {
  display: none;
}

.screenshot-gallery .phone-mockup {
  flex-shrink: 0;
}

/* ========== CTA ========== */
.cta {
  padding: 80px 0;
}

.cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.cta h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.cta .waitlist-form {
  max-width: 420px;
  margin: 0 auto;
}

.cta .form-note {
  text-align: center;
}

/* ========== Footer ========== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========== Animations ========== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.features-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.features-grid .fade-up:nth-child(3) { transition-delay: 0.2s; }
.features-grid .fade-up:nth-child(4) { transition-delay: 0.3s; }

.problem-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.problem-grid .fade-up:nth-child(3) { transition-delay: 0.2s; }

.steps .fade-up:nth-child(2) { transition-delay: 0.15s; }
.steps .fade-up:nth-child(3) { transition-delay: 0.3s; }

.screenshot-gallery .fade-up:nth-child(2) { transition-delay: 0.08s; }
.screenshot-gallery .fade-up:nth-child(3) { transition-delay: 0.16s; }
.screenshot-gallery .fade-up:nth-child(4) { transition-delay: 0.24s; }
.screenshot-gallery .fade-up:nth-child(5) { transition-delay: 0.32s; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .nav, .header .btn-sm {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .waitlist-form {
    margin: 0 auto;
  }

  .form-note {
    text-align: center;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .step-arrow {
    display: none;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .cta h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form input[type="email"] {
    width: 100%;
  }

  .cta-inner {
    padding: 40px 24px;
  }

  .cta .waitlist-form {
    flex-direction: column;
  }

  .screenshot-gallery {
    gap: 16px;
    padding-left: 24px;
  }

  .screenshot-gallery .phone-mockup {
    width: 220px;
    height: 478px;
    border-radius: 36px;
    border-width: 5px;
  }

  .screenshot-gallery .phone-mockup .phone-notch {
    width: 72px;
    height: 20px;
    top: 6px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
