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

:root {
  --deep: #1B2845;
  --mid: #274060;
  --purple: #6B4C9A;
  --coral: #D4507A;
  --amber: #F09050;
  --gold: #F5B840;
  --light-gold: #FADE6B;
  --text: #E8E6F0;
  --text-muted: #9A96A8;
  --surface: #1E2A45;
  --surface-light: #243351;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(27, 40, 69, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(245, 184, 64, 0.3);
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: rgba(245, 184, 64, 0.1);
  border-color: rgba(245, 184, 64, 0.5);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--amber));
  color: #fff;
  box-shadow: 0 4px 20px rgba(212, 80, 122, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(212, 80, 122, 0.4);
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 8rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* ── Phone Mockup ── */
.phone-mockup {
  width: 280px;
  background: linear-gradient(145deg, var(--surface-light), var(--surface));
  border-radius: 32px;
  padding: 12px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.phone-screen {
  background: linear-gradient(180deg, #141E30, #1A2540);
  border-radius: 22px;
  padding: 1.5rem 1.2rem;
  min-height: 420px;
}

.screen-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.screen-date {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.screen-greeting {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--amber), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.screen-habits {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.habit {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.habit.done {
  background: rgba(245, 184, 64, 0.06);
  border-color: rgba(245, 184, 64, 0.1);
}

.habit-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  color: #fff;
}

.habit-check.empty {
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.habit-name {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 500;
}

.habit-streak {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.screen-progress {
  text-align: center;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  border-radius: 2px;
  transition: width 0.5s;
}

.progress-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Section Shared ── */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ── Features ── */
.features {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.feature-card {
  background: linear-gradient(145deg, var(--surface-light), var(--surface));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.25s;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: rgba(245, 184, 64, 0.08);
  border-radius: 12px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── How It Works ── */
.how {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.step-number {
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--coral));
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.step-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--coral));
  opacity: 0.3;
  margin-top: 24px;
  flex-shrink: 0;
}

/* ── Social Proof ── */
.proof {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.proof-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2.5rem;
  background: linear-gradient(145deg, var(--surface-light), var(--surface));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

.proof-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── CTA ── */
.cta {
  padding: 6rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cta-input {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.cta-input::placeholder {
  color: var(--text-muted);
}

.cta-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 184, 64, 0.1);
}

.cta-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Footer ── */
.footer {
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding-top: 6rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .step-line {
    width: 2px;
    height: 30px;
    margin: 0;
  }

  .proof-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
