:root {
  --bg: #07111f;
  --bg-elevated: rgba(12, 24, 43, 0.72);
  --panel: rgba(11, 26, 48, 0.82);
  --panel-strong: rgba(9, 20, 37, 0.94);
  --line: rgba(173, 226, 255, 0.16);
  --text: #eff6ff;
  --muted: #9eb5ca;
  --accent: #8ef5d0;
  --accent-strong: #44d7c7;
  --warm: #ffc57a;
  --shadow: 0 30px 80px rgba(2, 8, 18, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top, rgba(74, 188, 255, 0.18), transparent 36%),
    radial-gradient(circle at 85% 20%, rgba(255, 197, 122, 0.18), transparent 20%),
    linear-gradient(180deg, #091120 0%, #040912 52%, #02060d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 95%);
}

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

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(142, 245, 208, 0.72));
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: var(--muted);
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100vh - 88px);
  padding: 76px 0 56px;
  overflow: hidden;
  isolation: isolate;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.6rem, 8vw, 7rem);
}

h2 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.lede,
.section-heading p,
.glass-card p,
.demo-copy p,
.feature-row p,
.contact-panel p,
.legal-layout p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 12px 12px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.hero-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(4, 11, 20, 0.28);
}

.hero-badge-copy {
  display: block;
}

.hero-badge-copy .eyebrow {
  margin: 0;
}

.lede {
  max-width: 630px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-copy h1 {
  max-width: 8.4ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--warm));
  color: #04111d;
  box-shadow: 0 20px 40px rgba(68, 215, 199, 0.2);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-stats li,
.glass-card,
.feature-row,
.contact-panel,
.legal-layout {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-stats li {
  padding: 18px;
  border-radius: 22px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-stats span {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.65;
}

.orb-one {
  inset: 40px 10% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(142, 245, 208, 0.7), transparent 68%);
}

.orb-two {
  inset: auto auto 52px 4%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 197, 122, 0.42), transparent 68%);
}

.hero-atmosphere {
  position: absolute;
  inset: 18px -8% 0 32%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  background:
    radial-gradient(circle at 30% 36%, rgba(142, 245, 208, 0.18), transparent 26%),
    radial-gradient(circle at 76% 32%, rgba(255, 197, 122, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(13, 27, 49, 0.96), rgba(6, 13, 23, 0.96));
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-12deg) rotateX(5deg);
}

.three-visualizer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.three-visualizer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.three-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(142, 245, 208, 0.2), transparent 36%),
    radial-gradient(circle at 65% 30%, rgba(255, 197, 122, 0.16), transparent 22%);
}

.three-fallback span {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(4, 11, 20, 0.45);
  color: rgba(239, 246, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spectrum-grid,
.mesh {
  position: absolute;
  inset: 0;
  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: 28px 28px;
}

.wave {
  position: absolute;
  inset: auto 0 22% 0;
  height: 120px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.55) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent, rgba(142, 245, 208, 0.35), transparent);
  mask:
    radial-gradient(60px 20px at 0% 50%, #000 98%, transparent 100%) repeat-x;
  mask-size: 120px 100%;
  animation: drift 5s linear infinite;
  opacity: 0.8;
  z-index: 2;
}

.spectrum-grid {
  z-index: 1;
}

.wave-hero {
  inset: auto 0 16% 0;
  opacity: 0.62;
}

.content-block,
.legal-layout {
  margin-top: 52px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  max-width: 12ch;
}

.section-heading p:last-child {
  max-width: 620px;
  margin-top: 14px;
}

.about-grid {
  display: grid;
  gap: 18px;
}

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

.glass-card,
.feature-row,
.contact-panel,
.legal-layout {
  border-radius: 28px;
}

.glass-card,
.feature-row {
  padding: 24px;
}

.demo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.demo-card-single {
  width: 100%;
}

.demo-screen {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 32%, rgba(68, 215, 199, 0.18), transparent 18%),
    radial-gradient(circle at 76% 24%, rgba(255, 197, 122, 0.14), transparent 16%),
    linear-gradient(180deg, #0d1626 0%, #08101d 100%);
}

.demo-screen-single {
  min-height: 560px;
}

.halo {
  position: absolute;
  inset: 18% auto auto 12%;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 215, 199, 0.4), transparent 65%);
  filter: blur(6px);
  animation: float 6s ease-in-out infinite;
}

.halo-small {
  inset: auto 10% 10% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 197, 122, 0.38), transparent 62%);
  animation-delay: -2.2s;
}

.mesh {
  opacity: 0.35;
}

.demo-video,
.demo-fallback {
  position: absolute;
  inset: 0;
}

.demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-fallback {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(4, 11, 20, 0.14), rgba(4, 11, 20, 0.58)),
    linear-gradient(135deg, rgba(9, 18, 31, 0.86), rgba(7, 12, 24, 0.94));
}

.demo-screen.has-video .demo-fallback {
  opacity: 0;
  pointer-events: none;
}

.demo-fallback img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(2, 8, 18, 0.42);
}

.demo-fallback span {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.demo-copy {
  padding: 22px 22px 24px;
}

.demo-copy h3 {
  margin-bottom: 10px;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 22px;
  align-items: start;
}

.feature-row h3,
.contact-panel h2 {
  margin: 0;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  margin-top: 52px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 14px;
  color: var(--muted);
}

.brand-footer {
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.legal-body .topbar {
  margin-bottom: 20px;
}

.legal-layout {
  max-width: 860px;
  padding: 34px;
}

.legal-layout h1 {
  max-width: 12ch;
  font-size: clamp(2.9rem, 5vw, 4.8rem);
  margin-bottom: 8px;
}

.legal-updated {
  margin-top: 0;
}

.legal-section + .legal-section {
  margin-top: 28px;
}

.legal-section h2 {
  max-width: none;
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes equalize {
  from {
    transform: scaleY(0.66);
    filter: saturate(0.92);
  }

  to {
    transform: scaleY(1.04);
    filter: saturate(1.08);
  }
}

@keyframes drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-120px);
  }
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .feature-row,
  .contact-panel,
  .footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

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

  .hero-atmosphere {
    position: relative;
    inset: auto;
    transform: none;
    min-height: 360px;
    margin-top: 28px;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    min-height: auto;
  }

  .contact-panel,
  .footer {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    align-items: flex-start;
    padding-top: 14px;
  }

  h1 {
    font-size: clamp(2.9rem, 18vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .hero-actions,
  .nav,
  .footer-links {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .hero-badge {
    width: 100%;
    align-items: center;
  }

  .hero-icon {
    width: 64px;
    height: 64px;
  }

  .demo-screen-single {
    min-height: 360px;
  }

  .glass-card,
  .feature-row,
  .contact-panel,
  .legal-layout {
    padding: 20px;
  }
}
