:root {
  --navy-950: #061427;
  --navy-900: #0a1e38;
  --navy-800: #12365f;
  --navy-700: #1d4d7d;
  --gold-500: #d5a84b;
  --gold-300: #f2d27f;
  --mint-400: #75efbe;
  --cream: #fbf7ee;
  --paper: #fffdf8;
  --ink: #12233a;
  --muted: #657388;
  --line: rgba(18, 54, 95, 0.14);
  --shadow: 0 24px 70px rgba(6, 20, 39, 0.14);
  --radius-lg: 30px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 0%, rgba(242, 210, 127, 0.2), transparent 31rem),
    linear-gradient(180deg, #fffdfa 0%, var(--cream) 48%, #f2f7f5 100%);
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(18, 54, 95, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 54, 95, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--mint-400);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  color: white;
  background: var(--navy-900);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  background: rgba(6, 20, 39, 0.93);
  backdrop-filter: blur(18px);
}

.header-inner,
.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 0 0 1px rgba(242, 210, 127, 0.36), 0 8px 24px rgba(0, 0, 0, 0.24);
}

.brand small {
  display: block;
  margin-top: -5px;
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--gold-300);
}

.nav-support {
  padding: 8px 14px;
  border: 1px solid rgba(117, 239, 190, 0.4);
  border-radius: 999px;
  color: var(--mint-400) !important;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 18% 40%, rgba(117, 239, 190, 0.14), transparent 22rem),
    radial-gradient(circle at 80% 20%, rgba(213, 168, 75, 0.18), transparent 28rem),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 54%, #0e2b4c);
}

.hero::after {
  position: absolute;
  top: -260px;
  left: -180px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(242, 210, 127, 0.16);
  border-radius: 48% 52% 45% 55%;
  content: "";
  transform: rotate(24deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 70px;
  min-height: 690px;
  padding-block: 80px 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--gold-300);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 6.7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.tagline {
  margin: 18px 0 16px;
  color: var(--mint-400);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 700;
}

.hero-summary {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.13rem;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  min-width: 196px;
  gap: 12px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.store-button:not(.is-pending):hover {
  border-color: var(--gold-300);
  transform: translateY(-2px);
}

.store-button.is-pending {
  cursor: default;
  opacity: 0.72;
}

.store-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--navy-950);
  background: var(--gold-300);
  font-size: 0.95rem;
  font-weight: 800;
}

.store-button small,
.store-button strong {
  display: block;
  line-height: 1.25;
}

.store-button small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.store-button strong {
  font-size: 0.96rem;
}

.availability-note {
  margin: 13px 2px 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.hero-art::before {
  width: 410px;
  height: 410px;
  border: 1px solid rgba(242, 210, 127, 0.18);
  box-shadow: 0 0 90px rgba(117, 239, 190, 0.1) inset;
}

.hero-art::after {
  width: 310px;
  height: 310px;
  background: rgba(117, 239, 190, 0.08);
  filter: blur(25px);
}

.app-icon {
  position: relative;
  z-index: 2;
  width: min(380px, 82vw);
  filter: drop-shadow(0 32px 40px rgba(0, 0, 0, 0.4));
  animation: float 5s ease-in-out infinite;
}

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

.trust-strip {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.trust-item {
  padding: 24px 26px;
}

.trust-item + .trust-item {
  border-right: 1px solid var(--line);
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  color: var(--navy-900);
  font-size: 1.02rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding-block: 104px;
}

.section--soft {
  background: rgba(255, 255, 255, 0.54);
}

.section--dark {
  color: white;
  background:
    radial-gradient(circle at 10% 10%, rgba(117, 239, 190, 0.12), transparent 24rem),
    var(--navy-950);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading h2,
.legal-hero h1 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section--dark .section-heading h2,
.section--dark .eyebrow {
  color: white;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section--dark .section-heading p {
  color: rgba(255, 255, 255, 0.64);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
}

.about-copy,
.about-highlight {
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-lg);
}

.about-copy {
  border: 1px solid var(--line);
  background: var(--paper);
}

.about-copy p {
  margin: 0;
  font-size: 1.08rem;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-highlight {
  color: white;
  background: linear-gradient(145deg, var(--navy-900), var(--navy-800));
  box-shadow: var(--shadow);
}

.about-highlight span {
  color: var(--gold-300);
  font-size: 0.82rem;
  font-weight: 700;
}

.about-highlight strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.45;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 245px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.92);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  box-shadow: 0 20px 46px rgba(6, 20, 39, 0.11);
  transform: translateY(-5px);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border: 1px solid rgba(213, 168, 75, 0.3);
  border-radius: 14px;
  color: var(--navy-900);
  background: linear-gradient(145deg, #fff3cd, #f2d27f);
  font-size: 1.2rem;
  font-weight: 800;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--navy-900);
  font-size: 1.24rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.screenshots-grid {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 10px 4px 32px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold-500) rgba(18, 54, 95, 0.08);
}

.screenshot-card {
  flex: 0 0 clamp(310px, 28vw, 360px);
  min-width: 0;
  scroll-snap-align: start;
}

.screenshot-frame {
  display: block;
  aspect-ratio: 9 / 16;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(242, 210, 127, 0.22);
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.24);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.screenshot-frame:hover {
  border-color: rgba(242, 210, 127, 0.58);
  transform: translateY(-4px);
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  object-position: top center;
}

.screenshot-card h3 {
  margin: 18px 3px 4px;
  font-size: 1.05rem;
}

.screenshot-card p {
  margin: 0 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  counter-increment: steps;
}

.steps li::before {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: white;
  background: var(--navy-900);
  content: counter(steps, decimal-leading-zero);
  font-family: sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.steps strong {
  color: var(--navy-900);
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.permission-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.permission-card strong {
  color: var(--gold-300);
  font-size: 1.15rem;
}

.permission-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.privacy-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 22px;
  padding: 28px 32px;
  border: 1px solid rgba(117, 239, 190, 0.28);
  border-radius: var(--radius-md);
  color: white;
  background: rgba(117, 239, 190, 0.08);
}

.privacy-banner strong {
  display: block;
  color: var(--mint-400);
  font-size: 1.1rem;
}

.privacy-banner p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.text-link {
  flex: none;
  color: var(--gold-300);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-inline: auto;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px;
  color: var(--navy-900);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.faq-list summary::after {
  color: var(--gold-500);
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
}

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

.faq-list details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.support-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(34px, 6vw, 64px);
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 12% 20%, rgba(117, 239, 190, 0.14), transparent 18rem),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--shadow);
}

.support-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.support-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  color: var(--navy-950);
  background: var(--gold-300);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(213, 168, 75, 0.2);
}

.site-footer {
  padding-block: 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--navy-800);
  font-size: 0.9rem;
  font-weight: 600;
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
}

/* Legal and support pages */
.legal-page {
  background: var(--cream);
}

.legal-hero {
  padding-block: 80px 58px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 168, 75, 0.15), transparent 26rem),
    var(--paper);
}

.legal-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(6, 20, 39, 0.2);
}

.legal-hero p {
  max-width: 700px;
  margin: 12px auto 0;
  color: var(--muted);
}

.legal-meta {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy-800);
  background: white;
  font-size: 0.82rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
  padding-block: 62px 100px;
}

.legal-nav {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.legal-nav a {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-nav a:hover {
  color: var(--navy-900);
  background: rgba(213, 168, 75, 0.12);
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-section,
.support-panel {
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.legal-section h2,
.support-panel h2 {
  margin: 0 0 12px;
  color: var(--navy-900);
  font-size: 1.45rem;
}

.legal-section h3 {
  margin: 22px 0 7px;
  color: var(--navy-800);
  font-size: 1.05rem;
}

.legal-section p,
.legal-section li,
.support-panel p,
.support-panel li {
  color: var(--muted);
}

.legal-section ul,
.support-panel ul,
.support-panel ol {
  margin: 10px 0 0;
  padding-right: 22px;
}

.notice-box {
  padding: 20px 22px;
  border: 1px solid rgba(117, 239, 190, 0.32);
  border-radius: 15px;
  color: var(--navy-900);
  background: rgba(117, 239, 190, 0.1);
}

.notice-box strong {
  display: block;
  margin-bottom: 3px;
}

.policy-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.policy-copy {
  min-width: 0;
  padding-left: 30px;
}

.policy-copy--en {
  padding-right: 30px;
  padding-left: 0;
  border-right: 1px solid var(--line);
  direction: ltr;
  text-align: left;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.policy-language {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--navy-800);
  background: rgba(213, 168, 75, 0.14);
  font-size: 0.72rem;
  font-weight: 700;
}

.policy-copy--en .policy-language {
  color: #075b46;
  background: rgba(117, 239, 190, 0.16);
}

.policy-copy .notice-box {
  min-height: 100%;
}

.support-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-block: 62px 100px;
}

.support-panel--wide {
  grid-column: 1 / -1;
}

.email-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 22px;
  border-radius: 15px;
  color: white;
  background: var(--navy-900);
}

.email-card a {
  color: var(--mint-400);
  font-weight: 700;
  direction: ltr;
}

@media (max-width: 980px) {
  .main-nav a:not(.nav-support) {
    display: none;
  }

  .hero-inner,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 50px;
    padding-top: 66px;
    text-align: center;
  }

  .hero-summary {
    margin-inline: auto;
  }

  .store-actions,
  .eyebrow {
    justify-content: center;
  }

  .hero-art {
    order: -1;
  }

  .app-icon {
    width: min(300px, 72vw);
  }

  .hero-art::before {
    width: 340px;
    height: 340px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .permissions-grid {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .legal-nav a {
    flex: none;
  }

  .policy-pair {
    grid-template-columns: 1fr;
  }

  .policy-copy,
  .policy-copy--en {
    padding: 0;
  }

  .policy-copy--en {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand small {
    display: none;
  }

  .nav-support {
    padding: 7px 11px;
    font-size: 0.8rem;
  }

  .hero-inner {
    min-height: auto;
    padding-block: 50px 74px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 19vw, 5rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

  .store-button {
    width: 100%;
  }

  .trust-grid,
  .features-grid,
  .steps,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .section {
    padding-block: 74px;
  }

  .feature-card {
    min-height: auto;
  }

  .screenshots-grid {
    gap: 18px;
    margin-inline: -12px;
    padding-inline: 12px;
    scroll-padding-inline: 12px;
  }

  .screenshot-card {
    flex-basis: min(82vw, 330px);
  }

  .steps li:last-child {
    grid-column: auto;
  }

  .privacy-banner,
  .support-card,
  .footer-inner,
  .email-card {
    align-items: stretch;
    flex-direction: column;
  }

  .support-card {
    display: flex;
  }

  .footer-inner {
    text-align: center;
  }

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

  .support-panel--wide {
    grid-column: auto;
  }
}

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

  .app-icon {
    animation: none;
  }

  * {
    transition: none !important;
  }
}
