:root {
  --bg: #07070d;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f4f8;
  --muted: rgba(244, 244, 248, 0.62);
  --teal: #22d3c5;
  --violet: #7c3aed;
  --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Navigation: floating glass pill */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; align-items: center; gap: 22px;
  padding: 8px 10px 8px 16px; border-radius: 999px;
  background: rgba(20, 20, 32, 0.55); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  white-space: nowrap;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav .links a { color: var(--muted); text-decoration: none; font-size: 15px; margin: 0 8px; }
.nav .links a:hover { color: var(--text); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line);
}
.pill:hover { background: rgba(255, 255, 255, 0.14); }

/* Hero over the shader */
.hero { position: relative; min-height: min(100svh, 1000px); display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: radial-gradient(60% 50% at 50% 50%, rgba(124, 58, 237, 0.25), transparent), var(--bg);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30vh; background: linear-gradient(transparent, var(--bg)); }
.hero-inner { position: relative; z-index: 1; padding: 120px 24px 80px; max-width: 860px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.28em; font-size: 12px; color: var(--muted); margin: 0 0 18px; }
h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 800; }
h1 .grad { background: linear-gradient(90deg, var(--teal), #a78bfa 60%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta .primary { background: var(--text); color: #0b0b12; border-color: transparent; }
.cta .primary:hover { background: #fff; }
.services { display: flex; gap: 22px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.services span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.logo { width: 22px; height: 22px; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; background: var(--c); }

/* Word-by-word blur reveal */
.reveal span { display: inline-block; filter: blur(12px); opacity: 0; transform: translateY(8px); animation: in 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes in { to { filter: blur(0); opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal span { animation: none; filter: none; opacity: 1; transform: none; } }

section { padding: 110px 24px; max-width: 1120px; margin: 0 auto; }
h2 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 16px; text-align: center; }
.sub { color: var(--muted); text-align: center; max-width: 620px; margin: 0 auto 56px; }

/* Phones */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin-top: -60px; position: relative; z-index: 2; padding: 0 24px; }
.phone { width: min(300px, 30vw); border-radius: 44px; padding: 10px; background: #111; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 120px rgba(124, 58, 237, 0.25); }
.phone img { border-radius: 34px; }
.phone.side { width: min(250px, 25vw); opacity: 0.85; }
@media (max-width: 720px) { .phone.side { display: none; } .phone { width: 72vw; } }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 12px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(34,211,197,.25), rgba(124,58,237,.35)); font-size: 20px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: #0b0b12; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.final { text-align: center; padding: 120px 24px; background: radial-gradient(50% 60% at 50% 100%, rgba(124,58,237,.28), transparent); max-width: none; }

footer { border-top: 1px solid var(--line); padding: 36px 24px; color: var(--muted); font-size: 14px; }
footer .row { max-width: 1120px; margin: 0 auto; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer nav a { margin-right: 18px; text-decoration: none; }
footer nav a:hover { color: var(--text); }

/* Legal / support pages */
.doc { max-width: 760px; margin: 0 auto; padding: 140px 24px 80px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); }
.doc h2 { text-align: left; font-size: 24px; margin: 40px 0 10px; }
.doc p, .doc li { color: rgba(244,244,248,.82); }
.doc .updated { color: var(--muted); font-size: 14px; }
.langmenu { position: relative; }
.langmenu summary { list-style: none; cursor: pointer; font-size: 14px; gap: 6px; padding: 8px 12px; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary svg { opacity: .8; }
.langmenu .menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 170px; padding: 6px;
  border-radius: 16px; background: rgba(24, 24, 38, 0.92); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.langmenu .menu a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; color: var(--text); margin: 0; }
.langmenu .menu a:hover { background: rgba(255,255,255,.08); }
.langmenu .menu a[aria-current]::after { content: "✓"; color: var(--teal); font-weight: 700; }

[dir="rtl"] .nav { flex-direction: row-reverse; }

/* Semantic wrappers: no default spacing */
figure.phone { margin: 0; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; }
.faq { margin-top: 40px; }
.faq summary h3 { margin: 0; font: inherit; }
.final .cta { margin-top: 28px; }

/* Every direction: source → destination */
.pairs { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.pairs li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.pairs li span { flex: 1; }
.note { color: var(--muted); text-align: center; font-size: 15px; margin: 22px auto 0; max-width: 620px; }

/* Small screens: the floating nav keeps the brand and the language menu */
@media (max-width: 560px) { .nav .links { display: none; } .nav { gap: 20px; } }

/* width/height attributes reserve space; the image keeps its ratio when the phone shrinks */
.phone img { width: 100%; height: auto; }
