/* Submarine — brand tokens & landing layout */

:root {
  --navy: #082b5b;
  --navy-deep: #061d40;
  --gold: #ffc400;
  --white: #ffffff;
  --cloud: #f3f6fa;
  --slate: #26364b;
  --muted: #65758b;
  --border: #dce4ee;

  --font-ar: "IBM Plex Sans Arabic", sans-serif;
  --font-en: "Plus Jakarta Sans", sans-serif;

  --radius-button: 10px;
  --container-max: 1120px;
  --section-space: clamp(4rem, 8vw, 5.5rem);
  --header-h: 4.25rem;
  --shadow-soft: 0 8px 30px rgba(8, 43, 91, 0.08);
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  font-family: var(--font-en);
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-button);
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 720px);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-button);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

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

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

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(255, 196, 0, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 10px 28px rgba(255, 196, 0, 0.38);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--sm {
  min-height: 2.35rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 8px;
}

.logo-word {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-transform: lowercase;
  direction: ltr;
  unicode-bidi: isolate;
}

.logo-word::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-inline-start: 0.05em;
  margin-bottom: 0.05em;
  vertical-align: middle;
  background: var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.logo-word--light {
  color: var(--white);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.lang-toggle:hover {
  border-color: var(--navy);
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.lang-toggle__active {
  color: var(--navy);
}

.lang-toggle__sep {
  color: var(--muted);
}

.lang-toggle__idle {
  color: var(--muted);
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 29, 64, 0.35) 0%, rgba(6, 29, 64, 0.55) 40%, rgba(6, 29, 64, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 43, 91, 0.55) 0%, rgba(8, 43, 91, 0.15) 55%, transparent 100%);
}

html[dir="ltr"] .hero__scrim {
  background:
    linear-gradient(180deg, rgba(6, 29, 64, 0.35) 0%, rgba(6, 29, 64, 0.55) 40%, rgba(6, 29, 64, 0.88) 100%),
    linear-gradient(270deg, rgba(8, 43, 91, 0.55) 0%, rgba(8, 43, 91, 0.15) 55%, transparent 100%);
}

.hero__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.hero__route-path {
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 6 12;
  animation: route-dash 18s linear infinite;
}

.hero__route-pin {
  fill: var(--gold);
  transform-origin: center;
  animation: pin-pulse 2.4s ease-in-out infinite;
}

html[dir="ltr"] .hero__route {
  transform: scaleX(-1);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 40rem);
  margin-inline-start: max(1rem, calc((100% - var(--container-max)) / 2 + 1rem));
  margin-inline-end: auto;
  padding-block: clamp(3.5rem, 10vw, 6rem) clamp(3rem, 8vw, 5rem);
}

.hero__brand {
  font-family: var(--font-en);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  margin-bottom: 0.65rem;
  color: var(--white);
  direction: ltr;
  unicode-bidi: isolate;
}

.hero__brand::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-inline-start: 0.08em;
  vertical-align: 0.05em;
  background: var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: clamp(2.15rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 14ch;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.store-badge {
  display: inline-flex;
  transition: transform var(--transition), opacity var(--transition);
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge img {
  width: 150px;
  height: 45px;
  object-fit: contain;
}

.store-badges--footer {
  margin-top: 1.15rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.7s ease forwards;
}

.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.15s; }
.reveal:nth-child(3) { animation-delay: 0.25s; }
.reveal:nth-child(4) { animation-delay: 0.35s; }
.reveal:nth-child(5) { animation-delay: 0.45s; }
.reveal:nth-child(6) { animation-delay: 0.55s; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes route-dash {
  to {
    stroke-dashoffset: -360;
  }
}

@keyframes pin-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .hero__route-path,
  .hero__route-pin,
  .btn:hover {
    animation: none;
    transform: none;
  }
}

/* Trust strip */

.trust {
  background: var(--navy);
  color: var(--white);
  padding: 1.1rem 0;
}

.trust__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.trust__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.trust__dot:nth-child(even) {
  display: none;
}

@media (min-width: 640px) {
  .trust__dot:nth-child(even) {
    display: block;
  }
}

/* Sections */

.section {
  padding-block: var(--section-space);
}

.section--cloud {
  background: var(--cloud);
}

.section__head {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  max-width: 36rem;
}

.section__head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.section__head p {
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Features — open list, not cards */

.feature-list {
  display: grid;
  gap: 1.75rem 2.5rem;
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.feature-item__icon {
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.22);
}

.feature-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.975rem;
}

/* How it works */

.steps {
  display: grid;
  gap: 2rem;
  counter-reset: none;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.step__num {
  display: block;
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

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

.how__cta {
  margin-top: 2.5rem;
}

/* Audiences */

.audience-grid {
  display: grid;
  gap: 2rem 2.5rem;
}

@media (min-width: 640px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.audience {
  padding-block: 0.25rem;
  border-block-start: 2px solid var(--gold);
  padding-top: 1.15rem;
}

.audience h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.audience p {
  color: var(--muted);
  font-size: 0.975rem;
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-block-start: 1px solid var(--border);
}

.faq-item {
  border-block-end: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 0;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding-bottom: 1.15rem;
  color: var(--muted);
  font-size: 0.975rem;
}

/* Final CTA */

.final-cta {
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(255, 196, 0, 0.12), transparent 55%),
    var(--navy);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 5rem);
  text-align: center;
}

.final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.final-cta h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.logo--footer {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--white);
  border-radius: 10px;
  padding: 2px;
}

.footer-tagline {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.925rem;
  max-width: 28rem;
  line-height: 1.65;
}

.footer-col h3 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 0.925rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Legal pages */

.legal-page {
  padding-block: clamp(2.5rem, 5vw, 4rem) var(--section-space);
  background: var(--cloud);
  min-height: calc(100svh - var(--header-h));
}

.legal-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.3rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.legal-tabs__item {
  flex: 1;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 9px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}

.legal-tabs__item:hover {
  color: var(--navy);
}

.legal-tabs__item.is-active {
  background: var(--navy);
  color: var(--white);
}

.legal-doc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}

.legal-doc__updated {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.legal-doc h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.legal-doc h2 {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.55rem;
}

.legal-doc p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.75;
}
