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

:root {
  --bg: #040714;
  --surface: rgba(16, 23, 49, 0.52);
  --line: rgba(197, 205, 255, 0.13);
  --text: #eef2ff;
  --muted: rgba(225, 232, 255, 0.72);
  --violet: #9255ff;
  --violet-soft: #be8cff;
  --cyan: #57d5ff;
  --rose: #ff6eb4;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --header-height: 88px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(146, 85, 255, 0.16), transparent 30%),
    radial-gradient(circle at 80% 16%, rgba(87, 213, 255, 0.1), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(255, 110, 180, 0.08), transparent 32%);
  z-index: -1;
}

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

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

.background-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) brightness(0.58) contrast(1.05);
  transform: scale(1.05);
}

html.lite-motion .background-video {
  filter: saturate(1.08) brightness(0.62) contrast(1.02);
  transform: none;
}

.background-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 20, 0.16) 0%, rgba(4, 7, 20, 0.34) 45%, rgba(4, 7, 20, 0.58) 100%),
    radial-gradient(circle at center, rgba(109, 60, 204, 0.1), transparent 35%);
}

.background-grid,
.background-grid::before {
  position: absolute;
  inset: 0;
}

.background-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 90%);
  opacity: 0.35;
}

.background-grid::before {
  content: "";
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0, transparent 60%);
  transform: scale(2);
  opacity: 0.06;
  animation: rotate-grid 24s linear infinite;
}

.particle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(146, 85, 255, 0.1) 70%, transparent);
  opacity: 0;
  animation: drift var(--duration) linear infinite;
  animation-delay: var(--delay);
  filter: blur(0.4px);
}

.cursor-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(146, 85, 255, 0.24), rgba(87, 213, 255, 0.08), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.4;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1420px, calc(100% - 36px));
  margin: 0 auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.05);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet-soft), var(--rose));
  box-shadow: 0 0 18px rgba(146, 85, 255, 0.7);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding: 18px 0;
  backdrop-filter: blur(18px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

html.lite-motion .site-header {
  backdrop-filter: blur(10px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 8px -18px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(8, 12, 28, 0.34);
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 16px));
  opacity: 0;
}

.brand-mark,
.site-nav,
.header-cta {
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
}

.brand-logo {
  display: block;
  object-fit: contain;
}

.brand-logo--small {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 12px rgba(146, 85, 255, 0.45));
}

.brand-text {
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-soft), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.button {
  gap: 10px;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.header-cta {
  background: rgba(255, 255, 255, 0.04);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.section {
  position: relative;
  padding: 96px 0;
  content-visibility: auto;
  contain-intrinsic-size: 820px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  min-height: calc(100svh - var(--header-height));
  padding-top: 34px;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.hero h1,
.section-heading h2,
.cta-card h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  line-height: 1.08;
}

.hero h1 {
  max-width: 10.8ch;
  font-size: clamp(2.7rem, 5.2vw, 4.9rem);
}

.hero h1 span {
  display: block;
  margin: 0.12em 0;
  background: linear-gradient(135deg, #f3f6ff 10%, #c8b4ff 48%, #72e4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text,
.section-heading p,
.glass-card p,
.security-card p,
.timeline-step p,
.advantage-panel p,
.cta-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.hero-text {
  max-width: 54ch;
  margin: 18px 0 0;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, rgba(99, 73, 255, 0.95), rgba(170, 86, 255, 0.95));
  box-shadow: 0 18px 48px rgba(126, 84, 255, 0.34);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
}

.button-disabled {
  opacity: 0.58;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.stat-card,
.glass-card,
.security-card,
.advantage-panel,
.cta-card,
.hero-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(21, 29, 59, 0.7), rgba(12, 18, 39, 0.6));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

html.lite-motion .stat-card,
html.lite-motion .glass-card,
html.lite-motion .security-card,
html.lite-motion .advantage-panel,
html.lite-motion .cta-card,
html.lite-motion .hero-frame,
html.lite-motion .hero-badge,
html.lite-motion .timeline-step {
  backdrop-filter: blur(10px);
}

.stat-card,
.glass-card,
.security-card,
.advantage-panel {
  border-radius: var(--radius-lg);
}

.stat-card,
.glass-card,
.advantage-panel {
  padding: 24px;
}

.stat-card::before,
.glass-card::before,
.security-card::before,
.advantage-panel::before,
.cta-card::before,
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 40%);
  opacity: 0.34;
  pointer-events: none;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 540px;
  min-height: 540px;
  margin: 0 auto;
}

.hero-frame {
  display: grid;
  place-items: center;
  width: min(450px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 38px;
  margin: 0 auto;
}

.logo-aura {
  position: absolute;
  width: 76%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(146, 85, 255, 0.34), rgba(87, 213, 255, 0.12) 42%, transparent 70%);
  filter: blur(20px);
  animation: pulse 7s ease-in-out infinite;
}

.brain-logo {
  position: relative;
  z-index: 1;
  width: min(320px, 66%);
  opacity: 0;
  transform: scale(0.78) translateY(24px);
  filter: drop-shadow(0 0 24px rgba(146, 85, 255, 0.34));
  transition:
    opacity 1.1s ease,
    transform 1.4s cubic-bezier(0.2, 0.8, 0.16, 1);
}

.brain-logo.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hero-badge {
  position: absolute;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 13, 31, 0.58);
  color: #eef2ff;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.badge-top {
  top: 16%;
  right: 7%;
  animation: float-badge 7s ease-in-out infinite;
}

.badge-bottom {
  bottom: 16%;
  left: 7%;
  animation: float-badge 9s ease-in-out infinite reverse;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.75;
}

.hero-orb-a {
  width: 190px;
  height: 190px;
  top: 10%;
  left: 6%;
  background: radial-gradient(circle, rgba(85, 205, 255, 0.26), transparent 66%);
}

.hero-orb-b {
  width: 220px;
  height: 220px;
  right: 2%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(180, 114, 255, 0.32), transparent 66%);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading h2,
.cta-card h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.feature-grid,
.advantage-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advantage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--cyan);
  font-family: "Unbounded", sans-serif;
  font-size: 0.9rem;
}

.glass-card h3,
.security-card h3,
.timeline-step h3,
.advantage-panel h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}

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

.security-card {
  min-height: 220px;
  padding: 26px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(146, 85, 255, 0.8), transparent);
}

.timeline-step {
  position: relative;
  padding: 48px 24px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(15, 21, 44, 0.58);
  backdrop-filter: blur(20px);
}

.timeline-point {
  position: absolute;
  top: 13px;
  left: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--violet-soft));
  box-shadow: 0 0 18px rgba(146, 85, 255, 0.72);
}

.advantage-panel {
  min-height: 210px;
}

.cta-section {
  padding-bottom: 120px;
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius-xl);
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 40px;
  color: rgba(230, 235, 255, 0.52);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.98);
  filter: blur(10px);
  transition:
    opacity 0.95s ease,
    transform 0.95s cubic-bezier(0.19, 0.89, 0.19, 1),
    filter 0.95s ease;
  will-change: transform, opacity, filter;
}

html.lite-motion .reveal {
  filter: none;
  will-change: auto;
}

html.lite-motion .particle-field,
html.lite-motion .cursor-glow {
  display: none;
}

html.lite-motion .background-grid::before,
html.lite-motion .logo-aura,
html.lite-motion .badge-top,
html.lite-motion .badge-bottom {
  animation: none;
}

.reveal-left {
  transform: translateX(-56px);
}

.reveal-right {
  transform: translateX(56px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: blur(0);
}

@keyframes drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.4);
  }
  12% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.18;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--x-shift), calc(-100vh - 120px), 0) scale(1.18);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes float-badge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes rotate-grid {
  from {
    transform: scale(2) rotate(0deg);
  }
  to {
    transform: scale(2) rotate(360deg);
  }
}

@media (max-width: 1120px) {
  .hero,
  .split-layout,
  .feature-grid,
  .advantage-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .security-stack {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  }

  .hero-text {
    max-width: 60ch;
  }

  .hero-visual {
    max-width: 500px;
    min-height: 460px;
  }

  .timeline::before {
    display: none;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 28px, 1280px);
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 14px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    font-size: 0.95rem;
  }

  .hero {
    gap: 28px;
    padding-top: 36px;
  }

  .hero-visual {
    max-width: 460px;
    min-height: 400px;
  }

  .security-stack,
  .feature-grid,
  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .cta-card {
    padding: 34px 24px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    padding-bottom: 28px;
  }
}

@media (max-width: 560px) {
  .header-cta,
  .button {
    width: 100%;
  }

  .cta-actions {
    flex-direction: column;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 14vw, 3.9rem);
  }

  .hero-frame {
    border-radius: 28px;
    width: min(360px, 100%);
  }

  .brain-logo {
    width: min(250px, 70%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .brain-logo {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
