:root {
  --bg: #0d0a17;
  --bg-2: #110d1e;
  --panel: #161127;
  --panel-2: #1c1631;
  --line: #2a2142;
  --line-2: #382c57;
  --violet: #8b5cf6;
  --violet-soft: #b9a3ff;
  --gold: #f5b14c;
  --text: #f4f0ff;
  --mist: #a99fc4;
  --mute: #6f6690;
  --radius: 20px;
  --wrap: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --accent: var(--violet);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet-soft);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  margin: 0 0 0.45em;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}

h2 {
  font-size: clamp(32px, 4.6vw, 50px);
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #1a1206;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 177, 76, 0.18);
}

.lead {
  max-width: 620px;
  color: var(--mist);
  font-size: 18.5px;
}

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 10, 23, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(56, 44, 87, 0.55);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand b {
  font-weight: 800;
  background: linear-gradient(90deg, var(--violet-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand:hover {
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(139, 92, 246, 0.45));
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--mist);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.nav .lang {
  margin-left: 8px;
  border: 1px solid var(--line-2);
  color: var(--text);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, #9d74ff, #7448ef);
  color: #fff;
  font: 700 16px/1 var(--font);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(116, 72, 239, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 36px rgba(116, 72, 239, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: 14px;
  background: #07050d;
  border: 1px solid #3b3354;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.store:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.store svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store span {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.15;
}

.store small {
  font-size: 11px;
  font-weight: 500;
  color: var(--mist);
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 104px;
}

.aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  pointer-events: none;
  background:
    radial-gradient(40% 45% at 18% 30%, rgba(139, 92, 246, 0.35), transparent 70%),
    radial-gradient(35% 40% at 82% 25%, rgba(245, 177, 76, 0.18), transparent 70%),
    radial-gradient(45% 40% at 60% 85%, rgba(34, 211, 238, 0.12), transparent 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(60% 70% at 50% 40%, #000, transparent);
}

@keyframes drift {
  to {
    transform: translate3d(3%, 4%, 0) scale(1.06);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(44px, 6.6vw, 78px);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 30%, #c9bbff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}

.hero-text {
  max-width: 560px;
  color: var(--mist);
  font-size: 19px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.stats {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 14px;
}

.stats li {
  display: flex;
  flex-direction: column;
}

.stats strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* icon orbit */

.orbit {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin-left: auto;
}

.orbit-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(185, 163, 255, 0.25);
  animation: spin 60s linear infinite;
}

.orbit-ring-2 {
  inset: 24%;
  border-style: solid;
  border-color: rgba(245, 177, 76, 0.16);
  animation-duration: 40s;
  animation-direction: reverse;
}

.orbit-core {
  position: absolute;
  inset: 37%;
  display: grid;
  place-items: center;
  border-radius: 30%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
}

.orbit-core .logo-mark {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 40px rgba(139, 92, 246, 0.7));
}

.orbit-icon {
  position: absolute;
  width: 24%;
  border-radius: 24%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: float 6s ease-in-out infinite;
}

.orbit-1 { left: 38%; top: 0; }
.orbit-2 { right: 0; top: 38%; animation-delay: -1.5s; }
.orbit-3 { left: 38%; bottom: 0; animation-delay: -3s; }
.orbit-4 { left: 0; top: 38%; animation-delay: -4.5s; }

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* ---------------------------------------------------------------- sections */

.band {
  position: relative;
  padding: 96px 0;
}

.band-alt {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 44px;
}

.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.accent-ember { --accent: #ff8a2a; }
.accent-neon { --accent: #2dd4ee; }
.accent-gold { --accent: #e7b866; }
.accent-dream { --accent: #c4a7ff; }

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.app:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 50px color-mix(in srgb, var(--accent) 14%, transparent);
}

.app-cover {
  position: relative;
  aspect-ratio: 1024 / 500;
  overflow: hidden;
  background: #07050d;
}

.app-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.app:hover .app-cover img {
  transform: scale(1.04);
}

.app-cover::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(180deg, transparent, var(--panel-2));
}

.app-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 28px 28px;
}

.app-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: -34px 0 18px;
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 3px var(--panel-2);
}

.app-cat {
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.app h3 {
  margin: 0;
  font-size: 26px;
}

.app-tagline {
  font-size: 17.5px;
  font-weight: 650;
  margin-bottom: 8px;
}

.app-text {
  color: var(--mist);
  font-size: 15.5px;
  margin-bottom: 18px;
}

.app-tags {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-tags li {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.app-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.app .btn {
  padding: 13px 20px;
  background: var(--accent);
  color: #120d1f;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 30%, transparent);
}

.app .btn:hover {
  color: #120d1f;
}

/* about */

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.values li {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.values svg {
  width: 46px;
  height: 46px;
  padding: 11px;
  flex-shrink: 0;
  border-radius: 14px;
  color: var(--gold);
  background: rgba(245, 177, 76, 0.1);
  border: 1px solid rgba(245, 177, 76, 0.25);
}

.values h3 {
  font-size: 19px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.values p {
  margin: 0;
  color: var(--mist);
  font-size: 15.5px;
}

/* contact */

.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 56px;
  border-radius: 28px;
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(50% 80% at 100% 100%, rgba(245, 177, 76, 0.16), transparent 70%),
    var(--panel);
  border: 1px solid var(--line-2);
}

.contact .lead {
  margin: 0;
}

.contact-card {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 28px;
  border-radius: 20px;
  background: rgba(7, 5, 13, 0.55);
  border: 1px solid var(--line);
}

.contact-mail {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-place {
  color: var(--mist);
  font-size: 15px;
  margin: 0 0 8px;
}

/* 404 */

.notfound {
  padding: 120px 0;
  text-align: center;
}

.notfound-code {
  margin: 0;
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--violet-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound h1 {
  font-size: 36px;
}

.notfound .lead {
  margin: 0 auto 28px;
}

/* ---------------------------------------------------------------- footer */

.foot {
  padding: 44px 0 28px;
  border-top: 1px solid var(--line);
  background: #09070f;
  font-size: 15px;
}

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.foot-note {
  margin: 0;
  color: var(--mist);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot-links a {
  color: var(--mist);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--text);
}

.foot-copy {
  margin-top: 28px;
  margin-bottom: 0;
  color: var(--mute);
  font-size: 13px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .hero {
    padding: 56px 0 80px;
  }

  .hero-grid,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .orbit {
    width: min(80%, 380px);
    margin: 0 auto;
    order: -1;
  }

  .apps {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 36px 28px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .brand span {
    display: none;
  }

  .nav a {
    padding: 7px 9px;
    font-size: 14px;
  }

  .band {
    padding: 72px 0;
  }

  .app-body {
    padding: 0 20px 22px;
  }

  .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 17px;
  }

  .app h3 {
    font-size: 22px;
  }

  .stats {
    gap: 14px 24px;
  }

  .foot .brand span {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
