:root {
  --bg: #000;
  --surface: rgba(28, 28, 30, .55);
  --surface-solid: #1c1c1e;
  --border: rgba(255, 255, 255, .08);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --blue: #2997ff;
  --radius: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: rgba(41, 151, 255, .35); }

/* ---------- background ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: .28; mix-blend-mode: screen; will-change: transform;
}
.aurora i:nth-child(1) { background: #5e5ce6; top: -25vmax; left: -15vmax; animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: #bf5af2; top: 10vmax; right: -25vmax; animation: drift2 32s ease-in-out infinite alternate; opacity: .18; }
.aurora i:nth-child(3) { background: #0a84ff; bottom: -35vmax; left: 15vmax; animation: drift3 38s ease-in-out infinite alternate; opacity: .16; }
@keyframes drift1 { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-20vmax, 18vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(10vmax, -20vmax) scale(1.2); } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(0, 0, 0, .5); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__logo { font-weight: 700; letter-spacing: -.02em; font-size: 19px; }
.nav__links { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__lang { border: 1px solid var(--border); padding: 4px 10px; border-radius: 99px; font-weight: 600; color: var(--text) !important; }

/* ---------- hero ---------- */
.hero {
  min-height: min(100svh, 940px); max-width: 1120px; margin: 0 auto; padding: 120px 16px 60px;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px;
}
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); margin-bottom: 24px;
}
.hero__title { font-size: clamp(48px, 8.4vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.word > span {
  display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards;
  animation-delay: calc(.15s + var(--i) * .08s);
  background: linear-gradient(180deg, #fff 30%, #a1a1a6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.word:nth-child(n+3) > span { background-image: linear-gradient(90deg, #2997ff, #bf5af2 50%, #ff375f); background-size: 200% 100%; animation: rise 1s var(--ease) forwards, shimmer 8s linear infinite; animation-delay: calc(.15s + var(--i) * .08s), 0s; }
@keyframes rise { to { transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.hero__lead { margin: 28px 0 36px; max-width: 520px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 99px;
  background: var(--text); color: #000; font-weight: 600; font-size: 16px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 40px rgba(255, 255, 255, .15); }

/* orbit of app icons */
.orbit { position: relative; aspect-ratio: 1; width: min(100%, 460px); justify-self: center; }
.orbit__ring { position: absolute; inset: 12%; border-radius: 50%; border: 1px solid var(--border); }
.orbit__ring::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .06); }
.orbit__core {
  position: absolute; inset: 38%; border-radius: 30%; display: grid; place-items: center;
  font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.04em;
  background: radial-gradient(circle at 30% 20%, #3a3a3c, #111); border: 1px solid var(--border);
  box-shadow: 0 0 80px rgba(94, 92, 230, .35), inset 0 1px 0 rgba(255, 255, 255, .1);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 120px rgba(191, 90, 242, .45), inset 0 1px 0 rgba(255, 255, 255, .1); } }
.orbit__icon {
  position: absolute; top: 50%; left: 50%; width: 18%; height: auto; margin: -9%; border-radius: 22.5%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6); opacity: 0;
  --a: calc(360deg / var(--n) * var(--i));
  animation: appear .8s var(--ease) forwards, orbit 60s linear infinite;
  animation-delay: calc(.6s + var(--i) * .1s), 0s;
}
@keyframes appear { to { opacity: 1; } }
@keyframes orbit {
  from { transform: rotate(var(--a)) translateX(190%) rotate(calc(-1 * var(--a))); }
  to { transform: rotate(calc(var(--a) + 360deg)) translateX(190%) rotate(calc(-1 * var(--a) - 360deg)); }
}

/* ---------- stats ---------- */
.stats {
  max-width: 1120px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.stat { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(20px); }
.stat b { display: block; font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 140px 16px 0; }
.section__title { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.04em; line-height: 1.02; font-weight: 800; }
.section__lead { color: var(--muted); font-size: clamp(18px, 2vw, 21px); margin: 16px 0 48px; max-width: 640px; }

/* ---------- app cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform .5s var(--ease), border-color .3s, opacity .9s var(--ease), translate .9s var(--ease);
  isolation: isolate;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.card__glow {
  position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%);
}
.card:hover .card__glow { opacity: 1; }
.card::before {
  content: ""; position: absolute; top: -40%; right: -30%; width: 70%; aspect-ratio: 1; z-index: -2; border-radius: 50%;
  background: var(--accent); filter: blur(70px); opacity: .14;
}
.card__head { display: flex; align-items: center; gap: 16px; }
.card__icon {
  width: 76px; height: 76px; border-radius: 22.5%; flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .5s var(--ease);
}
.card:hover .card__icon { transform: scale(1.08) rotate(-3deg); }
.card__cat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card__name { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.card__tagline { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.card__desc { color: var(--muted); font-size: 15px; flex: 1; }
.card__action { margin-top: 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 12px;
  background: #fff; color: #000; transition: transform .3s var(--ease), box-shadow .3s;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 40%, transparent); }
.store-badge .apple { width: 20px; height: 24px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.05; }
.store-badge small { font-size: 10px; font-weight: 500; }
.store-badge b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }

.card--soon .card__icon { filter: saturate(.6); }
.soon-pill {
  position: relative; overflow: hidden; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.soon-pill::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); animation: sweep 2.8s ease-in-out infinite;
}
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.soon-note { font-size: 13px; color: var(--dim); }

/* ---------- developers ---------- */
.devs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dev { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(20px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.dev__avatar {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 22px;
  background: linear-gradient(135deg, #5e5ce6, #bf5af2); margin-bottom: 8px;
}
.dev:nth-child(2) .dev__avatar { background: linear-gradient(135deg, #ff375f, #ff9f0a); }
.dev h3 { font-size: 28px; letter-spacing: -.02em; }
.dev__count { color: var(--muted); }
.dev__icons { display: flex; margin: 8px 0; }
.dev__icons img { width: 44px; height: 44px; border-radius: 22.5%; border: 2px solid var(--surface-solid); margin-left: -10px; transition: transform .3s var(--ease); }
.dev__icons img:first-child { margin-left: 0; }
.dev:hover .dev__icons img { transform: translateY(-4px); }
.dev:hover .dev__icons img:nth-child(even) { transform: translateY(2px); }
.link-arrow { color: var(--blue); font-weight: 500; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- contact ---------- */
.contact { text-align: center; padding-bottom: 40px; }
.contact .section__lead { margin-left: auto; margin-right: auto; }
.contact__row { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact__email {
  font-size: clamp(22px, 4.2vw, 44px); font-weight: 700; letter-spacing: -.03em; overflow-wrap: anywhere;
  background: linear-gradient(90deg, #2997ff, #bf5af2, #ff375f, #2997ff); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 10s linear infinite;
}
.copy {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text);
  padding: 8px 16px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); transition: background .2s;
}
.copy:hover { background: rgba(255, 255, 255, .12); }

.footer { max-width: 1120px; margin: 120px auto 0; padding: 32px 16px 48px; border-top: 1px solid var(--border); color: var(--dim); font-size: 12px; display: grid; gap: 6px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 40px; transition: opacity .9s var(--ease), translate .9s var(--ease), transform .5s var(--ease), border-color .3s; transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: auto; text-align: left; }
  .orbit { width: min(86%, 380px); order: -1; }
  .devs { grid-template-columns: 1fr; }
  .section { padding-top: 100px; }
}
@media (max-width: 560px) {
  .nav__links { gap: 14px; }
  .nav__links a:not(.nav__lang):not([href="#apps"]) { display: none; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat { padding: 18px 14px; border-radius: 20px; }
  .stat b { font-size: 36px; }
  .stat span { font-size: 12px; line-height: 1.3; display: block; margin-top: 6px; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .word > span { transform: none; }
  .orbit__icon { opacity: 1; }
}

/* coming-soon card spans the full row on wide screens */
@media (min-width: 900px) {
  .card--soon { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "head tag action" "head desc action"; column-gap: 32px; row-gap: 6px; align-items: center; }
  .card--soon .card__head { grid-area: head; }
  .card--soon .card__tagline { grid-area: tag; align-self: end; }
  .card--soon .card__desc { grid-area: desc; align-self: start; }
  .card--soon .card__action { grid-area: action; margin: 0; flex-direction: column; align-items: flex-end; text-align: right; max-width: 220px; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 120px 16px 0; }
.legal__head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.legal__head img { width: 72px; height: 72px; border-radius: 22.5%; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.legal h1 { font-size: clamp(32px, 6vw, 48px); letter-spacing: -.035em; line-height: 1.05; font-weight: 800; }
.legal__date { color: var(--dim); font-size: 14px; margin-top: 6px; }
.legal__intro { font-size: 19px; color: var(--text); margin-bottom: 12px; }
.legal section { padding: 28px 0 4px; border-top: 1px solid var(--border); margin-top: 28px; }
.legal h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal b { color: var(--text); font-weight: 600; }
.legal a { color: var(--blue); }
.legal a:hover { text-decoration: underline; }
.card__links { font-size: 13px; color: var(--dim); }
.card__links a { transition: color .2s; }
.card__links a:hover { color: var(--text); }
.legal p + ul { margin-top: 12px; }
.legal-page .nav__links a { display: inline !important; }

/* ---------- 404 ---------- */
html[lang="en"] .nf-page [lang="ru"], html[lang="ru"] .nf-page [lang="en"] { display: none !important; }
.nf { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 100px 16px 60px; overflow: hidden; text-align: center; }
.nf__orbit { position: absolute; width: min(92vw, 720px); left: 50%; top: 50%; translate: -50% -50%; opacity: .35; }
.nf__orbit .orbit__icon { width: 12%; margin: -6%; }
.nf__orbit .orbit__icon { animation-name: appear, orbit-wide; }
@keyframes orbit-wide {
  from { transform: rotate(var(--a)) translateX(330%) rotate(calc(-1 * var(--a))); }
  to { transform: rotate(calc(var(--a) + 360deg)) translateX(330%) rotate(calc(-1 * var(--a) - 360deg)); }
}
.nf__content { position: relative; z-index: 1; max-width: 560px; }
.nf__code { font-size: clamp(120px, 28vw, 240px); line-height: .9; font-weight: 800; letter-spacing: -.06em; display: flex; justify-content: center; }
.nf__code span {
  display: inline-block; opacity: 0; transform: translateY(40px) scale(.9);
  background: linear-gradient(90deg, #2997ff, #bf5af2 50%, #ff375f); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: nf-in .9s var(--ease) forwards, shimmer 8s linear infinite, nf-float 6s ease-in-out infinite;
  animation-delay: calc(.1s + var(--i) * .12s), 0s, calc(1.2s + var(--i) * .4s);
}
@keyframes nf-in { to { opacity: 1; transform: none; } }
@keyframes nf-float { 50% { translate: 0 -10px; } }
.nf__title { font-size: clamp(24px, 4vw, 34px); font-weight: 700; letter-spacing: -.025em; margin-top: 12px; }
.nf__lead { color: var(--muted); font-size: 18px; margin: 14px auto 32px; max-width: 460px; }
.nf__actions { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; }
.nf-page .nav__links a { display: inline !important; }
@media (prefers-reduced-motion: reduce) { .nf__code span { opacity: 1; transform: none; } }
@media (max-width: 600px) { .nf__orbit { display: none; } }
