/* ==========================================================================
   Magnaweb — style.css
   Dark, magnetic, motion-first. Fonts: Unbounded (display) + Manrope (body)
   ========================================================================== */

:root {
  --bg: #08080b;
  --bg-2: #0e0e13;
  --bg-3: #15151c;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f2f1ee;
  --muted: #8f8e98;
  --accent: #c8ff2e;
  --accent-ink: #0b0d02;
  --violet: #7c5cff;
  --cyan: #38e1ff;
  --grad: linear-gradient(120deg, var(--accent) 0%, #7dffb0 35%, var(--cyan) 60%, var(--violet) 100%);
  --radius: 28px;
  --radius-sm: 16px;
  --gutter: clamp(16px, 4vw, 48px);
  --display: "Unbounded", "Noto Sans SC", system-ui, sans-serif;
  --body: "Manrope", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html:not(.lenis) { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="zh"] body { line-height: 1.75; }
body.is-loading { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px;
}
.label::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

.h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 0;
}
html[lang="zh"] .h2 { letter-spacing: 0; line-height: 1.15; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: gradShift 8s linear infinite; }
@keyframes gradShift { to { background-position: 200% 0; } }

/* ---------- Grain + progress ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,3%)} 80%{transform:translate(3%,1%)} }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-items: center; align-content: center; gap: 22px;
  transition: clip-path 1s var(--ease), visibility 0s 1s;
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__brand { display: flex; align-items: center; gap: 12px; font: 700 22px var(--display); letter-spacing: -0.02em; }
.loader__brand .logo__mark { width: 40px; height: 40px; animation: spinIn 1.4s var(--ease) both; }
@keyframes spinIn { from { transform: rotate(-180deg) scale(0.4); opacity: 0; } }
.loader__count { font: 800 clamp(64px, 16vw, 160px)/1 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.loader__bar { width: min(320px, 70vw); height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.loader__note { color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 150; display: none; opacity: 0; transition: opacity .3s; }
.cursor.is-ready { opacity: 1; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255,255,255,0.35);
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, border-color .3s;
}
.cursor__label { font: 700 11px/1.2 var(--body); color: var(--accent-ink); text-align: center; padding: 0 10px; opacity: 0; transition: opacity .2s; letter-spacing: .02em; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); background: rgba(200,255,46,0.08); }
.cursor.is-label .cursor__ring { width: 120px; height: 120px; margin: -60px 0 0 -60px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }

/* ---------- Buttons ---------- */
.btn {
  --h: 58px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
  overflow: hidden; isolation: isolate; cursor: pointer; background: none;
  transition: color .4s var(--ease), border-color .4s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: rotate(45deg); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent::before { background: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); }
.btn--sm { --h: 46px; padding: 0 22px; font-size: 14px; }
.btn--full { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  transition: transform .6s var(--ease), background .4s, border-color .4s, height .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(8, 8, 11, 0.62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); height: 66px; }
.nav.is-hidden { transform: translateY(-110%); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 18px var(--display); letter-spacing: -0.02em; }
.logo__mark { width: 30px; height: 30px; }
.logo:hover .logo__mark { animation: wiggle .8s var(--ease); }
@keyframes wiggle { 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(8deg); } }

.nav__links { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__link { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s, background .3s; }
.nav__link:hover, .nav__link.is-active { color: var(--text); background: rgba(255,255,255,0.06); }
[data-roll] span { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
[data-roll] span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--accent); }
[data-roll] span { transition: transform .45s var(--ease); }
[data-roll]:hover span { transform: translateY(-100%); }
[data-roll] span { line-height: 1.3; height: 1.3em; }

.nav__right { display: flex; align-items: center; gap: 12px; }
.langs { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.langs__a { padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; transition: color .3s, background .3s; }
.langs__a:hover { color: var(--text); }
.langs__a.is-active { background: var(--text); color: var(--bg); }

.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); position: relative; cursor: pointer; }
.burger i { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger i:first-child { top: 19px; }
.burger i:last-child { top: 27px; }
.menu-open .burger i:first-child { top: 23px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 23px; transform: rotate(-45deg); }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 99; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; }
.menu__bg { position: absolute; inset: 0; background: var(--bg-2); clip-path: circle(0% at calc(100% - 44px) 38px); transition: clip-path .8s var(--ease); }
.menu-open .menu { pointer-events: auto; }
.menu-open .menu__bg { clip-path: circle(150% at calc(100% - 44px) 38px); }
.menu__links { position: relative; display: flex; flex-direction: column; gap: 4px; }
.menu__link { display: flex; align-items: baseline; gap: 14px; font: 700 clamp(34px, 10vw, 56px)/1.15 var(--display); letter-spacing: -0.03em; opacity: 0; transform: translateY(40px); transition: opacity .5s, transform .7s var(--ease), color .3s; }
.menu__link small { font: 600 12px var(--body); color: var(--accent); letter-spacing: 0.1em; }
.menu__link:hover { color: var(--accent); }
.menu-open .menu__link { opacity: 1; transform: none; }
.menu-open .menu__link:nth-child(1) { transition-delay: .15s; } .menu-open .menu__link:nth-child(2) { transition-delay: .2s; }
.menu-open .menu__link:nth-child(3) { transition-delay: .25s; } .menu-open .menu__link:nth-child(4) { transition-delay: .3s; }
.menu-open .menu__link:nth-child(5) { transition-delay: .35s; }
.menu__foot { position: relative; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; color: var(--muted); font-weight: 600; opacity: 0; transition: opacity .5s .4s; }
.menu-open .menu__foot { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 40px) 0 40px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow { position: absolute; z-index: 0; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(50% 60% at 50% 100%, rgba(124, 92, 255, 0.25), transparent 70%); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,0.04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; margin-bottom: 28px; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.9vw, 96px); line-height: 1.02; letter-spacing: -0.05em; margin: 0 0 28px; }
html[lang="zh"] .hero__title { letter-spacing: 0; line-height: 1.12; font-weight: 900; }
html[lang="ru"] .hero__title, html[lang="uz"] .hero__title { font-size: clamp(28px, 5vw, 82px); }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__inner { display: inline-block; will-change: transform; }
.hero__sub { max-width: 560px; color: #b9b8c1; font-size: clamp(16px, 1.4vw, 19px); margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__card-wrap { perspective: 1200px; justify-self: end; width: 100%; max-width: 380px; }
.pcard {
  position: relative; border-radius: var(--radius); padding: 14px; transform-style: preserve-3d;
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
  border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08);
}
.pcard::after { /* glare */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,0.14), transparent 45%);
  opacity: var(--glare, 0); transition: opacity .4s;
}
.pcard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 6px 12px; font-size: 12px; font-weight: 600; color: var(--muted); transform: translateZ(30px); }
.pcard__status { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.pcard__photo { position: relative; aspect-ratio: 4 / 4.6; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, #2a1f66 0%, #13121c 55%, #0d0d12 100%); transform: translateZ(20px); }
.pcard__ring { position: absolute; left: 50%; top: 46%; width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: conic-gradient(from 0deg, var(--accent), var(--cyan), var(--violet), var(--accent)); filter: blur(38px); opacity: 0.45; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.pcard__photo img { position: absolute; bottom: 0; left: 50%; width: 92%; height: auto; transform: translateX(-50%) translateZ(0); filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); }
.pcard__photo--logo { display: grid; place-items: center; perspective: 900px; }
.m3d { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; }
.m3d__float { width: 60%; aspect-ratio: 1; transform-style: preserve-3d; animation: m3dFloat 6s ease-in-out infinite; }
.m3d__spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: m3dSpin 10s ease-in-out infinite; }
.m3d__layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(var(--z)); }
.m3d__front { filter: drop-shadow(0 0 18px rgba(124, 92, 255, 0.55)) drop-shadow(0 0 6px rgba(200, 255, 46, 0.35)); }
.m3d__shine { stroke-dasharray: 14 86; stroke-dashoffset: 100; opacity: .85; animation: m3dShine 4.5s ease-in-out infinite; }
.m3d__floor { position: absolute; left: 50%; bottom: 13%; width: 46%; height: 7%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 92, 255, 0.55), transparent); filter: blur(6px); animation: m3dFloor 6s ease-in-out infinite; }
.m3d__chip { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--text); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6); }
.m3d__chip svg { width: 20px; height: 20px; }
.m3d__chip--a { left: 9%; top: 14%; color: var(--accent); transform: translateZ(60px); animation: m3dBob 5s ease-in-out infinite; }
.m3d__chip--b { right: 9%; top: 30%; color: var(--cyan); transform: translateZ(40px); animation: m3dBob 6s ease-in-out -2s infinite; }
.m3d__chip--c { left: 14%; bottom: 16%; color: #b9a8ff; transform: translateZ(50px); animation: m3dBob 5.5s ease-in-out -1s infinite; }
@keyframes m3dSpin { 0%, 100% { transform: rotateY(-32deg) rotateX(14deg); } 50% { transform: rotateY(32deg) rotateX(-8deg); } }
@keyframes m3dFloat { 0%, 100% { transform: translateY(-4%); } 50% { transform: translateY(4%); } }
@keyframes m3dFloor { 0%, 100% { transform: translateX(-50%) scale(0.85); opacity: .6; } 50% { transform: translateX(-50%) scale(1.05); opacity: 1; } }
@keyframes m3dShine { 0% { stroke-dashoffset: 100; } 60%, 100% { stroke-dashoffset: -14; } }
@keyframes m3dBob { 0%, 100% { translate: 0 -5px; } 50% { translate: 0 5px; } }
.pcard__info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 6px 4px; transform: translateZ(40px); }
.pcard__info strong { display: block; font: 700 18px var(--display); letter-spacing: -0.02em; }
.pcard__info span { color: var(--muted); font-size: 13px; }
.pcard__social { display: flex; gap: 8px; }
.pcard__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, color .3s, transform .3s; }
.pcard__social a:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
.pcard__social svg { width: 18px; height: 18px; }

.hero__foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; margin-top: clamp(32px, 6vh, 72px); color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; }
.scroll-hint i { width: 22px; height: 36px; border: 1px solid var(--line-2); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--accent); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 3; padding: 34px 0; overflow: hidden; }
.marquee__row { --skew: -3deg; background: var(--accent); color: var(--accent-ink); transform: rotate(var(--skew)); margin: 0 -4vw; padding: 18px 0; overflow: hidden; }
.marquee__row--alt { --skew: 2deg; background: var(--bg-3); color: var(--text); border: 1px solid var(--line); margin-top: -26px; position: relative; z-index: -1; }
.marquee__track { display: flex; width: max-content; align-items: center; will-change: transform; }
.marquee__track span { font: 700 clamp(22px, 3.2vw, 40px)/1 var(--display); letter-spacing: -0.02em; padding: 0 22px; white-space: nowrap; }
.marquee__track em { font-style: normal; font-size: clamp(16px, 2vw, 24px); opacity: 0.6; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__media { position: relative; perspective: 1000px; transform-style: preserve-3d; }
.about__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(170deg, #17162a, #0d0d12 70%); border: 1px solid var(--line); }
.about__bgword { position: absolute; inset: 0; display: grid; place-items: center; font: 800 clamp(140px, 22vw, 300px)/1 var(--display); letter-spacing: -0.08em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.08); }
.about__frame img { position: absolute; bottom: -7%; left: 0; right: 0; margin: 0 auto; height: 104%; width: auto; max-width: none; will-change: transform; }
.about__badge { position: absolute; right: -36px; top: -36px; width: 150px; height: 150px; animation: rotate 18s linear infinite; }
.about__badge text { font: 700 13.5px var(--body); letter-spacing: 0.2em; fill: var(--text); }
.about__badge-dot { position: absolute; right: 13px; top: 13px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); }
.about__badge-dot .logo__mark { width: 26px; height: 26px; }
@keyframes rotate { to { transform: rotate(360deg); } }
.about__text { font: 500 clamp(19px, 2.1vw, 28px)/1.5 var(--body); letter-spacing: -0.01em; margin: 28px 0 44px; }
.about__text span { opacity: 0.16; transition: opacity .2s; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,0.02); }
.stat b { display: block; font: 800 clamp(34px, 4vw, 52px)/1 var(--display); letter-spacing: -0.04em; margin-bottom: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { color: var(--muted); font-size: 14px; line-height: 1.4; display: block; }

/* ---------- Services ---------- */
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.svc { border-top: 1px solid var(--line); }
.svc__item {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; grid-template-columns: 80px 1.1fr 1.3fr 56px; gap: 24px; align-items: start;
  padding: 36px 20px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: padding .5s var(--ease);
}
.svc__item::before { /* spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(200,255,46,0.10), transparent 50%);
}
.svc__item::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.svc__item:hover::before { opacity: 1; }
.svc__item:hover::after { transform: scaleX(1); }
.svc__num { font: 600 14px var(--body); color: var(--accent); padding-top: 10px; }
.svc__title { font: 700 clamp(24px, 2.8vw, 40px)/1.1 var(--display); letter-spacing: -0.03em; margin: 0; transition: transform .5s var(--ease); }
.svc__item:hover .svc__title { transform: translateX(10px); }
.svc__body p { margin: 4px 0 16px; color: #b5b4bd; }
.svc__arrow { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: background .4s, color .4s, transform .6s var(--ease), border-color .4s; }
.svc__arrow svg { width: 20px; height: 20px; }
.svc__item:hover .svc__arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #cfced6; }

/* ---------- Work (horizontal) ---------- */
.work { position: relative; padding: clamp(80px, 10vw, 120px) 0; }
.work__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 48px; }
.work__hint { margin: 0; color: var(--muted); font-size: 14px; display: flex; gap: 18px; align-items: center; white-space: nowrap; }
.work__count { font: 600 14px var(--body); color: var(--text); white-space: nowrap; }
.work__count b { color: var(--accent); }
.work__track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.wcard {
  position: relative; flex: none; width: clamp(300px, 38vw, 560px); padding: 16px 16px 26px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); transform-style: preserve-3d; transition: border-color .4s;
}
.wcard:hover { border-color: var(--line-2); }
.wcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,0.08), transparent 45%); opacity: var(--glare, 0); transition: opacity .4s; }
.wcard__screen { border-radius: 18px; overflow: hidden; background: #111117; border: 1px solid var(--line); transform: translateZ(30px); }
.wcard__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.wcard__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a46; }
.wcard__bar i:first-child { background: #ff5f57; } .wcard__bar i:nth-child(2) { background: #febc2e; } .wcard__bar i:nth-child(3) { background: #28c840; }
.wcard__bar span { margin-left: 10px; font-size: 11px; color: var(--muted); background: rgba(255,255,255,0.05); padding: 3px 12px; border-radius: 999px; }
.wcard__meta { display: flex; justify-content: space-between; margin: 22px 8px 8px; font-size: 13px; color: var(--muted); font-weight: 600; transform: translateZ(20px); }
.wcard__num { color: var(--accent); }
.wcard__title { font: 700 clamp(22px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: -0.03em; margin: 0 8px 10px; transform: translateZ(40px); }
.wcard__desc { margin: 0 8px 18px; color: #b5b4bd; font-size: 15px; transform: translateZ(20px); }
.wcard .tags { margin: 0 8px; transform: translateZ(20px); }
.wcard--cta { display: grid; place-items: center; align-content: center; gap: 28px; text-align: center; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); padding: 40px; min-height: 420px; width: clamp(260px, 28vw, 400px); }
.wcard--cta strong { font: 700 clamp(22px, 2.2vw, 30px)/1.15 var(--display); letter-spacing: -0.03em; }
.wcard--cta__circle { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-ink); color: var(--accent); transition: transform .6s var(--ease); }
.wcard--cta__circle svg { width: 40px; height: 40px; }
.wcard--cta:hover .wcard--cta__circle { transform: rotate(45deg) scale(1.08); }

/* CSS mockups */
.mock { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mock i, .mock b { display: block; border-radius: 8px; }
.mock--tour { background: linear-gradient(180deg, #ffb26b 0%, #ff6f61 40%, #6b3fa0 100%); }
.mock__sun { position: absolute; left: 62%; top: 16%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #ffe7a3; box-shadow: 0 0 60px #ffd36b; }
.mock__hills { position: absolute; inset: auto 0 0 0; height: 58%; background:
  radial-gradient(60% 90% at 20% 100%, #2b1b4d 60%, transparent 61%),
  radial-gradient(70% 80% at 80% 100%, #3a2466 60%, transparent 61%),
  linear-gradient(transparent 70%, #1b1233 70%); }
.mock__row { position: absolute; left: 6%; right: 6%; bottom: 8%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock__row i { height: 52px; background: rgba(255,255,255,0.88); }
.mock__pill { position: absolute; left: 6%; top: 12%; width: 40%; height: 26px; border-radius: 999px; background: rgba(255,255,255,0.9); }
.mock--corp { background: #f3f3ef; padding: 7%; display: grid; gap: 8%; grid-template-rows: auto 1fr; }
.mock__hero { display: grid; gap: 8px; }
.mock__hero b { height: 14px; width: 70%; background: #111; }
.mock__hero b:nth-child(2) { width: 50%; }
.mock__hero b.s { height: 22px; width: 26%; background: var(--violet); border-radius: 999px; margin-top: 6px; }
.mock__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock__grid i { background: linear-gradient(160deg, #d9d6ff, #b8f3ff); }
.mock__grid i:nth-child(2) { background: linear-gradient(160deg, #e9ffb6, #c3ffd8); }
.mock--shop { background: #0f1720; display: grid; grid-template-columns: 22% 1fr; gap: 6%; padding: 6%; }
.mock__side { border-radius: 10px; background: repeating-linear-gradient(180deg, rgba(255,255,255,0.12) 0 10px, transparent 10px 24px); }
.mock__products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock__products i { background: linear-gradient(160deg, #1f2c3a, #2a3d52); position: relative; }
.mock__products i::after { content: ""; position: absolute; left: 12%; right: 40%; bottom: 12%; height: 6px; border-radius: 3px; background: var(--accent); }
.mock--land { background: radial-gradient(80% 90% at 70% 40%, #2c1d6b, #0a0a10 70%); padding: 9% 8%; display: flex; flex-direction: column; gap: 10px; }
.mock--land b { height: 16px; width: 52%; background: #fff; }
.mock--land b.s { width: 34%; height: 10px; background: rgba(255,255,255,0.5); }
.mock__orb { position: absolute; right: 8%; top: 50%; width: 34%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 20%, var(--cyan) 50%, var(--violet) 80%); box-shadow: 0 0 60px rgba(124,92,255,0.6); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-58%); } }
.mock__btn { width: 26%; height: 24px; border-radius: 999px; background: var(--accent); margin-top: 8px; }

/* ---------- Process ---------- */
.process__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.process__side { position: sticky; top: calc(var(--nav-h) + 40px); }
.steps { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; }
.steps__line { position: absolute; left: 31px; top: 30px; bottom: 30px; width: 1px; background: var(--line); }
.steps__line i { display: block; width: 100%; height: 100%; background: var(--grad); transform-origin: 50% 0; transform: scaleY(0); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 26px 0; }
.step__num { position: relative; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font: 700 16px var(--display); transition: background .5s, color .5s, border-color .5s; }
.step.is-active .step__num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.step h3 { font: 700 clamp(22px, 2.4vw, 32px)/1.15 var(--display); letter-spacing: -0.03em; margin: 12px 0 10px; }
.step p { margin: 0; color: #b5b4bd; max-width: 520px; }

/* ---------- Stack ---------- */
.stack__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.chip { --mx: 50%; --my: 50%; position: relative; padding: 26px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; isolation: isolate; transform-style: preserve-3d; }
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(124,92,255,0.18), transparent 60%); }
.chip:hover::before { opacity: 1; }
.chip__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.chip__top strong { font: 700 18px var(--display); letter-spacing: -0.02em; }
.chip__top > span { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.chip__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.chip__bar i { display: block; height: 100%; width: var(--w); background: var(--grad); border-radius: inherit; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.chip.is-in .chip__bar i { transform: scaleX(1); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.talk { display: inline-block; }
.talk__circle {
  width: clamp(180px, 20vw, 240px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink); font: 700 clamp(18px, 1.8vw, 24px)/1.1 var(--display); letter-spacing: -0.02em; text-align: center; padding: 20px;
  position: relative; transition: transform .6s var(--ease);
  box-shadow: 0 0 0 0 rgba(200,255,46,0.4); animation: ring 2.6s ease-out infinite;
}
.talk__circle svg { width: 30px; height: 30px; transition: transform .6s var(--ease); }
.talk:hover .talk__circle svg { transform: rotate(45deg); }
.talk.is-number .talk__circle > span { display: grid; gap: 6px; }
.talk.is-number .talk__circle b { font: 700 clamp(15px, 1.35vw, 18px)/1.2 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.talk.is-number .talk__circle small { font: 600 12px/1.2 var(--body); opacity: .75; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(200,255,46,0.35); } 100% { box-shadow: 0 0 0 40px rgba(200,255,46,0); } }
.contact__sub { color: #b5b4bd; font-size: 18px; margin: 36px 0 28px; max-width: 420px; }
.contact__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.contact__list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact__list li > span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.contact__list svg { width: 18px; height: 18px; }
.contact__list a { font-weight: 700; transition: color .3s; }
.contact__list a:hover { color: var(--accent); }

.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 40px); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  padding: 26px 0 12px; font-size: 17px; outline: none; resize: vertical; transition: border-color .3s;
}
.field textarea { min-height: 110px; }
.field span { position: absolute; left: 0; top: 24px; color: var(--muted); pointer-events: none; transition: transform .35s var(--ease), color .3s, font-size .35s; transform-origin: 0 0; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-22px) scale(0.78); color: var(--accent); }
.field.is-error input { border-color: #ff5f57; }
.form .btn { margin-top: 10px; }
.form__note { margin: 0; color: var(--accent); font-size: 15px; font-weight: 600; }
.form__note.is-error { color: #ff8a80; }
.form__alt { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form__alt a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 700; font-size: 14px; transition: background .3s, color .3s; }
.form__alt a:hover { background: var(--accent); color: var(--accent-ink); }
.form__alt svg { width: 16px; height: 16px; }
.form { position: relative; }
.btn:disabled { opacity: .7; cursor: progress; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__brand { font: 800 clamp(34px, 10.8vw, 168px)/0.9 var(--display); letter-spacing: -0.06em; text-align: center; margin: 10px 0 40px; background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.05)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer__row--small { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, color .3s, transform .3s; }
.footer__social a:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
.footer__social svg { width: 19px; height: 19px; }
.footer__top { font-weight: 700; font-size: 14px; }
.footer__top:hover { color: var(--accent); }

/* ---------- Reveal base states (JS adds .is-in) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js [data-hero-fade] { opacity: 0; transform: translateY(24px); }
.js .hero__title .line__inner { transform: translateY(110%); }
.js [data-hero-card] { opacity: 0; }
.js .h2[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.js .h2[data-split] .w > span { display: inline-block; transform: translateY(105%); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav .langs { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card-wrap { justify-self: start; max-width: 340px; }
  .svc__item { grid-template-columns: 56px 1fr 56px; }
  .svc__body { grid-column: 2 / 3; }
  .svc__arrow { grid-row: 1; grid-column: 3; }
  .stack__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --nav-h: 68px; --radius: 22px; }
  .nav__cta { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 28px); }
  .hero__inner { gap: 40px; }
  .hero__card-wrap { max-width: none; justify-self: stretch; }
  .pcard { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto auto; gap: 0 16px; align-items: center; }
  .pcard__top { grid-column: 1 / -1; }
  .pcard__photo { aspect-ratio: 1; }
  .m3d__chip { display: none; }
  .pcard__info { flex-direction: column; align-items: flex-start; padding: 0; }
  .hero__foot .coords { display: none; }
  .about__grid, .process__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; }
  .about__badge { right: -10px; top: -30px; width: 120px; height: 120px; }
  .about__badge-dot { right: 26px; top: 6px; width: 44px; height: 44px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 16px 12px; }
  .stat > span { font-size: 12.5px; }
  .process__side { position: static; }
  .work__pin { min-height: 0; }
  .work__head { flex-direction: column; align-items: flex-start; }
  .work__hint span:first-child { display: none; }
  .work__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .work__track::-webkit-scrollbar { display: none; }
  .wcard { width: 84vw; scroll-snap-align: center; }
  .wcard--cta { width: 70vw; min-height: 360px; }
  .contact__left { display: grid; justify-items: start; }
}

@media (max-width: 560px) {
  .btn { --h: 54px; padding: 0 22px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .svc__item { grid-template-columns: 1fr 48px; padding: 28px 0; gap: 14px; }
  .svc__num { grid-column: 1; grid-row: 1; padding: 0; }
  .svc__title { grid-column: 1 / -1; grid-row: 2; }
  .svc__body { grid-column: 1 / -1; grid-row: 3; }
  .svc__arrow { grid-column: 2; grid-row: 1; width: 48px; height: 48px; justify-self: end; }
  .stats { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: center; gap: 16px; }
  .stat b { margin: 0; min-width: 90px; }
  .stack__grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 52px 1fr; gap: 18px; }
  .step__num { width: 52px; height: 52px; font-size: 14px; }
  .steps__line { left: 25.5px; }
  .contact__list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer__row { justify-content: center; text-align: center; }
  .marquee__row { padding: 14px 0; }
}

@media (hover: none) {
  .svc__item::before, .chip::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .grain { display: none; }
}
