:root {
  --brand: #0b6b5b;
  --brand-deep: #064c42;
  --navy: #0d1b2a;
  --navy-soft: #152536;
  --mint: #1faa8a;
  --gold: #f0b429;
  --text: #f4f7f6;
  --muted: rgba(244, 247, 246, 0.72);
  --card: rgba(21, 37, 54, 0.72);
  --stroke: rgba(255, 255, 255, 0.12);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font-display: "Cairo", sans-serif;
  --font-body: "Tajawal", sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 90% -10%, rgba(31, 170, 138, 0.28), transparent 55%),
    radial-gradient(900px 600px at -10% 20%, rgba(11, 107, 91, 0.35), transparent 50%),
    linear-gradient(165deg, #071018 0%, #0d1b2a 42%, #0a3d35 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.bg-orb--1 {
  width: 280px;
  height: 280px;
  top: 12%;
  left: -80px;
  background: #1faa8a;
  animation: orbDrift 14s ease-in-out infinite;
}

.bg-orb--2 {
  width: 340px;
  height: 340px;
  bottom: 8%;
  right: -100px;
  background: #0b6b5b;
  animation: orbDrift 18s ease-in-out infinite reverse;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.topbar,
.hero,
.section,
.cta-final,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.topbar__cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--brand));
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 24px rgba(11, 107, 91, 0.35);
}

.hero {
  display: grid;
  gap: 28px;
  padding: 18px 18px 40px;
  max-width: var(--max);
  margin: 0 auto;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--mint);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  line-height: 1.1;
  background: linear-gradient(120deg, #ffffff 20%, #9ee7d4 70%, #f0b429 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #d7fff3;
}

.hero__sub {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
  max-width: 36ch;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.store-row--center {
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: min(100%, 220px);
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(8, 16, 24, 0.75);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-btn small {
  font-size: 0.72rem;
  opacity: 0.75;
}

.store-btn strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.store-btn:hover,
.store-btn:focus-visible {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(31, 170, 138, 0.55);
  box-shadow: 0 16px 36px rgba(11, 107, 91, 0.35);
}

.store-btn.is-preferred {
  border-color: rgba(240, 180, 41, 0.55);
  box-shadow: 0 0 0 2px rgba(240, 180, 41, 0.25), 0 16px 36px rgba(0, 0, 0, 0.35);
}

.store-btn--apple {
  color: #fff;
}

.apk-link {
  display: inline-block;
  margin-top: 14px;
  color: #9ee7d4;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__stage {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.stage-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 170, 138, 0.45), transparent 70%);
  filter: blur(10px);
  animation: pulseGlow 4.5s ease-in-out infinite;
}

.phone {
  position: relative;
  transform-style: preserve-3d;
}

.phone--hero {
  width: min(72vw, 280px);
  transform: rotateY(-16deg) rotateX(8deg) rotateZ(2deg);
  filter: drop-shadow(var(--shadow));
}

.phone--sm {
  width: min(58vw, 190px);
  transform: rotateY(-10deg) rotateX(6deg);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.phone__bezel {
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3644, #0b121a 55%, #1b2733);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -8px 18px rgba(0, 0, 0, 0.35);
}

.phone__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 10px;
  border-radius: 999px;
  background: #0b121a;
  z-index: 2;
}

.phone__screen,
.phone__bezel img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background: #102030;
}

.logo-float {
  position: absolute;
  top: 8%;
  left: 6%;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotateY(18deg) rotateX(10deg);
}

.logo-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-y {
  animation: floatY 5.5s ease-in-out infinite;
}

.float-y-delay {
  animation: floatY 6.5s ease-in-out infinite 0.8s;
}

.section {
  padding: 48px 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.section__head {
  text-align: center;
  margin-bottom: 28px;
}

.section__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
}

.section__head p {
  margin: 10px auto 0;
  max-width: 36ch;
  color: var(--muted);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  gap: 14px;
}

.feature-card,
.step,
.audience-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #9ee7d4;
  background: linear-gradient(145deg, rgba(31, 170, 138, 0.28), rgba(11, 107, 91, 0.12));
  border: 1px solid rgba(158, 231, 212, 0.2);
}

.feature-card h3,
.step h3,
.audience-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
}

.feature-card p,
.step p,
.audience-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mint), var(--brand-deep));
  font-family: var(--font-display);
  font-weight: 900;
}

.gallery-rail {
  display: grid;
  gap: 22px;
  justify-items: center;
}

.gallery-item {
  margin: 0;
  text-align: center;
}

.gallery-item figcaption {
  margin-top: 12px;
  font-weight: 700;
  color: #d7fff3;
}

.audience-grid {
  display: grid;
  gap: 14px;
}

.audience-card ul {
  margin: 0;
  padding: 0 1.1rem 0 0;
}

.audience-card li + li {
  margin-top: 8px;
}

.audience-card--alt {
  background: linear-gradient(160deg, rgba(11, 107, 91, 0.35), rgba(21, 37, 54, 0.8));
}

.cta-final {
  padding: 20px 18px 48px;
}

.cta-final__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  padding: 32px 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(11, 107, 91, 0.4), rgba(13, 27, 42, 0.85));
  box-shadow: var(--shadow);
}

.cta-final__logo {
  margin: 0 auto 14px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.cta-final h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.cta-final p {
  margin: 10px 0 0;
  color: var(--muted);
}

.footer {
  text-align: center;
  padding: 24px 18px 40px;
  color: var(--muted);
}

.footer img {
  margin: 0 auto 10px;
  border-radius: 10px;
}

.footer__note {
  margin: 6px 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0) rotateY(-16deg) rotateX(8deg) rotateZ(2deg);
  }
  50% {
    transform: translateY(-14px) rotateY(-12deg) rotateX(10deg) rotateZ(1deg);
  }
}

.logo-float.float-y-delay {
  animation-name: floatLogo;
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0) rotateY(18deg) rotateX(10deg);
  }
  50% {
    transform: translateY(-10px) rotateY(12deg) rotateX(14deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes orbDrift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(24px, -18px);
  }
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 20px;
    padding-top: 28px;
    min-height: calc(100vh - 72px);
  }

  .feature-grid,
  .steps,
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-rail {
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
  }

  .phone--hero {
    width: 300px;
  }

  .logo-float {
    left: 2%;
    top: 12%;
  }
}

@media (min-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@supports (padding: max(0px)) {
  .topbar,
  .hero,
  .section,
  .cta-final,
  .footer {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }
}
