@font-face {
  font-family: 'Tajawal';
  src: url('/assets/fonts/Tajawal-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/assets/fonts/Tajawal-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/assets/fonts/Tajawal-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/assets/fonts/Tajawal-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/assets/fonts/Tajawal-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/assets/fonts/Tajawal-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/assets/fonts/Tajawal-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f3f8fa;
}

button,
a {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.landing-page {
  /* Light Theme Variables */
  --page-bg: #f3f8fa;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #0b1f28;
  --muted: #4e6672;
  --primary: #008080;
  --primary-rgb: 0, 128, 128;
  --primary-glow: rgba(0, 128, 128, 0.15);
  --accent: #d35400;
  --accent-rgb: 211, 84, 0;
  --line: rgba(0, 128, 128, 0.12);
  --shadow: 0 30px 70px rgba(11, 31, 40, 0.08);
  --soft-shadow: 0 15px 35px rgba(0, 128, 128, 0.06);
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --font-sans: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  min-height: 100dvh;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 128, 128, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(211, 84, 0, 0.04) 0%, transparent 40%),
    var(--page-bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #040e14;
  }

  .landing-page {
    --page-bg: #040e14;
    --surface: rgba(9, 29, 41, 0.75);
    --surface-strong: #0c2433;
    --text: #eaf2f5;
    --muted: #8caec0;
    --primary: #00ebd3;
    --primary-rgb: 0, 235, 211;
    --primary-glow: rgba(0, 235, 211, 0.15);
    --accent: #ff7e39;
    --accent-rgb: 255, 126, 57;
    --line: rgba(0, 235, 211, 0.15);
    --shadow: 0 30px 70px rgba(2, 6, 8, 0.6);
    --soft-shadow: 0 15px 35px rgba(0, 235, 211, 0.05);
    background:
      radial-gradient(circle at 10% 20%, rgba(0, 235, 211, 0.07) 0%, transparent 45%),
      radial-gradient(circle at 90% 80%, rgba(255, 126, 57, 0.05) 0%, transparent 40%),
      var(--page-bg);
  }
}

.landing-page *,
.landing-page *::before,
.landing-page *::after {
  box-sizing: border-box;
}

.landing-page a {
  color: inherit;
  text-decoration: none;
}

.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;
}

/* Background animated elements */
.landing-background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: 
    linear-gradient(rgba(var(--primary-rgb), 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
  z-index: 0;
}

/* Navigation bar */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 75%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.landing-brand img {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-nav-links a {
  border-radius: var(--border-radius-md);
  padding: 0.6rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-nav-links a:hover,
.landing-nav-links a:focus-visible {
  background: var(--primary-glow);
  color: var(--primary);
  outline: none;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.landing-icon-button {
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--border-radius-md);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.landing-icon-button:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.landing-icon-button:active {
  transform: translateY(0);
}

/* Main Layout Grid */
.landing-main {
  position: relative;
  z-index: 1;
}

.landing-hero,
.landing-section,
.landing-footer,
.policy-hero,
.policy-content {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 3rem);
}

/* Hero Section */
.landing-hero {
  min-height: calc(90dvh - 5rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem) 4rem;
}

.landing-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .landing-hero-copy {
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 1.2rem 0;
}

[dir="rtl"] .eyebrow {
  text-transform: none;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hero-title {
  margin: 0 0 1.2rem 0;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--text) 50%, color-mix(in srgb, var(--text) 40%, var(--primary)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text); /* fallback for browsers without clip support */
}

.hero-subtitle {
  margin: 0 0 2.2rem 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.65;
  font-weight: 400;
  max-width: 38rem;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3rem;
  width: 100%;
}

.download-button,
.store-button,
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--surface);
  color: var(--text);
}

.download-button {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 80%, #000000));
  color: #040e14;
  border-color: transparent;
  box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.25);
}

@media (prefers-color-scheme: dark) {
  .download-button {
    color: #040e14;
  }
}

.product-link-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 1.5rem;
}

.product-link-main {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
}

.product-link-card {
  padding: clamp(1.5rem, 6vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--border-radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  text-align: center;
}

.product-link-card > img {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.product-link-card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.product-link-card > p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.8;
}

.product-link-stores {
  justify-content: center;
  margin-top: 1.75rem;
}

.product-link-stores .store-button {
  min-width: min(100%, 13rem);
}

.product-link-home {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--primary) !important;
  font-weight: 700;
}

.download-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.35);
  background: var(--primary);
}

.store-button {
  opacity: 0.65;
  cursor: not-allowed;
  position: relative;
}

.store-button .soon-pill {
  position: absolute;
  top: -10px;
  right: -5px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
}

[dir="rtl"] .store-button .soon-pill {
  right: auto;
  left: -5px;
}

.button-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.button-copy span {
  font-size: 0.95rem;
}

.button-copy small {
  font-size: 0.72rem;
  opacity: 0.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Premium Visual App Presentation */
.landing-visual {
  position: relative;
  min-height: 32rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade-in-up 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-visual::after {
  content: "";
  position: absolute;
  bottom: -40px;
  width: 120%;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(var(--primary-rgb), 0.08));
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.phone-shell {
  width: 100%;
  max-width: 17.5rem;
  border: 10px solid #0c2433;
  border-radius: 36px;
  background: #000000;
  box-shadow: 0 25px 55px rgba(2, 6, 8, 0.4);
  position: relative;
  aspect-ratio: 9/18.5;
  display: flex;
  flex-direction: column;
  z-index: 5;
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

[dir="rtl"] .phone-shell {
  transform: rotate(-2deg);
}

.landing-visual:hover .phone-shell {
  transform: rotate(0deg) scale(1.02);
}

@media (prefers-color-scheme: dark) {
  .phone-shell {
    border-color: #123447;
  }
}

.phone-screen {
  flex: 1;
  border-radius: 26px;
  background: #040e14;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
  padding: 0.85rem;
  color: #eaf2f5;
  gap: 0.85rem;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
}

.phone-logo {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
}

.phone-chip {
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid var(--primary);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.phone-catalog-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.phone-card-image {
  height: 5.5rem;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25), rgba(var(--accent-rgb), 0.12));
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}

.phone-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-card-badge {
  background: rgba(230, 126, 34, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 0.55rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.phone-card-price {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

/* Route Line and Courier Animation */
.route-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  position: relative;
  margin-block: 0.2rem;
}

.route-dot {
  font-size: 0.95rem;
  z-index: 2;
}

.route-path {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 4px, transparent 4px 8px);
  margin-inline: 0.5rem;
  opacity: 0.4;
  position: relative;
}

.route-courier {
  font-size: 1.1rem;
  position: absolute;
  left: 20%;
  transform: translateY(-50%);
  animation: deliver-scooter 6s infinite ease-in-out alternate;
  z-index: 3;
}

[dir="rtl"] .route-courier {
  transform: translateY(-50%) scaleX(-1);
  animation: deliver-scooter-rtl 6s infinite ease-in-out alternate;
}

@keyframes deliver-scooter {
  0% { left: 18%; }
  100% { left: 72%; }
}

@keyframes deliver-scooter-rtl {
  0% { left: 72%; }
  100% { left: 18%; }
}

.phone-delivery-status {
  text-align: center;
  margin-top: auto;
  padding-bottom: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.phone-delivery-status strong {
  font-size: 0.78rem;
  color: #ffffff;
}

.phone-delivery-status small {
  font-size: 0.65rem;
  color: var(--muted);
}

/* Floating elements */
.fish {
  position: absolute;
  width: 4rem;
  height: 1.8rem;
  opacity: 0.35;
  border-radius: 50% 60% 60% 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  clip-path: polygon(0 50%, 22% 9%, 74% 8%, 100% 50%, 74% 92%, 22% 91%);
  animation: float-fish 10s ease-in-out infinite;
  z-index: 1;
}

.fish::after {
  content: "";
  position: absolute;
  inset: 38% 16% auto auto;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #ffffff;
}

.fish-one {
  top: 15%;
  left: 8%;
  animation-duration: 9s;
}

.fish-two {
  bottom: 22%;
  left: 12%;
  width: 3.2rem;
  height: 1.4rem;
  animation-delay: -3s;
  animation-duration: 12s;
}

.fish-three {
  bottom: 15%;
  right: 8%;
  width: 2.8rem;
  height: 1.2rem;
  animation-delay: -6s;
  animation-duration: 8s;
}

[dir="rtl"] .fish {
  transform: scaleX(-1);
}

@keyframes float-fish {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -8px); }
}

/* Bento capabilities grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.menu-card {
  min-height: 14rem;
  border: 1px solid var(--line);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px var(--primary-glow);
}

.menu-card-visual {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: var(--border-radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: var(--soft-shadow);
  transition: all 0.35s ease;
}

[dir="rtl"] .menu-card-visual {
  left: auto;
  right: 2rem;
}

.menu-card:hover .menu-card-visual {
  border-color: var(--primary);
  background: var(--primary);
  color: #040e14;
}

.menu-card h3 {
  margin: 0 0 0.6rem 0;
  font-size: 1.22rem;
  font-weight: 800;
}

.menu-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* About Section */
.landing-section {
  padding-block: clamp(4rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 0.8rem 0;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

[dir="rtl"] .section-kicker {
  text-transform: none;
  letter-spacing: 0;
}

.section-title {
  margin: 0 0 1.5rem 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1px;
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.about-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--border-radius-md);
  padding: 1.2rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: var(--soft-shadow);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.about-list li:hover {
  transform: translateX(5px);
  border-color: var(--primary);
}

[dir="rtl"] .about-list li:hover {
  transform: translateX(-5px);
}

.about-list li::before {
  content: "✦";
  color: var(--primary);
  font-size: 1.1rem;
}

/* Contact Panel */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--border-radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.whatsapp-button {
  width: fit-content;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.35);
}

.email-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.email-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  width: fit-content;
  transition: all 0.25s ease;
}

.email-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

[dir="rtl"] .email-link:hover {
  transform: translateX(-4px);
}

/* Footer styles */
.landing-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.landing-footer strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 0.4rem;
}

.landing-footer p {
  margin: 0 0 0.8rem 0;
}

.landing-footer small {
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Policy Pages Layout */
.policy-app-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  position: relative;
  width: 100%;
  padding-inline: clamp(1.2rem, 5vw, 3rem);
}

.policy-sidebar {
  width: 280px;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 2rem 1.5rem 2rem 0;
  transition: border-color 0.3s;
}

[dir="rtl"] .policy-sidebar {
  border-right: none;
  border-left: 1px solid var(--line);
  padding: 2rem 0 2rem 1.5rem;
}

.toc-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 700;
}

[dir="rtl"] .toc-title {
  text-transform: none;
  letter-spacing: 0;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.toc-link {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

[dir="rtl"] .toc-link {
  border-left: none;
  border-right: 2px solid transparent;
}

.toc-link:hover {
  color: var(--primary);
  background-color: var(--primary-glow);
}

.toc-link.active {
  color: var(--primary);
  background-color: var(--primary-glow);
  font-weight: 600;
  border-left-color: var(--primary);
}

[dir="rtl"] .toc-link.active {
  border-left-color: transparent;
  border-right-color: var(--primary);
}

.policy-main-content {
  flex: 1;
  padding: 2rem 0 5rem 3rem;
  max-width: calc(800px + 4rem);
  width: 100%;
}

[dir="rtl"] .policy-main-content {
  padding: 2rem 3rem 5rem 0;
}

.policy-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.policy-hero-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.policy-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.policy-download-btn {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  /* Force color so .landing-page a { color: inherit } doesn't override it */
  color: #040e14 !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  margin-left: 0.4rem;
  transition: opacity 0.2s;
}

/* In light mode primary is dark teal. Dark mode overrides it with a light teal. */
.policy-download-btn {
  color: #ffffff !important;
}

@media (prefers-color-scheme: dark) {
  .policy-download-btn {
    color: #040e14 !important;
  }
}

[dir="rtl"] .policy-download-btn {
  margin-left: 0;
  margin-right: 0.4rem;
}

.policy-download-btn:hover {
  opacity: 0.85;
}


.policy-hero-section h1 {
  margin: 0 0 0.5rem 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
}

.policy-subtitle-text {
  font-size: 1rem;
  color: var(--muted);
}

.policy-sections-list {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.policy-content-block h2 {
  margin: 0 0 1rem 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
}

.policy-content-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
  font-size: 0.98rem;
  white-space: pre-line;
}

.policy-disclosure-box {
  background-color: var(--primary-glow);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  color: var(--text);
}

[dir="rtl"] .policy-disclosure-box {
  border-left: none;
  border-right: 4px solid var(--primary);
}

.policy-disclosure-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.policy-disclosure-box p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-line;
}

.policy-card-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  text-align: center;
}

.policy-card-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Keyframes animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .policy-app-container {
    flex-direction: column;
  }

  .policy-sidebar {
    display: none;
  }

  .policy-main-content {
    max-width: 100%;
    padding: 2rem 0;
  }

  .policy-card {
    padding: 2rem 1.5rem;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-top: 2rem;
  }
  
  .landing-hero-copy {
    align-items: center;
    text-align: center;
  }
  
  [dir="rtl"] .landing-hero-copy {
    align-items: center;
  }
  
  .hero-subtitle {
    margin-inline: auto;
  }
  
  .download-row {
    justify-content: center;
  }
  
  .hero-stats {
    max-width: 40rem;
    margin-inline: auto;
  }
  
  .landing-visual {
    max-width: 32rem;
    margin-inline: auto;
    width: 100%;
  }

  .about-panel,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .menu-card--2 {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .landing-nav {
    flex-direction: column;
    padding-block: 1rem;
    gap: 1rem;
  }
  
  .landing-nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .menu-grid {
    grid-template-columns: 1fr;
  }
  
  .menu-card--2 {
    grid-column: span 1;
  }
  
  .contact-actions {
    align-items: center;
  }
  
  .landing-footer {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .download-button,
  .store-button,
  .whatsapp-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page *,
  .landing-page *::before,
  .landing-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
