/* ─── Reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #66C2B2;
  --primary-light: #e0f7f4;
  --primary-dark: #4AADA0;
  --secondary: #7ED3B2;
  --bg: #f5fefe;
  --surface: #ffffff;
  --surface-variant: #edf9f7;
  --on-bg: #0d2a28;
  --on-surface: #0d2a28;
  --on-surface-variant: #2a7a6e;
  --green: #A1E887;
  --orange: #f28b2c;
  --blue: #2196f3;
  --pink: #e91e8c;
  --teal: #7ED3B2;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
  --font: 'Inter', system-ui, sans-serif;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--on-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

/* ─── Container ───────────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navbar ──────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(254,251,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(103,80,164,.1);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}
.logo-icon { font-size: 1.5rem; }
.logo-text  { letter-spacing: -.5px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 22px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(103,80,164,.3); }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(103,80,164,.35); }

.btn-secondary {
  background: var(--surface-variant);
  color: var(--primary);
}
.btn-secondary:hover { background: var(--primary-light); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  padding: 8px 20px;
  font-size: .9rem;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ─── Badge ───────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: .3px;
  margin-bottom: 12px;
}

/* ─── Section header ──────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--on-surface-variant);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #A1E887 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
}
.blob-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -150px; right: -100px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--teal);
  bottom: -100px; left: -80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text { max-width: 540px; }

.hero-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--on-surface-variant);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { text-align: center; }
.stat-num  { display: block; font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.stat-label{ display: block; font-size: .75rem; color: var(--on-surface-variant); margin-top: 2px; }
.stat-divider { width: 1px; height: 32px; background: var(--primary-light); }

/* ── Phone mockup ─────────────────────────────────────────────────────── */
.hero-mockup {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.phone-frame {
  width: 270px;
  background: #1c1b1f;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
}

.phone-screen {
  background: #fffbfe;
  border-radius: 28px;
  overflow: hidden;
  padding-bottom: 16px;
  min-height: 520px;
  position: relative;
}

.mock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 14px 8px;
  background: linear-gradient(180deg, #edf9f7 0%, #f5fefe 100%);
}
.mock-title  { font-weight: 700; font-size: .9rem; color: var(--primary); }
.mock-icons  { font-size: .75rem; color: var(--on-surface-variant); }

.mock-section-label {
  font-size: .65rem;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 14px 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.mock-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-variant);
  border-radius: 14px;
  margin: 4px 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}

.mock-emoji { font-size: 1.4rem; }

.mock-card-info { flex: 1; min-width: 0; }
.mock-card-name { display: block; font-size: .75rem; font-weight: 600; color: var(--on-bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-card-sub  { display: block; font-size: .6rem; color: var(--on-surface-variant); margin-top: 2px; }

.mock-progress-bar {
  height: 4px;
  background: rgba(103,80,164,.15);
  border-radius: 4px;
  margin: 4px 0 2px;
  overflow: hidden;
}
.mock-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width .8s ease;
}
.mock-green  { background: var(--green) !important; }
.mock-orange { background: var(--orange) !important; }

.mock-shared-chip {
  font-size: .55rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: 50px;
  white-space: nowrap;
}
.mock-guest-chip {
  font-size: .55rem;
  font-weight: 600;
  background: #fff3e0;
  color: var(--orange);
  padding: 2px 6px;
  border-radius: 50px;
  white-space: nowrap;
}

.mock-fab {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 300;
  box-shadow: 0 4px 12px rgba(103,80,164,.45);
}

/* ─── Features ────────────────────────────────────────────────────────── */
.features {
  padding: 100px 0;
  background: var(--surface-variant);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation-delay: var(--delay, 0s);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.feature-icon-purple { background: #f3effe; }
.feature-icon-green  { background: #e8f8ed; }
.feature-icon-blue   { background: #e3f2fd; }
.feature-icon-orange { background: #fff3e0; }
.feature-icon-pink   { background: #fce4ec; }
.feature-icon-teal   { background: #e0f2f1; }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: .95rem;
  color: var(--on-surface-variant);
  line-height: 1.65;
}

/* ─── How it works ────────────────────────────────────────────────────── */
.how-it-works { padding: 100px 0; }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  background: var(--surface);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 300px;
  flex: 1;
  min-width: 240px;
  transition: var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 16px;
  line-height: 1;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-content p {
  font-size: .92rem;
  color: var(--on-surface-variant);
  line-height: 1.65;
}

.step-arrow {
  font-size: 2rem;
  color: var(--primary-light);
  align-self: center;
  flex-shrink: 0;
  font-weight: 700;
}

/* ─── Callout ─────────────────────────────────────────────────────────── */
.callout {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--teal) 100%);
  color: #fff;
  padding: 64px 0;
}

.callout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.callout-text h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.callout-text p  { font-size: .95rem; opacity: .85; max-width: 500px; }

.callout-code-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  backdrop-filter: blur(8px);
}

.code-demo-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .7;
}

.code-demo-value {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 10px;
  font-family: 'Courier New', monospace;
}

.callout .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.callout .btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ─── Download ────────────────────────────────────────────────────────── */
.download { padding: 100px 0; }

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  background: var(--on-bg);
  color: #fff;
  border-radius: var(--radius-md);
  transition: var(--transition);
  min-width: 190px;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.25); background: var(--primary-dark); }

.store-btn div { display: flex; flex-direction: column; }
.store-btn small{ font-size: .7rem; opacity: .7; line-height: 1; }
.store-btn strong{ font-size: 1.1rem; line-height: 1.4; }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--on-bg);
  color: rgba(255,255,255,.6);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-brand .logo-text { color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-brand p { font-size: .82rem; width: 100%; }

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: .88rem;
  opacity: .7;
  transition: opacity .2s;
}
.footer-links a:hover { opacity: 1; color: var(--primary-light); }

/* ─── Animations ──────────────────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--delay, 0s);
}
[data-animate="fade-left"] {
  transform: translateX(32px);
}
[data-animate].in-view {
  opacity: 1;
  transform: none;
}

/* ─── APK direct download section ───────────────────────────────────── */
.apk-banner {
  background: var(--surface-variant);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 680px;
  margin: 32px auto 0;
}
.apk-banner-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.apk-banner-text p {
  font-size: .88rem;
  color: var(--on-surface-variant);
}
.btn-apk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(30,132,73,.35);
}
.btn-apk:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,132,73,.45); }
.btn-apk svg { flex-shrink: 0; }
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-text { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats  { justify-content: center; }
  .hero-mockup { order: -1; }

  .step-arrow { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step  { max-width: 100%; width: 100%; }

  .callout-inner { flex-direction: column; text-align: center; }
  .callout-text p { margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .phone-frame { width: 230px; }
  .phone-screen { min-height: 440px; }
  .features-grid { grid-template-columns: 1fr; }
  .store-btn { min-width: 160px; padding: 14px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .apk-banner { flex-direction: column; text-align: center; }
}
