:root {
  --font: "Alexandria", "Segoe UI", "Noto Naskh Arabic", Tahoma, sans-serif;
  --ink: #0a0a0b;
  --ink-soft: #18181b;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --accent: #ef4444;
  --accent-dark: #dc2626;
  --accent-soft: rgba(239, 68, 68, 0.12);
  --accent-glow: rgba(239, 68, 68, 0.35);
  --hero-bg: #09090b;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 32px 80px rgba(15, 23, 42, 0.16);
  --header-h: 76px;
  --container: min(1180px, calc(100% - 40px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header.is-scrolled .brand__name,
.site-header.is-scrolled .nav__link,
.site-header.is-scrolled .nav-toggle {
  color: var(--ink);
}

.site-header.is-scrolled .nav__link.is-active {
  color: var(--accent);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.25);
}

.brand__name {
  font-size: 1.15rem;
  color: #fff;
  transition: color 0.35s var(--ease);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled .nav__link:hover {
  background: rgba(15, 23, 42, 0.05);
}

.nav__cta {
  margin-inline-start: 8px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 12px 30px var(--accent-glow);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.nav__cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: calc(var(--header-h) + 48px) 0 80px;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(239, 68, 68, 0.28), transparent 60%),
    radial-gradient(700px 420px at 10% 20%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #09090b 0%, #111827 52%, #0f172a 100%);
  color: #fff;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 600;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero__title span {
  background: linear-gradient(135deg, #fff 20%, #fecaca 55%, #ef4444 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 28px;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 40px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 34rem;
}

.stat {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.stat__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat__label {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero__glow {
  position: absolute;
  width: min(520px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.35), transparent 68%);
  filter: blur(12px);
}

.hero__phone {
  position: relative;
  width: min(100%, 320px);
  padding: 12px;
  border-radius: 38px;
  background: linear-gradient(160deg, #27272a, #09090b);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero__phone-notch {
  width: 34%;
  height: 22px;
  margin: 0 auto 10px;
  border-radius: 0 0 14px 14px;
  background: #09090b;
}

.hero__phone-screen {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  aspect-ratio: 9 / 19.2;
}

.hero__phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__float {
  position: absolute;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 700;
  animation: float 5s ease-in-out infinite;
}

.hero__float--one {
  inset-inline-start: -8px;
  top: 18%;
}

.hero__float--two {
  inset-inline-end: -4px;
  bottom: 16%;
  animation-delay: 1.2s;
}

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

/* Sections */
.section {
  padding: 96px 0;
}

.section--soft {
  background: var(--surface-soft);
}

.section__head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section__desc {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.feature__icon svg {
  width: 24px;
  height: 24px;
}

.feature__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.feature__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Screens carousel */
.screens-wrap {
  position: relative;
}

.screens {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  scrollbar-width: thin;
}

.screens::-webkit-scrollbar {
  height: 8px;
}

.screens::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.screen-card {
  flex: 0 0 220px;
  scroll-snap-align: center;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.screen-card img {
  border-radius: 22px;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  width: 100%;
}

.screens-hint {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.quote {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.quote__stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.quote__text {
  margin: 0 0 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.quote__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote__avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--accent-dark);
}

.quote__name {
  font-weight: 800;
}

.quote__role {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Download */
.download {
  padding: 88px 0;
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(239, 68, 68, 0.14), transparent 70%),
    linear-gradient(180deg, #0a0a0b, #111827);
  color: #fff;
}

.download__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.download__title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.download__desc {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.72);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn img {
  height: 52px;
  width: auto;
  border-radius: 12px;
  transition: transform 0.25s var(--ease);
}

.store-btn:hover img {
  transform: translateY(-2px);
}

.download__brand {
  display: grid;
  place-items: center;
}

.download__logo-wrap {
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.download__logo-wrap img {
  width: 58%;
}

/* Footer */
.site-footer {
  padding: 48px 0 28px;
  background: #09090b;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 800;
}

.site-footer__brand img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: flex-end;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.back-top {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.back-top:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Responsive */
@media (max-width: 980px) {
  .hero__grid,
  .download__grid,
  .features,
  .testimonials,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .hero__stats {
    max-width: none;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset-inline: 20px;
    top: calc(var(--header-h) + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    color: var(--ink);
  }

  .nav__link:hover,
  .nav__link.is-active {
    color: var(--accent-dark);
    background: var(--accent-soft);
  }

  .nav__cta {
    margin-inline-start: 0;
    width: 100%;
  }

  .hero {
    padding-top: calc(var(--header-h) + 28px);
  }

  .hero__float {
    display: none;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__float { animation: none; }
}
