/* ============================================================
   Move2Swipe — Landing Page
   Colors sourced from the Android app's theme
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* App colors — exact match to HabitTrackerV2 */
  --green:        #4CAF50;
  --green-dark:   #388E3C;
  --green-dim:    rgba(76,175,80,0.15);
  --red:          #FF6B6B;
  --red-dim:      rgba(255,107,107,0.12);
  --gold:         #FFD93D;
  --gold-dim:     rgba(255,217,61,0.12);

  /* Dark theme surfaces */
  --bg:           #0F172A;   /* Slate 10 */
  --bg2:          #1A2845;   /* dark navy surface */
  --bg3:          #1E293B;   /* Slate 20 */
  --border:       #2A3A5A;   /* dark navy border */
  --border-light: rgba(255,255,255,0.06);

  /* Text */
  --text:         #E2E8F0;   /* Slate 90 */
  --text-muted:   #94A3B8;   /* Slate 80 */
  --text-dim:     #475569;   /* Slate 60 */

  --radius:    16px;
  --radius-sm: 8px;
  --shadow:    0 24px 64px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

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

/* ---- Layout ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer; border: none;
  white-space: nowrap;
}
.btn-sm  { padding: 8px 16px; font-size: 13px; background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-sm:hover { border-color: var(--green); color: var(--green); }
.btn-lg  { padding: 14px 28px; font-size: 16px; }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(76,175,80,0.35); }

.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--green); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(15,23,42,0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-icon { width: 32px; height: 32px; border-radius: 8px; }
.logo-text { font-weight: 700; font-size: 16px; }

/* ---- Hero ---- */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-60%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(76,175,80,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; gap: 24px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(76,175,80,0.3);
  font-size: 12px; font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  width: fit-content;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, #81C784 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Hero phone stack ---- */
.hero-screens { display: flex; justify-content: center; align-items: center; }
.screen-stack {
  position: relative;
  width: 260px;
  height: 520px;
}
.phone-frame {
  position: absolute;
  border-radius: 36px;
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg2);
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.phone-back {
  width: 220px; height: 440px;
  top: 40px; left: -20px;
  transform: rotate(-4deg);
  opacity: 0.7;
  z-index: 1;
}
.phone-front {
  width: 230px; height: 470px;
  top: 20px; right: -20px;
  transform: rotate(3deg);
  z-index: 2;
}

/* ---- Stats bar ---- */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 20px 0;
}
.stats-inner {
  display: flex; align-items: center;
  justify-content: center;
  gap: 40px;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 18px; font-weight: 700; color: var(--green); }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ---- Section header ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 14px;
}
.section-header p { font-size: 17px; color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ---- How it works ---- */
.how-it-works { padding: 100px 0; }
.steps {
  display: flex; align-items: flex-start; gap: 16px;
}
.step {
  flex: 1; text-align: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  position: relative;
}
.step-icon {
  font-size: 32px; margin-bottom: 12px;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}
.step-icon--goal     { background: var(--gold-dim); }
.step-icon--complete { background: var(--green-dim); font-weight: 900; color: var(--green); font-size: 28px; }
.step-icon--unlock   { background: rgba(76,175,80,0.1); }

.step-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--green);
  border-radius: 50%;
  font-size: 13px; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.step-arrow { font-size: 24px; color: var(--green); padding-top: 60px; flex-shrink: 0; opacity: 0.6; }

/* ---- Screenshots ---- */
.screenshots { padding: 80px 0; background: var(--bg2); }
.screens-row {
  display: flex; gap: 24px; align-items: flex-end; justify-content: center;
}
.screen-card {
  flex: 1; max-width: 220px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
}
.screen-card:hover { transform: translateY(-4px); }
.screen-card img { width: 100%; display: block; }
.screen-card--featured {
  max-width: 260px;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 20px 40px rgba(76,175,80,0.2);
  transform: translateY(-16px);
}
.screen-card--featured:hover { transform: translateY(-20px); }
.screen-caption {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Features ---- */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}
.feature-card:hover { transform: translateY(-2px); border-color: rgba(76,175,80,0.3); }
.feature-card--green { border-color: rgba(76,175,80,0.25); background: linear-gradient(135deg, var(--bg2), rgba(76,175,80,0.05)); }
.feature-card--red   { border-color: rgba(255,107,107,0.25); background: linear-gradient(135deg, var(--bg2), var(--red-dim)); }
.feature-icon { font-size: 30px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ---- Wearables ---- */
.wearables { padding: 100px 0; background: var(--bg2); }
.wearables-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.wearables-content { display: flex; flex-direction: column; gap: 28px; }
.wearables-content h2 { font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; letter-spacing: -1px; }
.wearables-content p  { font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.wearable-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.wearable-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500;
}
.wearable-check {
  width: 22px; height: 22px;
  background: var(--green-dim);
  color: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  flex-shrink: 0;
}
.wearables-screen { display: flex; justify-content: center; }
.phone-frame--sm {
  position: static;
  width: 220px;
  height: 420px;
  border-radius: 32px;
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg3);
}
.phone-frame--sm img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Pricing ---- */
.pricing { padding: 100px 0; background: var(--bg2); }

.launch-banner {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  background: var(--gold-dim);
  border: 1px solid rgba(255,217,61,0.3);
  color: var(--gold);
  font-size: 13px; font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  width: fit-content;
  margin: 0 auto 48px;
}
.launch-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.pricing-card--featured {
  background: linear-gradient(160deg, #1a2f1a, var(--bg3));
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 20px 48px rgba(76,175,80,0.15);
  transform: translateY(-8px);
}
.pricing-card--lifetime {
  background: linear-gradient(160deg, #1f1a0f, var(--bg3));
  border-color: rgba(255,217,61,0.3);
}

.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 4px 14px; border-radius: 100px;
  white-space: nowrap;
}
.plan-badge--gold { background: var(--gold); color: #000; }

.plan-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

.plan-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.price-was { font-size: 16px; color: var(--text-dim); text-decoration: line-through; margin-right: 4px; }
.price-amount { font-size: 42px; font-weight: 900; letter-spacing: -1.5px; color: var(--text); }
.pricing-card--featured .price-amount { color: var(--green); }
.pricing-card--lifetime .price-amount { color: var(--gold); }
.price-period { font-size: 15px; color: var(--text-muted); }

.plan-billed { font-size: 12px; color: var(--text-muted); margin-top: -8px; }
.plan-billed strong { color: var(--text); }

.plan-savings {
  display: inline-block;
  background: var(--green-dim); color: var(--green);
  border: 1px solid rgba(76,175,80,0.3);
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  width: fit-content;
}

.plan-features {
  list-style: none; display: flex; flex-direction: column; gap: 9px;
  margin: 4px 0;
}
.plan-features li {
  font-size: 14px; color: var(--text-muted);
  padding-left: 20px; position: relative;
}
.plan-features li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--green); font-weight: 700; font-size: 12px;
}

.plan-cta { width: 100%; justify-content: center; margin-top: auto; }
.plan-cta--gold { border-color: rgba(255,217,61,0.4); color: var(--gold); }
.plan-cta--gold:hover { border-color: var(--gold); background: var(--gold-dim); }

.pricing-note {
  text-align: center; font-size: 13px; color: var(--text-dim);
  margin-top: 32px;
}

/* ---- Download ---- */
.download {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(76,175,80,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.download-inner {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  position: relative;
}
.download-icon { width: 80px; height: 80px; border-radius: 20px; }
.download h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -1.5px; }
.download-inner > p { font-size: 17px; color: var(--text-muted); max-width: 420px; }

.download-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin: 8px 0; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--green);
  color: #fff;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.store-btn:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(76,175,80,0.35); }
.store-btn--android { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.store-btn--android:hover { border-color: var(--green); box-shadow: none; }
.store-btn div { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn small { font-weight: 400; font-size: 11px; opacity: 0.8; }
.store-btn strong { font-size: 17px; }
.download-note { font-size: 13px; color: var(--text-dim); }

/* ---- Footer ---- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-icon { width: 28px; height: 28px; border-radius: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }
.footer-copy { font-size: 13px; color: var(--text-dim); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .wearables-inner { grid-template-columns: 1fr; }
  .wearables-screen { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .stats-inner { flex-wrap: wrap; gap: 24px; }
}
@media (max-width: 700px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { align-items: center; }
  .hero-sub { text-align: center; }
  .hero-screens { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .screens-row { flex-direction: column; align-items: center; }
  .screen-card--featured { transform: none; }
  .screen-card { max-width: 100%; }
  .download-buttons { flex-direction: column; align-items: center; }
}
