:root {
  --primary: #1B5196;
  --primary-dark: #13417D;
  --primary-light: #5B8FCC;
  --primary-surface: #EBF2FA;
  --accent: #1E5AA8;
  --white: #ffffff;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-900: #111827;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font: 'Poppins', system-ui, sans-serif;
  --font-ar: 'Noto Sans Arabic', 'Poppins', system-ui, sans-serif;
  --shadow-soft: 0 12px 40px rgba(19, 65, 125, 0.12);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
  font-family: var(--font-ar);
}

img {
  max-width: 100%;
  display: block;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--gray-200);
}

.nav__logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.35s ease, height 0.3s ease;
}

.nav--scrolled .nav__logo img {
  filter: none;
  height: 28px;
}

.nav__lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav--scrolled .nav__lang-toggle {
  background: var(--primary-surface);
  color: var(--primary-dark);
}

.lang-option {
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.lang-option.active {
  opacity: 1;
}

.lang-divider {
  opacity: 0.35;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6.5rem 1.5rem 3.5rem;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 6s ease;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 65, 125, 0.35) 0%, rgba(17, 24, 39, 0.15) 35%, rgba(17, 24, 39, 0.72) 100%),
    linear-gradient(90deg, rgba(19, 65, 125, 0.25) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__mark {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.hero__name {
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.hero__tagline {
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  max-width: 18ch;
}

.hero__description {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.75rem;
  max-width: 32ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero__dots {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.4rem;
  margin-top: 2rem;
}

.hero__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.hero__dot.is-active {
  width: 18px;
  background: var(--white);
}

.hero__dot:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== PREVIEW ===== */
.preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(91, 143, 204, 0.16), transparent 60%),
    linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.preview__copy {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
}

.preview__heading {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.preview__text {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Phone mock — modern iPhone frame + Discover scale */
.phone {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone__frame {
  --bezel: 3px;
  position: relative;
  width: min(100%, 292px);
  aspect-ratio: 9 / 19.4;
  border-radius: 44px;
  padding: var(--bezel);
  background:
    linear-gradient(145deg, #3a3a3c 0%, #1c1c1e 35%, #0a0a0a 70%, #2c2c2e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 1px 1px rgba(255, 255, 255, 0.08),
    0 28px 60px rgba(19, 65, 125, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.18);
  animation: phoneFloat 5.5s ease-in-out infinite;
}

.phone__btn {
  position: absolute;
  background: #1a1a1a;
  border-radius: 2px;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.phone__btn--silent {
  inset-inline-start: -2px;
  top: 18%;
  width: 3px;
  height: 22px;
  border-radius: 2px 0 0 2px;
}

.phone__btn--vol-up {
  inset-inline-start: -2px;
  top: 28%;
  width: 3px;
  height: 42px;
  border-radius: 2px 0 0 2px;
}

.phone__btn--vol-down {
  inset-inline-start: -2px;
  top: 40%;
  width: 3px;
  height: 42px;
  border-radius: 2px 0 0 2px;
}

.phone__btn--power {
  inset-inline-end: -2px;
  top: 32%;
  width: 3px;
  height: 64px;
  border-radius: 0 2px 2px 0;
}

.phone__screen {
  position: relative;
  height: 100%;
  background: var(--white);
  border-radius: 41px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone__island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 5;
  width: 86px;
  height: 24px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 20px;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.mock-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 0;
  height: 42px;
  color: var(--gray-900);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mock-status__icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mock-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 20px 4px;
}

.mock-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gray-500);
  line-height: 1.2;
}

.mock-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  line-height: 1.15;
  margin-top: 1px;
}

.mock-credits {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--primary-surface);
  color: var(--primary-dark);
  white-space: nowrap;
}

.mock-credits span:first-child {
  font-size: 14px;
  font-weight: 800;
}

.mock-credits span:last-child {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 20px 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--gray-50);
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 500;
}

.mock-banner {
  position: relative;
  margin: 0 16px;
  height: 108px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--primary-dark);
}

.mock-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.mock-banner__slide.is-active {
  opacity: 1;
}

.mock-banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-banner__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.55) 100%);
}

.mock-banner__copy {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mock-banner__copy strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mock-banner__copy span {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0.92;
}

.mock-banner-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 7px 0 2px;
}

.mock-banner-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: var(--gray-300);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.mock-banner-dots button.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

.mock-section {
  padding: 8px 16px 6px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mock-cards {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  overflow: hidden;
}

.mock-card {
  flex: 0 0 168px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}

.mock-card__img {
  height: 112px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
}

.mock-card__body {
  padding: 9px 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-card__body strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.mock-card__body span {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.3;
}

.mock-tabbar {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 0;
  min-height: 64px;
  padding: 8px 4px 14px;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}

.mock-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--gray-400);
}

.mock-tab.is-active {
  color: var(--accent);
}

.mock-tab span {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.mock-tab.is-active span {
  font-weight: 700;
}

.mock-tab__dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: transparent;
  margin-top: 1px;
}

.mock-tab.is-active .mock-tab__dot {
  background: var(--accent);
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== FEATURES ===== */
.features {
  padding: 5rem 1.5rem 5.5rem;
  background: var(--white);
}

.features__container {
  max-width: 720px;
  margin: 0 auto;
}

.features__heading {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  color: var(--gray-900);
}

.features__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.35rem 0;
  border-top: 1px solid var(--gray-200);
}

.feature:last-child {
  border-bottom: 1px solid var(--gray-200);
}

.feature__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--primary-surface);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.feature p {
  color: var(--gray-500);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== COMING SOON ===== */
.coming-soon {
  padding: 5rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(235, 242, 250, 0.95), transparent 65%),
    var(--gray-50);
}

.coming-soon__content {
  max-width: 420px;
  margin: 0 auto;
}

.coming-soon__icon {
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(27, 81, 150, 0.18);
}

.coming-soon__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
}

.coming-soon__subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 2rem;
}

.coming-soon__badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.badge__inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  filter: grayscale(0.7);
  opacity: 0.55;
}

.badge__apple,
.badge__play {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.badge__text {
  display: flex;
  flex-direction: column;
  text-align: start;
}

.badge__small {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.8;
}

.badge__large {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
}

.badge__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 65, 125, 0.55);
  backdrop-filter: blur(2px);
}

.badge__overlay span {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
}

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem 1.5rem;
  background: var(--primary-dark);
  text-align: center;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.footer__logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer__email {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer__email:hover {
  color: var(--white);
}

.footer__copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== MOTION / I18N ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.features__list .reveal:nth-child(2) { transition-delay: 0.08s; }
.features__list .reveal:nth-child(3) { transition-delay: 0.16s; }

[data-i18n] {
  transition: opacity 0.2s ease;
}

.lang-fade {
  opacity: 0 !important;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 900px) {
  .nav {
    padding: 1.1rem 2.5rem;
  }

  .hero {
    padding: 7rem 3rem 4rem;
    justify-content: center;
  }

  .hero__content {
    max-width: 40rem;
  }

  .hero__dots {
    position: absolute;
    bottom: 2.5rem;
    inset-inline-start: 3rem;
    margin-top: 0;
  }

  .phone__frame {
    width: min(100%, 308px);
  }

  .preview {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 4rem;
    padding: 6rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .preview__copy {
    text-align: start;
    margin: 0;
  }

  .features {
    padding: 6rem 3rem;
  }

  .coming-soon {
    padding: 6rem 3rem;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .phone__frame {
    width: 100%;
    max-width: 290px;
  }

  .coming-soon__badges {
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__slide {
    transform: none;
  }
}
