/* Xparo — main stylesheet (mobile-first). Colours and type follow the Brand Guidelines v1.0. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --ink: #0F0232;            /* brand book background */
  --ink-2: #170A4A;
  --navy: #233DA2;
  --teal: #20C1C7;
  --orange: #F7620F;         /* brand secondary */
  --text: #F3F5FF;
  --text-dim: #B4B9E0;
  --edge: rgba(32,193,199,.30);
  --pad: 20px;
  --header-h: 60px;
  --font: "Inter", "Vazirmatn", "Noto Sans Georgian", "Noto Sans SC", system-ui, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1,h2,h3,p,ol,ul { margin: 0; padding: 0; } ol,ul { list-style: none; }
a { color: inherit; text-decoration: none; } img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--teal); color: #04121F; padding: 10px 14px; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Loader ---------- */
#loader { position: fixed; inset: 0; z-index: 150; background: var(--ink); display: grid; place-content: center; justify-items: center; gap: 28px; transition: opacity .7s ease .1s, visibility 0s linear .8s; }
.loader-logo { width: min(46vw, 200px); display: grid; gap: 14px; justify-items: center; }
.loader-word { width: 72%; }
.loader-bar { width: 120px; height: 2px; background: rgba(255,255,255,.12); overflow: hidden; border-radius: 2px; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--teal); animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-110%); } to { transform: translateX(310%); } }
body:not(.is-loading) #loader { opacity: 0; visibility: hidden; }

/* ---------- Scene ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
  background: radial-gradient(90% 60% at 80% 0%, rgba(32,193,199,.28), rgba(15,2,50,0) 70%), var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--teal); color: #04121F; font-weight: 620; font-size: 17px; letter-spacing: -.005em; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset, 0 12px 40px -10px rgba(32,193,199,.75); transition: transform .15s ease, background-color .15s ease; }
.btn:hover { background: #4FDCE0; } .btn:active { transform: scale(.98); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(var(--header-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--pad) 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(to bottom, rgba(15,2,50,.8), rgba(15,2,50,0)); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 30px; width: auto; }
.site-nav { display: none; }
.header-tools { display: flex; align-items: center; gap: 4px; }
.header-cta { display: none; }
.lang,.menu { position: relative; }
.lang summary,.menu summary { list-style: none; cursor: pointer; min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 14px; font-weight: 560; letter-spacing: .04em; }
.lang summary::-webkit-details-marker,.menu summary::-webkit-details-marker { display: none; }
.lang summary { border: 1px solid var(--edge); padding: 0 12px; height: 36px; margin: 4px; background: rgba(15,2,50,.4); }
.menu summary { flex-direction: column; gap: 6px; }
.menu summary span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease; }
.menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.lang ul,.menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 190px; padding: 8px; background: rgba(21,8,66,.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--edge); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }
.lang li a,.menu li a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 16px; }
.lang li a:hover,.menu li a:hover { background: rgba(32,193,199,.14); }
.lang li a[aria-current] { color: var(--teal); }

/* ---------- Journey (scroll-driven hero) ---------- */
.journey { position: relative; height: 460svh; z-index: 1; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.robot { position: absolute; left: 0; top: 0; width: auto; height: 100px; transform-origin: 50% 97%; will-change: transform, opacity; pointer-events: none; filter: drop-shadow(0 0 26px rgba(32,193,199,.35)); opacity: 0; }
.hero-copy { position: absolute; inset: calc(var(--header-h) + env(safe-area-inset-top) + 14px) var(--pad) calc(94px + env(safe-area-inset-bottom)); will-change: opacity, transform; }
.hero-copy h1 { font-size: clamp(2.5rem, 11.6vw, 3.6rem); line-height: .98; letter-spacing: -.045em; font-weight: 600; font-variation-settings: "opsz" 32; }
.hero-copy h1 span { display: block; }
.lede { position: absolute; inset: auto 0 0 0; color: var(--text); font-size: 1rem; line-height: 1.45; max-width: 26em; text-shadow: 0 1px 14px rgba(15,2,50,.9); }
.hero-cta { display: none; }
.hero-place { position: relative; margin-top: 18px; padding-inline-start: 18px; font-size: 13px; line-height: 1.5; color: var(--text); letter-spacing: .01em; font-variant-numeric: tabular-nums; text-shadow: 0 0 10px rgba(15,2,50,.95), 0 0 22px rgba(15,2,50,.8); }
.hero-place::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(247,98,15,.25); }
.hero-place span { color: var(--text-dim); }
.hud { display: none; }
.orbit-copy { position: absolute; inset: calc(var(--header-h) + env(safe-area-inset-top) + 18px) var(--pad) auto; text-align: center; opacity: 0; will-change: opacity, transform; pointer-events: none; }
.orbit-copy h2 { font-size: clamp(1.25rem, 5.4vw, 3.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.orbit-copy h2 span { display: inline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svc { position: absolute; left: 0; top: 0; width: min(84vw, 340px); text-align: center; opacity: 0; will-change: transform, opacity; pointer-events: none; }
.svc-count { font-size: 12px; color: var(--teal); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.svc-name { margin-top: 6px; font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.svc-name::before { content: "[ "; color: var(--teal); font-weight: 400; } .svc-name::after { content: " ]"; color: var(--teal); font-weight: 400; }
.svc-desc { margin-top: 8px; font-size: .95rem; line-height: 1.4; color: var(--text-dim); min-height: 2.8em; }
#scene { touch-action: pan-y; }
.sound { appearance: none; border: 1px solid var(--edge); background: rgba(15,2,50,.4); color: var(--text); font: inherit; font-size: 14px; font-weight: 560; height: 36px; min-width: 44px; padding: 0 12px; margin: 4px 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.sound-text { display: none; }
.bars { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.bars i { display: block; width: 2px; height: 3px; background: var(--text-dim); border-radius: 2px; }
.sound[aria-pressed="true"] { border-color: var(--teal); }
.sound[aria-pressed="true"] .bars i { background: var(--teal); animation: bar 1s ease-in-out infinite; }
.sound[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -.3s; } .sound[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -.6s; } .sound[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bar { 0%,100% { height: 3px; } 50% { height: 14px; } }
.loop-copy { position: absolute; left: 0; top: 0; text-align: center; opacity: 0; will-change: opacity, transform; pointer-events: none; }
.loop-copy h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1.02; white-space: nowrap; font-size: 1em; }

@media (prefers-reduced-motion: no-preference) {
  .is-loading .hero-copy h1 span, .is-loading .lede, .is-loading .hero-cta, .is-loading .hero-place { opacity: 0; transform: translateY(22px); }
  .hero-place { transition: opacity .9s ease .72s, transform 1.1s cubic-bezier(.2,.7,.2,1) .72s; }
  .hero-copy h1 span, .lede, .hero-cta { transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
  .hero-copy h1 span:nth-child(1) { transition-delay: .35s; }
  .hero-copy h1 span:nth-child(2) { transition-delay: .47s; }
  .hero-copy h1 span:nth-child(3) { transition-delay: .59s; }
  .lede { transition-delay: .85s; } .hero-cta { transition-delay: 1s; }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 40; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(15,2,50,.94) 50%, rgba(15,2,50,0)); }
.sticky-cta .btn { width: 100%; }

/* ---------- What Xparo does ---------- */
.what { position: relative; z-index: 2; padding: 84px var(--pad) 150px; background: var(--ink); isolation: isolate; }
.what::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/pattern-lines.webp") center top / 620px auto; opacity: .09; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); filter: brightness(1.6); }
.what::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--teal), transparent); opacity: .6; }
.wrap { max-width: 1180px; margin: 0 auto; }
.what h2 { font-size: clamp(1.6rem, 6.4vw, 2.9rem); line-height: 1.14; letter-spacing: -.03em; font-weight: 500; max-width: 22em; text-wrap: pretty; }
.modules { margin-top: 44px; background: rgba(23,10,74,.72); border: 1px solid var(--edge); border-radius: 24px; padding: 6px 20px; box-shadow: 0 40px 90px -50px rgba(32,193,199,.4); }
.modules li { display: grid; grid-template-columns: 2.1rem 1fr; gap: 6px; padding: 18px 0; border-bottom: 1px solid rgba(140,150,255,.16); }
.modules li:last-child { border-bottom: 0; }
.num { color: var(--teal); font-weight: 400; font-size: 1.15rem; font-variant-numeric: tabular-nums; line-height: 1.5; }
.modules h3 { font-size: 1.14rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.modules p { margin-top: 3px; color: var(--text-dim); font-size: .98rem; line-height: 1.45; }

@media (min-width: 760px) {
  :root { --pad: 40px; --header-h: 76px; }
  .brand img { height: 36px; }
  .modules { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; padding: 14px 36px; }
  .modules li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .modules li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  :root { --pad: 56px; }
  .site-nav { display: flex; gap: 34px; font-size: 15px; font-weight: 500; color: var(--text-dim); }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; transition: color .15s; }
  .site-nav a:hover { color: var(--text); }
  .menu { display: none; } .header-cta { display: inline-flex; margin-inline-start: 10px; }
  .hero-copy { inset: 17vh auto auto var(--pad); max-width: 58vw; }
  .hero-copy h1 { font-size: clamp(4rem, 6.9vw, 7.6rem); line-height: .95; letter-spacing: -.05em; }
  .lede { position: static; margin-top: 30px; font-size: 1.18rem; max-width: 24em; color: var(--text-dim); text-shadow: none; }
  .hero-cta { display: inline-flex; margin-top: 30px; }
  .hero-place { display: none; }
  .sound-text { display: inline; }
  .orbit-copy h2 span { display: inline; }
  .orbit-copy { top: 15vh; text-align: left; right: auto; max-width: 46vw; }
  .svc-name { font-size: 1.9rem; } .svc-desc { font-size: 1.05rem; }
  .hud { display: block; position: absolute; bottom: 34px; font-size: 13px; line-height: 1.5; color: var(--text); letter-spacing: .01em; font-variant-numeric: tabular-nums; will-change: opacity; }
  .hud { text-shadow: 0 0 10px rgba(15,2,50,.95), 0 0 22px rgba(15,2,50,.8); }
  .hud-place { left: var(--pad); padding-left: 18px; }
  .hud-place::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(247,98,15,.25); }
  .hud-scroll { right: var(--pad); display: flex; align-items: center; gap: 12px; }
  .hud-scroll i { display: block; width: 64px; height: 1px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
  .hud-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--teal); animation: load 2.2s ease-in-out infinite; width: 40%; }
  .sticky-cta { display: none; }
  .what { padding: 150px var(--pad) 170px; }
  .what::before { background-size: 760px auto; }
  .modules { grid-template-columns: repeat(3, 1fr); margin-top: 72px; padding: 20px 44px; }
  .modules li, .modules li:last-child { grid-column: auto; }
  .modules li:nth-last-child(-n+3) { border-bottom: 0; }
  .modules li { padding: 26px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- languages: fonts load only when their script is on the page ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-var-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-var-arabic.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Noto Sans Georgian"; src: url("../fonts/noto-georgian-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Noto Sans SC"; src: url("../fonts/noto-sc-400.woff2") format("woff2"); font-weight: 100 500; font-style: normal; font-display: swap; unicode-range: U+3000-303F, U+4E00-9FFF, U+FF00-FFEF; }
@font-face { font-family: "Noto Sans SC"; src: url("../fonts/noto-sc-700.woff2") format("woff2"); font-weight: 501 900; font-style: normal; font-display: swap; unicode-range: U+3000-303F, U+4E00-9FFF, U+FF00-FFEF; }

html:lang(fa) *, html:lang(ka) *, html:lang(zh) * { letter-spacing: 0 !important; }
html:lang(ka) * { text-transform: none !important; }
html:lang(fa) body { line-height: 1.85; }
html:lang(fa) h1, html:lang(fa) h2, html:lang(fa) h3 { line-height: 1.35 !important; }
html:lang(fa) .hero-copy h1 { font-size: clamp(2.3rem, 10.4vw, 3.3rem); font-weight: 700; }
html:lang(ka) .hero-copy h1 { font-size: clamp(2rem, 9.4vw, 3rem); line-height: 1.08; }
html:lang(ru) .hero-copy h1 { font-size: clamp(2.1rem, 10vw, 3.2rem); line-height: 1.02; }
html:lang(zh) .hero-copy h1 { font-size: clamp(2.3rem, 10.6vw, 3.4rem); line-height: 1.18; }
html:lang(zh) h2, html:lang(zh) h3 { line-height: 1.3 !important; }
[dir="rtl"] .svc-count { direction: ltr; }
.lang li a { justify-content: space-between; gap: 14px; }
.lang li a small { font-size: 12px; color: var(--text-dim); font-weight: 560; }
@media (min-width: 1024px) {
  html:lang(fa) .hero-copy h1 { font-size: clamp(3.4rem, 5.6vw, 6.2rem); }
  html:lang(ka) .hero-copy h1 { font-size: clamp(3rem, 4.9vw, 5.4rem); }
  html:lang(ru) .hero-copy h1 { font-size: clamp(3.2rem, 5.3vw, 5.8rem); }
  html:lang(zh) .hero-copy h1 { font-size: clamp(3.6rem, 6vw, 6.6rem); }
  [dir="rtl"] .hero-copy { inset: 17vh var(--pad) auto auto; }
  [dir="rtl"] .orbit-copy { text-align: right; right: var(--pad); left: auto; }
  [dir="rtl"] .hud-place { left: auto; right: var(--pad); padding-left: 0; padding-right: 18px; }
  [dir="rtl"] .hud-place::before { left: auto; right: 0; }
  [dir="rtl"] .hud-scroll { right: auto; left: var(--pad); }
}
.lang-note { margin: 0 0 28px; padding: 14px 18px; border: 1px solid var(--edge); border-radius: 14px; background: rgba(32,193,199,.08); color: var(--text); font-size: .98rem; line-height: 1.6; }
html:lang(fa) .hero-place { margin-top: 6px; }
@media (max-height: 700px) and (max-width: 1023px) { .hero-place br, .hero-place span { display: none; } .hero-place { margin-top: 12px; } }
.modules li { grid-template-columns: 1fr; }
.what .more { margin-top: 26px; color: var(--teal); font-size: 1.05rem; font-weight: 500; line-height: 1.4; }
.what { padding-bottom: 84px; }
@media (min-width: 1024px) { .what { padding-bottom: 110px; } .what .more { margin-top: 34px; font-size: 1.15rem; } }

/* ---------- two equal calls: people who need a service, people who offer one ---------- */
.btn-pro { background: var(--orange); color: #1A0A00; border: 0; cursor: pointer; font-family: inherit; }
.btn-pro:hover { background: #FF8038; }
.duo-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.duo-cta > div { display: grid; gap: 6px; min-width: 0; }
.duo-cta p { font-size: 11.5px; line-height: 1.25; color: var(--text); text-wrap: balance; text-shadow: 0 0 10px rgba(15,2,50,.95); }
.duo-cta .btn { width: 100%; min-height: 50px; padding: 6px 10px; font-size: 14.5px; line-height: 1.15; text-align: center; letter-spacing: -.01em; }
.sticky-cta { padding-top: 22px; background: linear-gradient(to top, rgba(15,2,50,.96) 62%, rgba(15,2,50,0)); }
.hero-copy { bottom: calc(124px + env(safe-area-inset-bottom)); }
.what { padding-bottom: 60px; }
.header-pro { display: none; }
.duo-cta.hero-cta { display: none; }
@media (min-width: 1024px) {
  .hero-copy { bottom: auto; }
  .duo-cta.hero-cta { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 16px; margin-top: 30px; }
  .duo-cta.hero-cta p { font-size: 13px; color: var(--text-dim); text-shadow: none; }
  .duo-cta.hero-cta .btn { min-height: 56px; padding: 0 28px; font-size: 17px; }
  .what { padding-bottom: 110px; }
}
@media (min-width: 1280px) { .header-pro { display: inline-flex; margin-inline-start: 8px; } }
html:lang(ka) .duo-cta .btn, html:lang(ru) .duo-cta .btn { font-size: 13px; }
@media (min-width: 1024px) { html:lang(ka) .duo-cta.hero-cta .btn, html:lang(ru) .duo-cta.hero-cta .btn { font-size: 15.5px; padding: 0 22px; } }
@media (max-height: 700px) and (max-width: 1023px) { .sticky-cta .duo-cta p { display: none; } .hero-copy { bottom: calc(92px + env(safe-area-inset-bottom)); } }

/* ---------- services in two groups ---------- */
.module-groups { display: grid; gap: 34px; margin-top: 44px; }
.module-groups .modules { margin-top: 14px; }
.module-groups h3.grp { font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; color: var(--teal); }
.module-groups > div:nth-child(2) h3.grp { color: var(--orange); }
.modules .subs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.modules .subs li { display: block; padding: 4px 11px; border: 1px solid rgba(140,150,255,.3); border-radius: 999px; font-size: .84rem; line-height: 1.35; color: var(--text); }
@media (min-width: 1024px) { .module-groups { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } }
/* inside a group the list is always one column, on every screen */
.module-groups .modules { display: block; margin-top: 14px; padding: 6px 22px; }
.module-groups .modules > li, .module-groups .modules > li:last-child { display: block; grid-column: auto; padding: 18px 0; border-bottom: 1px solid rgba(140,150,255,.16); }
.module-groups .modules > li:last-child { border-bottom: 0; }
.module-groups .modules > li:nth-last-child(-n+3), .module-groups .modules > li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid rgba(140,150,255,.16); }
.module-groups .modules > li:last-child { border-bottom: 0 !important; }
.modules .subs li, .modules .subs li:last-child { border-bottom: 1px solid rgba(140,150,255,.3) !important; }
@media (min-width: 1024px) { .module-groups .modules { padding: 10px 30px; } .module-groups .modules > li { padding: 20px 0; } }
