:root {
  color-scheme: light dark;
  --bg: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-strong: #edf3fa;
  --text: #0b1727;
  --muted: #526174;
  --line: rgba(27, 55, 88, 0.13);
  --navy: #07182d;
  --blue: #168fd8;
  --blue-strong: #0878ba;
  --orange: #ed9215;
  --purple: #7b55e9;
  --shadow: 0 24px 70px rgba(7, 24, 45, 0.12);
  --shadow-soft: 0 12px 36px rgba(7, 24, 45, 0.08);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

:root[data-theme='dark'] {
  --bg: #07111f;
  --surface: rgba(17, 34, 55, 0.82);
  --surface-solid: #0e1d31;
  --surface-strong: #122640;
  --text: #f5f8fc;
  --muted: #a8b5c6;
  --line: rgba(194, 216, 242, 0.14);
  --blue: #4db8f5;
  --blue-strong: #77cbfa;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.24);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #07111f;
    --surface: rgba(17, 34, 55, 0.82);
    --surface-solid: #0e1d31;
    --surface-strong: #122640;
    --text: #f5f8fc;
    --muted: #a8b5c6;
    --line: rgba(194, 216, 242, 0.14);
    --blue: #4db8f5;
    --blue-strong: #77cbfa;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.24);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(46, 168, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 94% 8%, rgba(138, 92, 255, 0.11), transparent 28rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[lang='ar'] body {
  font-family: "SF Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
}

html[dir='rtl'] h1,
html[dir='rtl'] h2,
html[dir='rtl'] h3 {
  letter-spacing: 0;
}

html[dir='rtl'] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

a {
  color: var(--blue-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

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

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: 8px;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  border-radius: 10px;
  transform: translateY(-150%);
}

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

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

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

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 7px 20px rgba(7, 24, 45, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 44px;
  padding: 9px 13px;
  color: var(--muted);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 630;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-strong);
}

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

.language-switch {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 13px;
  align-items: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.language-switch:hover {
  background: var(--surface-strong);
  text-decoration: none;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.theme-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: -7px 0 0 -5px currentColor, 7px 0 0 -5px currentColor,
    0 -7px 0 -5px currentColor, 0 7px 0 -5px currentColor;
}

.menu-button {
  display: none;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  left: 0;
  content: '';
}

.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }

.hero {
  display: grid;
  min-height: 720px;
  padding: 76px 0 72px;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
  gap: clamp(44px, 7vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--blue-strong);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 15%, transparent);
  content: '';
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.042em;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 790;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 760;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  font-weight: 730;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 680px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.5;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row.centered {
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--navy);
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 710;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(7, 24, 45, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

:root[data-theme='dark'] .button {
  color: var(--navy);
  background: #f4f8fe;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .button { color: var(--navy); background: #f4f8fe; }
}

.button:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(7, 24, 45, 0.24);
}

.button.secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}

.button.disabled {
  color: var(--muted);
  background: var(--surface-strong);
  border-color: var(--line);
  box-shadow: none;
  cursor: default;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 640;
}

.hero-meta span {
  padding: 7px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.device-stage {
  position: relative;
  display: grid;
  min-height: 600px;
  place-items: center;
}

.device-stage::before {
  position: absolute;
  width: min(520px, 100%);
  aspect-ratio: 1;
  background: conic-gradient(from 210deg, rgba(46, 168, 255, 0.22), rgba(138, 92, 255, 0.17), rgba(255, 159, 26, 0.2), rgba(46, 168, 255, 0.22));
  border-radius: 50%;
  filter: blur(40px);
  content: '';
}

.device {
  position: relative;
  width: min(326px, 84vw);
  padding: 9px;
  overflow: hidden;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 52px;
  box-shadow: 0 40px 100px rgba(7, 24, 45, 0.3), 0 0 0 7px rgba(83, 101, 122, 0.16);
  transform: rotate(2deg);
}

.device img {
  width: 100%;
  border-radius: 43px;
}

.floating-card {
  position: absolute;
  inset-inline-end: 0;
  bottom: 12%;
  max-width: 210px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.floating-card strong,
.floating-card span { display: block; }
.floating-card span { color: var(--muted); font-size: 14px; }

.section {
  padding: 100px 0;
}

.section.compact {
  padding: 70px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p,
.card p,
.feature-card p,
.step p,
.download-card p {
  margin: 0;
  color: var(--muted);
}

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

.feature-card,
.card,
.download-card,
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.feature-card {
  min-height: 235px;
  padding: 26px;
  border-radius: var(--radius-md);
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  place-items: center;
  color: var(--blue-strong);
  background: color-mix(in srgb, var(--blue) 12%, var(--surface-solid));
  border-radius: 15px;
  font-size: 21px;
  font-weight: 800;
}

.feature-card:nth-child(3n + 2) .feature-icon { color: var(--orange); }
.feature-card:nth-child(3n) .feature-icon { color: var(--purple); }

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

.step {
  padding: 28px;
  border-radius: var(--radius-md);
}

.step-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 34px;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

.screenshot-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 20px;
  overflow-x: auto;
  padding: 12px 6px 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.screenshot {
  overflow: hidden;
  background: #0c1220;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  scroll-snap-align: center;
}

.screenshot img {
  width: 100%;
  height: auto;
}

.platform-band {
  display: grid;
  padding: clamp(32px, 6vw, 72px);
  align-items: center;
  color: #f6f9ff;
  background:
    radial-gradient(circle at 90% 10%, rgba(138, 92, 255, 0.28), transparent 34%),
    radial-gradient(circle at 10% 100%, rgba(46, 168, 255, 0.22), transparent 38%),
    var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.platform-band p { color: #b8c7da; }

.platform-points {
  display: grid;
  gap: 12px;
}

.platform-point {
  display: flex;
  padding: 14px 16px;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  font-weight: 650;
}

.platform-point::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: #4db8f5;
  border-radius: 50%;
  content: '';
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.download-card {
  display: flex;
  padding: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius-md);
}

.download-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.cta {
  padding: clamp(34px, 6vw, 70px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.cta p {
  max-width: 650px;
  margin: 0 auto 26px;
  color: var(--muted);
}

.site-footer {
  padding: 64px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-links a { color: var(--muted); }

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.footer-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal-hero {
  padding: 86px 0 44px;
}

.legal-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 74px);
}

.legal-meta {
  color: var(--muted);
  font-size: 15px;
}

.legal-layout {
  display: grid;
  padding-bottom: 100px;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 64px;
}

.legal-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.legal-nav strong {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
}

.legal-nav a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  padding: 0 0 42px;
  scroll-margin-top: 110px;
}

.legal-content h2 {
  margin-bottom: 16px;
  font-size: 30px;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  margin-top: 28px;
  font-size: 20px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul,
.legal-content ol {
  padding-inline-start: 22px;
}

.notice {
  padding: 20px 22px;
  color: var(--text);
  background: color-mix(in srgb, var(--blue) 9%, var(--surface-solid));
  border: 1px solid color-mix(in srgb, var(--blue) 26%, var(--line));
  border-radius: 16px;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
}

.support-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.support-gap {
  margin-top: 16px;
}

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

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

summary {
  padding-block: 18px;
  padding-inline: 20px 54px;
  color: var(--text);
  font-weight: 690;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.contact-card {
  display: grid;
  min-height: 320px;
  padding: clamp(28px, 6vw, 60px);
  place-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-card img {
  width: 76px;
  margin: 0 auto 24px;
  border-radius: 20px;
}

.contact-email {
  display: block;
  margin: 12px 0 24px;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 760;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .menu-button { display: inline-grid; }
  .site-nav {
    position: absolute;
    top: calc(100% + 2px);
    inset-inline: 20px;
    display: none;
    padding: 10px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .site-nav[data-open] { display: grid; }
  .site-nav a { padding: 11px 14px; }
  .hero {
    min-height: auto;
    padding-top: 62px;
    grid-template-columns: 1fr;
  }
  .device-stage { min-height: 560px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-band { grid-template-columns: 1fr; }
  .screenshot-rail { grid-template-columns: repeat(4, 260px); }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav { position: static; display: none; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header { padding: 10px 0; }
  .brand span { display: none; }
  h1 { font-size: clamp(46px, 15vw, 64px); }
  .hero { padding: 50px 0 54px; gap: 30px; }
  .lede { font-size: 19px; }
  .button { width: 100%; }
  .device-stage { min-height: 500px; }
  .device { width: min(286px, 82vw); border-radius: 46px; }
  .device img { border-radius: 38px; }
  .floating-card { inset-inline-end: -4px; bottom: 8%; }
  .section { padding: 72px 0; }
  .section.compact { padding: 52px 0; }
  .feature-grid,
  .flow,
  .download-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .screenshot-rail { grid-template-columns: repeat(4, 240px); margin-inline: -14px; padding-inline: 14px; }
  .platform-band { margin-inline: -3px; border-radius: 24px; }
  .download-card { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal-hero { padding: 58px 0 30px; }
  .legal-layout { padding-bottom: 72px; }
}

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

@media print {
  .site-header,
  .site-footer,
  .legal-nav { display: none; }
  body { color: #000; background: #fff; }
  .legal-layout { display: block; }
  .legal-content p,
  .legal-content li { color: #222; }
}
