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

:root {
  --bg:          #0a0b14;
  --bg2:         #0f1020;
  --card:        #13152a;
  --card-border: rgba(120, 80, 220, 0.18);
  --purple:      #7c3aed;
  --purple-light:#a78bfa;
  --teal:        #2dd4bf;
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;
  --radius:      16px;
  --radius-sm:   10px;
}

html { scroll-behavior: smooth; }

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

/* ===== Starfield canvas ===== */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}

/* ===== Shared ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 48px;
}

/* ===== Glow blobs ===== */
.moon-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.35) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

/* ===== Nav ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 11, 20, .7);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-icon { font-size: 1.4rem; }
.logo-text { color: var(--text); }

.nav-cta {
  background: linear-gradient(135deg, var(--purple), #5b21b6);
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 99px;
  font-size: .875rem;
  font-weight: 600;
  transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 60px;
}

.hero .moon-glow {
  top: -100px;
  left: -200px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-body {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--purple), #5b21b6);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 40px rgba(124,58,237,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(124,58,237,.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.12);
  transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--purple-light); color: var(--purple-light); }

.hero-trial {
  font-size: .8rem;
  color: var(--text-dim);
}

/* ===== Phone mockup ===== */
.hero-phone {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 260px;
  height: 520px;
  background: #1a1b2e;
  border-radius: 44px;
  border: 2px solid rgba(124,58,237,.4);
  box-shadow:
    0 0 0 8px rgba(10,11,20,.8),
    0 0 80px rgba(124,58,237,.3),
    inset 0 0 60px rgba(0,0,0,.5);
  overflow: hidden;
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #0a0b14;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0f1020 0%, #1a0b35 100%);
  padding: 36px 16px 16px;
  overflow: hidden;
}

.phone-ui { display: flex; flex-direction: column; gap: 14px; }

.phone-greeting {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--teal);
}

.phone-stats-row {
  display: flex;
  gap: 8px;
}

.phone-stat {
  flex: 1;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}

.phone-stat-val {
  font-size: .9rem;
  font-weight: 700;
  color: var(--purple-light);
}

.phone-stat-lbl {
  font-size: .5rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.phone-chart {
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 10px;
  padding: 10px;
}

.phone-chart-label {
  font-size: .55rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.phone-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 50px;
}

.phone-bar {
  flex: 1;
  height: var(--h);
  background: rgba(124,58,237,.5);
  border-radius: 3px 3px 0 0;
  transition: height .3s;
}

.phone-bar.active {
  background: linear-gradient(180deg, var(--teal), var(--purple));
}

.phone-bar-labels {
  display: flex;
  justify-content: space-around;
  margin-top: 4px;
  font-size: .45rem;
  color: var(--text-dim);
}

.phone-insight {
  background: rgba(45,212,191,.08);
  border: 1px solid rgba(45,212,191,.2);
  border-radius: 10px;
  padding: 8px 10px;
}

.phone-insight-title {
  font-size: .55rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 3px;
}

.phone-insight-body {
  font-size: .5rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.phone-fab {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 300;
  color: #fff;
  box-shadow: 0 0 20px rgba(124,58,237,.6);
  margin-top: 4px;
}

/* ===== Features ===== */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.features h2 { text-align: center; }
.features .section-eyebrow { text-align: center; display: block; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, transform .25s;
}

.feature-card:hover {
  border-color: rgba(124,58,237,.5);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

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

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

/* ===== How it works ===== */
.how {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(124,58,237,.05), transparent);
}

.how h2 { text-align: center; }
.how .section-eyebrow { text-align: center; display: block; }

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

.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  padding: 0 16px;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  line-height: 1;
}

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

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

.step-arrow {
  font-size: 1.5rem;
  color: var(--text-dim);
  margin-top: 32px;
  flex-shrink: 0;
}

/* ===== Pricing ===== */
.pricing {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.pricing h2 { text-align: center; }
.pricing .section-eyebrow { text-align: center; display: block; }

.pricing-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  width: 300px;
  position: relative;
  transition: border-color .25s;
}

.plan-card:hover { border-color: rgba(124,58,237,.5); }

.plan-featured {
  border-color: var(--purple);
  box-shadow: 0 0 60px rgba(124,58,237,.25);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple), var(--teal));
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-name {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-trial {
  font-size: .78rem;
  color: var(--teal);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: .875rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  font-size: .8rem;
}

.btn-plan {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 13px;
  border-radius: 99px;
  font-weight: 700;
  font-size: .9rem;
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text);
  transition: border-color .2s, color .2s;
}
.btn-plan:hover { border-color: var(--purple-light); color: var(--purple-light); }

.btn-plan-primary {
  background: linear-gradient(135deg, var(--purple), #5b21b6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 30px rgba(124,58,237,.4);
}
.btn-plan-primary:hover { color: #fff; border-color: transparent; opacity: .9; }

.pricing-legal {
  text-align: center;
  font-size: .75rem;
  color: var(--text-dim);
}

/* ===== CTA section ===== */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-moon {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cta-section h2 {
  margin-bottom: 16px;
}

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

/* ===== Footer ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 24px;
}

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

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

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--purple-light); }

.footer-copy {
  font-size: .78rem;
  color: var(--text-dim);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 80px;
  }

  .hero-body { margin: 0 auto 36px; }

  .hero-cta-group { justify-content: center; }

  .hero-phone { order: -1; }

  .phone-frame { width: 220px; height: 440px; }

  .step-arrow { display: none; }

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

  .step { max-width: 100%; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }

  .footer-nav { justify-content: center; }
}
