:root {
  --bg: #f8f5f2ff;
  --panel: #ffffff;
  --ink: #0f1c22;
  --muted: #4c5a61;
  --primary: #1f8b74;
  --primary-strong: #0f7060;
  --accent: #f0c145;
  --border: #e6e1d5;
  --shadow: 0 25px 65px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --nav-height: 82px;
}

:root.theme-dark {
  --bg: #0b1418;
  --panel: #0f1b22;
  --ink: #e9eff2;
  --muted: #9bb0ba;
  --primary: #2ed1b1;
  --primary-strong: #1ba58d;
  --accent: #f5cc5f;
  --border: #1f2c33;
  --shadow: 0 25px 65px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: "Poppins", "Tajawal", "Space Grotesk", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Performance optimizations */
img[loading="lazy"] {
  content-visibility: auto;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

::selection {
  background: rgba(31, 139, 116, 0.12);
  color: var(--ink);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
  will-change: background, backdrop-filter, box-shadow;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.theme-dark .navbar {
  background: #0f1b22;
  border-bottom-color: transparent;
}

.theme-dark .navbar.is-scrolled {
  background: rgba(15, 27, 34, 0.98);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0.25rem;
  position: relative;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
  gap: 5px;
  position: relative;
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: transparent;
  border: none;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-name {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.82rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(31, 139, 116, 0.08);
  outline: none;
}

.nav-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-links .nav-actions .btn-primary {
  border-radius: 9999px;
  padding: 0.72rem 1.6rem;
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: #ffffff !important;
  box-shadow: 0 16px 35px rgba(15, 112, 96, 0.28);
  border-color: rgba(31, 139, 116, 0.22);
}

.nav-links .nav-actions .btn-primary:hover,
.nav-links .nav-actions .btn-primary:focus-visible {
  background: linear-gradient(120deg, #187360, #0f5c4d);
  color: #ffffff !important;
  box-shadow: 0 24px 40px rgba(15, 112, 96, 0.35);
}

.theme-dark .nav-links .nav-actions .btn-primary:hover,
.theme-dark .nav-links .nav-actions .btn-primary:focus-visible {
  background: linear-gradient(120deg, #1a8f7a, #15806b);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  min-height: 44px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-dark .btn {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: #ffffff !important;
  box-shadow: 0 16px 35px rgba(15, 112, 96, 0.28);
  border-color: rgba(31, 139, 116, 0.2);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
}

.btn-primary:hover {
  background: linear-gradient(120deg, #0d5d4f, #0a4a3e);
  transform: translateY(-1px);
  box-shadow: 0 24px 40px rgba(15, 112, 96, 0.4);
  color: #ffffff !important;
}

.theme-dark .btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
}

.theme-dark .btn-primary:hover {
  background: linear-gradient(120deg, #1a8f7a, #15806b);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(31, 139, 116, 0.2);
  color: var(--primary-strong);
}

.btn-ghost:hover {
  background: rgba(31, 139, 116, 0.08);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(4.2rem + var(--nav-height)) 0 4.5rem;
  margin-top: calc(-1 * var(--nav-height));
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero::before {
  background: radial-gradient(
      circle at 12% 18%,
      rgba(31, 139, 116, 0.35),
      transparent 30%
    ),
    radial-gradient(
      circle at 82% 10%,
      rgba(240, 193, 69, 0.28),
      transparent 26%
    ),
    radial-gradient(
      circle at 30% 82%,
      rgba(31, 139, 116, 0.26),
      transparent 30%
    ),
    radial-gradient(circle at 78% 72%, rgba(15, 112, 96, 0.32), transparent 28%),
    radial-gradient(circle at 52% 48%, rgba(240, 193, 69, 0.2), transparent 35%);
  filter: blur(16px) saturate(1.06);
  background-size: 170% 170%;
  opacity: 0.98;
  animation: heroFlow 22s ease-in-out infinite alternate;
}

.hero::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.2) 70%
  );
}

.theme-dark .hero::after {
  background: linear-gradient(
    180deg,
    rgba(11, 20, 24, 0.85) 0%,
    rgba(11, 20, 24, 0.35) 70%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: clamp(2.8rem, 7vw, 8rem);
  align-items: center;
  justify-content: space-between;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(31, 139, 116, 0.1);
  color: var(--primary-strong);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0.55rem 0 0.35rem;
  color: var(--ink);
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.35rem 0 1.05rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.78rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  min-width: 200px;
  min-height: 60px;
  transition: all 0.2s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.store-badge:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-dark .store-badge {
  background: var(--panel);
  border-color: var(--border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
}

.store-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f0f2f5;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.store-icon img {
  width: 20px;
  height: 20px;
}

.theme-dark .store-icon {
  background: #15202a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.store-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  align-items: flex-start;
}

.store-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.store-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-metrics {
  display: none;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  max-width: 300px;
  justify-self: end;
  padding-left: min(4vw, 28px);
}

.hero-media .glow {
  position: absolute;
  inset: auto 6% -40px;
  height: 60px;
  background: radial-gradient(
    circle at 50% 0,
    rgba(31, 139, 116, 0.26),
    transparent 70%
  );
  filter: blur(6px);
  z-index: 0;
}

.screen-card {
  position: relative;
  background: #0d1f24;
  border-radius: 22px;
  padding: 0.2rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  z-index: 1;
  width: min(100%, 300px);
  max-width: 300px;
  margin: 0 0 0 auto;
}

.screen-card::after {
  content: "";
  position: absolute;
  inset: 6% auto auto 18%;
  width: 60%;
  height: 40%;
  background: radial-gradient(
    circle,
    rgba(240, 193, 69, 0.28),
    transparent 60%
  );
  filter: blur(28px);
  opacity: 0.8;
  z-index: 0;
}

.screen-frame {
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.screen-carousel {
  --screen-padding: clamp(3px, 0.5vw, 4px);
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19;
  overflow: hidden;
}

.screen-slide {
  position: absolute;
  inset: var(--screen-padding);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
  border-radius: calc(var(--radius-lg) - 6px);
  background: #000;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.screen-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
  border-radius: inherit;
}

.screen-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.floating-card {
  display: none;
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    #ffffff 24%,
    #ffffff 76%,
    var(--bg) 100%
  );
}

.theme-dark .section.alt {
  background: linear-gradient(
    180deg,
    #0b1418 0%,
    #0f1b22 24%,
    #0f1b22 76%,
    #0b1418 100%
  );
}

.section-header {
  text-align: center;
  margin-bottom: 2.1rem;
}

.section-kicker {
  font-weight: 700;
  color: var(--primary-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.section-text {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

.section-text--no-margin {
  margin: 0;
}

.section-features {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section-features::before,
.section-features::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.section-features::before {
  background: radial-gradient(
      90% 70% at 15% 28%,
      rgba(31, 139, 116, 0.18),
      transparent 50%
    ),
    radial-gradient(
      80% 70% at 82% 16%,
      rgba(240, 193, 69, 0.16),
      transparent 46%
    ),
    radial-gradient(
      120% 120% at 85% 82%,
      rgba(31, 139, 116, 0.14),
      transparent 60%
    );
  filter: blur(14px);
}

.section-features::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.3)
  );
}

.theme-dark .section-features::after {
  background: linear-gradient(
    180deg,
    rgba(11, 20, 24, 0.9),
    rgba(11, 20, 24, 0.3)
  );
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
  margin-top: 2rem;
}

.feature-column {
  display: grid;
  gap: 1.1rem;
  align-content: center;
}

.feature-column--left {
  justify-items: end;
}

.feature-column--right {
  justify-items: start;
}

.feature-pod {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  width: clamp(280px, 32vw, 320px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-pod:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(31, 139, 116, 0.22);
}

.feature-column--left .feature-pod {
  flex-direction: row-reverse;
  text-align: right;
}

.feature-column--right .feature-pod {
  text-align: left;
}

.feature-pod__icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;
}

.feature-pod__icon img {
  width: 20px;
  height: 20px;
}

.feature-pod__copy {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}

.feature-device {
  position: relative;
  justify-self: center;
  width: min(320px, 70vw);
}

.device-halo {
  position: absolute;
  inset: -14% -18%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(31, 139, 116, 0.22),
    transparent 58%
  );
  filter: blur(18px);
  opacity: 0.9;
  z-index: 0;
}

.device-frame {
  position: relative;
  padding: 0.55rem;
  border-radius: 32px;
  background: linear-gradient(140deg, #0d1f24, #152c35 50%, #0d1f24);
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  z-index: 1;
}

.device-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  opacity: 0.6;
}

.device-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 16px;
  background: #0d1f24;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.device-screen {
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 9 / 19;
}

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

.theme-dark .feature-pod {
  background: var(--panel);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.theme-dark .feature-pod__icon {
  background: rgba(46, 209, 177, 0.12);
  box-shadow: inset 0 0 0 1px rgba(46, 209, 177, 0.18);
}

.theme-dark .device-frame {
  background: linear-gradient(140deg, #0c191f, #0f222b 50%, #0c191f);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.6);
}

.theme-dark .device-notch {
  background: #0c191f;
}

.theme-dark .device-halo {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(46, 209, 177, 0.24),
    transparent 58%
  );
}

body.rtl .feature-column--left {
  justify-items: start;
}

body.rtl .feature-column--left .feature-pod {
  flex-direction: row;
  text-align: left;
}

body.rtl .feature-column--right {
  justify-items: end;
}

body.rtl .feature-column--right .feature-pod {
  flex-direction: row-reverse;
  text-align: right;
}

.feature-tile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-dark .feature-tile {
  background: var(--panel);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.feature-tile::after {
  content: "";
  position: absolute;
  inset: -30% auto auto 40%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(31, 139, 116, 0.16),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.feature-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(31, 139, 116, 0.22);
}

.feature-tile:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(31, 139, 116, 0.12);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(31, 139, 116, 0.18);
}

.feature-icon img {
  width: 20px;
  height: 20px;
}

.feature-tile p {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}

.theme-dark .feature-icon {
  background: rgba(46, 209, 177, 0.12);
  box-shadow: inset 0 0 0 1px rgba(46, 209, 177, 0.18);
}

.theme-dark .feature-tile p {
  color: var(--ink);
}

.steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
}

.steps-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  position: relative;
  padding-inline-start: 0.4rem;
}

.steps-list::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 16px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(31, 139, 116, 0.35),
    rgba(31, 139, 116, 0.08)
  );
  border-radius: 99px;
}

body.rtl .steps-list::before {
  inset: 8px 16px 8px auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background: linear-gradient(
    120deg,
    rgba(31, 139, 116, 0.12),
    rgba(31, 139, 116, 0.03)
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border-color: rgba(31, 139, 116, 0.2);
}

.step:hover::after {
  opacity: 1;
}

.theme-dark .step {
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .step::after {
  background: linear-gradient(
    120deg,
    rgba(46, 209, 177, 0.1),
    rgba(46, 209, 177, 0.04)
  );
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(31, 139, 116, 0.1);
  display: grid;
  place-items: center;
  color: var(--primary-strong);
  font-weight: 700;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(31, 139, 116, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-number::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 12px;
  background: radial-gradient(
    circle,
    rgba(31, 139, 116, 0.16),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  animation: stepPulse 3s ease-in-out infinite;
}

.step:hover .step-number {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(31, 139, 116, 0.26),
    0 8px 18px rgba(15, 23, 42, 0.16);
}

.step:hover .step-number::after {
  opacity: 1;
}

.step strong {
  display: block;
  color: var(--ink);
}

.step p {
  font-size: 0.93rem;
  color: var(--muted);
}

.screens-marquee {
  position: relative;
  overflow: hidden;
  display: flex;
}

.screens-track {
  display: flex;
  gap: 1.85rem;
  align-items: center;
  padding: 2rem;
  flex-shrink: 0;
  min-width: 100%;
  width: max-content;
  will-change: transform;
}

.screens-track--primary {
  animation: screensMarquee 36s linear infinite;
}

.screens-track--secondary {
  animation: screensMarquee2 36s linear infinite;
}

.screens-marquee:hover .screens-track--primary,
.screens-marquee:hover .screens-track--secondary {
  animation-play-state: paused;
}

.screens-track img {
  width: 200px;
  height: auto;
  border-radius: 24px;
  border: none;
  box-shadow: 0 18px 20px rgba(15, 23, 42, 0.16);
  background: #000;
  flex-shrink: 0;
}

.theme-dark .screens-track img {
  box-shadow: 0 18px 20px rgba(0, 0, 0, 0.6);
}

body.rtl .screens-track--primary {
  animation-name: screensMarqueeRtl;
}

body.rtl .screens-track--secondary {
  animation-name: screensMarquee2Rtl;
}

.cta-block {
  border-radius: 24px;
  background: linear-gradient(135deg, #1f8b74, #0f7060 60%, #176a57 100%);
  color: #f5faf8;
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 24px 48px rgba(15, 112, 96, 0.32);
  text-align: center;
}

.cta-block .eyebrow {
  font-size: 0.85rem;
  opacity: 0.85;
  letter-spacing: 0.08em;
}

.cta-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.45rem 0 0.4rem;
}

.cta-text {
  font-size: 0.98rem;
  opacity: 0.9;
  max-width: 540px;
}

.cta-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center;
}

.cta-note {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.7rem;
}

.cta-visual {
  justify-self: center;
  text-align: center;
}

.cta-visual .pill {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ad-banner {
  padding: 3rem 0 2.2rem;
}

.ad-banner__card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "copy media";
  align-items: center;
  gap: 1.4rem 1.8rem;
  justify-items: stretch;
  padding: 2.1rem 2.3rem;
  border-radius: 22px;
  background: radial-gradient(circle at 12% 30%, rgba(31, 139, 116, 0.18), transparent 50%),
    radial-gradient(circle at 88% 70%, rgba(240, 193, 69, 0.18), transparent 48%),
    linear-gradient(120deg, rgba(31, 139, 116, 0.12), rgba(240, 193, 69, 0.12));
  border: 1px solid rgba(31, 139, 116, 0.16);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.ad-badge {
  grid-area: badge;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 139, 116, 0.12);
  color: var(--primary-strong);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.ad-media {
  grid-area: media;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-end;
  min-width: 160px;
  justify-self: end;
}

.ad-title {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.ad-text {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
  margin: 0.1rem 0 0;
  max-width: 100%;
  line-height: 1.7;
}

.ad-copy {
  grid-area: copy;
  display: grid;
  gap: 0.35rem;
  text-align: left;
  justify-self: start;
}

.ad-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.16));
}

.theme-dark .ad-banner__card {
  background: radial-gradient(circle at 12% 30%, rgba(46, 209, 177, 0.18), transparent 50%),
    radial-gradient(circle at 88% 70%, rgba(245, 204, 95, 0.18), transparent 48%),
    linear-gradient(120deg, rgba(46, 209, 177, 0.12), rgba(245, 204, 95, 0.12));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.theme-dark .ad-badge {
  background: rgba(46, 209, 177, 0.12);
  color: var(--ink);
}

.ad-copy .lang-en {
  display: block;
}

.ad-copy .lang-ar {
  display: none;
}

body.lang-ar .ad-copy {
  text-align: right;
  direction: rtl;
}

body.rtl .ad-copy .lang-en,
body.lang-ar .ad-copy .lang-en {
  display: none;
}

body.rtl .ad-copy .lang-ar,
body.lang-ar .ad-copy .lang-ar {
  display: block;
}
.theme-dark .cta-block {
  background: linear-gradient(135deg, #2ed1b1, #1ba58d 60%, #128c74 100%);
  color: #e9eff2;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
}

.footer {
  padding: 1.6rem 0 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer a {
  color: var(--primary-strong);
  font-weight: 600;
}

/* Circular icon-only toggle buttons */
.switcher-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.switcher-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.switcher-btn:hover {
  background: rgba(31, 139, 116, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.switcher-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.theme-dark .switcher-btn {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-dark .switcher-btn:hover {
  background: rgba(46, 209, 177, 0.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Language toggle button */
.switcher-btn--lang {
  font-weight: 700;
  font-size: 0.85rem;
}

.switcher-btn--lang .lang-text {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-weight: 700;
  font-size: 0.85rem;
}

.switcher-btn--lang .lang-text--en {
  opacity: 1;
  transform: scale(1);
}

.switcher-btn--lang .lang-text--ar {
  opacity: 0;
  transform: scale(0.8);
}

body.rtl .switcher-btn--lang .lang-text--en,
body.lang-ar .switcher-btn--lang .lang-text--en {
  opacity: 0;
  transform: scale(0.8);
}

body.rtl .switcher-btn--lang .lang-text--ar,
body.lang-ar .switcher-btn--lang .lang-text--ar {
  opacity: 1;
  transform: scale(1);
}

/* Theme toggle button */
.switcher-btn--theme .theme-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.switcher-btn--theme .theme-icon--light {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.switcher-btn--theme .theme-icon--dark {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

.theme-dark .switcher-btn--theme .theme-icon--light {
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

.theme-dark .switcher-btn--theme .theme-icon--dark {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.lang-ar {
  font-family: "Tajawal", "Poppins", "Space Grotesk", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rtl {
  direction: rtl;
}

body.rtl .nav-bar,
body.rtl .hero-actions,
body.rtl .hero-metrics,
body.rtl .feature-layout,
body.rtl .steps-grid,
body.rtl .cta-actions {
  direction: rtl;
}

body.rtl .nav-links,
body.rtl .hero-actions,
body.rtl .hero-metrics,
body.rtl .cta-actions,
body.rtl .steps-list {
  justify-content: flex-start;
}

[data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes heroFlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 12% 18%, 82% 10%, 30% 82%, 78% 72%, 52% 48%;
  }
  45% {
    transform: translate3d(16px, -18px, 0) scale(1.1);
    background-position: 8% 26%, 90% 16%, 22% 78%, 84% 58%, 44% 44%;
  }
  50% {
    transform: translate3d(6px, -10px, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-14px, 16px, 0) scale(1.06);
    background-position: 16% 14%, 74% 12%, 36% 86%, 70% 78%, 58% 52%;
  }
}

@keyframes featureFlare {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(-6%, -8%, 0) scale(1.08);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(8%, 10%, 0) scale(1.04);
    opacity: 0.7;
  }
}

@keyframes featureSweep {
  0% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 60% 0%;
  }
  100% {
    background-position: 100% 60%;
  }
}

@keyframes screensMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes screensMarquee2 {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes screensMarqueeRtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes screensMarquee2Rtl {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes stepPulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
}

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
  .container {
    width: min(1280px, calc(100% - 3rem));
  }
  
  .hero-grid {
    gap: clamp(3rem, 8vw, 10rem);
  }
  
  .section {
    padding: 5.5rem 0;
  }
}

/* Desktop (1025px - 1399px) */
@media (min-width: 1025px) and (max-width: 1399px) {
  .container {
    width: min(1120px, calc(100% - 2.5rem));
  }
}

/* Tablet Landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    width: min(100%, calc(100% - 2rem));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    text-align: center;
  }

  .hero-media {
    justify-self: center;
    max-width: 380px;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: nowrap;
  }

  .feature-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    justify-items: center;
  }

  .feature-column {
    justify-items: center;
    width: 100%;
  }

  .feature-pod {
    width: 100%;
    max-width: 500px;
    flex-direction: row;
    text-align: left;
  }

  .feature-column--left .feature-pod {
    flex-direction: row;
    text-align: left;
  }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .cta-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-title {
    font-size: 1.65rem;
  }

  .screens-track img {
    width: 180px;
  }

  .nav-links {
    justify-content: center;
  }
}

/* Tablet Portrait (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  .container {
    width: min(100%, calc(100% - 1.8rem));
  }

  .nav-bar {
    flex-wrap: wrap;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 2;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.5rem;
    z-index: 99;
    margin-top: 0.5rem;
  }

  .theme-dark .nav-links {
    background: #0f1b22;
  }

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

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    justify-content: flex-start;
  }

  .nav-links .nav-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    flex-direction: row;
    gap: 0.5rem;
  }

  .nav-links .nav-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .hero {
    padding: calc(2.5rem + var(--nav-height)) 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-media {
    justify-self: center;
    max-width: 320px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .store-badge {
    width: 100%;
    min-width: auto;
  }

  .feature-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-column {
    justify-items: stretch;
  }

  .feature-pod {
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    text-align: left;
    padding: 1rem;
  }

  .feature-column--left .feature-pod,
  .feature-column--right .feature-pod {
    flex-direction: row;
    text-align: left;
  }

  .feature-device {
    width: min(280px, 80vw);
    order: -1;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cta-block {
    padding: 2rem 1.6rem;
  }

  .cta-title {
    font-size: 1.4rem;
  }

  .screens-track img {
    width: 160px;
  }

  .ad-banner__card {
    padding: 1.2rem 1.4rem;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media";
    justify-items: center;
    text-align: center;
  }

  .ad-media {
    align-items: center;
  }

  .ad-copy {
    text-align: center;
  }
}

/* Mobile Landscape (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
  .container {
    width: min(100%, calc(100% - 1.5rem));
  }

  .nav-bar {
    flex-wrap: wrap;
    padding: 0.75rem 0.25rem;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 2;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.5rem;
    z-index: 99;
    margin-top: 0.5rem;
  }

  .theme-dark .nav-links {
    background: #0f1b22;
  }

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

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    justify-content: flex-start;
  }

  .nav-links .nav-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    flex-direction: row;
    gap: 0.5rem;
  }

  .nav-links .nav-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .brand-tag {
    font-size: 0.75rem;
  }

  .hero {
    padding: calc(2rem + var(--nav-height)) 0 2.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
    margin: 0.4rem 0 0.3rem;
  }

  .hero-lead {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.2rem 0 0.9rem;
  }

  .store-badge {
    width: 100%;
    min-width: auto;
    padding: 0.7rem 0.9rem;
  }

  .hero-media {
    max-width: 280px;
  }

  .screen-card {
    max-width: 280px;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 1.8rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-text {
    font-size: 0.92rem;
  }

  .feature-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 1.5rem;
  }

  .feature-pod {
    width: 100%;
    padding: 0.9rem;
    flex-direction: row;
    gap: 0.7rem;
  }

  .feature-pod__icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .feature-pod__copy {
    font-size: 0.9rem;
  }

  .feature-device {
    width: min(260px, 75vw);
    order: -1;
    margin-bottom: 1rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .step {
    padding: 0.8rem 0.9rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .step strong {
    font-size: 0.95rem;
  }

  .step p {
    font-size: 0.88rem;
  }

  .cta-block {
    padding: 1.8rem 1.3rem;
  }

  .cta-title {
    font-size: 1.3rem;
  }

  .cta-text {
    font-size: 0.92rem;
  }

  .cta-actions {
    flex-direction: column;
    gap: 0.7rem;
  }

  .screens-track {
    gap: 1.2rem;
    padding: 1.5rem;
  }

  .screens-track img {
    width: 140px;
  }

  .ad-banner {
    padding: 2rem 0 1.5rem;
  }

  .ad-banner__card {
    padding: 1.1rem 1.2rem;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media";
    justify-items: center;
    text-align: center;
  }

  .ad-media {
    align-items: center;
  }

  .ad-copy {
    text-align: center;
  }

  .ad-text {
    font-size: 0.98rem;
  }

  .footer {
    padding: 1.4rem 0 1.8rem;
    font-size: 0.8rem;
  }
}

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
  .container {
    width: min(100%, calc(100% - 1.2rem));
  }

  .nav-bar {
    flex-wrap: wrap;
    padding: 0.7rem 0.25rem;
    gap: 0.6rem;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-tag {
    font-size: 0.7rem;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 2;
    width: 28px;
    height: 28px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 0.9rem;
    gap: 0.4rem;
    z-index: 99;
    margin-top: 0.5rem;
  }

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

  .nav-links a {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    justify-content: flex-start;
  }

  .nav-links .nav-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border);
    flex-direction: row;
    gap: 0.5rem;
  }

  .nav-links .nav-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .switcher-btn {
    width: 40px;
    height: 40px;
  }

  .switcher-btn--lang .lang-text {
    font-size: 0.8rem;
  }

  .switcher-btn--theme .theme-icon {
    width: 18px;
    height: 18px;
  }

  .btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    min-height: 40px;
  }

  .hero {
    padding: calc(1.8rem + var(--nav-height)) 0 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
    margin: 0.35rem 0 0.25rem;
    line-height: 1.3;
  }

  .hero-lead {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.7rem;
    margin: 1rem 0 0.8rem;
  }

  .store-badge {
    width: 100%;
    min-width: auto;
    padding: 0.65rem 0.85rem;
    min-height: 56px;
  }

  .store-icon {
    width: 34px;
    height: 34px;
  }

  .store-icon img {
    width: 18px;
    height: 18px;
  }

  .store-label {
    font-size: 0.72rem;
  }

  .store-name {
    font-size: 0.9rem;
  }

  .hero-media {
    max-width: 240px;
    padding-left: 0;
  }

  .screen-card {
    max-width: 240px;
    border-radius: 18px;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-kicker {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 0.45rem;
  }

  .section-text {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .feature-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.2rem;
  }

  .feature-pod {
    width: 100%;
    padding: 0.85rem;
    flex-direction: row;
    gap: 0.65rem;
    border-radius: 14px;
  }

  .feature-pod__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .feature-pod__icon img {
    width: 18px;
    height: 18px;
  }

  .feature-pod__copy {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .feature-device {
    width: min(240px, 70vw);
    order: -1;
    margin-bottom: 0.8rem;
  }

  .device-frame {
    padding: 0.45rem;
    border-radius: 28px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .steps-list {
    gap: 0.6rem;
  }

  .step {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
  }

  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .step strong {
    font-size: 0.9rem;
  }

  .step p {
    font-size: 0.85rem;
  }

  .cta-block {
    padding: 1.6rem 1.1rem;
    border-radius: 20px;
  }

  .cta-block .eyebrow {
    font-size: 0.78rem;
  }

  .cta-title {
    font-size: 1.2rem;
    margin: 0.4rem 0 0.35rem;
  }

  .cta-text {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .cta-actions {
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.9rem;
  }

  .cta-note {
    font-size: 0.78rem;
    margin-top: 0.6rem;
  }

  .screens-marquee {
    margin: 0 -1.2rem;
  }

  .screens-track {
    gap: 1rem;
    padding: 1.2rem;
  }

  .screens-track img {
    width: 120px;
    border-radius: 20px;
  }

  .ad-banner {
    padding: 1.8rem 0 1.3rem;
  }

  .ad-banner__card {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media";
    justify-items: center;
    text-align: center;
  }

  .ad-media {
    align-items: center;
  }

  .ad-copy {
    text-align: center;
  }

  .ad-badge {
    font-size: 0.78rem;
    padding: 0.2rem 0.7rem;
  }

  .ad-text {
    font-size: 0.92rem;
  }

  .ad-logo {
    height: 36px;
  }

  .footer {
    padding: 1.2rem 0 1.5rem;
    font-size: 0.75rem;
    line-height: 1.6;
  }
}

/* Very Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
  .container {
    width: min(100%, calc(100% - 1rem));
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .cta-title {
    font-size: 1.1rem;
  }

  .screens-track img {
    width: 110px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .store-badge,
  .nav-links a,
  .switcher-btn {
    -webkit-tap-highlight-color: rgba(31, 139, 116, 0.1);
  }

  .feature-pod:hover,
  .step:hover {
    transform: none;
  }

  .store-badge:active {
    transform: scale(0.98);
  }

  .btn:active {
    transform: scale(0.98);
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .brand-mark img,
  .store-icon img,
  .feature-pod__icon img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: calc(1.5rem + var(--nav-height)) 0 2rem;
  }

  .section {
    padding: 2rem 0;
  }

  .nav-links {
    max-height: 60vh;
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}
