:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef4fb;
  --ink: #12253d;
  --muted: #557089;
  --primary: #0d4d82;
  --primary-dark: #09375e;
  --accent: #ff5f4b;
  --line: rgba(13, 77, 130, 0.15);
  --shadow: 0 16px 36px rgba(12, 47, 81, 0.14);
  --container: min(1120px, 91vw);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% -5%, rgba(255, 95, 75, 0.14), transparent 35%),
    radial-gradient(circle at 90% 2%, rgba(13, 77, 130, 0.14), transparent 38%),
    var(--bg);
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: "Noto Sans Arabic", sans-serif;
  text-align: right;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
  animation: drift 14s ease-in-out infinite;
}

body::before {
  background: #ffd5d0;
  left: -120px;
  top: 22%;
}

body::after {
  background: #d4e7fb;
  right: -110px;
  bottom: 12%;
  animation-delay: 4s;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-16px) scale(1.06);
  }
}

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

.topbar .container {
  width: 100%;
  max-width: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  padding-top: 0;
}

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ff7f69, #0d4d82 45%, #5ea2da 100%);
  opacity: 0.8;
}

.topbar-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 24px;
  border-radius: 0;
  border: 1px solid rgba(13, 77, 130, 0.16);
  border-left: 0;
  border-right: 0;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(247, 250, 253, 0.95), rgba(240, 246, 252, 0.86));
  box-shadow: 0 12px 22px rgba(13, 77, 130, 0.11);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  height: 48px;
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: none;
  display: block;
}

.brand-sub {
  color: #466787;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  transform: translateY(3px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(13, 77, 130, 0.18);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(13, 77, 130, 0.08);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--primary);
  border-radius: 999px;
  min-width: 42px;
  min-height: 32px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.lang-btn.is-active {
  background: linear-gradient(130deg, var(--primary), #0f5f9f);
  color: #fff;
  box-shadow: 0 8px 16px rgba(13, 77, 130, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, var(--primary), #0f5f9f);
  box-shadow: 0 10px 24px rgba(13, 77, 130, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(13, 77, 130, 0.34);
}

.btn-outline {
  color: var(--primary);
  border-color: rgba(13, 77, 130, 0.35);
  background: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: #fff;
}

.btn-light {
  color: var(--primary);
  background: #fff;
}

.hero {
  padding: 68px 0 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 14px;
}

.eyebrow-icon {
  height: 24px;
  width: auto;
  max-width: none;
  border-radius: 7px;
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(13, 77, 130, 0.2);
}

h1,
h2,
h3,
summary {
  font-family: "Outfit", sans-serif;
  line-height: 1.14;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] summary {
  font-family: "Noto Sans Arabic", sans-serif;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  max-width: 12ch;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-copy {
  color: var(--muted);
  font-size: 18px;
  max-width: 56ch;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: rgba(13, 77, 130, 0.09);
  border: 1px solid rgba(13, 77, 130, 0.2);
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.phone-card {
  background: linear-gradient(140deg, #0f2b47, #124069);
  color: #edf4fc;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  animation: floatCard 5.6s ease-in-out infinite;
}

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

.phone-card h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.phone-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.phone-card li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  font-size: 14px;
}

.phone-card li strong {
  font-size: 16px;
}

.status-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(237, 244, 252, 0.86);
}

.challenge-section {
  position: relative;
  overflow: hidden;
}

.challenge-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 95, 75, 0.08), transparent 26%),
    radial-gradient(circle at 90% 85%, rgba(13, 77, 130, 0.08), transparent 28%);
  pointer-events: none;
}

.challenge-section .container {
  position: relative;
}

.section {
  padding: 74px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(238, 244, 251, 0.74));
  border-top: 1px solid rgba(13, 77, 130, 0.08);
  border-bottom: 1px solid rgba(13, 77, 130, 0.08);
}

.section-head {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.problem-card,
.solution-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 77, 130, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 28px rgba(13, 77, 130, 0.08);
}

.problem-card {
  padding: 24px;
}

.problem-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 95, 75, 0.12);
  color: #b54536;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.problem-card h3,
.solution-panel h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.problem-list,
.solution-list {
  list-style: none;
}

.problem-list {
  display: grid;
  gap: 12px;
}

.problem-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 95, 75, 0.14);
}

.solution-panel {
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(13, 77, 130, 0.08), rgba(255, 255, 255, 0.95)),
    rgba(255, 255, 255, 0.94);
}

.solution-head {
  max-width: 760px;
  margin-bottom: 18px;
}

.solution-head p {
  color: var(--muted);
}

.solution-label {
  background: rgba(13, 77, 130, 0.12);
  color: var(--primary);
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
}

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(13, 77, 130, 0.1);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(13, 77, 130, 0.05);
}

.solution-list li::before {
  content: "+";
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 10px 22px rgba(13, 77, 130, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 28px rgba(13, 77, 130, 0.13);
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 22px rgba(13, 77, 130, 0.08);
}

.panel h2 {
  font-size: 32px;
  margin-bottom: 9px;
}

.panel p {
  color: var(--muted);
  margin-bottom: 14px;
}

.lang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--surface-2);
  color: var(--primary);
  border: 1px solid rgba(13, 77, 130, 0.15);
  font-size: 12px;
  font-weight: 700;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.share-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: 0 10px 22px rgba(13, 77, 130, 0.08);
}

.share-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.share-card p {
  color: var(--muted);
}

.download-wrap {
  background: linear-gradient(140deg, rgba(13, 77, 130, 0.1), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(13, 77, 130, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 14px 28px rgba(13, 77, 130, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.download-wrap h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 8px;
}

.download-wrap p {
  color: var(--muted);
  max-width: 58ch;
}

.store-links {
  width: min(580px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.store-btn {
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(13, 77, 130, 0.18);
  border-radius: 14px;
  min-height: 76px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  align-content: center;
  box-shadow: 0 8px 18px rgba(13, 77, 130, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 77, 130, 0.36);
  box-shadow: 0 12px 22px rgba(13, 77, 130, 0.14);
}

.store-label {
  font-size: 11px;
  color: #5a7590;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="ar"] .brand-sub,
html[lang="ar"] .eyebrow,
html[lang="ar"] .section-kicker,
html[lang="ar"] .problem-label,
html[lang="ar"] .store-label,
html[lang="ar"] .lang-btn {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .topbar-inner {
  flex-direction: row;
}

html[dir="rtl"] .problem-list li {
  padding-left: 0;
  padding-right: 20px;
}

html[dir="rtl"] .problem-list li::before {
  left: auto;
  right: 0;
}

.store-btn strong {
  font-size: 18px;
  font-family: "Outfit", sans-serif;
  line-height: 1.2;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: 0 8px 18px rgba(13, 77, 130, 0.06);
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
}

details[open] summary::after {
  content: "x";
}

details p {
  margin-top: 10px;
  color: var(--muted);
}

.cta {
  background: linear-gradient(125deg, var(--primary), #0f629f);
  color: #f6fbff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 18px 36px rgba(13, 77, 130, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 6px;
}

.cta p {
  color: rgba(246, 251, 255, 0.9);
}

.footer {
  padding: 38px 0 34px;
}

.footer-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 77, 130, 0.14);
}

.footer-logo {
  height: 62px;
  width: auto;
  max-width: none;
  display: block;
}

.footer p,
.footer a {
  color: #5d7891;
  text-decoration: none;
  font-weight: 600;
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: #7891a7;
  margin-top: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1040px) {
  .hero-grid,
  .two-col,
  .feature-grid,
  .share-grid,
  .problem-grid,
  .solution-list {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-links {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1120px, 94vw);
  }

  .topbar {
    padding-top: 0;
  }

  .topbar-inner {
    min-height: 70px;
    padding: 10px 14px;
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .brand-logo {
    height: 40px;
  }

  .brand-sub {
    display: none;
  }

  .lang-btn {
    min-width: 38px;
    min-height: 30px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .hero {
    padding: 42px 0 28px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(30px, 9vw, 40px);
  }

  .hero-copy {
    font-size: 16px;
    margin-bottom: 18px;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .chip-row {
    gap: 6px;
  }

  .chip {
    font-size: 11px;
    padding: 6px 10px;
  }

  .phone-card {
    padding: 18px;
    animation: none;
  }

  .phone-card li {
    display: block;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .section-head p {
    font-size: 15px;
  }

  .feature-card,
  .panel,
  .share-card,
  .problem-card,
  .solution-panel,
  .download-wrap,
  details {
    padding: 16px;
  }

  .feature-card h3,
  .share-card h3 {
    font-size: 22px;
  }

  .panel h2 {
    font-size: 28px;
  }

  .phone-card h2 {
    font-size: 24px;
  }

  .problem-card h3,
  .solution-panel h3 {
    font-size: 24px;
  }

  .status-line {
    flex-direction: column;
  }

  .store-btn {
    min-height: 72px;
  }

  .store-btn strong {
    font-size: 16px;
  }

  .cta {
    padding: 20px;
  }

  .btn-light {
    width: 100%;
  }

  .footer-logo {
    height: 48px;
  }
}

@media (max-width: 420px) {
  .topbar-inner {
    min-height: 64px;
    padding: 8px 12px;
  }

  .header-actions {
    gap: 6px;
  }

  .brand-logo {
    height: 34px;
  }

  .hero h1 {
    font-size: clamp(28px, 10.2vw, 34px);
  }

  .chip-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .chip {
    text-align: center;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
