:root {
  --bg: #060816;
  --bg-deep: #0b1021;
  --surface: rgba(18, 23, 43, 0.74);
  --surface-strong: rgba(9, 12, 24, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --surface-bright: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f7f8ff;
  --muted: #c7cee4;
  --muted-strong: #e8ebff;
  --dim: #8c95b2;
  --accent: #bf7dff;
  --accent-2: #61d2ff;
  --accent-3: #ff8e69;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 40px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.2, 0.9, 0.2, 1.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at 16% 14%, rgba(191, 125, 255, 0.24), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(97, 210, 255, 0.14), transparent 24%),
    radial-gradient(circle at 52% 88%, rgba(255, 142, 105, 0.12), transparent 28%),
    linear-gradient(180deg, #060816 0%, #0a1021 36%, #070913 100%);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 90%);
  opacity: 0.35;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

main,
footer {
  position: relative;
  z-index: 1;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 128px 0;
}

.section-contrast::before {
  content: "";
  position: absolute;
  inset: 40px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(191, 125, 255, 0.14);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 54px;
}

.section-title {
  margin: 22px 0 18px;
  max-width: 12ch;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.section-title span,
.legal-title span,
.download-word span,
.hero-title span {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, #8f63ff 42%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-copy {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.proof-chip,
.connector-cloud span,
.scene-rail span,
.side-rail span,
.command-band span,
.download-step span,
.legal-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-size: 0.84rem;
  line-height: 1;
}

.top-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1120px, calc(100% - 28px));
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(7, 10, 21, 0.68);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.top-nav.scrolled {
  background: rgba(8, 12, 24, 0.88);
  border-color: var(--line-strong);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent), #8f63ff 60%, var(--accent-2));
  box-shadow: 0 14px 30px rgba(131, 92, 255, 0.38);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
}

.brand-mark-image {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.footer-link {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

.button {
  --mag-x: 0px;
  --mag-y: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.28s var(--spring),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease),
    background 0.28s var(--ease);
  transform: translate(var(--mag-x), var(--mag-y));
}

.button:hover {
  transform: translate(var(--mag-x), var(--mag-y)) translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #8f63ff 55%, var(--accent-2));
  box-shadow: 0 18px 48px rgba(109, 84, 255, 0.35);
}

.button-primary:hover {
  box-shadow: 0 24px 64px rgba(109, 84, 255, 0.46);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
}

.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow);
}

.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  --spot-x: 50%;
  --spot-y: 50%;
  transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.tilt-card::after {
  content: "";
  position: absolute;
  left: calc(var(--spot-x) - 120px);
  top: calc(var(--spot-y) - 120px);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tilt-card:hover {
  --lift: -8px;
  border-color: var(--line-strong);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.42);
}

.tilt-card:hover::after {
  opacity: 0.55;
}

.install-kicker,
.compare-kicker,
.story-mini-label,
.scene-meta,
.preview-kicker,
.preview-label,
.legal-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.story-mini-label-bright {
  color: var(--accent-2);
}

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--spring);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

.delay-4 {
  transition-delay: 0.32s;
}

.footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 16, 0.82);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-mark {
  width: 40px;
  height: 40px;
}

.footer-mark.brand-mark-image {
  width: 44px;
  height: 44px;
}

.footer-brand strong {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem;
}

.footer-meta {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

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

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scan {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(240%);
  }
}

@media (max-width: 1080px) {
  .section {
    padding: 108px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 920px) {
  .top-nav {
    width: calc(100% - 22px);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .container,
  .footer-inner {
    width: calc(100% - 24px);
  }

  .section {
    padding: 88px 0;
  }

  .brand-name {
    display: none;
  }

  .button {
    width: 100%;
  }

  .top-nav .button {
    width: auto;
  }

  .top-nav {
    gap: 12px;
    padding: 10px 12px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .button,
  .tilt-card {
    transform: none !important;
  }
}
