/* ═══════════════════════════════════════════════════════════════════════════
   ScanMe Landing — DS v4
   Design tokens: --brand-500 #1F4DE5, dark-bg #060D1A
   Fonts: Space Grotesk (headings) + Inter (body)
═══════════════════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────────────────── */
:root {
  --brand-50:  #EFF4FF;
  --brand-100: #DBE8FF;
  --brand-200: #BECDFF;
  --brand-300: #91AEFF;
  --brand-400: #6083FF;
  --brand-500: #1F4DE5;
  --brand-600: #1A3EC0;
  --brand-700: #1530A0;
  --brand-800: #102480;
  --brand-900: #0B1A60;

  --dark-bg:   #060D1A;
  --dark-900:  #0A1628;
  --dark-800:  #0E1D3B;
  --dark-700:  #162448;
  --dark-600:  #1E2E58;
  --dark-text: #E8EDF8;
  --muted:     #8899BB;

  --light-bg:  #F7F9FF;
  --white:     #FFFFFF;
  --gray-100:  #F1F4FB;
  --gray-200:  #E2E8F5;
  --gray-300:  #C5D0E8;
  --gray-400:  #8899BB;
  --gray-600:  #4A5A7A;
  --gray-900:  #0F1729;

  --success:   #10B981;
  --danger:    #EF4444;
  --warning:   #F59E0B;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(15,23,42,.12), 0 2px 6px rgba(15,23,42,.06);
  --shadow-lg:  0 8px 40px rgba(15,23,42,.16), 0 4px 12px rgba(15,23,42,.08);
  --shadow-brand: 0 8px 32px rgba(31,77,229,.35);

  --nav-h: 64px;
  --section-gap: 100px;
  --container: 1200px;
}

/* ── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

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

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--gray-900);
  text-align: center;
  margin-bottom: .75rem;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--gray-400);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-gap) 0; }
.section--dark { background: var(--dark-bg); }
.section--gray { background: var(--gray-100); }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9375rem;
  transition: transform .15s, box-shadow .15s, background .15s, opacity .15s;
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand-500);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover  { background: var(--brand-600); box-shadow: 0 10px 40px rgba(31,77,229,.45); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-secondary:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }

.btn-outline {
  background: transparent;
  color: var(--brand-500);
  border: 1.5px solid var(--brand-300);
}
.btn-outline:hover { background: var(--brand-50); border-color: var(--brand-500); }

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: .875rem; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .25s, box-shadow .25s;
  background: rgba(6,13,26,.0);
  backdrop-filter: blur(0px);
}

.nav.scrolled {
  background: rgba(6,13,26,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-img { width: 40px; height: 40px; }

.nav__logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__login-link {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .2s;
}
.nav__login-link:hover { color: #fff; }

/* Language picker */
.lang-menu { position: relative; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  cursor: pointer;
}
.lang-toggle:hover { color: var(--white); background: rgba(255,255,255,.08); }

.lang-toggle svg { width: 14px; height: 14px; flex-shrink: 0; }
.lang-chevron { width: 12px; height: 12px; transition: transform .2s; }
.lang-dropdown.open ~ .lang-toggle .lang-chevron,
.lang-toggle[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--dark-800);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.lang-dropdown.open { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: .8125rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-align: left;
  white-space: nowrap;
}
.lang-option:hover  { background: rgba(255,255,255,.08); color: var(--white); }
.lang-option.active { background: var(--brand-500); color: var(--white); }

.lang-flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.lang-toggle__flag { border-radius: 2px; object-fit: cover; flex-shrink: 0; }
.lang-toggle__name { font-size: .875rem; font-weight: 500; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  gap: 5px;
  border-radius: 8px;
  transition: background .15s;
}
.hamburger:hover { background: rgba(255,255,255,.08); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark-bg);
  z-index: 99;
  padding: calc(var(--nav-h) + 24px) 24px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: rgba(255,255,255,.85);
  font-size: 1.125rem;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: rgba(255,255,255,.06); }

.mobile-menu .btn { margin-top: 16px; justify-content: center; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(31,77,229,.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(99,102,241,.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 60% 80%, rgba(31,77,229,.12) 0%, transparent 50%),
    linear-gradient(150deg, #060D1A 0%, #0E1D3B 55%, #060D1A 100%);
}

/* pixel grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: 80px;
}

.hero__content { color: var(--white); }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31,77,229,.2);
  border: 1px solid rgba(31,77,229,.4);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--brand-300);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero__h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #6083FF, #1F4DE5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.5);
  font-size: .875rem;
}

.hero__proof-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.8); }
}

/* ── PHONE MOCKUP ─────────────────────────────────────────────────────────── */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 260px;
  height: 520px;
  background: #0A0F1E;
  border-radius: 38px;
  border: 2px solid rgba(255,255,255,.12);
  box-shadow:
    0 0 0 8px rgba(255,255,255,.04),
    0 32px 80px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
  flex-shrink: 0;
}

.phone-mockup__notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 22px;
  background: #0A0F1E;
  border-radius: 999px;
  z-index: 10;
  border: 2px solid rgba(255,255,255,.06);
}

.phone-mockup__screen {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0E1D3B 0%, #060D1A 100%);
  overflow: hidden;
}

/* card inside phone */
.phone-card {
  position: absolute;
  top: 50px;
  left: 12px; right: 12px;
  background: linear-gradient(145deg, rgba(31,77,229,.15), rgba(99,102,241,.08));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.phone-card__avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), #6366F1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.15);
}

.phone-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
}

.phone-card__role {
  font-size: .6875rem;
  color: rgba(255,255,255,.55);
  text-align: center;
}

.phone-card__socials {
  display: flex;
  gap: 8px;
}

.phone-card__social-dot {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.06);
}

.phone-card__qr {
  width: 72px; height: 72px;
  background: var(--white);
  border-radius: 10px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  grid-template-rows: repeat(5,1fr);
  gap: 2px;
  margin-top: 4px;
}

.phone-card__qr-cell {
  background: #111;
  border-radius: 1px;
}

/* QR pattern cells that should be white */
.phone-card__qr-cell.w { background: var(--white); }

.phone-card__btn {
  width: 100%;
  background: var(--brand-500);
  color: var(--white);
  border-radius: 10px;
  font-size: .6875rem;
  font-weight: 600;
  padding: 8px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
}

/* floating badges */
.phone-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
}

.phone-badge--scan { right: -40px; top: 140px; }
.phone-badge--save { right: -50px; top: 260px; }

.phone-badge__icon { font-size: 1rem; }

/* ── HOW IT WORKS ─────────────────────────────────────────────────────────── */
.hiw { background: var(--light-bg); }

.hiw__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.hiw__steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
  pointer-events: none;
}

.hiw__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.hiw__num {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--brand-500);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-brand);
  flex-shrink: 0;
}

.hiw__step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}

.hiw__step-body { color: var(--gray-600); font-size: .9375rem; }

/* ── FEATURES ─────────────────────────────────────────────────────────────── */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.feat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--brand-200);
}

.feat-card__icon {
  width: 44px; height: 44px;
  background: var(--brand-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.375rem;
}

.feat-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.feat-card__body { font-size: .875rem; color: var(--gray-600); line-height: 1.55; }

/* ── USE CASES ────────────────────────────────────────────────────────────── */
.usecases { background: var(--dark-bg); }
.usecases .section-title { color: var(--white); }
.usecases .section-sub   { color: var(--muted); }

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

.uc-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: background .2s, border-color .2s;
}

.uc-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(31,77,229,.35);
}

.uc-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.uc-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.uc-card__body { font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* ── COMPARISON TABLE ─────────────────────────────────────────────────────── */
.comparison { background: var(--gray-100); }

.comp-table-wrap {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comp-table thead { background: var(--dark-bg); }
.comp-table thead th {
  padding: 20px 24px;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.comp-table thead th:not(:first-child) { text-align: center; }

.comp-table th.comp-highlight { background: var(--brand-500); }

/* Round the four corner cells directly — avoids overflow:hidden clipping tables */
.comp-table thead tr th:first-child           { border-top-left-radius: var(--radius-lg); }
.comp-table thead tr th:last-child            { border-top-right-radius: var(--radius-lg); }
.comp-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-lg); }
.comp-table tbody tr:last-child td:last-child  { border-bottom-right-radius: var(--radius-lg); }

.comp-table tbody tr:hover td { background: var(--brand-50); }
.comp-table tbody td { border-bottom: 1px solid var(--gray-200); }
.comp-table tbody tr:last-child td { border-bottom: none; }

.comp-table td {
  padding: 16px 24px;
  font-size: .9375rem;
  color: var(--gray-600);
}
.comp-table td:not(:first-child) { text-align: center; }
.comp-table td:first-child { font-weight: 500; color: var(--gray-900); }

.check { color: var(--success); font-size: 1.1rem; font-weight: 700; }
.cross { color: var(--gray-300); font-size: 1.1rem; }

/* ── SECURITY ─────────────────────────────────────────────────────────────── */
.security { background: var(--dark-bg); }
.security .section-title { color: var(--white); }
.security .section-sub   { color: var(--muted); }

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

.sec-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
}

.sec-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(31,77,229,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  border: 1px solid rgba(31,77,229,.3);
}

.sec-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.sec-card__body { font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* ── PRICING ─────────────────────────────────────────────────────────────── */
.pricing .section-title { margin-bottom: .5rem; }

.pricing__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 3rem;
}

.pricing__toggle-label {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
}

.pricing-annual-badge {
  background: var(--brand-500);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.pricing-annual-badge.visible { opacity: 1; pointer-events: auto; }

.pricing-save-badge {
  background: var(--success);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .2s, transform .2s;
  margin-left: 6px;
}
.pricing-save-badge.visible { opacity: 1; transform: scale(1); }

/* toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px; height: 26px;
  flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--gray-300);
  transition: background .25s;
  cursor: pointer;
}

.switch input:checked + .switch__track { background: var(--brand-500); }

.switch__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .25s;
  pointer-events: none;
}
.switch input:checked ~ .switch__thumb { transform: translateX(22px); }

/* pricing cards */
.pricing__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  position: relative;
  transition: box-shadow .2s, border-color .2s;
}

.pricing-card:hover { box-shadow: var(--shadow-lg); }

.pricing-card--pro {
  border-color: var(--brand-500);
  background: linear-gradient(160deg, #EFF4FF 0%, #FFF 60%);
  box-shadow: 0 8px 40px rgba(31,77,229,.15);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pricing-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.pricing-card__amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.pricing-card__period {
  font-size: .9375rem;
  color: var(--gray-400);
  font-weight: 500;
}

.pricing-card__desc {
  font-size: .875rem;
  color: var(--gray-600);
  margin-bottom: 24px;
  min-height: 1.4em;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--gray-600);
}

.pricing-card__feature-icon { color: var(--success); font-size: .9rem; flex-shrink: 0; margin-top: 2px; }

.pricing-card .btn { width: 100%; justify-content: center; }

.pricing-card__crypto {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .8rem;
  color: var(--gray-400);
  flex-wrap: wrap;
}

.pricing-card__crypto strong { color: var(--gray-600); }

.price-annual { display: none; }

/* ── TESTIMONIALS ─────────────────────────────────────────────────────────── */
.testimonials { background: var(--gray-100); }

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

.test-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.test-card__stars { color: #F59E0B; font-size: .875rem; letter-spacing: 2px; }

.test-card__text {
  font-size: .9375rem;
  color: var(--gray-600);
  line-height: 1.65;
  flex: 1;
}

.test-card__text::before { content: '"'; }
.test-card__text::after  { content: '"'; }

.test-card__author { display: flex; align-items: center; gap: 12px; }

.test-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), #6366F1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.test-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--gray-900);
}

.test-card__role { font-size: .8125rem; color: var(--gray-400); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { background: var(--white); }

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s;
}

.faq-item.open { border-color: var(--brand-200); }

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}

.faq-item:hover .faq-header,
.faq-header:hover { background: var(--brand-50); }
.faq-item.open .faq-header { background: var(--brand-50); }

.faq-question {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gray-900);
  flex: 1;
}

.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-400);
  transition: background .15s, color .15s, transform .25s;
  line-height: 1;
}

.faq-item.open .faq-icon {
  background: var(--brand-500);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
}

.faq-item.open .faq-body { max-height: 500px; padding-bottom: 18px; }

.faq-answer {
  padding: 0 20px;
  font-size: .9375rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ── CTA SECTION ──────────────────────────────────────────────────────────── */
.cta-section {
  background:
    radial-gradient(ellipse 70% 80% at 30% 50%, rgba(31,77,229,.3) 0%, transparent 65%),
    radial-gradient(ellipse 60% 70% at 75% 30%, rgba(99,102,241,.2) 0%, transparent 60%),
    var(--dark-bg);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.cta-section__inner { position: relative; z-index: 1; }

.cta-section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--white);
  margin-bottom: .75rem;
}

.cta-section__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 2rem;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark-bg);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 64px 0 40px;
  color: var(--muted);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand { display: flex; flex-direction: column; gap: 14px; }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.footer__logo-img { width: 40px; height: 40px; }

.footer__logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.footer__tagline { font-size: .875rem; line-height: 1.6; }

.footer__col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__links a {
  font-size: .875rem;
  color: var(--muted);
  transition: color .15s;
}

.footer__links a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .8125rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__lang-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer__lang-mini .lang-option {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  font-size: .75rem;
  padding: 4px 8px;
  gap: 5px;
}

.footer__lang-mini .lang-flag { width: 20px; height: 14px; }

.footer__email {
  font-size: .8125rem;
  color: var(--muted);
  font-family: 'Space Grotesk', monospace;
  letter-spacing: -.01em;
  transition: color .15s;
}
.footer__email:hover { color: var(--white); }

/* ── SCROLL REVEAL ────────────────────────────────────────────────────────── */
.pre-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.pre-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── APP STORE BADGES ─────────────────────────────────────────────────────── */
.app-badges { margin-top: 2rem; }

.app-badges__label {
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .625rem;
}

.app-badges__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

@media (max-width: 900px) {
  .app-badges { text-align: center; }
  .app-badges__row { justify-content: center; }
}

.app-badge {
  display: inline-flex;
  border-radius: 6px;
  overflow: hidden;
  transition: opacity .2s, transform .2s;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}

.app-badge:hover { opacity: .88; transform: translateY(-2px); }
.app-badge:active { transform: translateY(0); }

.app-badge__svg { display: block; width: 135px; height: 40px; }
.app-badge--sm .app-badge__svg { width: 110px; height: 33px; }

.app-badge[data-store].badge-secondary {
  opacity: .38;
  filter: grayscale(60%);
  transform: scale(.95);
  transition: opacity .3s, filter .3s, transform .3s;
}
.app-badge[data-store].badge-secondary:hover {
  opacity: .65;
  filter: grayscale(0%);
  transform: scale(1);
}
.app-badge[data-store].badge-primary {
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.18), 0 4px 20px rgba(0,0,0,.4);
}

.app-badges--footer { margin-top: .5rem; }
.app-badges__label--footer { font-size: .6875rem; color: rgba(255,255,255,.28); }
.app-badges__row--footer { gap: 8px; }

[dir="rtl"] .app-badges__row { flex-direction: row-reverse; }
[dir="rtl"] .app-badges__label { text-align: right; }

/* ── RTL SUPPORT ─────────────────────────────────────────────────────────── */
[dir="rtl"] .hero__inner    { direction: rtl; }
[dir="rtl"] .hiw__steps::before { left: calc(16.67% + 16px); right: calc(16.67% + 16px); }
[dir="rtl"] .nav__inner     { flex-direction: row-reverse; }
[dir="rtl"] .footer__grid   { direction: rtl; }
[dir="rtl"] .lang-dropdown  { right: auto; left: 0; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  :root { --section-gap: 72px; }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero__sub  { margin: 0 auto 2rem; }
  .hero__ctas { justify-content: center; }
  .hero__proof { justify-content: center; }

  .hiw__steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hiw__steps::before { display: none; }

  .uc__grid    { grid-template-columns: repeat(2, 1fr); }
  .sec__grid   { grid-template-columns: 1fr; gap: 16px; }
  .test__grid  { grid-template-columns: 1fr; }
  .pricing__cards { grid-template-columns: 1fr; max-width: 440px; }

  .nav-links, .nav__actions > .btn, .nav__actions .nav__login-link { display: none; }
  .hamburger { display: flex; }

  .phone-badge { display: none; }
}

@media (max-width: 640px) {
  :root { --section-gap: 56px; }

  .features__grid { grid-template-columns: 1fr; }
  .uc__grid       { grid-template-columns: 1fr; }

  .comp-table td,
  .comp-table th  { padding: 12px 14px; font-size: .875rem; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .hero__inner { padding-bottom: 60px; }

  .phone-mockup { width: 220px; height: 440px; }
  .phone-card   { top: 42px; }
}

@media (max-width: 400px) {
  .btn-lg { padding: 13px 22px; font-size: .9375rem; }
  .hero__h1 { font-size: 1.875rem; }
}
