:root {
  --color-primary: #0F2A5C;
  --color-primary-light: #1E4180;
  --color-primary-dark: #081632;
  --color-primary-surface: #EDF2F9;
  --color-accent: #F15A29;
  --color-accent-light: #FF7F50;
  --color-accent-dark: #C83F17;
  --color-accent-surface: #FFF0EB;
  --color-bg: #F8F9FC;
  --color-surface: #FFFFFF;
  --color-surface-variant: #F1F4F9;
  --color-border: #E2E8F0;
  --color-text: #0F2A5C;
  --color-text-secondary: #475569;
  --color-text-tertiary: #94A3B8;
  --color-success: #16A34A;
  --color-warning: #D4A017;
  --color-error: #DC2626;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 92, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 42, 92, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 42, 92, 0.12);
  --container: 1140px;
  --gradient-primary: linear-gradient(135deg, #0F2A5C 0%, #1E4180 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Tajawal", "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--color-accent);
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───── Navbar ───── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--color-primary);
  font-size: 18px;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 15px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(241, 90, 41, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(241, 90, 41, 0.36);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-primary-surface);
  color: var(--color-primary);
}

.btn-ghost {
  background: var(--color-primary-surface);
  color: var(--color-primary);
}

.btn-ghost:hover {
  background: #DDE7F4;
  color: var(--color-primary);
}

/* ───── Hero ───── */
.hero {
  background: var(--gradient-primary);
  color: #fff;
  padding: 88px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(241, 90, 41, 0.18), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--color-accent-light);
}

.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.hero-stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}

/* ───── Sections ───── */
section.block {
  padding: 96px 0;
}

.block.alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-surface);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.22;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

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

/* ───── Feature grid ───── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-surface);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-primary-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-weight: 700;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* ───── How it works ───── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 32px 26px 28px;
  border: 1px solid var(--color-border);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -20px;
  inset-inline-start: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(15, 42, 92, 0.25);
}

.step h3 {
  margin-top: 18px;
  font-size: 18px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.step p {
  color: var(--color-text-secondary);
  font-size: 15px;
}

/* ───── CTA ───── */
.cta-band {
  background: var(--gradient-primary);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 14px;
  font-weight: 800;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
  font-size: 17px;
}

.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badges a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0b1c3e;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, background 0.18s ease;
}

.store-badges a:hover {
  background: #060f23;
  color: #fff;
  transform: translateY(-2px);
}

.store-badges svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.store-badges small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2px;
}

.store-badges strong {
  font-size: 16px;
  font-weight: 700;
}

/* ───── Footer ───── */
footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 28px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

/* ───── Legal pages (privacy / terms / delete) ───── */
.page-header {
  background: var(--gradient-primary);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.legal {
  background: var(--color-bg);
  padding: 64px 0 96px;
}

.legal-wrap {
  max-width: 880px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.legal-wrap h2 {
  color: var(--color-primary);
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 800;
}

.legal-wrap h2:first-child {
  margin-top: 0;
}

.legal-wrap p {
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  line-height: 1.85;
}

.legal-wrap ul {
  margin-bottom: 16px;
  padding-inline-start: 22px;
  color: var(--color-text-secondary);
}

.legal-wrap ul li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-wrap .last-updated {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-tertiary);
  text-align: center;
}

.callout {
  background: var(--color-accent-surface);
  border-inline-start: 4px solid var(--color-accent);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 18px 0 22px;
  color: var(--color-text);
}

.callout strong {
  color: var(--color-accent-dark);
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.callout-info {
  background: #E8F1FB;
  border-inline-start-color: var(--color-primary-light);
}

.callout-info strong {
  color: var(--color-primary);
}

/* ───── Account deletion form ───── */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

.form-card h3 {
  color: var(--color-primary);
  font-size: 18px;
  margin-bottom: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(30, 65, 128, 0.12);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.checkbox input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

/* ───── 404 ───── */
.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.notfound h1 {
  font-size: 96px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.notfound p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* ───── Mobile menu toggle ───── */
.menu-btn {
  display: none;
  background: var(--color-primary-surface);
  border: none;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  color: var(--color-primary);
}

/* ───── Responsive ───── */
@media (max-width: 880px) {
  .hero {
    padding: 64px 0 80px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p.lead {
    margin-inline: auto;
  }
  .hero-cta,
  .hero-stats {
    justify-content: center;
  }
  .hero-visual img {
    max-width: 240px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  section.block {
    padding: 72px 0;
  }
  .legal-wrap {
    padding: 32px 22px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-end: 12px;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    min-width: 200px;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-btn {
    display: inline-flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-stats {
    gap: 22px;
  }
}
