:root {
  color-scheme: dark;
  --bg: #02030a;
  --bg-soft: #050817;
  --panel: rgba(9, 16, 32, 0.78);
  --panel-strong: rgba(13, 22, 42, 0.9);
  --line: rgba(148, 163, 184, 0.18);
  --line-hot: rgba(34, 211, 238, 0.42);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #93a4c7;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --magenta: #e879f9;
  --teal: #2dd4bf;
  --amber: #fbbf24;
  --shadow-cyan: 0 0 42px rgba(34, 211, 238, 0.18);
  --shadow-violet: 0 0 54px rgba(139, 92, 246, 0.2);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 17% 18%, rgba(34, 211, 238, 0.16), transparent 25rem),
    radial-gradient(circle at 82% 10%, rgba(232, 121, 249, 0.13), transparent 24rem),
    radial-gradient(circle at 72% 76%, rgba(59, 130, 246, 0.12), transparent 30rem),
    linear-gradient(145deg, #02030a 0%, #030712 45%, #050817 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  opacity: 0.78;
  background-image:
    radial-gradient(circle, rgba(248, 250, 252, 0.8) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(34, 211, 238, 0.55) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(139, 92, 246, 0.52) 0 1px, transparent 1.2px);
  background-position:
    12px 28px,
    82px 116px,
    150px 70px;
  background-size:
    180px 180px,
    260px 260px,
    320px 320px;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(2, 3, 10, 0.28) 56%, rgba(2, 3, 10, 0.86) 100%),
    linear-gradient(180deg, rgba(2, 3, 10, 0.05), rgba(2, 3, 10, 0.58));
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(2, 3, 10, 0.72);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-word {
  background: linear-gradient(90deg, #ffffff 0%, #e0f2fe 55%, #bff7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.1);
}

.brand-ai {
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(248, 250, 252, 0.18);
  border-radius: 14px;
  background: rgba(2, 3, 10, 0.62);
  box-shadow:
    0 0 22px rgba(34, 211, 238, 0.22),
    0 0 38px rgba(139, 92, 246, 0.16);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-link {
  color: var(--muted);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.button {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.76);
  color: var(--text);
  box-shadow: 0 12px 34px rgba(2, 3, 10, 0.25);
}

.button.primary {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.92));
  color: #03101f;
  box-shadow: 0 16px 52px rgba(34, 211, 238, 0.22);
}

.button.disabled {
  color: var(--soft);
  cursor: default;
}

.button:not(.disabled):hover,
.button:not(.disabled):focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-hot);
}

.button:focus-visible,
.nav-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.5);
  outline-offset: 3px;
}

.hero,
.section,
.legal-layout {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  position: relative;
  width: min(100% - clamp(40px, 7vw, 96px), var(--max));
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 68px 0 84px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% 42% 18% 2%;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  transform: rotate(-18deg);
  box-shadow: 0 0 80px rgba(34, 211, 238, 0.1);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  padding: 10px 18px;
  font-weight: 800;
  font-size: 0.84rem;
  line-height: 1.25;
  white-space: nowrap;
}

.signal-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 18px var(--teal);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  margin-top: 24px;
  font-size: clamp(3.1rem, 8vw, 7rem);
  max-width: 10ch;
}

.hero-title {
  margin-top: 22px;
  max-width: 760px;
  color: #eef4ff;
  font-size: clamp(3.35rem, 6.8vw, 5.75rem);
  font-weight: 860;
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(34, 211, 238, 0.1);
}

.hero-title-main {
  display: block;
  width: max-content;
  max-width: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #e0f2fe 52%, #bfefff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(34, 211, 238, 0.1);
}

.hero-title-accent {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: -0.03em;
  font-size: 0.92em;
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .brand-word {
    background: none;
    color: #f8fafc;
  }

  .brand-ai {
    background: none;
    color: #22d3ee;
  }

  .hero-title-main {
    background: none;
    color: #f8fafc;
  }

  .hero-title-accent {
    background: none;
    color: #22d3ee;
  }
}

.hero-category {
  margin: 20px 0 0;
  color: var(--cyan);
  font-size: clamp(1.06rem, 2vw, 1.32rem);
  font-weight: 850;
}

.hero-subtitle {
  margin: 20px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.14rem, 2.4vw, 1.48rem);
}

.tagline {
  margin: 18px 0 0;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 850;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--violet), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-card {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 32px 142px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(34, 211, 238, 0.12), transparent 18rem),
    radial-gradient(ellipse at 58% 45%, rgba(232, 121, 249, 0.08), transparent 17rem),
    linear-gradient(145deg, rgba(2, 3, 10, 0.9), rgba(5, 8, 22, 0.82));
  box-shadow: 0 28px 120px rgba(2, 3, 10, 0.58), var(--shadow-violet);
  overflow: hidden;
  isolation: isolate;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-card::before {
  inset: 0;
  z-index: 0;
  opacity: 0.46;
  background-image:
    radial-gradient(circle, rgba(248, 250, 252, 0.7) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(34, 211, 238, 0.42) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(232, 121, 249, 0.3) 0 1px, transparent 1.2px);
  background-position:
    16px 24px,
    104px 86px,
    62px 138px;
  background-size:
    150px 150px,
    230px 230px,
    310px 310px;
}

.hero-card::after {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(2, 3, 10, 0.12) 42%, rgba(2, 3, 10, 0.86) 100%),
    linear-gradient(180deg, rgba(2, 3, 10, 0.08), rgba(2, 3, 10, 0.72));
}

.hero-visual-frame {
  position: relative;
  z-index: 2;
  width: min(460px, 88%);
  max-width: 460px;
  aspect-ratio: 0.78;
  display: grid;
  place-items: center;
  animation: card-float 7s ease-in-out infinite;
}

.hero-card-aura {
  position: absolute;
  z-index: 0;
  inset: 10% 5%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(34, 211, 238, 0.18), transparent 46%),
    radial-gradient(ellipse at center, rgba(139, 92, 246, 0.14), transparent 70%);
  filter: blur(16px);
}

.hero-cosmic-card {
  position: relative;
  z-index: 3;
  width: min(350px, 78%);
  max-height: 445px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(34, 211, 238, 0.14))
    drop-shadow(0 0 20px rgba(139, 92, 246, 0.12));
}

.hero-pill {
  position: absolute;
  z-index: 4;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(2, 3, 10, 0.58);
  color: var(--muted);
  padding: 8px 13px;
  font-size: 0.82rem;
  font-weight: 850;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 38px rgba(2, 3, 10, 0.34);
}

.hero-pill-beta {
  top: 34px;
  right: 34px;
}

.hero-pill-local {
  left: 32px;
  bottom: 142px;
}

.hero-metrics {
  position: absolute;
  z-index: 5;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(10, 18, 36, 0.94);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 35px rgba(0, 0, 0, 0.3);
  filter: none;
  opacity: 1;
  cursor: default;
}

.metric strong {
  display: block;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 900;
  opacity: 1;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.18);
}

.metric span {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  opacity: 0.95;
  font-size: 0.82rem;
  line-height: 1.35;
}

@keyframes card-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-9px) rotate(1deg);
  }
}

.section {
  padding: 84px 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p,
.section-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.panel {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.15);
  background:
    linear-gradient(145deg, var(--panel), rgba(11, 18, 34, 0.7)),
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.12), transparent 12rem);
  box-shadow: 0 18px 60px rgba(2, 3, 10, 0.34);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.34), rgba(139, 92, 246, 0.06), rgba(232, 121, 249, 0.18));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.panel-kicker {
  color: var(--cyan);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.panel h3 {
  margin-top: 14px;
  font-size: 1.24rem;
}

.panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.trust-band {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.12), rgba(232, 121, 249, 0.1)),
    rgba(2, 3, 10, 0.62);
  padding: clamp(28px, 6vw, 52px);
  box-shadow: var(--shadow-cyan);
}

.trust-band p {
  max-width: 860px;
}

.trust-band .eyebrow + h2 {
  margin-top: 18px;
}

.legal-layout {
  padding: 64px 0 96px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
}

.legal-nav {
  position: sticky;
  top: 104px;
  align-self: start;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-md);
  background: rgba(2, 3, 10, 0.5);
  padding: 18px;
}

.legal-nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 12px;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.doc {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(4, 8, 18, 0.72);
  padding: clamp(28px, 5vw, 54px);
  box-shadow: 0 20px 80px rgba(2, 3, 10, 0.42);
}

.doc h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(2.45rem, 5vw, 4.2rem);
}

.doc h2 {
  margin-top: 42px;
  font-size: 1.58rem;
}

.doc h3 {
  margin-top: 30px;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc ul {
  padding-left: 1.25rem;
}

.meta-line {
  color: var(--cyan);
  font-weight: 800;
  margin: 16px 0 28px;
}

.callout {
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius-md);
  background: rgba(34, 211, 238, 0.07);
  padding: 18px;
}

.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 42px 0 58px;
  color: var(--soft);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.not-found {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 64px 16px;
}

.not-found .doc {
  max-width: 720px;
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-card {
    min-height: 540px;
  }

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

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.6rem);
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.8rem, 12.5vw, 4.25rem);
    line-height: 0.98;
  }

  .hero-card {
    min-height: 650px;
    padding: 32px 20px 250px;
  }

  .hero-visual-frame {
    width: min(330px, 84vw);
  }

  .hero-cosmic-card {
    width: min(292px, 82%);
  }

  .hero-pill-beta {
    top: 20px;
    right: 20px;
  }

  .hero-pill-local {
    top: 20px;
    bottom: auto;
    left: 20px;
  }

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

  .button,
  .nav-link {
    width: 100%;
  }

  .cta-row,
  .nav-links {
    width: 100%;
  }
}

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

  .hero-visual-frame {
    animation: none !important;
  }
}
