:root {
  color-scheme: dark;
  --bg: #060817;
  --bg-soft: #0c1028;
  --surface: rgba(17, 22, 52, 0.74);
  --surface-strong: rgba(18, 24, 58, 0.92);
  --card: rgba(255, 255, 255, 0.07);
  --text: #fff6fb;
  --muted: #cfc4dc;
  --muted-2: #9b91ad;
  --primary: #ff4f7e;
  --primary-2: #ff9aab;
  --gold: #f7c879;
  --copper: #c97962;
  --navy: #08102a;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --glow: 0 0 38px rgba(255, 79, 126, 0.28), 0 0 74px rgba(247, 200, 121, 0.13);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1160px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff8fb;
  --bg-soft: #fff1f6;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --card: rgba(255, 255, 255, 0.72);
  --text: #18172d;
  --muted: #686176;
  --muted-2: #8e8398;
  --line: rgba(26, 22, 44, 0.12);
  --shadow: 0 22px 60px rgba(99, 50, 72, 0.14);
  --glow: 0 0 38px rgba(255, 79, 126, 0.16), 0 0 70px rgba(247, 200, 121, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 79, 126, 0.20), transparent 24rem),
    radial-gradient(circle at 80% 5%, rgba(247, 200, 121, 0.15), transparent 22rem),
    radial-gradient(circle at 65% 80%, rgba(117, 83, 255, 0.16), transparent 26rem),
    linear-gradient(145deg, var(--bg), var(--bg-soft));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.page-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-orbs span {
  position: absolute;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.28;
}

.page-orbs span:nth-child(1) {
  background: var(--primary);
  top: 8%;
  left: -10rem;
}

.page-orbs span:nth-child(2) {
  background: var(--gold);
  top: 28%;
  right: -12rem;
}

.page-orbs span:nth-child(3) {
  background: #7658ff;
  bottom: -8rem;
  left: 32%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--glow);
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-family: "Playfair Display", "Tajawal", serif;
  font-size: 1.22rem;
  letter-spacing: 0.2px;
}

.brand small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.nav-links a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: 0.22s ease;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 154, 171, 0.5);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  place-items: center;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  border-radius: 5px;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
  padding: 88px 0 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.3px;
}

.eyebrow span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #221528;
  background: linear-gradient(135deg, var(--gold), var(--primary-2));
}

.hero h1,
.section h2,
.legal-hero h1 {
  margin: 0;
  letter-spacing: -1px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 6.7rem);
  line-height: 0.93;
  max-width: 760px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.9;
  max-width: 670px;
  margin: 26px 0 0;
}

.hero-actions,
.download-actions,
.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: 0.22s ease;
}

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

.btn-primary {
  color: #180819;
  background: linear-gradient(135deg, var(--primary-2), var(--primary) 48%, var(--gold));
  box-shadow: var(--glow);
}

.btn-ghost {
  color: var(--text);
  background: var(--card);
  border-color: var(--line);
}

.btn.full {
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 720px;
}

.phone-frame {
  width: min(360px, 78vw);
  aspect-ratio: 9/16;
  padding: 12px;
  border-radius: 48px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow), var(--glow);
  transform: rotate(-3deg);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
}

.floating-card {
  position: absolute;
  width: 210px;
  padding: 16px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card strong {
  color: var(--primary-2);
  margin-bottom: 4px;
}

.floating-card span {
  color: var(--muted);
  line-height: 1.5;
}

.card-like {
  top: 18%;
  right: 0;
}

.card-report {
  bottom: 18%;
  left: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.stats article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.stats strong {
  display: block;
  font-family: "Playfair Display", "Tajawal", serif;
  font-size: 2rem;
  color: var(--gold);
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 96px 0;
}

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

.section h2,
.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.12;
}

.section-head p:not(.eyebrow),
.safety-copy p,
.split-card p,
.download-copy p,
.legal-hero p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.08rem;
}

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

.feature-card,
.safety-card,
.split-card,
.download-card,
.delete-info,
.request-form,
.legal-content,
.legal-toc,
.faq-list details {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.feature-card {
  min-height: 250px;
  padding: 28px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 126, 0.18), transparent 65%);
  top: -40px;
  left: -40px;
}

.icon-chip {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #210c18;
  background: linear-gradient(135deg, var(--gold), var(--primary-2));
  font-size: 1.4rem;
  box-shadow: var(--glow);
}

.feature-card h3,
.safety-card h3,
.delete-info h2,
.request-form h2 {
  margin: 22px 0 12px;
  font-size: 1.4rem;
}

.feature-card p,
.safety-card p,
.delete-info li,
.request-form p,
.faq-list p {
  color: var(--muted);
  line-height: 1.85;
}

.safety-section {
  padding: 96px 0;
  background:
    linear-gradient(135deg, rgba(255, 79, 126, 0.10), rgba(247, 200, 121, 0.08)),
    rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--line);
}

.safety-layout {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  align-items: center;
  gap: 38px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  margin: 28px 0 0;
}

.check-list li {
  position: relative;
  padding: 14px 48px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  right: 15px;
  top: 13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #1b0b17;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--primary-2));
}

.safety-card {
  border-radius: 38px;
  padding: 34px;
  text-align: center;
}

.safety-card img {
  width: 220px;
  height: 220px;
  border-radius: 54px;
  object-fit: cover;
  margin: 0 auto 10px;
  box-shadow: var(--glow);
}

.split-card,
.download-card {
  border-radius: 38px;
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.split-card h2,
.download-card h2 {
  margin: 0 0 12px;
}

.download-section {
  padding: 96px 0;
}

.download-card {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 79, 126, 0.22), transparent 26rem),
    radial-gradient(circle at 80% 70%, rgba(247, 200, 121, 0.18), transparent 20rem),
    var(--surface);
}

.download-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -46% -10%;
  height: 240px;
  background: linear-gradient(90deg, transparent, rgba(255, 79, 126, 0.22), rgba(247, 200, 121, 0.22), transparent);
  transform: rotate(-4deg);
}

.store-btn {
  width: 220px;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 18px;
  display: grid;
  background: rgba(0, 0, 0, 0.18);
  transition: 0.22s ease;
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .store-btn {
  background: rgba(255, 255, 255, 0.75);
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 154, 171, 0.55);
}

.store-btn span {
  color: var(--muted);
  font-size: 0.9rem;
}

.store-btn strong {
  color: var(--text);
  font-size: 1.2rem;
}

.store-btn.muted {
  opacity: 0.68;
  cursor: not-allowed;
}

.download-note,
.form-hint {
  display: block;
  color: var(--muted-2);
  margin-top: 16px;
}

.download-badge img {
  width: 170px;
  height: 170px;
  border-radius: 44px;
  object-fit: cover;
  box-shadow: var(--glow);
  position: relative;
  z-index: 1;
}

.faq-section {
  padding-top: 40px;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-list details {
  border-radius: 22px;
  padding: 0 22px;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 900;
  list-style: none;
}

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

.faq-list p {
  margin: 0 0 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.13);
  padding: 58px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 36px;
}

.footer-grid p,
.footer-grid a,
.footer-grid span {
  color: var(--muted);
  line-height: 1.75;
}

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid a,
.footer-grid span {
  display: block;
  margin-bottom: 8px;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-2);
}

.compact-footer {
  padding: 22px 0;
}

.compact-footer .footer-bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-page,
.delete-page {
  padding: 68px 0 96px;
}

.legal-hero {
  padding: 46px;
  border-radius: 38px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 10%, rgba(255, 79, 126, 0.20), transparent 26rem),
    radial-gradient(circle at 100% 0%, rgba(247, 200, 121, 0.13), transparent 24rem),
    var(--surface);
  box-shadow: var(--shadow);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 106px;
  border-radius: 28px;
  padding: 22px;
}

.legal-toc strong,
.legal-toc a {
  display: block;
}

.legal-toc strong {
  margin-bottom: 14px;
  color: var(--gold);
}

.legal-toc a {
  color: var(--muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content {
  border-radius: 34px;
  padding: 34px;
}

.legal-content section {
  scroll-margin-top: 110px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-content section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 14px;
  color: var(--primary-2);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.95;
  font-size: 1.03rem;
}

.legal-content a,
.text-link {
  color: var(--gold);
  font-weight: 900;
}

.legal-btn {
  margin-top: 12px;
}

.note-box {
  border: 1px solid rgba(247, 200, 121, 0.32);
  background: rgba(247, 200, 121, 0.09);
  color: var(--muted);
  border-radius: 22px;
  padding: 18px;
  line-height: 1.8;
}

.delete-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

.delete-info,
.request-form {
  border-radius: 34px;
  padding: 30px;
}

.delete-info ol {
  padding: 0 22px 0 0;
}

.request-form {
  display: grid;
  gap: 16px;
}

.request-form h2 {
  margin-top: 0;
}

.request-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 14px 16px;
  outline: none;
  transition: 0.22s ease;
}

html[data-theme="light"] .request-form input,
html[data-theme="light"] .request-form select,
html[data-theme="light"] .request-form textarea {
  background: rgba(255, 255, 255, 0.86);
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: rgba(255, 79, 126, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 79, 126, 0.13);
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: none;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px !important;
  color: var(--muted) !important;
  font-weight: 700 !important;
}

.checkbox-line input {
  width: 18px;
  margin-top: 5px;
  accent-color: var(--primary);
}

code {
  direction: ltr;
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px 7px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.72s ease forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    padding: 12px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    text-align: center;
  }

  .hero,
  .safety-layout,
  .split-card,
  .download-card,
  .delete-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 58px;
    gap: 34px;
  }

  .hero-visual {
    min-height: auto;
  }

  .phone-frame {
    transform: none;
  }

  .floating-card {
    display: none;
  }

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

  .legal-toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .nav {
    min-height: 72px;
  }

  .brand img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .theme-toggle .theme-text {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 15vw, 4.2rem);
  }

  .hero-actions,
  .download-actions,
  .split-actions {
    align-items: stretch;
  }

  .btn,
  .store-btn {
    width: 100%;
  }

  .stats,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .legal-hero,
  .legal-content,
  .delete-info,
  .request-form,
  .split-card,
  .download-card {
    padding: 24px;
    border-radius: 26px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
