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

:root {
  --color-primary: #7C3AED;
  --color-accent:  #F59E0B;
  --color-dark:    #1E1B4B;
  --color-light:   #FAFAFA;
  --color-text:    #374151;
  --font-base:     'Poppins', sans-serif;
  --radius:        12px;
  --transition:    0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-light);
  line-height: 1.6;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-primary);
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--color-primary);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: var(--transition);
}

@media (max-width: 640px) {
  .nav__hamburger { display: flex; }

  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 1rem;
  }

  .nav__links.open { display: flex; }
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

.btn--primary  { background: var(--color-primary); color: white; }
.btn--accent   { background: var(--color-accent); color: white; }
.btn--outline  { border: 2.5px solid white; color: white; background: transparent; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-primary) 0%, #4F46E5 60%, #7C3AED 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero__content {
  flex: 1;
  max-width: 520px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero__title span {
  color: var(--color-accent);
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 420px;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Phone mockup */
.hero__phone {
  flex: 0 0 auto;
  animation: bob 3s ease-in-out infinite;
}

.phone-frame {
  width: 220px;
  height: 440px;
  border: 10px solid rgba(255,255,255,0.2);
  border-radius: 36px;
  overflow: hidden;
  background: var(--color-dark);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; gap: 2.5rem; }
  .hero__sub { max-width: 100%; }
  .hero__ctas { justify-content: center; }
  .phone-frame { width: 160px; height: 320px; }
}

/* ── Shared layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

/* ── About ── */
.about {
  padding: 6rem 0;
  background: white;
  text-align: center;
}

.about__desc {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  color: var(--color-text);
}

.about__stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--color-light);
  border: 2px solid #EDE9FE;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 140px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.12);
}

.stat-card__icon { font-size: 1.75rem; }
.stat-card__value { font-size: 2rem; font-weight: 800; color: var(--color-primary); }
.stat-card__label { font-size: 0.85rem; font-weight: 600; color: var(--color-text); }

/* ── Apps ── */
.apps {
  padding: 6rem 0;
  background: #F5F3FF;
}

.app-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 5rem;
}

.app-block--reverse {
  direction: rtl;
}

.app-block--reverse > * {
  direction: ltr;
}

.app-block__screenshots {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.phone-frame--small {
  width: 150px;
  height: 300px;
  border-width: 8px;
}

.phone-frame--offset {
  margin-top: 2rem;
}

.app-block__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.app-block__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.app-block__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
}

.app-block__tagline {
  font-size: 0.95rem;
  color: var(--color-primary);
  font-weight: 600;
}

.app-block__desc {
  color: var(--color-text);
  line-height: 1.7;
}

.app-block__badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.store-badge {
  height: 48px;
  transition: transform var(--transition);
}

.store-badge:hover { transform: scale(1.05); }

@media (max-width: 768px) {
  .app-block,
  .app-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
  .app-block__screenshots { order: -1; }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Contact ── */
.contact {
  padding: 6rem 0;
  background: var(--color-primary);
  text-align: center;
}

.contact__sub {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact__form {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 1rem;
  background: rgba(255,255,255,0.15);
  color: white;
  outline: none;
  transition: background var(--transition);
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.contact__form input:focus,
.contact__form textarea:focus {
  background: rgba(255,255,255,0.22);
}

.contact__form textarea { resize: vertical; }

.form-success {
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Footer ── */
.footer {
  background: var(--color-dark);
  padding: 2.5rem 0;
}

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

.footer__logo {
  font-weight: 800;
  color: white;
  font-size: 1rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover { color: white; }

.footer__copy {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

/* ── Accessibility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
