/* VLens - flagship marketing site styles.
   Foundations: Piano Black, scarce Eucalyptus, hairline borders, flat depth.
   Motifs: bracket scan-frame corners; fingerprint ridge rings (≤16%). */

:root {
  --bg: #000000;
  --panel: #0A0D12;
  --panel-2: #070A0F;
  --card: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);
  --txt: #F4F6F8;
  --muted: #B0B4BF;
  --accent: #39F1AD;
  --accent-dim: rgba(57, 241, 173, 0.35);
  --ink: #00130B;
  --navy: #093176;
  --font-d: 'Poppins', 'IBM Plex Sans Arabic', sans-serif;
  --font-b: 'Inter', 'IBM Plex Sans Arabic', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  touch-action: pan-y pinch-zoom;
}
html.lang-ar body { font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif; }
h1, h2, h3, h4 { font-family: var(--font-d); letter-spacing: -0.02em; }
html.lang-ar h1, html.lang-ar h2, html.lang-ar h3, html.lang-ar h4 { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; }

/* bilingual visibility */
.ar { display: none; }
html.lang-ar .en { display: none; }
html.lang-ar span.ar { display: inline; }
html.lang-ar .ar.block, html.lang-ar div.ar, html.lang-ar p.ar,
html.lang-ar h1.ar, html.lang-ar h2.ar, html.lang-ar h3.ar, html.lang-ar h4.ar { display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ── Nav ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { display: block; height: 30px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--txt); }
.nav-links a.btn-primary { color: var(--ink); }
.nav-links a.btn-primary:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: 12px; white-space: nowrap;
  font-weight: 600; font-size: 0.97rem; text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer; border: none; font-family: var(--font-b);
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); background: #4ff5b8; }
.btn-primary:active { transform: translateY(0); background: #2bd698; }
.btn-ghost { border: 1px solid var(--border); color: var(--txt); background: transparent; }
.btn-ghost:hover { border-color: var(--border-strong); }
.lang-btn {
  background: var(--card); border: 1px solid var(--border); color: var(--txt);
  padding: 8px 15px; border-radius: 9px; font-weight: 600; cursor: pointer; font-size: 0.85rem;
  font-family: var(--font-b); transition: border-color 0.2s;
}
.lang-btn:hover { border-color: var(--border-strong); }

.theme-btn { background: var(--card); border: 1px solid var(--border); color: var(--txt); width: 38px; height: 38px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.2s, color 0.2s; }
.theme-btn:hover { border-color: var(--border-strong); color: var(--accent); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .lucide-moon { display: none; }
html.theme-light .theme-btn .lucide-sun { display: none; }
html.theme-light .theme-btn .lucide-moon { display: inline; }
.logo .logo-onLight { display: none; }
/* ====================== LIGHT (DAY) THEME ====================== */
html.theme-light {
  --bg: #F4F5F7; --panel: #FFFFFF; --panel-2: #FFFFFF;
  --card: rgba(10,13,18,0.035); --border: rgba(10,13,18,0.12); --border-strong: rgba(10,13,18,0.24);
  --txt: #0A0D12; --muted: #566074; --accent: #0BAE78; --ink: #FFFFFF;
}
html.theme-light nav { background: rgba(0, 0, 0, 0.72); --card: rgba(255, 255, 255, 0.045); --border: rgba(255, 255, 255, 0.1); --border-strong: rgba(255, 255, 255, 0.24); --txt: #F4F6F8; --muted: #B0B4BF; --accent: #39F1AD; --ink: #00130B; }
@media (max-width: 1140px) { .nav-mail { display: none; } }
html.theme-light .clients-band, html.theme-light .scan-section { background: #FFFFFF; }
html.theme-light .reg { background: linear-gradient(180deg, rgba(9,49,118,0.06), rgba(9,49,118,0.015)); }
html.theme-light .p-screens { background: #FFFFFF; border-color: rgba(10,13,18,0.10); }
html.theme-light .id-card { background: linear-gradient(160deg,#EEF2F6,#E2E8EF 60%); border-color: rgba(10,13,18,0.12); }
html.theme-light .id-photo { background: #E6EBF1; color: #9AA6B3; border-color: rgba(10,13,18,0.10); }
html.theme-light .id-line { background: #D4DCE5; }
html.theme-light .p-input { background: #EEF2F6; border-color: rgba(10,13,18,0.14); }
html.theme-light .otp span { background: #EEF2F6; border-color: rgba(10,13,18,0.16); }
html.theme-light .q-row { background: #EEF2F6; border-color: rgba(10,13,18,0.10); }
html.theme-light .face-oval, html.theme-light .auth-circle { color: #9AA6B3; }
html.theme-light .done-ring.done-logo { background: #FFFFFF; border-color: var(--accent); box-shadow: 0 0 0 8px rgba(11,174,120,0.10), 0 14px 30px rgba(10,13,18,0.12); }
html.theme-light .hero-proof-card { background: #FFFFFF; box-shadow: 0 10px 34px rgba(10,13,18,0.08); }
html.theme-light .card { background: #FFFFFF; box-shadow: 0 10px 30px rgba(10,13,18,0.06); }
html.theme-light .card:hover { box-shadow: 0 14px 38px rgba(10,13,18,0.10); }
html.theme-light .cta-box { background: #FFFFFF; border-color: rgba(10,13,18,0.12); box-shadow: 0 24px 60px rgba(10,13,18,0.10); }
html.theme-light .cta-box h2 { color: #0A0D12; }
html.theme-light .cta-box .lead { color: #566074; }
html.theme-light .cta-box .cta-contact a { color: #0A0D12; }
html.theme-light .cta-box .cta-contact .sep { color: rgba(10,13,18,0.30); }
html.theme-light .cta-box .btn-ghost { color: #0A0D12; border-color: rgba(10,13,18,0.22); }
html.theme-light .cta-box .btn-ghost:hover { border-color: rgba(10,13,18,0.50); }
html.theme-light .logo-pill { border-color: rgba(10,13,18,0.12); box-shadow: 0 4px 16px rgba(10,13,18,0.06); }
html.theme-light .trust-map { background-image: radial-gradient(rgba(10,13,18,0.05) 1px, transparent 1px); }
html.theme-light .tm-ic { background: #FFFFFF; border-color: rgba(10,13,18,0.14); box-shadow: 0 4px 14px rgba(10,13,18,0.07); }
html.theme-light .tm-ic.core { background: #05070A; border-color: var(--accent); }
html.theme-light .btn-primary, html.theme-light .nav-links a.btn-primary { color: #FFFFFF; }
html.theme-light nav .nav-links a.btn-primary { color: #00130B; }
html.theme-light .scan-checks li.on .tick { color: #FFFFFF; }


/* ── Bracket scan-frame motif ────────────────────────────── */
.brackets { position: relative; }
.brackets i {
  position: absolute; width: 26px; height: 26px;
  border: 3px solid var(--accent); border-radius: 2px; pointer-events: none;
}
.brackets i.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.brackets i.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.brackets i.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.brackets i.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; padding: 188px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--accent-dim); background: rgba(57, 241, 173, 0.06);
  color: var(--accent); font-size: 0.84rem; font-weight: 600; margin-bottom: 30px;
  text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease;
}
a.badge:hover { border-color: var(--accent); background: rgba(57, 241, 173, 0.12); }
.badge::before { display: none; }
.badge .fra-authority-inline { white-space: nowrap; }
.hero h1 {
  font-size: clamp(2.4rem, 4.1vw, 3.9rem);
  font-weight: 700; line-height: 1.08; margin-bottom: 28px;
  letter-spacing: -0.02em; text-wrap: balance;
}
.hero h1 .hl { color: var(--accent); }
.hero h1 .h-lead { display: block; }
.hero h1 .h-sub { display: block; font-size: 0.42em; font-weight: 600; line-height: 1.32; color: var(--muted); margin-top: 24px; letter-spacing: 0; max-width: 30ch; }
.hero .sub { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 42px; text-wrap: pretty; line-height: 1.6; }
.hero .sub .hl-strong { color: var(--txt); font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 15px 30px; font-size: 1.02rem; }

.hero-visual {
  position: relative; justify-self: end; width: 100%; max-width: 500px; margin-top: 6px;
}
.hero-proof-card {
  border: 1px solid var(--border-strong); background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
  padding: 28px; box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.fra-approval {
  display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center;
  padding-bottom: 22px; border-bottom: 1px solid var(--border);
}
.fra-logo-wrap {
  min-height: 82px; display: flex; align-items: center; justify-content: center;
}
.fra-logo {
  width: 96px; height: auto; display: block;
}
.fra-copy { min-width: 0; }
.fra-title {
  display: flex; flex-direction: column; gap: 3px;
  font-family: var(--font-d); line-height: 1.15; color: var(--txt); margin-bottom: 10px;
}
.fra-prefix {
  color: var(--accent); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.fra-authority {
  display: block; max-width: 100%;
  white-space: normal; overflow-wrap: break-word; font-size: clamp(0.88rem, 1vw, 1.02rem); font-weight: 700;
  line-height: 1.18;
}
.fra-country {
  display: block; color: var(--muted); font-size: 0.92rem; font-weight: 600;
}
.fra-approval small { display: block; color: var(--muted); line-height: 1.45; max-width: 34ch; }
.fra-approval-link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 14px;
  padding: 9px 14px 9px 12px; border-radius: 999px;
  border: 1px solid rgba(57, 241, 173, 0.55); background: rgba(57, 241, 173, 0.07);
  color: var(--accent); font-family: var(--font-d); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  position: relative; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.fra-approval-link::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid rgba(57, 241, 173, 0.7); animation: linkPing 2.2s ease-out infinite; pointer-events: none; }
@keyframes linkPing { 0% { transform: scale(1); opacity: 0.9; } 70%, 100% { transform: scale(1.12); opacity: 0; } }
.fra-approval-link .arrow { width: 14px; height: 14px; flex: none; transition: transform 0.2s ease; }
html[dir="rtl"] .fra-approval-link .arrow { transform: scaleX(-1); }
.fra-approval-link:hover, .fra-approval-link:focus-visible { background: rgba(57, 241, 173, 0.16); border-color: var(--accent); transform: translateY(-1px); color: var(--accent); }
.fra-approval-link:hover .arrow { transform: translate(2px, -2px); }
html[dir="rtl"] .fra-approval-link:hover .arrow { transform: scaleX(-1) translate(2px, -2px); }
html.theme-light .fra-approval-link { color: #0BAE78; border-color: rgba(11, 174, 120, 0.55); background: rgba(11, 174, 120, 0.06); }
html.theme-light .fra-approval-link::before { border-color: rgba(11, 174, 120, 0.6); }
@media (prefers-reduced-motion: reduce) { .fra-approval-link::before { animation: none; display: none; } }
.fra-approval-link i { width: 15px; height: 15px; flex: none; }
.fra-approval-link:hover { color: var(--txt); }
.proof-list { display: grid; gap: 16px; margin-top: 22px; }
.proof-row {
  display: grid; grid-template-columns: 138px 1fr; gap: 18px; align-items: start;
  padding: 0 0 16px; border-bottom: 1px solid var(--border);
}
.proof-row:last-child { padding-bottom: 0; border-bottom: 0; }
.proof-label {
  color: var(--accent); font-family: var(--font-d); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.proof-copy strong { display: block; color: var(--txt); font-size: 1rem; line-height: 1.25; margin-bottom: 5px; }
.proof-copy p { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
@media (max-width: 1239px) {
  .hero-proof-card { padding: 24px; }
  .proof-row { grid-template-columns: 1fr; gap: 7px; }
}

/* stats strip */
.stats-strip {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 40px 28px 42px; border-inline-end: 1px solid var(--border); text-align: center; }
.stat:last-child { border-inline-end: 0; }
.stat b {
  display: block; font-family: var(--font-d); font-weight: 800;
  font-size: clamp(3.25rem, 6.4vw, 5.8rem); line-height: 0.9; letter-spacing: 0; color: var(--accent);
  margin-bottom: 14px;
}
.stat b .unit { color: var(--accent); font-size: 0.72em; }
.stat b .unit .ar { font-size: 0.52em; font-weight: 800; }
.stat > span { color: var(--muted); font-size: 0.82rem; font-weight: 700; line-height: 1.35; letter-spacing: 0.13em; text-transform: uppercase; }

/* ── Section scaffolding ─────────────────────────────────── */
section { padding: 110px 0; }
.kicker {
  color: var(--accent); font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 14px; font-family: var(--font-d);
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; margin-bottom: 18px; text-wrap: balance; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 660px; margin-bottom: 56px; text-wrap: pretty; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ── Clients marquee ─────────────────────────────────────── */
.clients-band { padding: 30px 0 22px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--panel-2); overflow: hidden; }
.clients-band .label { text-align: center; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.client-row { display: flex; align-items: center; padding: 7px 0; }
.client-row .cat {
  flex: none; width: 168px;
  margin-inline-start: calc(max(0px, (100vw - 1240px) / 2) + 28px);
  font-family: var(--font-d); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.marquee { flex: 1; min-width: 0; display: flex; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 12px; padding-inline-end: 12px; flex: none; min-width: max-content; animation: marquee var(--mt, 60s) linear infinite; will-change: transform; }
@keyframes marquee { to { transform: translateX(-100%); } }
.logo-pill {
  height: 54px; min-width: 142px; padding: 10px 22px; border: 1px solid var(--border); border-radius: 12px;
  color: var(--muted); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.045); white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.logo-pill.logo-image {
  width: 142px; padding: 8px 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.20), inset 0 0 0 1px rgba(0,0,0,0.05);
  overflow: hidden;
}
.logo-pill.logo-light {
  background: #fff; border-color: rgba(255,255,255,0.82);
}
.logo-pill.logo-dark {
  background: #171D25; border-color: rgba(255,255,255,0.16);
  box-shadow: 0 12px 26px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.logo-pill.logo-native {
  background: #fff; border-color: rgba(255,255,255,0.72); padding: 0;
}
.logo-pill.logo-native img {
  width: 140px; height: 52px; border-radius: 10px; object-fit: cover;
}
.logo-pill.logo-image img {
  display: block; width: 108px; height: 30px; object-fit: contain; object-position: center;
  filter: none; opacity: 1;
}
.logo-pill.logo-image:hover img { filter: none; opacity: 1; }
.logo-pill.logo-sarwa img { width: 120px; height: 34px; }
.logo-pill.logo-invert img,
.logo-pill.logo-invert:hover img { filter: invert(1) brightness(0.25); }
.logo-pill.logo-white img,
.logo-pill.logo-white:hover img { filter: brightness(0) invert(1); }
.logo-pill > span { display: inline; }
.logo-pill.logo-image > span { display: none; }
.logo-pill.logo-fallback { background: rgba(255,255,255,0.045); border-color: var(--border); box-shadow: none; }
.logo-pill.logo-fallback > span { display: inline; }

/* ── Product cards ───────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 32px; transition: border-color 0.25s ease;
}
.card:hover { border-color: var(--border-strong); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(57, 241, 173, 0.08); border: 1px solid rgba(57, 241, 173, 0.25);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: var(--accent);
}
.card .icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.16rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ── Scan demo ───────────────────────────────────────────── */
.scan-section { background: var(--panel-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.scan-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.scan-stage { padding: 26px; width: max-content; margin: 0 auto; }
.scan-flow { display: flex; flex-direction: column; gap: 18px; }
.journey-summary {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 22px; border: 1px solid rgba(57, 241, 173, 0.26); border-radius: 18px;
  background: linear-gradient(135deg, rgba(57, 241, 173, 0.10), rgba(255, 255, 255, 0.035));
}
.journey-number {
  flex: none; font-family: var(--font-d); font-size: 4.15rem; line-height: 0.85;
  font-weight: 800; color: var(--accent); letter-spacing: 0;
}
.journey-summary h3 { font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; margin-bottom: 5px; }
.journey-summary p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* phone mockup */
.phone {
  position: relative; width: 258px; margin: 0 auto;
  background: #05070A; border: 1px solid var(--border-strong);
  border-radius: 36px; padding: 12px;
  display: flex; flex-direction: column;
}
.phone-cam { width: 62px; height: 17px; border-radius: 99px; background: #11161E; margin: 4px auto 10px; flex: none; }
.p-screens { position: relative; height: 432px; border-radius: 24px; background: var(--panel); border: 1px solid var(--border); overflow: hidden; }
.p-screen {
  position: absolute; inset: 0; padding: 22px 16px 16px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0; transform: translateX(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
html[dir="rtl"] .p-screen { transform: translateX(-16px); }
.p-screen.active { opacity: 1; transform: translateX(0); }
html[dir="rtl"] .p-screen.active { transform: translateX(0); }
.p-screen.v-center { justify-content: center; }
.p-head {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(57, 241, 173, 0.08); border: 1px solid rgba(57, 241, 173, 0.25);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.p-head svg { width: 21px; height: 21px; }
.p-screen h5 { font-family: var(--font-d); font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.p-sub { font-size: 0.76rem; color: var(--muted); }
.p-mini { font-size: 0.68rem; color: var(--muted); margin-top: auto; opacity: 0.75; }
.p-input {
  display: flex; align-items: center; gap: 7px; width: 100%;
  margin-top: 22px; padding: 13px 14px; border-radius: 12px;
  background: #0E1218; border: 1px solid var(--border-strong);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em;
}
.p-input .cc { color: var(--muted); }
.caret { width: 2px; height: 17px; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .caret { animation: blink 1.05s steps(2, start) infinite; } }
@keyframes blink { to { visibility: hidden; } }
.p-btn {
  width: 100%; margin-top: auto; padding: 12px; border-radius: 12px;
  background: var(--accent); color: var(--ink); font-weight: 700; font-size: 0.86rem;
  opacity: 0.4; transition: opacity 0.3s ease, transform 0.15s ease;
}
.p-btn.go { opacity: 1; transform: scale(0.98); }
.otp { display: flex; gap: 6px; margin: 22px 0 14px; }
.otp span {
  width: 28px; height: 40px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: #0E1218;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 1rem; font-weight: 700;
  transition: border-color 0.25s ease;
}
.otp span.fill { border-color: var(--accent); }
.p-frame { position: relative; width: 100%; padding: 10px; margin: 16px 0 10px; }
.p-frame.brackets i { width: 15px; height: 15px; border-width: 2px; }
.face-oval {
  position: relative; width: 116px; height: 148px; margin: 22px auto 18px;
  border: 2px dashed var(--border-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #2E3947;
  transition: border-color 0.35s ease, color 0.35s ease;
}
.face-oval svg { width: 54px; height: 54px; }
@media (prefers-reduced-motion: no-preference) {
  .p-screen.active:not(.live-ok) .face-oval::after {
    content: ""; position: absolute; inset: -9px; border-radius: inherit;
    border: 1.5px solid var(--accent-dim);
    animation: facePulse 1.5s ease-out infinite;
  }
}
@keyframes facePulse { from { transform: scale(0.97); opacity: 1; } to { transform: scale(1.1); opacity: 0; } }
.live-ok .face-oval { border-style: solid; border-color: var(--accent); color: var(--accent); }
.p-prompt { display: none; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.p-prompt.onp { display: block; }
.p-prompt[data-p="3"] { color: var(--accent); }
.bg-checks { list-style: none; width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; text-align: start; }
.bg-checks li {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.73rem; font-weight: 500; color: var(--muted);
  opacity: 0.38; transition: opacity 0.3s ease, color 0.3s ease;
}
.bg-checks li.act, .bg-checks li.ok { opacity: 1; }
.bg-checks li.ok { color: var(--txt); }
.bg-checks .ind {
  flex: none; width: 17px; height: 17px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800;
}
.bg-checks li.act .ind { border-color: rgba(57, 241, 173, 0.25); border-top-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .bg-checks li.act .ind { animation: indSpin 0.65s linear infinite; } }
@keyframes indSpin { to { transform: rotate(360deg); } }
.bg-checks li.ok .ind { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.bg-checks li.ok .ind::before { content: "✓"; }
.done-ring {
  width: 86px; height: 86px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; font-weight: 800; margin-bottom: 18px;
}
.done-ring.done-logo {
  background: #05070A; border: 1px solid var(--accent);
  box-shadow: 0 0 0 8px rgba(57, 241, 173, 0.08), 0 16px 34px rgba(0,0,0,0.35);
}
.done-ring.done-logo img {
  width: 52px; height: auto; display: block;
}
.done-ring.done-logo.sm img { width: 38px; }
@media (prefers-reduced-motion: no-preference) { .p-screen.active .done-ring { animation: donePop 0.5s cubic-bezier(0.3, 1.5, 0.6, 1); } }
@keyframes donePop { from { transform: scale(0.4); opacity: 0; } }

/* ── e-Contracting journey demo ────────────────────── */
.cs-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; }
.auth-circle {
  position: relative; width: 104px; height: 104px; margin: 26px auto 16px;
  border: 2px dashed var(--border-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #2E3947;
  transition: border-color 0.35s ease, color 0.35s ease;
}
.auth-circle svg { width: 44px; height: 44px; }
@media (prefers-reduced-motion: no-preference) {
  .p-screen.active:not(.auth-ok) .auth-circle::after {
    content: ""; position: absolute; inset: -9px; border-radius: inherit;
    border: 1.5px solid var(--accent-dim);
    animation: facePulse 1.5s ease-out infinite;
  }
}
.auth-ok .auth-circle { border-style: solid; border-color: var(--accent); color: var(--accent); }
.q-rows { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.q-row {
  text-align: start; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: #0E1218;
  transition: border-color 0.3s ease;
}
.q-row label { display: block; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.q-row .val { font-size: 0.8rem; font-weight: 600; opacity: 0; transition: opacity 0.35s ease; min-height: 1.2em; }
.q-row.set { border-color: var(--accent-dim); }
.q-row.set .val { opacity: 1; }
.res-card {
  width: 100%; margin-top: 14px; padding: 10px 12px; text-align: start;
  border: 1px solid rgba(57, 241, 173, 0.35); background: rgba(57, 241, 173, 0.07);
  border-radius: 11px; font-size: 0.74rem; font-weight: 600; color: var(--accent);
  opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.res-card.show { opacity: 1; transform: none; }
.doc {
  width: 100%; margin-top: 14px; padding: 12px 13px; text-align: start;
  border: 1px solid var(--border-strong); border-radius: 12px; background: #0E1218;
}
.doc-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-family: var(--font-d);
}
.doc-title svg { width: 13px; height: 13px; }
.doc-sec { margin-top: 9px; }
.doc-sec b { display: block; font-size: 0.58rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.doc-line { height: 6px; border-radius: 99px; background: #1A212B; margin-bottom: 4px; opacity: 0; transition: opacity 0.3s ease; }
.doc-line.dw1 { width: 88%; } .doc-line.dw2 { width: 64%; } .doc-line.dw3 { width: 46%; }
.doc-line.onl { opacity: 1; }
/* contract as a paper sheet */
.doc.paper { position: relative; background: #F7F5EE; border: 1px solid #E2DDCF; border-radius: 4px 4px 3px 3px; color: #1B1F26; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.6); padding: 12px 13px 14px; overflow: hidden; }
.doc.paper::before { content: ""; position: absolute; top: 0; inset-inline-end: 0; width: 0; height: 0; border-style: solid; border-width: 0 16px 16px 0; border-color: transparent #0E1218 #E4DFD1 transparent; }
html[dir="rtl"] .doc.paper::before { border-width: 16px 16px 0 0; border-color: #E4DFD1 #0E1218 transparent transparent; }
.doc.paper .doc-title { color: #0F7D58; padding-bottom: 7px; border-bottom: 1px solid #DAD4C3; }
.doc.paper .doc-meta { font-size: 0.52rem; color: #7A7F8A; margin-top: 5px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.doc.paper .doc-sec b { color: #4A505B; }
.doc.paper .doc-line { background: #CFC9B8; }
.doc.paper .doc-line.onl { background: #8B8674; }
.doc-sign { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; padding-top: 9px; border-top: 1px dashed #D3CDBB; }
.doc-sig-label { font-size: 0.55rem; letter-spacing: 0.07em; text-transform: uppercase; color: #7A7F8A; font-weight: 600; white-space: nowrap; }
.doc-sig-line { flex: 1; height: 14px; border-bottom: 1px solid #8B8674; position: relative; }
.doc-sig-line::after { content: ""; position: absolute; inset-inline-start: 6px; bottom: 2px; width: 46%; height: 10px; border-radius: 50% 50% 0 50%; border-bottom: 1.6px solid #0F7D58; border-inline-end: 1.6px solid #0F7D58; opacity: 0; transform: scaleX(0); transform-origin: left center; transition: opacity 0.3s ease, transform 0.55s ease; }
html[dir="rtl"] .doc-sig-line::after { transform-origin: right center; }
.p-screen.signed .doc-sig-line::after { opacity: 1; transform: scaleX(1); }
.doc-stamp { position: absolute; bottom: 10px; inset-inline-end: 10px; padding: 3px 7px; border: 1.5px solid rgba(15, 125, 88, 0.75); border-radius: 4px; color: #0F7D58; font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-8deg) scale(1.6); opacity: 0; transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 1.3, 0.4, 1); }
.p-screen.signed .doc-stamp { opacity: 1; transform: rotate(-8deg) scale(1); }
.wysiwys { margin-top: 10px; font-size: 0.62rem; color: var(--accent); font-weight: 600; }
.done-ring.sm { width: 64px; height: 64px; font-size: 1.5rem; margin-bottom: 10px; }

/* FRA handshake network */
.net { width: 100%; margin-top: 14px; display: flex; flex-direction: column; text-align: start; }
.node { display: flex; gap: 10px; align-items: center; opacity: 0.45; transition: opacity 0.3s ease; }
.node.lit { opacity: 1; }
.n-ic {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: #0E1218; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.n-ic svg { width: 15px; height: 15px; }
.node.lit .n-ic { border-color: var(--accent); color: var(--accent); }
.node.ok .n-ic { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.n-tx b { display: block; font-size: 0.72rem; font-weight: 600; font-family: var(--font-d); }
.n-tx small { display: block; font-size: 0.62rem; color: var(--muted); line-height: 1.45; }
.n-tx small.okd { display: none; }
.node.ok small.pend { display: none; }
.node.ok small.okd { display: block; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .node.rx .n-ic::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 1.5px solid var(--accent);
    animation: nodePing 0.85s ease-out 2;
  }
}
@keyframes nodePing { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }
.conn {
  position: relative; width: 2px; height: 26px; margin: 3px 0 3px 14px;
  background: var(--border); transition: background 0.3s ease;
}
html[dir="rtl"] .conn { margin: 3px 14px 3px 0; }
.conn.send, .conn.reply { background: var(--accent-dim); }
.pkt {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px 2px var(--accent-dim);
  opacity: 0;
}
.pkt.back { background: #fff; box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.4); }
.conn.send .pkt:not(.back) { animation: pktDown 0.7s ease-in-out forwards; }
.conn.reply .pkt.back { animation: pktUp 0.7s ease-in-out forwards; }
@keyframes pktDown { 0% { opacity: 1; top: 0; } 85% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
@keyframes pktUp { 0% { opacity: 1; top: 100%; } 85% { opacity: 1; } 100% { opacity: 0; top: 0; } }
.seal-wrap {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 26px; opacity: 0; transform: scale(0.88);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.p-screen.sealed .seal-wrap { opacity: 1; transform: none; }
.id-card {
  position: relative; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #11161e, #0A0D12 60%);
  border: 1px solid var(--border-strong);
  aspect-ratio: 1.586; padding: 7%;
  display: grid; grid-template-columns: 31% 1fr; gap: 7%;
}
.id-photo {
  border-radius: 10px; background: #11161E; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: #2E3947;
}
.id-photo svg { width: 52%; height: 52%; }
.id-fields { display: flex; flex-direction: column; justify-content: center; gap: 11%; }
.id-line { height: 9%; min-height: 8px; border-radius: 99px; background: #1A212B; position: relative; overflow: hidden; }
.id-line.w60 { width: 60%; } .id-line.w85 { width: 85%; } .id-line.w45 { width: 45%; } .id-line.w70 { width: 70%; }
.id-line::after {
  content: ""; position: absolute; inset: 0; background: rgba(57, 241, 173, 0.35);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease;
}
.id-card.scanned .id-line::after { transform: scaleX(1); }
.scan-beam {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px 2px var(--accent-dim);
  opacity: 0; pointer-events: none;
}
.scanning .scan-beam { opacity: 1; animation: beam 2.2s ease-in-out infinite alternate; }
@keyframes beam { from { top: 4%; } to { top: 94%; } }

.scan-checks { list-style: none; display: flex; flex-direction: column; }
.scan-checks li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 17px 14px; margin: 0 -14px; border-bottom: 1px solid var(--border); border-radius: 14px;
  opacity: 0.32; transition: opacity 0.45s ease, background 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}
.scan-checks li:last-child { border-bottom: 0; }
.scan-checks li.on { opacity: 0.72; }
.scan-checks li.on h4 { color: var(--txt); }
.scan-checks .tick {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  border: 1px solid var(--border-strong); color: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; transition: all 0.3s ease;
}
.scan-checks li.on .tick { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.scan-checks li.cur { opacity: 1; background: linear-gradient(90deg, rgba(57, 241, 173, 0.15), rgba(57, 241, 173, 0.02)); transform: translateX(10px); transform-origin: left center; z-index: 2; }
html[dir="rtl"] .scan-checks li.cur { transform: translateX(-10px); transform-origin: right center; background: linear-gradient(270deg, rgba(57, 241, 173, 0.15), rgba(57, 241, 173, 0.02)); }
.scan-checks li.cur::before { content: ""; position: absolute; inset-inline-start: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 18px rgba(57, 241, 173, 0.8); }
.scan-checks li.cur h4 { color: var(--accent); text-shadow: 0 0 22px rgba(57, 241, 173, 0.35); transform: scale(1.12); }
.scan-checks li.cur p { color: var(--txt); }
.scan-checks li.cur .tick { border-color: var(--accent); color: transparent; background: rgba(57, 241, 173, 0.08); animation: tickPulse 1.4s ease-in-out infinite; }
@keyframes tickPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(57, 241, 173, 0.55); } 60% { box-shadow: 0 0 0 9px rgba(57, 241, 173, 0); } }
.scan-checks li.on .tick { animation: tickPop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes tickPop { 0% { transform: scale(0.6); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }
/* phone attention beat: step highlights first, then the phone lifts and glows, then it settles */
.phone { transition: box-shadow 0.9s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.9s ease; will-change: transform, filter; backface-visibility: hidden; }
.phone.live { box-shadow: 0 0 0 1px rgba(57, 241, 173, 0.5), 0 0 48px rgba(57, 241, 173, 0.22), 0 30px 70px rgba(0, 0, 0, 0.55); animation: phoneBreath 2.6s ease-in-out infinite; }
.phone.live.focus { transform: scale(1.07) translateY(-10px); box-shadow: 0 0 0 3px rgba(57, 241, 173, 0.95), 0 0 0 14px rgba(57, 241, 173, 0.14), 0 0 90px rgba(57, 241, 173, 0.5), 0 40px 90px rgba(0, 0, 0, 0.6); animation: none; }
.phone.live.focus .p-screens { animation: screenFlash 1.6s ease-out 1; }
@keyframes screenFlash { 0% { box-shadow: inset 0 0 0 999px rgba(57, 241, 173, 0); } 20% { box-shadow: inset 0 0 0 999px rgba(57, 241, 173, 0.22); } 100% { box-shadow: inset 0 0 0 999px rgba(57, 241, 173, 0); } }
.phone.live.focus::after { content: ""; position: absolute; inset: -18px; border-radius: 48px; border: 2px solid rgba(57, 241, 173, 0.8); animation: phoneRing 1.4s ease-out 3; pointer-events: none; }
@keyframes phoneRing { 0% { transform: scale(0.96); opacity: 0.9; } 100% { transform: scale(1.14); opacity: 0; } }
/* while the title is being read: phone steps back (smaller, dimmer, paused) */
.phone.live.rest { transform: scale(0.94) translateY(4px); filter: saturate(0.7) brightness(0.72); box-shadow: 0 0 0 1px rgba(57, 241, 173, 0.25), 0 24px 60px rgba(0, 0, 0, 0.5); animation: none; }
.scan-checks li.cur.wait { transform: translateX(6px); opacity: 0.78; }
html[dir="rtl"] .scan-checks li.cur.wait { transform: translateX(-6px); }
.scan-checks li.cur.wait::before { opacity: 0.6; box-shadow: none; }
.scan-checks li.cur.wait .tick { animation: none; }
/* dim the rest of the step list while the eye should be on the phone */
.scan-checks.eyes-phone li:not(.cur) { opacity: 0.16; }
.scan-checks.eyes-phone li.cur { background: transparent; }
@media (max-width: 1020px) { .scan-checks li.cur h4 { transform: scale(1.06); } .phone.live.focus { transform: scale(1.05) translateY(-6px); } .phone.live.rest { transform: scale(0.95) translateY(2px); } }
@keyframes phoneBreath { 0%, 100% { box-shadow: 0 0 0 1px rgba(57, 241, 173, 0.45), 0 0 34px rgba(57, 241, 173, 0.16), 0 30px 70px rgba(0, 0, 0, 0.55); } 50% { box-shadow: 0 0 0 1px rgba(57, 241, 173, 0.8), 0 0 64px rgba(57, 241, 173, 0.32), 0 30px 70px rgba(0, 0, 0, 0.55); } }
.phone.live .phone-cam { background: #1B2A24; }
.phone.live .phone-cam::after { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 5.5px auto 0; box-shadow: 0 0 8px var(--accent); }
html.theme-light .scan-checks li.cur h4 { color: #0BAE78; text-shadow: none; }
.scan-checks li.cur.wait h4, html[dir="rtl"] .scan-checks li.cur.wait h4, html.theme-light .scan-checks li.cur.wait h4 { transform: scale(1); text-shadow: none; }
@media (max-width: 1020px) { .scan-checks li.cur.wait h4 { transform: scale(1); } }
html.theme-light .scan-checks li.cur::before { background: #0BAE78; box-shadow: 0 0 12px rgba(11, 174, 120, 0.5); }
.scan-checks h4 { font-weight: 600; font-size: 1.02rem; line-height: 1.3; transform-origin: left center; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s ease, text-shadow 0.4s ease; will-change: transform; }
html[dir="rtl"] .scan-checks h4 { transform-origin: right center; }
.scan-checks p { color: var(--muted); font-size: 0.9rem; }
.scan-meta { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.scan-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  border: 1px solid var(--border); color: var(--muted); transition: all 0.4s ease;
}
.scan-status.done { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.replay {
  background: none; border: none; color: var(--muted); font-size: 0.88rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-b); text-decoration: underline; text-underline-offset: 3px;
}
.replay:hover { color: var(--txt); }

/* ── How it works ────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; text-align: start; }
.step { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 30px 24px 26px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-d); font-weight: 700; font-size: 0.95rem;
  color: var(--accent); margin-bottom: 14px; letter-spacing: 0.08em;
}
.step h4 { font-weight: 600; margin-bottom: 8px; font-size: 1.02rem; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ── Regulator section ───────────────────────────────────── */
.reg { background: linear-gradient(180deg, rgba(9, 49, 118, 0.16), rgba(9, 49, 118, 0.04)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reg-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: start; }
.trust-list { list-style: none; }
.trust-list li { display: flex; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--border); }
.trust-list li:last-child { border-bottom: 0; }
.trust-list .tick {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; margin-top: 3px;
  background: rgba(57, 241, 173, 0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700;
}
.trust-list .tick.fra { font-size: 0; }
.trust-list .tick.fra svg { width: 14px; height: 14px; }
.trust-list h4 { font-weight: 600; margin-bottom: 4px; font-size: 1.04rem; }
.trust-list p { color: var(--muted); font-size: 0.93rem; }
.reg-photo { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); position: sticky; top: 110px; }
.reg-photo img { display: block; width: 100%; height: 320px; object-fit: cover; filter: contrast(1.06); }
.license-box { background: var(--panel); border: 1px solid var(--border); border-radius: 0 0 18px 18px; border-top: 0; padding: 24px 26px; margin-top: -6px; }
.license-box .lbl { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; font-family: var(--font-d); }
.license-box .license-fra {
  grid-template-columns: 86px 1fr; padding: 0 0 18px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border); gap: 14px;
}
.license-box .license-fra .fra-logo-wrap { min-height: 68px; }
.license-box .license-fra .fra-logo { width: 78px; }
.license-box .license-fra .fra-title { margin-bottom: 0; }
.license-box .lbl svg { width: 14px; height: 14px; flex: none; }
.license-box .lbl span { white-space: nowrap; }
.license-box ul { list-style: none; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.86rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.reg-photo-wrap { display: flex; flex-direction: column; position: sticky; top: 96px; }

/* trust-network diagram - who VLens connects, live */
.trust-map {
  position: relative; height: 360px;
  background: var(--panel);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--border); border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.tm-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-lines line {
  stroke: rgba(57, 241, 173, 0.35); stroke-width: 1.5;
  stroke-dasharray: 3 7; vector-effect: non-scaling-stroke;
}
@media (prefers-reduced-motion: no-preference) {
  .tm-lines line { animation: dashFlow 1.5s linear infinite; }
}
@keyframes dashFlow { to { stroke-dashoffset: -10; } }
.tm-node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center; width: 130px;
}
.tm-node small { font-size: 0.7rem; line-height: 1.35; color: var(--muted); font-weight: 500; }
.tm-node.tm-center small { color: var(--txt); font-weight: 600; font-family: var(--font-d); }
.tm-ic {
  width: 40px; height: 40px; border-radius: 50%;
  background: #0E1218; border: 1px solid var(--border-strong); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.tm-ic svg { width: 18px; height: 18px; }
.tm-ic.core {
  width: 64px; height: 64px; position: relative;
  border-color: var(--accent); background: #000;
}
.tm-ic.core img { width: 34px; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .tm-ic.core::after {
    content: ""; position: absolute; inset: -7px; border-radius: 50%;
    border: 1.5px solid var(--accent-dim);
    animation: facePulse 2.4s ease-out infinite;
  }
}

/* ── Platform status ── */
.status-card { display: flex; align-items: center; gap: 28px; padding: 34px 40px; margin-top: 28px; border: 1px solid var(--border); border-radius: 24px; background: var(--panel); }
.status-ic { flex: none; width: 96px; height: 96px; border-radius: 50%; border: 1px solid rgba(57, 241, 173, 0.55); display: flex; align-items: center; justify-content: center; color: var(--accent); background: rgba(57, 241, 173, 0.05); box-shadow: 0 0 0 10px rgba(57, 241, 173, 0.05); }
.status-ic svg { width: 40px; height: 40px; }
.status-copy { flex: 1; min-width: 0; }
.status-eyebrow { display: block; color: var(--accent); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 10px; }
html[dir="rtl"] .status-eyebrow { letter-spacing: 0; }
.status-title { display: block; font-size: 1.6rem; font-weight: 700; color: var(--txt); line-height: 1.25; margin-bottom: 8px; }
.status-sub { color: var(--muted); font-size: 1.05rem; }
.status-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: 14px; border: 1px solid rgba(57, 241, 173, 0.55); color: var(--accent); font-weight: 700; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.status-btn:hover { background: rgba(57, 241, 173, 0.1); border-color: var(--accent); }
.status-btn svg { width: 16px; height: 16px; }
html[dir="rtl"] .status-btn svg { transform: scaleX(-1); }
html.theme-light .status-card { background: #FFFFFF; border-color: rgba(10, 13, 18, 0.12); }
html.theme-light .status-eyebrow, html.theme-light .status-ic, html.theme-light .status-btn { color: #0BAE78; }
@media (max-width: 860px) { .status-card { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 24px; } .status-ic { width: 72px; height: 72px; } .status-ic svg { width: 30px; height: 30px; } .status-title { font-size: 1.3rem; } .status-btn { width: 100%; justify-content: center; } }

/* ── CTA ─────────────────────────────────────────────────── */
.cta-box {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); border-radius: 24px;
  padding: 88px 48px; text-align: center;
}
.cta-box .rings { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, 86%); height: auto; opacity: 0.12; pointer-events: none; color: var(--accent); stroke-width: 1.2; }
.cta-box h2 { margin-bottom: 14px; }
.cta-box .lead { margin: 0 auto 38px; }
.cta-inner { position: relative; }
.cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-contact {
  display: flex; gap: 20px; justify-content: center; align-items: center;
  margin-top: 32px; flex-wrap: wrap;
}
.cta-contact a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--txt); text-decoration: none;
  font-size: 1.12rem; font-weight: 600; font-family: var(--font-d);
  letter-spacing: 0.01em; transition: color 0.2s;
}
.cta-contact a svg { width: 19px; height: 19px; color: var(--accent); }
.cta-contact a:hover { color: var(--accent); }
.cta-contact .sep { color: var(--border-strong); font-size: 1.2rem; }
@media (max-width: 700px) {
  .cta-contact { flex-direction: column; gap: 18px; }
  .cta-contact .sep { display: none; }
  .cta-contact a { justify-content: center; }
}

/* ── Footer ──────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 54px 0; color: var(--muted); font-size: 0.9rem; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; }
.foot-links { display: flex; gap: 14px 22px; flex-wrap: wrap; }
.foot-links a { white-space: nowrap; }
.status-link { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(57, 241, 173, 0.18); flex: 0 0 auto; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--txt); }

/* ── Reveal on scroll ────────────────────────────────────── */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; min-width: 0; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid > div:first-child { text-align: center; }
  .hero h1 { font-size: clamp(2.05rem, 6.2vw, 2.7rem); line-height: 1.12; margin-inline: auto; max-width: 22ch; letter-spacing: -0.015em; }
  .hero h1 .h-sub { font-size: 0.5em; margin-top: 18px; max-width: none; margin-inline: auto; }
  .hero .sub { margin-inline: auto; font-size: 1.02rem; }
  .hero-ctas .btn { padding: 13px 28px; font-size: 0.95rem; }
  .hero-ctas { justify-content: center; }
  .hero-visual { display: block; justify-self: center; max-width: 560px; margin-top: 0; }
  .scan-wrap, .reg-grid, .cs-wrap { grid-template-columns: 1fr; gap: 48px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .scan-wrap, .cs-wrap { gap: 20px; }
  #demo .scan-wrap > div:nth-child(2) { display: none; }
  #contracting .cs-wrap .lead, #contracting .cs-wrap .scan-checks, #contracting .cs-wrap .scan-meta { display: none; }
}
@media (max-width: 700px) {
  .nav-links a.hide-m { display: none; }
  #demo .scan-meta, #contracting .scan-meta { display: none; }
  .hero { padding-top: 140px; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.35rem); }
  .hero h1 .h-sub { font-size: 0.56em; line-height: 1.32; }
  .hero .sub { font-size: 0.98rem; }
  .fra-approval { grid-template-columns: 1fr; gap: 14px; justify-items: center; text-align: center; }
  .fra-approval small { margin-inline: auto; }
  .fra-logo-wrap { justify-content: center; min-height: auto; }
  .fra-logo { width: 92px; }
  .grid, .steps { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .client-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .client-row .cat { width: auto; }
  .client-row .marquee { width: 100%; align-self: stretch; }
  .nav-links { gap: 10px; }
  .nav-links a.btn-primary { padding: 9px 14px; font-size: 0.85rem; border-radius: 10px; }
  .lang-btn { padding: 8px 11px; font-size: 0.8rem; }
  .theme-btn { width: 36px; height: 36px; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot-links { flex-direction: column; align-items: flex-start; gap: 12px; }
}
