/* proqer.ai brochure. Night-first like the app's landing: night Earth, the cyan signal, glass cards, the brand gradient
   #3B82F6 → #22D3EE → #10B981, Sora for headlines (Latin), Cairo for Arabic/Farsi. Phone first (360 px up), RTL by
   logical properties. Motion: `.in` (set once an element is on screen) and `--p` (0→1 while a [data-scrub] element
   crosses the screen), both written by site.js; with reduced motion everything is shown still. */
@font-face { font-family: 'Sora'; src: url('/fonts/Sora-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Cairo'; src: url('/fonts/Cairo-arabic-variable.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  --bg: #04060d;
  --bg-2: #070b18;
  --ink: #f1f5f9;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --glass: rgba(13, 20, 38, 0.62);
  --glass-2: rgba(15, 23, 42, 0.82);
  --line: rgba(148, 163, 184, 0.16);
  --line-2: rgba(148, 163, 184, 0.28);
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --emerald: #10b981;
  --violet: #8b5cf6;
  --grad: linear-gradient(90deg, #3b82f6, #22d3ee 55%, #10b981);
  --cta: linear-gradient(90deg, #2563eb, #0284c7);
  --err: #fca5a5;
  --text: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --display: 'Sora', var(--text);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
:lang(ar), :lang(fa) { --text: 'Cairo', Inter, ui-sans-serif, system-ui, sans-serif; --display: 'Cairo', Inter, system-ui, sans-serif; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
:lang(ar) body, :lang(fa) body { line-height: 1.75; }
bdi { unicode-bidi: isolate; }
a { color: #7dd3fc; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--cta); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(4, 6, 13, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; color: #fff; margin-inline-end: auto; }
.brand .wordmark { height: 28px; width: auto; display: block; }
.nav { display: none; gap: 22px; margin-inline-end: 8px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.nav a:hover { color: #fff; }
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); border: 1px solid var(--line-2); background: rgba(4, 6, 13, 0.4); border-radius: 999px; padding: 0 10px; height: 38px; }
.lang .ic { width: 17px; height: 17px; flex: none; }
.lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; padding: 0 2px; height: 100%; cursor: pointer; max-width: 92px; }
.lang option { background: #0b1430; }
.top .btn-sm { display: none; }
@media (min-width: 520px) { .top .btn-sm { display: inline-flex; } }
.btn-sm { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--cta); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }

/* Hero */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.earth { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.earth-box {
  /* The image's own shape (1920 × 1288), sized and placed so the Istanbul–Dubai arc sits where the layout wants it. */
  --w: 290vw;
  position: absolute; width: var(--w); aspect-ratio: 1920 / 1288;
  inset-inline-start: calc(50vw - 0.577 * var(--w)); top: calc(24svh - 0.55 * var(--w) * 0.6708);
  animation: earth-in 2.4s var(--ease) both;
}
[dir='rtl'] .earth-box { inset-inline-start: auto; left: calc(50vw - 0.577 * var(--w)); }
.earth-box img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.earth::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(4, 6, 13, 0.75) 0%, rgba(4, 6, 13, 0) 18%, rgba(4, 6, 13, 0) 38%, rgba(4, 6, 13, 0.82) 58%, var(--bg) 100%); }
.arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net-line { fill: none; stroke-width: 0.88; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) forwards; }
.head .halo { fill: #67e8f9; opacity: 0.3; } .head .core { fill: #a5f3fc; }
.origin { opacity: 0; animation: glow-in 1.2s 0.6s forwards; } .origin .halo { fill: #22d3ee; opacity: 0.2; } .origin .core { fill: #fcd34d; }
.city .dot { fill: #fff; filter: drop-shadow(0 0 4px #22d3ee); }
.city .ring { fill: none; stroke: #22d3ee; stroke-width: 0.8; opacity: 0.6; transform-origin: center; transform-box: fill-box; animation: ping 4s 0.4s ease-out infinite; }
.city.c2 .ring { stroke: #10b981; animation-delay: 1.6s; }
.city text { fill: #fff; font: 600 17px var(--text); paint-order: stroke; stroke: rgba(4, 6, 13, 0.7); stroke-width: 4px; opacity: 0; animation: glow-in 0.8s 0.9s forwards; }
.city.c2 text { animation-delay: 2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glow-in { to { opacity: 0.9; } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes earth-in { from { transform: scale(1.06); opacity: 0.4; } to { transform: none; opacity: 1; } }

.hero-in { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: calc(36svh + 4px) 16px 56px; display: flex; flex-direction: column; }
.hero .eyebrow { display: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: rgba(4, 6, 13, 0.55); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); flex: none; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; margin: 0; }
:lang(ar) h1, :lang(fa) h1, :lang(ar) h2, :lang(fa) h2 { letter-spacing: 0; font-weight: 700; }
h1 { font-size: clamp(31px, 8.6vw, 58px); line-height: 1.04; margin-bottom: 12px; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
:lang(ar) h1, :lang(fa) h1 { line-height: 1.3; }
:lang(zh) h1, :lang(zh) h2 { letter-spacing: 0; line-height: 1.2; font-weight: 700; }
.sub { font-size: 16px; color: var(--ink-2); margin: 0 0 16px; max-width: 34em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.cue { position: absolute; bottom: 14px; inset-inline-start: 50%; transform: translateX(-50%); color: var(--muted); display: grid; place-items: center; width: 40px; height: 40px; animation: bob 2.4s ease-in-out infinite; }
[dir='rtl'] .cue { transform: translateX(50%); }
.cue .ic { width: 22px; height: 22px; }
@keyframes bob { 50% { translate: 0 6px; } }

/* Glass + form */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.form-card { position: relative; padding: 12px; overflow: hidden; max-width: 540px; }
.hero .join { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--emerald), #0ea5e9, var(--violet)); }
.field input { width: 100%; height: 52px; border-radius: 12px; border: 1.5px solid var(--line-2); background: rgba(2, 6, 23, 0.6); color: var(--ink); font: inherit; font-size: 16px; padding: 0 14px; }
.field input::placeholder { color: #7c8aa3; }
.field input:focus { border-color: #38bdf8; outline: none; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25); }
.field input[aria-invalid='true'] { border-color: var(--err); }
.roles { border: 0; padding: 0; margin: 10px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.roles legend { float: inline-start; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-inline-end: 4px; padding: 0; line-height: 36px; }
.roles label { position: relative; }
.roles input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.roles span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 15px; font-weight: 600; color: var(--ink-2); transition: all 0.2s; }
.roles input:checked + span { border-color: transparent; background: linear-gradient(rgba(4, 6, 13, 0.85), rgba(4, 6, 13, 0.85)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; color: #fff; }
.roles input:focus-visible + span { outline: 2px solid #38bdf8; outline-offset: 2px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-turnstile]:not(:empty) { margin-bottom: 12px; }
.cta { width: 100%; height: 52px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; font: inherit; font-size: 16px; font-weight: 700; background: var(--cta); box-shadow: 0 8px 26px rgba(37, 99, 235, 0.38); transition: transform 0.15s, box-shadow 0.15s; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45); }
.cta:disabled { opacity: 0.7; cursor: progress; transform: none; }
.cta.danger { background: linear-gradient(90deg, #dc2626, #b91c1c); box-shadow: none; }
.err { color: var(--err); font-size: 14px; font-weight: 600; margin: 10px 0 0; }
.consent { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.consent a { color: #93c5fd; }
.thanks { text-align: center; padding: 6px 4px; outline: none; }
.thanks h3 { margin: 10px 0 6px; font-size: 21px; }
.thanks p { margin: 0 0 8px; color: var(--ink-2); }
.thanks b { color: #fff; overflow-wrap: anywhere; }
.muted { color: var(--muted) !important; font-size: 14px; }
.ok { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--emerald), #0ea5e9); }
.ok svg { width: 26px; height: 26px; }

/* Sections */
.sec { position: relative; padding: 84px 0; overflow-x: clip; }
main { overflow-x: clip; }
.sec-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sec-in.narrow { max-width: 760px; }
.two { display: grid; gap: 40px; align-items: start; }
.center { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.kicker { margin: 0 0 10px; font-size: 14.5px; font-weight: 700; letter-spacing: 0.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(30px, 7.4vw, 50px); line-height: 1.08; margin-bottom: 14px; }
:lang(ar) h2, :lang(fa) h2 { line-height: 1.35; }
.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; }
.ti { width: 22px; height: 22px; color: var(--cyan); flex: none; margin-top: 2px; }

/* Query visual */
.qviz { position: relative; padding: 8px 0 0; }
.qcard { padding: 18px; position: relative; z-index: 1; }
.qhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.qbadge { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(14, 165, 233, 0.18); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.35); }
.qalias { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.mi { width: 16px; height: 16px; }
.qtext { font-size: 18px; line-height: 1.5; margin: 0 0 14px; color: #fff; min-height: 3em; }
.qtext .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--cyan); vertical-align: -0.15em; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.qfoot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.avatars { display: flex; }
.avatars i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #0b1430; margin-inline-start: -8px; background: linear-gradient(135deg, #1e3a8a, #0ea5e9); opacity: 0; transform: translateY(6px); transition: all 0.5s var(--ease); }
.avatars i:nth-child(2) { background: linear-gradient(135deg, #065f46, #10b981); transition-delay: 0.15s; }
.avatars i:nth-child(3) { background: linear-gradient(135deg, #4c1d95, #22d3ee); transition-delay: 0.3s; }
.qviz.answered .avatars i { opacity: 1; transform: none; }
.qrays { position: absolute; inset: -30px -10px; z-index: 0; pointer-events: none; }
.qrays span { position: absolute; inset-inline-start: 50%; top: 50%; width: 140%; height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent); transform-origin: center; transform: translate(-50%, -50%) rotate(calc(var(--r) * 1deg + var(--p, 0) * 30deg)); opacity: calc(0.25 + var(--p, 0) * 0.5); }
.qrays span:nth-child(1) { --r: -14; } .qrays span:nth-child(2) { --r: 8; } .qrays span:nth-child(3) { --r: 26; }
.note { font-size: 12px; color: var(--muted); text-align: end; margin: 8px 2px 0; text-transform: uppercase; letter-spacing: 0.06em; }
:lang(ar) .note, :lang(fa) .note, :lang(zh) .note { text-transform: none; letter-spacing: 0; }

/* Features */
.feats { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 22px; }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.fi { width: 44px; height: 44px; flex: none; padding: 10px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(16, 185, 129, 0.25)); border: 1px solid var(--line-2); }
.feat h3 { font-size: 18px; margin: 2px 0 4px; letter-spacing: -0.01em; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.buyers .feat:first-child .fi { background: linear-gradient(135deg, rgba(34, 211, 238, 0.45), rgba(139, 92, 246, 0.45)); }
.chat { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line); display: grid; gap: 8px; }
.chat-note { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
:lang(ar) .chat-note, :lang(fa) .chat-note, :lang(zh) .chat-note { text-transform: none; letter-spacing: 0; }
.bubble { margin: 0; padding: 10px 13px; border-radius: 15px; font-size: 14.5px; max-width: 92%; }
.bubble.me { justify-self: end; background: rgba(37, 99, 235, 0.3); border-end-end-radius: 5px; }
.bubble-row { display: flex; gap: 8px; align-items: flex-end; }
.bubble.ai { background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.18)); border: 1px solid rgba(139, 92, 246, 0.28); border-end-start-radius: 5px; }
.orb { width: 26px; height: 26px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #a5f3fc, #22d3ee 35%, #8b5cf6 80%); box-shadow: 0 0 16px rgba(139, 92, 246, 0.5); }
.heat { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.heat span { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid; }
.h-hot { color: #fecaca; border-color: rgba(248, 113, 113, 0.5); background: rgba(239, 68, 68, 0.14); }
.h-act { color: #fde68a; border-color: rgba(250, 204, 21, 0.45); background: rgba(234, 179, 8, 0.12); }
.h-warm { color: #fed7aa; border-color: rgba(251, 146, 60, 0.45); background: rgba(249, 115, 22, 0.12); }
.h-pas { color: #cbd5e1; border-color: rgba(148, 163, 184, 0.4); background: rgba(148, 163, 184, 0.1); }

/* Worries (the problem, before the answers) */
.pains { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pains li { padding: 20px; position: relative; }
.pains .pn { font-family: var(--display); font-size: 15px; color: var(--muted); letter-spacing: 0.04em; }
.pains h3 { margin: 6px 0 6px; font-size: 19px; }
.pains p { margin: 0; color: var(--ink-2); font-size: 15px; }
.turn { text-align: center; margin: 28px auto 0; font-family: var(--display); font-size: clamp(20px, 4.6vw, 26px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 720px; }
:lang(ar) .turn, :lang(fa) .turn { font-weight: 700; }
.qlead { color: var(--ink-2); font-size: 15px; margin: 0 0 12px; }
/* The right people */
.pros { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pros li { padding: 20px; }
.pros h3 { margin: 12px 0 4px; font-size: 17px; }
.pros p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.msgline { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 18px auto 0; padding: 14px 18px; max-width: 640px; color: var(--ink-2); font-size: 15px; }
.msgline .mi { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.v-honest { gap: 14px; } .v-honest .tg { font-size: 22px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; }

/* Anya conversations */
.chat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chat-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; color: var(--ink-2); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.chat-tabs button[aria-selected='true'] { color: #fff; border-color: transparent; background: linear-gradient(rgba(4, 6, 13, 0.85), rgba(4, 6, 13, 0.85)) padding-box, linear-gradient(90deg, #22d3ee, #8b5cf6) border-box; border: 1.5px solid transparent; }
.convo { padding: 0; overflow: hidden; min-height: 420px; display: flex; flex-direction: column; }
.convo-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.convo-head b { display: block; font-size: 15px; } .convo-head small { color: var(--muted); font-size: 12px; }
.convo-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.msg { margin: 0; padding: 10px 13px; border-radius: 16px; font-size: 15px; max-width: 86%; line-height: 1.5; }
.msg.me { align-self: flex-end; background: rgba(37, 99, 235, 0.32); border-end-end-radius: 5px; }
.msg.ai { align-self: flex-start; background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(139, 92, 246, 0.16)); border: 1px solid rgba(139, 92, 246, 0.26); border-end-start-radius: 5px; }
.convo.play .msg:not(.shown) { display: none; }
.convo.play .msg.shown { animation: msg-in 0.5s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.msg.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #a5f3fc; opacity: 0.4; animation: dot 1.1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; } .msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 50% { opacity: 1; transform: translateY(-2px); } }
.photo-chip { display: inline-flex; vertical-align: -3px; margin-inline-end: 6px; opacity: 0.85; }
.understood { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); transition: opacity 0.6s; }
.convo.play .convo-body:not(.done) .understood { opacity: 0; }
.understood span { display: flex; flex-wrap: wrap; gap: 6px; }
.understood i { font-style: normal; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3); color: #a5f3fc; }

/* Intelligence engines */
.tags { display: flex; justify-content: center; gap: 8px; margin: 4px 0 0; }
.tg { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid; }
.tg.m { color: #6ee7b7; border-color: rgba(16, 185, 129, 0.45); } .tg.e { color: #fcd34d; border-color: rgba(245, 158, 11, 0.45); } .tg.s { color: #93c5fd; border-color: rgba(59, 130, 246, 0.45); }
.engines { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.engine { padding: 0 0 18px; overflow: hidden; }
.engine h3 { display: flex; align-items: center; gap: 8px; margin: 14px 18px 6px; font-size: 17px; }
.engine h3 .mi { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.engine p { margin: 0 18px; color: var(--ink-2); font-size: 14.5px; }
.viz { height: 150px; position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, rgba(59, 130, 246, 0.16), transparent 70%); border-bottom: 1px solid var(--line); }
.v-loc { position: absolute; inset: 0; }
.v-loc .ring { position: absolute; left: 50%; top: 50%; border: 1px dashed rgba(125, 211, 252, 0.35); border-radius: 50%; transform: translate(-50%, -50%); }
.v-loc .r1 { width: 90px; height: 90px; } .v-loc .r2 { width: 170px; height: 170px; }
.v-loc .home-dot { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.25), 0 0 18px #22d3ee; }
.v-loc .poi { position: absolute; left: calc(var(--xy)); width: 8px; height: 8px; border-radius: 50%; background: #fcd34d; box-shadow: 0 0 10px rgba(252, 211, 77, 0.7); }
.v-loc .poi:nth-child(4) { left: 18%; top: 30%; } .v-loc .poi:nth-child(5) { left: 74%; top: 22%; } .v-loc .poi:nth-child(6) { left: 80%; top: 70%; } .v-loc .poi:nth-child(7) { left: 26%; top: 76%; } .v-loc .poi:nth-child(8) { left: 52%; top: 12%; }
.v-bars { position: absolute; inset: 22px 22px 18px; display: flex; align-items: flex-end; gap: 8px; }
.v-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, rgba(34, 211, 238, 0.55), rgba(59, 130, 246, 0.15)); transform-origin: bottom; transform: scaleY(0.2); transition: transform 1.2s var(--ease); }
.engine.in .v-bars i { transform: none; }
.v-bars svg { position: absolute; inset: 0; width: 100%; height: 100%; } .v-bars path { fill: none; stroke: #6ee7b7; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.v-heat { position: absolute; inset: 16px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.v-heat i { border-radius: 4px; background: color-mix(in oklab, #10b981 calc((1 - var(--k)) * 100%), #ef4444); opacity: 0.8; }
.v-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.v-gauge { position: absolute; inset: 22px 30px 10px; display: grid; place-items: center; }
.v-gauge svg { width: 100%; max-width: 220px; } .v-gauge .track { fill: none; stroke: rgba(148, 163, 184, 0.2); stroke-width: 9; stroke-linecap: round; }
.v-gauge .fill { fill: none; stroke: url(#arcg); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.6s var(--ease); }
.engine.in .v-gauge .fill { stroke-dashoffset: 0; }
.v-cols { position: absolute; inset: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.v-cols div { border-radius: 10px; background: rgba(15, 23, 42, 0.7); border: 1px solid var(--line); padding: 10px 8px; display: grid; gap: 8px; align-content: start; }
.v-cols i { height: 6px; width: var(--w); border-radius: 3px; background: rgba(125, 211, 252, 0.45); }
.v-intent { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 18px; }
.v-intent span { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid; }

/* Devices with real app screens */
.device { margin: 0; position: relative; }
.device .screen { position: relative; overflow: hidden; background: #000; }
.device img { display: block; width: 100%; height: auto; transform: translateY(calc(var(--p, 0) * var(--travel, 0%))); will-change: transform; }
/* Runway: the frame stays pinned while the page scrolls by, and its screen scrolls slowly from the top (site.js --p). */
.stick { --dw: min(300px, 78vw); --run: 150svh; position: relative; height: calc(var(--dw) * 2.164 + 70px + var(--run)); }
.stick .device { position: sticky; top: 10svh; }
/* Auto: the product row pans slowly by itself once on screen, from the top, and back. */
.device.auto img { transform: none; animation: pan 26s ease-in-out 1.2s infinite alternate; animation-play-state: paused; }
.stage.in .device.auto img { animation-play-state: running; }
@keyframes pan { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(var(--travel)); } }
.device.phone { width: min(300px, 78vw); margin-inline: auto; padding: 9px; border-radius: 44px; background: linear-gradient(160deg, #1f2937, #0b0f19); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(34, 211, 238, 0.08); }
.device.phone .screen { border-radius: 36px; aspect-ratio: 390 / 844; }
.device.desktop { width: 100%; padding: 26px 8px 8px; border-radius: 16px; background: linear-gradient(180deg, #1f2937, #0f172a); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.5); }
.device.desktop::before { content: ''; position: absolute; top: 10px; inset-inline-start: 14px; width: 42px; height: 8px; background: radial-gradient(circle 4px at 4px 4px, #f87171 98%, transparent), radial-gradient(circle 4px at 21px 4px, #fbbf24 98%, transparent), radial-gradient(circle 4px at 38px 4px, #34d399 98%, transparent); }
.device.desktop .screen { border-radius: 8px; aspect-ratio: 1440 / 900; }
.device figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; font-weight: 600; }
.stage { display: grid; gap: 28px; }
.pair .second { display: none; }
/* Phones: the screens side by side in a row you swipe. */
@media (max-width: 979px) {
  .stage { grid-auto-flow: column; grid-auto-columns: min(300px, 78vw); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 12px; margin: 0 -16px; scrollbar-width: none; }
  .stage::-webkit-scrollbar { display: none; }
  .stage > .device { scroll-snap-align: center; }
  .stage .device.desktop { grid-column: auto; width: min(560px, 86vw); }
  .stage { grid-auto-columns: auto; }
  .stage .device.phone { width: min(260px, 70vw); }
}

/* Markets */
.globe { position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 1920 / 1288; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); }
.globe-img { position: absolute; inset: 0; background: url('/img/earth-1920.webp') center / cover no-repeat; }
.globe::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 55%, transparent 40%, rgba(4, 6, 13, 0.7) 100%); }
.pin { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; z-index: 1; }
.pin.live { background: #fff; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.35), 0 0 22px #22d3ee; }
.pin.live::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid #22d3ee; animation: ping 2.4s ease-out infinite; }
.pin.live b { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; background: rgba(4, 6, 13, 0.7); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); }
.pin.soon { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: transparent; border: 1.5px dashed rgba(203, 213, 225, 0.7); }
.legend { list-style: none; padding: 0; margin: 18px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; color: var(--ink-2); font-size: 14.5px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 10px; height: 10px; border-radius: 50%; }
.lg.live { background: #fff; box-shadow: 0 0 10px #22d3ee; }
.lg.soon { border: 1.5px dashed rgba(203, 213, 225, 0.8); }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 14px; counter-reset: s; }
.steps li { position: relative; padding: 18px 18px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.steps .num { position: absolute; top: 14px; inset-inline-end: 16px; font-family: var(--display); font-size: 34px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { margin: 10px 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
.form-card.end { margin: 0 auto; }
.form-title { margin: 4px 0 12px; font-size: 20px; }

/* FAQ, investors, privacy */
.qa { display: grid; gap: 10px; margin-bottom: 22px; }
.qa details { border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.chev { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform 0.25s; }
.qa details[open] .chev { transform: rotate(180deg); }
.qa p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); }
.inv, .privacy { padding: 18px; margin-top: 14px; }
.inv h3, .privacy h3 { margin: 0 0 6px; font-size: 18px; }
.inv p { margin: 0; color: var(--ink-2); }
.privacy ul { margin: 0; padding-inline-start: 20px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 6px; }

.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; gap: 18px; }
.foot-brand { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.foot-brand .wordmark { height: 24px; width: auto; color: #fff; }
.foot-links, .foot-langs { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-langs a[aria-current] { color: #fff; font-weight: 700; }

/* Confirm / leave */
body.plain { background: radial-gradient(900px 600px at 80% -10%, rgba(59, 130, 246, 0.22), transparent 60%), var(--bg); min-height: 100vh; }
body.plain .top { position: static; }
.link-page { display: grid; place-items: center; padding: 40px 16px 60px; }
.link-card { width: 100%; max-width: 480px; padding: 28px 22px; text-align: center; }
.link-card h1 { font-size: 26px; margin: 14px 0 8px; line-height: 1.3; }
.link-card p { color: var(--ink-2); }
.ref { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ref h2 { font-size: 20px; margin: 0 0 6px; }
.ref-link { display: flex; gap: 8px; margin: 12px 0; }
.ref-link input { flex: 1; min-width: 0; height: 42px; border-radius: 10px; border: 1.5px solid var(--line-2); background: rgba(2, 6, 23, 0.6); color: #fff; font: inherit; font-size: 14px; padding: 0 12px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.share-row a { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.back { font-weight: 600; }

/* Reveal + scrub (motion on) */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* Short phones (iPhone SE, small Androids): a smaller Earth band so the whole form fits on the first screen. */
@media (max-width: 719px) and (max-height: 760px) {
  .hero-in { padding-top: calc(27svh + 4px); padding-bottom: 40px; }
  .earth-box { top: calc(17svh - 0.55 * var(--w) * 0.6708); }
  h1 { font-size: clamp(28px, 7.8vw, 34px); margin-bottom: 8px; }
  .sub { font-size: 15px; margin-bottom: 12px; line-height: 1.45; }
  .cue { display: none; }
}
@media (min-width: 720px) {
  .hero-in { padding-top: calc(38svh + 4px); }
  .hero .eyebrow { display: inline-flex; }
  .form-card { padding: 20px; }
  .join, .hero .join { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: center; }
  .join .field { grid-column: 1; grid-row: 1; }
  .join .cta { grid-column: 2; grid-row: 1; width: auto; padding: 0 22px; }
  .join .roles, .join .err, .join .consent, .join [data-turnstile] { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .engines { grid-template-columns: repeat(2, 1fr); }
  .pains { grid-template-columns: repeat(3, 1fr); }
  .pros { grid-template-columns: repeat(2, 1fr); }
  .stage { grid-template-columns: 1fr; }
}
@media (min-width: 980px) {
  .nav { display: flex; }
  .net-line { stroke-width: 0.66; } .net { filter: url(#netglow); }
  .earth-box { --w: 132vw; inset-inline-start: calc(68vw - 0.577 * var(--w)); top: calc(52svh - 0.55 * var(--w) * 0.6708); }
  [dir='rtl'] .earth-box { left: calc(32vw - 0.577 * var(--w)); }
  .earth::after { background: linear-gradient(90deg, rgba(4, 6, 13, 0.95) 0%, rgba(4, 6, 13, 0.85) 32%, rgba(4, 6, 13, 0) 56%), linear-gradient(180deg, rgba(4, 6, 13, 0.6) 0%, transparent 16%, transparent 72%, var(--bg) 100%); }
  [dir='rtl'] .earth::after { background: linear-gradient(270deg, rgba(4, 6, 13, 0.95) 0%, rgba(4, 6, 13, 0.85) 32%, rgba(4, 6, 13, 0) 56%), linear-gradient(180deg, rgba(4, 6, 13, 0.6) 0%, transparent 16%, transparent 72%, var(--bg) 100%); }
  .hero-in { padding-top: max(96px, 17svh); padding-bottom: 72px; max-width: 1180px; min-height: 100svh; justify-content: center; }
  .hero-in > * { max-width: 540px; }
  .sub { font-size: 18px; }
  .sec { padding: 120px 0; }
  .two { grid-template-columns: 1.05fr 0.95fr; gap: 72px; }
  .two.flip > .copy { order: 2; }
  .stick { --dw: 300px; --run: 170svh; }
  .stick .device { top: 90px; }
  .qviz { padding-top: 40px; }
  .stage { grid-template-columns: 1fr 2.4fr 1fr; align-items: center; gap: 28px; }
  .stage .p-left, .stage .p-right { display: block; }
  .stage .p-left { order: -1; margin-top: 60px; }
  .stage .p-right { margin-top: -60px; }
  .stage .device.phone { width: 100%; }
  .engines { grid-template-columns: repeat(3, 1fr); }
  .pros { grid-template-columns: repeat(4, 1fr); }
  .convo { min-height: 470px; }
  .pair { --dw: 250px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .pair .second { display: block; margin-top: 70px; }
  .pair .device.phone { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .city text { opacity: 0.9; }
  .device img, .stage .p-left, .stage .p-right { transform: none !important; }
  .stick { height: auto; } .stick .device { position: static; }
  .net-line { stroke-dashoffset: 0; } .origin { opacity: 1; } .head { display: none; }
  .avatars i { opacity: 1; transform: none; }
  .convo.play .msg:not(.shown) { display: block; } .convo.play .convo-body:not(.done) .understood { opacity: 1; }
  .v-bars i { transform: none; } .v-gauge .fill { stroke-dashoffset: 0; }
}
