/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --bg:           #ffffff;
  --bg-alt:       #f8f7ff;
  --bg-card:      #ffffff;
  --text:         #0f0e17;
  --text-2:       #3d3b4f;
  --text-3:       #6b6882;
  --border:       #e8e6f0;
  --purple:       #6c63ff;
  --purple-dark:  #5548e8;
  --purple-light: #ede9ff;
  --purple-mid:   #a89ef7;
  --green:        #22c55e;
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    24px;
  --shadow-sm:    0 2px 8px rgba(108,99,255,.08);
  --shadow:       0 8px 32px rgba(108,99,255,.12);
  --shadow-lg:    0 24px 64px rgba(108,99,255,.18);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
em   { font-style: normal; color: var(--purple); font-weight: 500; }

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-light);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-3);
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--purple) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: background .15s, transform .15s !important;
}
.nav-cta:hover { background: var(--purple-dark) !important; transform: translateY(-1px); }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all .15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108,99,255,.3);
}
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,99,255,.4);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--purple-mid);
  color: var(--purple);
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(160deg, #f0edff 0%, #faf9ff 50%, #e8f5e9 100%);
  padding: 90px 0 0;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,.18) 0%, transparent 70%);
  top: -200px; left: -200px;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-light);
  border: 1px solid rgba(108,99,255,.2);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 24px;
}
.hero-text h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text);
}
.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.stat span   { font-size: 0.75rem; color: var(--text-3); font-weight: 500; }
.stat-div    { width: 1px; height: 36px; background: var(--border); }

/* phone in hero */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 0;
}
.phone-glow-behind {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,.25) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.phone-frame {
  position: relative;
  z-index: 1;
  width: 260px;
  border-radius: 40px;
  background: #1a1a2e;
  padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone-frame-sm { width: 220px; }
.phone-notch {
  width: 80px; height: 22px;
  background: #1a1a2e;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
}
.phone-frame img,
.phone-screen {
  width: 100%;
  border-radius: 30px;
  display: block;
}

.hero-wave {
  margin-top: 60px;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ─────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}
.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.step p {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.7;
}
.step-arrow {
  font-size: 1.5rem;
  color: var(--purple-mid);
  padding: 0 16px;
  margin-top: 60px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   FEATURES
───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feature-card:hover {
  border-color: var(--purple-mid);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.feature-highlight {
  background: linear-gradient(135deg, #f0edff 0%, #faf9ff 100%);
  border-color: rgba(108,99,255,.3);
  grid-column: span 1;
}
.feature-emoji { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   SCREENSHOTS
───────────────────────────────────────── */
.screenshots-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 8px;
}
.screenshot-item {
  flex-shrink: 0;
  text-align: center;
}
.phone-mini {
  width: 160px;
  border-radius: 28px;
  background: #1a1a2e;
  padding: 8px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.phone-mini:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.phone-mini img {
  width: 100%;
  border-radius: 20px;
  display: block;
}
.screenshot-featured .phone-mini {
  width: 190px;
  transform: translateY(-16px);
  box-shadow: var(--shadow-lg);
}
.screenshot-featured .phone-mini:hover { transform: translateY(-22px); }
.screenshot-label {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
}

/* ─────────────────────────────────────────
   CATEGORIES
───────────────────────────────────────── */
.categories {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
.cat-group { text-align: center; }
.cat-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cat-pills span {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, color .15s;
}
.cat-pills span:hover { border-color: var(--purple-mid); color: var(--purple); }
.cat-pills-income span { border-color: rgba(34,197,94,.3); }
.cat-pills-income span:hover { border-color: var(--green); color: var(--green); }

/* ─────────────────────────────────────────
   INSTALL
───────────────────────────────────────── */
.install-wrapper {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: center;
}
.install-text .section-tag { margin-bottom: 16px; }
.install-text h2 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}
.install-desc {
  font-size: 0.95rem;
  color: var(--text-3);
  margin-bottom: 40px;
  line-height: 1.7;
}
.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
.install-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-circle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--purple-light);
  border: 1.5px solid rgba(108,99,255,.25);
  color: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.install-steps strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.install-steps span {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.6;
}
.req-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-3);
}
.install-phone {
  display: flex;
  justify-content: center;
}

/* ─────────────────────────────────────────
   TECH
───────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tech-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color .15s, box-shadow .15s;
}
.tech-card:hover { border-color: var(--purple-mid); box-shadow: var(--shadow-sm); }
.tech-icon { font-size: 1.5rem; flex-shrink: 0; }
.tech-info { display: flex; flex-direction: column; gap: 4px; }
.tech-info strong { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.tech-info span   { font-size: 0.8rem; color: var(--text-3); line-height: 1.5; }

/* ─────────────────────────────────────────
   FOOTER CTA
───────────────────────────────────────── */
.footer-cta {
  background: linear-gradient(135deg, #6c63ff 0%, #8b5cf6 100%);
  padding: 100px 0;
  text-align: center;
  color: #fff;
}
.footer-cta h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
}
.footer-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
  line-height: 1.7;
}
.footer-cta .hero-actions { justify-content: center; }
.footer-cta .btn-primary {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.footer-cta .btn-primary:hover { background: #f0edff; }
.footer-cta .btn-ghost {
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.footer-cta .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: #fff; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: var(--text);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,.4);
}
.footer-logo-img { height: 36px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.85; }
.footer a { color: rgba(255,255,255,.6); transition: color .15s; }
.footer a:hover { color: #fff; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-phone { margin-top: 0; }
  .hero-wave { margin-top: 40px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }

  .install-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .install-steps li { text-align: left; }
  .install-phone { order: -1; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .nav-links a:not(.nav-cta) { display: none; }

  .hero-inner { gap: 40px; }
  .phone-frame { width: 200px; }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .step { max-width: 100%; }
  .step-arrow { transform: rotate(90deg); margin: 0; padding: 0; }

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

  .screenshots-row { gap: 12px; }
  .phone-mini { width: 130px; }
  .screenshot-featured .phone-mini { width: 155px; }

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