:root {
  color-scheme: dark;
  --bg: #071127;
  --bg-deep: #020714;
  --surface: rgba(14, 28, 52, 0.82);
  --surface-strong: #0d1b33;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --text: #f8fbff;
  --muted: #b9c8df;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #635bff;
  --accent-strong: #8078ff;
  --accent-dark: #3430bd;
  --green: #36d4bd;
  --yellow: #f4c95d;
  --blue: #37bce8;
  --coral: #ff725f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --page: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 280px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(55, 188, 232, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 22%, rgba(99, 91, 255, 0.22), transparent 30rem),
    linear-gradient(180deg, #08142d 0%, #061024 45%, #020714 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 12px;
  color: #21101b;
  background: #fff;
  font-weight: 850;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 9, 22, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(55, 188, 232, 0.24);
}

.brand span {
  line-height: 1.08;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.footer-links a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 720;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.language-switcher button {
  min-width: 36px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.language-switcher button.is-active {
  color: #071126;
  background: linear-gradient(135deg, #e9fbff, #62d7ee);
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  padding: 72px 0 76px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 38%, rgba(55, 188, 232, 0.18), transparent 25rem),
    radial-gradient(circle at 13% 28%, rgba(99, 91, 255, 0.22), transparent 31rem),
    linear-gradient(135deg, rgba(3, 9, 22, 0.98), rgba(7, 20, 45, 0.83));
  opacity: 0.92;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  z-index: -1;
  background: linear-gradient(transparent, #061024);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #dffaff;
  background: rgba(10, 31, 54, 0.76);
  font-size: 0.83rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.eyebrow::before,
.status-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(82, 201, 159, 0.72);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(3.35rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: #eadce4;
  font-size: clamp(1.04rem, 2vw, 1.2rem);
  line-height: 1.72;
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
  text-decoration: none;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease;
}

.button.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #746cff, #5147e8);
}

.button.compact {
  min-height: 44px;
  padding-inline: 16px;
  font-size: 0.9rem;
}

.button:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.11);
}

.compatibility-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.compatibility-chips span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #e7d5df;
  background: rgba(16, 8, 18, 0.60);
  font-size: 0.82rem;
  font-weight: 760;
}

.phone-stage {
  position: relative;
  width: min(100%, 430px);
  justify-self: end;
}

.phone-stage::before {
  content: "";
  position: absolute;
  inset: 12% -9% 8%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(55, 188, 232, 0.28);
  filter: blur(64px);
}

.phone-stage > img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.floating-note {
  position: absolute;
  right: 16px;
  bottom: 11%;
  max-width: 230px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 17px;
  color: #fff;
  background: rgba(7, 20, 42, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  font-size: 0.88rem;
  font-weight: 790;
}

.floating-note > span:first-child {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.floating-note > span:last-child {
  min-width: 0;
}

section.content-section {
  padding: 92px 0;
}

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

.kicker {
  margin: 0 0 12px;
  color: #69d9ee;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.section-heading > p:not(.kicker) {
  margin: 17px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

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

.feature-card,
.step,
.privacy-callout,
.support-card,
.policy-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.035));
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.19);
}

.feature-card {
  min-height: 230px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 15px;
  color: #071126;
  background: linear-gradient(135deg, #eefcff, #5ed7ed);
  font-size: 1.35rem;
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-icon { color: #fff; background: linear-gradient(135deg, #8b84ff, var(--accent)); }
.feature-card:nth-child(3) .feature-icon { background: linear-gradient(135deg, #edfff8, var(--green)); }
.feature-card:nth-child(4) .feature-icon { background: linear-gradient(135deg, #fff0ed, var(--coral)); }
.feature-card:nth-child(5) .feature-icon { background: linear-gradient(135deg, #fff9dc, var(--yellow)); }

.feature-card h3,
.step h3 {
  margin: 0;
  font-size: 1.15rem;
}

.feature-card p,
.step p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.64;
}

.scanner-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 10%, rgba(55, 188, 232, 0.15), transparent 20rem),
    rgba(5, 16, 35, 0.86);
  box-shadow: var(--shadow);
}

.scanner-showcase .copy p {
  color: var(--muted);
  line-height: 1.76;
}

.scanner-showcase .copy ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.scanner-showcase .copy li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #f0e5eb;
}

.scanner-showcase .copy li::before {
  content: "✓";
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #10221c;
  background: var(--green);
  font-size: 0.8rem;
  font-weight: 950;
}

.scanner-showcase > img {
  width: min(100%, 700px);
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  min-height: 205px;
  padding: 23px;
  border-radius: var(--radius-lg);
}

.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
  border-radius: 13px;
  color: #071126;
  background: #69d9ee;
  font-weight: 950;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery figure {
  margin: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.gallery img {
  width: 100%;
  border-radius: 20px;
}

.gallery figcaption {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 14px 8px 5px;
  color: #f6eaf0;
  font-weight: 800;
}

.privacy-callout,
.support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.privacy-callout {
  border-color: rgba(82, 201, 159, 0.26);
  background:
    linear-gradient(135deg, rgba(54, 212, 189, 0.10), rgba(99, 91, 255, 0.10)),
    rgba(7, 20, 42, 0.86);
}

.privacy-callout h2,
.support-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.privacy-callout p,
.support-card p {
  max-width: 760px;
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(2, 7, 20, 0.5);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-note {
  max-width: 760px;
  margin: 18px 0 0;
  color: #a995a2;
  font-size: 0.8rem;
  line-height: 1.55;
}

/* Privacy policy */
.policy-hero {
  padding: 80px 0 42px;
}

.policy-hero h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.policy-hero .lead {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.updated {
  display: inline-flex;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #f3dbe5;
  background: var(--surface-soft);
  font-size: 0.84rem;
  font-weight: 760;
}

.policy-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding-bottom: 90px;
}

.policy-toc {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 22, 43, 0.82);
}

.policy-toc strong {
  padding: 8px 10px;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.policy-toc a {
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.policy-toc a:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.policy-content {
  display: grid;
  gap: 16px;
}

.policy-card {
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-lg);
}

.policy-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
}

.policy-card h3 {
  margin: 27px 0 0;
  font-size: 1.05rem;
}

.policy-card p,
.policy-card li {
  color: var(--muted);
  line-height: 1.73;
}

.policy-card p {
  margin: 14px 0 0;
}

.policy-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-inline-start: 22px;
}

.policy-card a {
  color: #78dff1;
}

.data-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.data-table th {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
}

.data-table td {
  color: var(--muted);
  font-size: 0.9rem;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.policy-highlight {
  margin-top: 20px;
  padding: 17px 18px;
  border: 1px solid rgba(82, 201, 159, 0.25);
  border-radius: 15px;
  color: #dff9ef;
  background: rgba(82, 201, 159, 0.08);
  line-height: 1.66;
}

.policy-warning {
  margin-top: 20px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 114, 95, 0.3);
  border-radius: 15px;
  color: #ffe9e5;
  background: rgba(255, 114, 95, 0.09);
  line-height: 1.66;
}

.not-found {
  min-height: calc(100svh - 76px);
  display: grid;
  place-items: center;
  padding: 60px 0;
}

.not-found-card {
  width: min(100%, 760px);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.not-found-card img {
  width: 90px;
  margin: 0 auto 25px;
  border-radius: 24px;
}

.not-found-card h1 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 4.7rem);
}

.not-found-card p {
  color: var(--muted);
  line-height: 1.7;
}

.not-found-card .actions {
  justify-content: center;
}

[dir="rtl"] body {
  font-family: Tahoma, Arial, sans-serif;
}

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

@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .scanner-showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .phone-stage {
    justify-self: center;
  }

  .scanner-showcase > img {
    justify-self: center;
  }

  .feature-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .policy-toc {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .policy-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 28px), var(--page));
  }

  .nav {
    min-height: 68px;
    gap: 10px;
  }

  .brand span {
    display: none;
  }

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

  .language-switcher {
    max-width: calc(100vw - 82px);
    overflow-x: auto;
  }

  .language-switcher button {
    min-width: 33px;
    padding: 0 6px;
  }

  .hero {
    padding: 54px 0 62px;
  }

  h1 {
    font-size: clamp(2.65rem, 13.2vw, 3.7rem);
    overflow-wrap: anywhere;
  }

  section.content-section {
    padding: 66px 0;
  }

  .feature-grid,
  .gallery,
  .steps,
  .privacy-callout,
  .support-card {
    grid-template-columns: 1fr;
  }

  .privacy-callout .button,
  .support-card .button {
    width: 100%;
  }

  .scanner-showcase {
    padding: 20px;
  }

  .floating-note {
    right: 8px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .policy-hero {
    padding-top: 58px;
  }

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

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    border-bottom: 1px solid var(--line);
  }

  .data-table tr:last-child {
    border-bottom: 0;
  }

  .data-table td {
    border-bottom: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Branded fallback page */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.error-card {
  width: min(640px, 100%);
  padding: clamp(30px, 7vw, 64px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  text-align: center;
}

.error-app-icon {
  display: block;
  margin: 0 auto 24px;
  border-radius: 26px;
  box-shadow: 0 20px 48px rgba(9, 2, 14, 0.42);
}

.error-card h1 {
  max-width: 11ch;
  margin-inline: auto;
}

.error-card > p:not(.eyebrow) {
  max-width: 48ch;
  margin: 0 auto 26px;
  color: var(--muted);
}

.error-card .actions {
  justify-content: center;
}
