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

:root {
  --color-brand:        #4A6CF7;
  --color-brand-dark:   #3558e8;
  --color-brand-light:  #6e8cfb;
  --color-brand-bg:     #eef1fe;
  --color-text:         #0f1117;
  --color-text-muted:   #6b7280;
  --color-border:       #e5e7eb;
  --color-surface:      #f9fafb;
  --color-white:        #ffffff;
  --color-dark:         #111827;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(74,108,247,.18);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ─── Utility ───────────────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--color-brand) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.link {
  color: var(--color-brand);
  font-weight: 500;
  transition: opacity var(--transition);
}
.link:hover { opacity: .75; }

.mt-sm { margin-top: 10px; }
.mt-xs { margin-top: 6px; }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background: var(--color-brand);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(74,108,247,.4);
}
.btn--primary:hover {
  background: var(--color-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(74,108,247,.5);
}

.btn--outline {
  background: transparent;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
}
.btn--outline:hover {
  background: var(--color-brand-bg);
  transform: translateY(-1px);
}

.btn--sm  { padding: 8px 18px; font-size: 0.875rem; }
.btn--lg  { padding: 16px 32px; font-size: 1.05rem; }

/* ─── Store Buttons ─────────────────────────────────────────────────────────── */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-btn--ios {
  background: var(--color-dark);
  color: var(--color-white);
}
.store-btn--android {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-border);
}

.store-btn__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.store-btn__eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.store-btn__name {
  font-size: 1.05rem;
  font-weight: 700;
}

.store-btn--sm .store-btn__icon { width: 22px; height: 22px; }
.store-btn--sm .store-btn__name { font-size: 0.9rem; }
.store-btn--sm { padding: 10px 16px; gap: 10px; }

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin-inline: auto;
  padding: 14px 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  transition: opacity var(--transition);
}
.nav__brand:hover { opacity: .8; }

.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  background: linear-gradient(160deg, #f8f9ff 0%, #f0f3ff 50%, #fff 100%);
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.15;
  filter: blur(60px);
}
.shape--1 {
  width: 500px; height: 500px;
  top: -200px; right: -100px;
  background: var(--color-brand);
}
.shape--2 {
  width: 400px; height: 400px;
  bottom: -150px; left: -100px;
  background: #a78bfa;
}
.shape--3 {
  width: 300px; height: 300px;
  top: 30%; left: 40%;
  background: #60a5fa;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-brand-bg);
  color: var(--color-brand);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(74,108,247,.2);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.download-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero__hint {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ─── Phone Mockup ──────────────────────────────────────────────────────────── */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 260px;
  background: var(--color-dark);
  border-radius: 40px;
  padding: 16px;
  box-shadow:
    0 30px 80px rgba(0,0,0,.25),
    0 0 0 1px rgba(255,255,255,.06) inset;
  position: relative;
  z-index: 1;
}

.phone-mockup__screen {
  background: #f0f3ff;
  border-radius: 28px;
  overflow: hidden;
  padding: 20px 16px;
  min-height: 440px;
}

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

.mockup-ui__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.mockup-ui__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-brand), #a78bfa);
  flex-shrink: 0;
}

.mockup-ui__title { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.mockup-line {
  height: 10px;
  border-radius: var(--radius-full);
  background: #d1d5db;
}
.mockup-line--sm  { width: 60%; }
.mockup-line--md  { width: 75%; }
.mockup-line--lg  { width: 90%; }
.mockup-line--full{ width: 100%; }

.mockup-ui__card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.mockup-ui__card--accent {
  background: linear-gradient(135deg, var(--color-brand) 0%, #6e8cfb 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.mockup-card__label--light { color: rgba(255,255,255,0.85); }

.mockup-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,.25);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.glow--hero {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background: var(--color-brand);
  opacity: 0.12;
  filter: blur(80px);
  z-index: 0;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.12; }
  50%       { transform: scale(1.15); opacity: 0.18; }
}

/* ─── Features ──────────────────────────────────────────────────────────────── */
.features {
  padding: 100px 0;
  background: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74,108,247,.25);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card__icon svg { width: 24px; height: 24px; }

.feature-card__icon--blue   { background: #dbeafe; color: #2563eb; }
.feature-card__icon--purple { background: #ede9fe; color: #7c3aed; }
.feature-card__icon--orange { background: #ffedd5; color: #ea580c; }
.feature-card__icon--green  { background: #dcfce7; color: #16a34a; }
.feature-card__icon--pink   { background: #fce7f3; color: #db2777; }
.feature-card__icon--teal   { background: #ccfbf1; color: #0d9488; }

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ─── CTA ───────────────────────────────────────────────────────────────────── */
.cta {
  padding: 80px 0 100px;
  background: var(--color-surface);
}

.cta__card {
  position: relative;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1e1b4b 100%);
  border-radius: 28px;
  padding: 64px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: var(--radius-full);
  background: var(--color-brand);
  opacity: 0.15;
  filter: blur(120px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta__content { position: relative; z-index: 1; }

.cta__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: 14px;
}

.cta__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta__footnote {
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
  margin: 28px 0 16px;
}

.cta__store-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta__store-row .store-btn--android {
  background: rgba(255,255,255,.08);
  color: var(--color-white);
  border-color: rgba(255,255,255,.15);
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.7);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  opacity: 0.9;
}

.footer__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
}

.footer__copy { font-size: 0.85rem; }

.footer__links {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
}
.footer__links a {
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-white); }

/* ─── Scroll-reveal animations ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero__subtitle { margin-inline: auto; }
  .download-buttons { justify-content: center; }
  .hero__hint { text-align: center; }
  .hero__visual { justify-content: center; }
  .hero { padding: 72px 0 64px; }
}

@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
  .cta__card { padding: 40px 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
  .download-buttons { flex-direction: column; align-items: center; }
  .cta__store-row { flex-direction: column; align-items: center; }
  .hero__inner { gap: 36px; }
  .phone-mockup { width: 220px; }
  .phone-mockup__screen { min-height: 360px; }
}
