:root {
  color-scheme: dark;
  --bg: #030306;
  --panel: rgba(13, 10, 22, 0.82);
  --panel-solid: #100c1c;
  --text: #fbf7ff;
  --muted: #c5b7de;
  --soft: #8f80aa;
  --violet: #7c3cff;
  --violet-2: #b168ff;
  --pink: #ff4fd8;
  --cyan: #62dcff;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 90px rgba(105, 39, 255, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 60, 255, 0.3), transparent 34rem),
    linear-gradient(180deg, #030306 0%, #080411 45%, #030306 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  overflow: hidden;
  place-items: center;
  color: var(--text);
  background:
    radial-gradient(circle at center, rgba(124, 60, 255, 0.38), transparent 18rem),
    radial-gradient(circle at 50% 115%, rgba(255, 79, 216, 0.2), transparent 26rem),
    #020104;
  isolation: isolate;
  animation: introExitFlash 4.2s ease forwards;
}

.intro-screen::before,
.intro-screen::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.intro-screen::before {
  background:
    linear-gradient(transparent 0 48%, rgba(177, 104, 255, 0.18) 50%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 6px);
  mix-blend-mode: screen;
  animation: introScan 2.5s linear infinite;
}

.intro-screen::after {
  background: radial-gradient(circle at center, transparent 0 38%, rgba(0, 0, 0, 0.72) 76%);
}

.intro-grid {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background-image:
    linear-gradient(rgba(177, 104, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 104, 255, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(62deg) scale(1.4);
  transform-origin: center bottom;
  animation: introGrid 2.8s linear infinite;
}

.intro-burst {
  position: absolute;
  width: min(70vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 90deg, transparent, rgba(124, 60, 255, 0.4), transparent, rgba(255, 79, 216, 0.36), transparent);
  filter: blur(18px);
  opacity: 0;
  animation: introBurst 4.2s ease forwards;
}

.intro-particles span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-2);
  box-shadow: 0 0 20px rgba(177, 104, 255, 0.95);
  transform: translate(-50%, -50%);
  animation: introParticle 2.4s ease-out infinite;
}

.intro-particles span:nth-child(1) {
  --x: -42vw;
  --y: -22vh;
  animation-delay: 0.1s;
}

.intro-particles span:nth-child(2) {
  --x: 38vw;
  --y: -18vh;
  animation-delay: 0.35s;
}

.intro-particles span:nth-child(3) {
  --x: -32vw;
  --y: 24vh;
  animation-delay: 0.6s;
}

.intro-particles span:nth-child(4) {
  --x: 36vw;
  --y: 24vh;
  animation-delay: 0.85s;
}

.intro-particles span:nth-child(5) {
  --x: -12vw;
  --y: -34vh;
  animation-delay: 1.1s;
}

.intro-particles span:nth-child(6) {
  --x: 14vw;
  --y: 32vh;
  animation-delay: 1.35s;
}

.intro-particles span:nth-child(7) {
  --x: -48vw;
  --y: 4vh;
  animation-delay: 1.6s;
}

.intro-particles span:nth-child(8) {
  --x: 48vw;
  --y: -2vh;
  animation-delay: 1.85s;
}

.intro-core {
  position: relative;
  display: grid;
  width: min(760px, calc(100% - 28px));
  min-height: min(640px, 88vh);
  place-items: center;
  text-align: center;
}

.intro-rings {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(72vw, 560px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.intro-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(177, 104, 255, 0.24);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(124, 60, 255, 0.22), 0 0 42px rgba(124, 60, 255, 0.24);
  animation: introRing 2.8s ease-out infinite;
}

.intro-rings span:nth-child(2) {
  animation-delay: 0.45s;
}

.intro-rings span:nth-child(3) {
  animation-delay: 0.9s;
}

.intro-bot {
  width: min(74vw, 560px);
  max-height: 46vh;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 38px rgba(124, 60, 255, 0.9)) saturate(1.16);
  opacity: 0;
  transform: scale(0.7);
  animation: introBotReveal 4.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-kicker,
.intro-subtitle,
.intro-loader {
  position: relative;
  z-index: 2;
}

.intro-kicker {
  align-self: end;
  margin-top: -30px;
  color: #dccaff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0;
  animation: introTextRise 4.2s ease forwards;
}

.intro-subtitle {
  align-self: start;
  margin-top: -28px;
  color: var(--muted);
  font-weight: 800;
  opacity: 0;
  animation: introTextRise 4.2s ease 0.28s forwards;
}

.intro-loader {
  align-self: start;
  width: min(420px, 72vw);
  height: 7px;
  margin-top: -48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  animation: introTextRise 4.2s ease 0.45s forwards;
}

.intro-loader span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--pink), var(--cyan));
  box-shadow: 0 0 28px rgba(177, 104, 255, 0.9);
  transform-origin: left;
  animation: introLoad 3.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-skip {
  position: absolute;
  right: 22px;
  bottom: 22px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.intro-skip:hover {
  color: var(--text);
  background: rgba(124, 60, 255, 0.28);
}

.intro-hidden {
  pointer-events: none;
  animation: introHide 0.9s ease forwards;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 3, 8, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.nav-links,
.hero-actions,
.stats-band,
.dashboard-section {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(124, 60, 255, 0.18);
  box-shadow: 0 0 32px rgba(124, 60, 255, 0.55);
  object-fit: contain;
  padding: 4px;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.language-switch {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.language-button {
  min-width: 42px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.language-button:hover,
.language-button.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(124, 60, 255, 0.72), rgba(255, 79, 216, 0.5));
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  overflow: hidden;
  align-items: end;
  padding: 132px max(22px, calc((100vw - 1180px) / 2)) 76px;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.14) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 3, 6, 0.95) 0%, rgba(3, 3, 6, 0.66) 38%, rgba(3, 3, 6, 0.22) 66%),
    linear-gradient(180deg, rgba(3, 3, 6, 0.12) 0%, rgba(3, 3, 6, 0.88) 100%);
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(177, 104, 255, 0.4);
  border-radius: 999px;
  color: #e7d7ff;
  background: rgba(124, 60, 255, 0.16);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-top: 18px;
  font-size: clamp(4.5rem, 13vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 0 42px rgba(124, 60, 255, 0.64);
}

.hero-content p {
  max-width: 680px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.26rem);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-button {
  background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 14px 54px rgba(124, 60, 255, 0.45);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.stats-band,
.section-block,
.modules-section,
.dashboard-section,
.cta-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.stats-band {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  gap: 14px;
  margin-top: -34px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 6, 14, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.stats-band div {
  width: 100%;
  min-height: 108px;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(124, 60, 255, 0.2), rgba(255, 255, 255, 0.04));
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band strong {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.stats-band span {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.section-block,
.modules-section,
.dashboard-section,
.cta-section {
  padding: 112px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

h2 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 5.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.module-card,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.26);
}

.feature-card {
  min-height: 300px;
  padding: 22px;
}

.feature-large {
  grid-column: span 2;
}

.feature-wide {
  grid-column: span 2;
}

.feature-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(124, 60, 255, 0.2);
  font-size: 0.84rem;
  font-weight: 900;
}

.feature-card h3,
.module-card h3 {
  margin-top: 42px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.feature-card p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  min-height: 360px;
  padding: 22px;
}

.module-card h3 {
  margin-top: 0;
}

.module-card ul {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.module-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.module-card li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--violet-2);
  box-shadow: 0 0 16px rgba(177, 104, 255, 0.8);
}

.dashboard-section {
  justify-content: space-between;
  gap: 52px;
}

.dashboard-copy {
  max-width: 560px;
}

.dashboard-copy p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.dashboard-link {
  width: fit-content;
  margin-top: 24px;
}

.dashboard-panel {
  width: min(520px, 100%);
  padding: 16px;
}

.panel-top {
  display: flex;
  gap: 8px;
  padding: 8px 6px 18px;
}

.panel-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--soft);
}

.panel-row {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.panel-row strong,
.panel-row span {
  display: block;
}

.panel-row span {
  color: var(--muted);
  text-align: right;
}

.panel-row.active {
  border-radius: 8px;
  border-top: 0;
  background: linear-gradient(135deg, rgba(124, 60, 255, 0.28), rgba(255, 79, 216, 0.12));
}

.cta-section {
  display: grid;
  min-height: 440px;
  place-items: center;
  padding-top: 80px;
  text-align: center;
}

.cta-section .primary-button {
  margin-top: 26px;
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
}

.footer-links a:hover {
  color: var(--text);
  background: rgba(124, 60, 255, 0.2);
}

.legal-body {
  min-height: 100vh;
}

.legal-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 150px 0 72px;
}

.legal-hero {
  padding: 60px 0 34px;
}

.legal-hero h1 {
  max-width: 860px;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
}

.legal-hero p {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}

.legal-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.26);
}

.legal-card h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.legal-card h3 {
  margin-top: 34px;
  font-size: 1.18rem;
}

.legal-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

@keyframes introHide {
  to {
    opacity: 0;
    transform: scale(1.08);
    filter: blur(18px);
  }
}

@keyframes introExitFlash {
  0%,
  82% {
    opacity: 1;
  }

  88% {
    filter: brightness(1.8);
  }

  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

@keyframes introScan {
  from {
    transform: translateY(-40%);
  }

  to {
    transform: translateY(40%);
  }
}

@keyframes introGrid {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 64px;
  }
}

@keyframes introBurst {
  0% {
    opacity: 0;
    transform: scale(0.28) rotate(0deg);
  }

  24% {
    opacity: 0.85;
  }

  74% {
    opacity: 0.42;
    transform: scale(1.05) rotate(160deg);
  }

  100% {
    opacity: 0;
    transform: scale(1.35) rotate(260deg);
  }
}

@keyframes introParticle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }

  22% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.2);
  }
}

@keyframes introRing {
  0% {
    opacity: 0;
    transform: scale(0.24);
  }

  28% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: scale(1.36);
  }
}

@keyframes introBotReveal {
  0% {
    opacity: 0;
    clip-path: inset(50% 50% 50% 50%);
    transform: scale(0.72);
  }

  18% {
    opacity: 1;
  }

  36% {
    clip-path: inset(18% 10% 18% 10%);
    transform: scale(0.86);
  }

  62%,
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

@keyframes introTextRise {
  0%,
  26% {
    opacity: 0;
    transform: translateY(16px);
  }

  38%,
  86% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes introGlitchA {
  0%,
  18%,
  42%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }

  20%,
  36% {
    opacity: 0.78;
    clip-path: inset(12% 0 58% 0);
  }

  54%,
  72% {
    opacity: 0.65;
    clip-path: inset(62% 0 10% 0);
  }
}

@keyframes introGlitchB {
  0%,
  16%,
  44%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }

  22%,
  34% {
    opacity: 0.72;
    clip-path: inset(52% 0 18% 0);
  }

  58%,
  76% {
    opacity: 0.62;
    clip-path: inset(8% 0 68% 0);
  }
}

@keyframes introLoad {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
  }

  .language-switch {
    margin-left: auto;
  }

  .hero {
    min-height: 92vh;
    padding-top: 152px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(3, 3, 6, 0.42) 0%, rgba(3, 3, 6, 0.92) 100%),
      linear-gradient(90deg, rgba(3, 3, 6, 0.9), rgba(3, 3, 6, 0.22));
  }

  .stats-band,
  .feature-grid,
  .module-grid,
  .dashboard-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-copy,
  .dashboard-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links a {
    padding: 9px 10px;
    white-space: nowrap;
  }

  .hero {
    min-height: 90vh;
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-image {
    object-position: 58% center;
  }

  h1 {
    font-size: clamp(4rem, 21vw, 6.4rem);
  }

  .hero-content p {
    font-size: 1rem;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .stats-band,
  .feature-grid,
  .module-grid,
  .dashboard-section {
    grid-template-columns: 1fr;
  }

  .feature-large,
  .feature-wide {
    grid-column: span 1;
  }

  .section-block,
  .modules-section,
  .dashboard-section,
  .cta-section {
    width: min(100% - 22px, 1180px);
    padding: 78px 0;
  }

  .panel-row {
    display: grid;
    justify-items: start;
  }

  .panel-row span {
    text-align: left;
  }

  .site-footer {
    display: grid;
  }

  .legal-page {
    width: min(100% - 22px, 980px);
    padding-top: 172px;
  }

  .intro-core {
    min-height: 72vh;
  }

  .intro-bot {
    width: min(92vw, 520px);
    max-height: 36vh;
  }

  .intro-subtitle,
  .intro-loader {
    margin-top: -26px;
  }

  .intro-skip {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .intro-screen {
    background: #030306;
  }
}
