:root {
  --bg: #0f1720;
  --bg-soft: #13202d;
  --surface: rgba(9, 17, 25, 0.72);
  --surface-strong: rgba(12, 24, 35, 0.94);
  --line: rgba(171, 204, 226, 0.18);
  --text: #eef6fb;
  --muted: #a9bccb;
  --accent-coral: #ff7f66;
  --accent-sky: #65c5ff;
  --accent-lime: #b8ff67;
  --accent-gold: #ffd166;
  --accent-azure: #7be0ff;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content-width: 1160px;
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(123, 224, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 127, 102, 0.12), transparent 26%),
    linear-gradient(180deg, #0c141c 0%, #101b26 46%, #0a1118 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 32px 32px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 90%);
  opacity: 0.28;
}

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

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

.page-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: min(var(--content-width), calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(9, 14, 20, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-sky), var(--accent-coral));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 10px 35px rgba(101, 197, 255, 0.22);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.hero,
.detail-hero,
.legal-hero {
  padding: 88px 0 48px;
}

.hero-grid,
.detail-grid,
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.panel,
.app-card,
.legal-card,
.legal-sidebar,
.legal-shell,
.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy,
.detail-copy,
.legal-headline,
.hero-panel,
.legal-shell,
.legal-sidebar {
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.95;
}

h1 {
  margin-top: 20px;
  font-size: clamp(3rem, 6vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.55rem;
}

.lead,
.hero-copy p,
.detail-copy p,
.legal-headline p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-actions,
.card-actions,
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.card-actions a,
.legal-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-sky), var(--accent-coral));
  color: #071019;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.button.is-secondary,
.ghost-link {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface-strong);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -16% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(101, 197, 255, 0.22), transparent 68%);
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.stat {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: 26px 0 84px;
}

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

.section-head p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

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

.app-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--card-accent, var(--accent-sky));
}

.app-card__eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-card h3 {
  margin-top: 24px;
}

.app-card p {
  margin: 14px 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.mini-list,
.feature-list,
.legal-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.detail-side,
.legal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-list {
  margin-top: 18px;
}

.legal-card {
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.legal-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.legal-card:hover,
.legal-card:focus-visible,
.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}

.legal-layout {
  padding-bottom: 84px;
}

.legal-grid {
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 94px;
}

.legal-sidebar nav {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.legal-sidebar nav a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.legal-sidebar nav a:hover,
.legal-sidebar nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.legal-shell {
  display: grid;
  gap: 28px;
}

.legal-section h2 {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 9, 13, 0.55);
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 700ms ease forwards;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .detail-grid,
  .legal-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .site-footer__inner,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero,
  .detail-hero,
  .legal-hero {
    padding-top: 62px;
  }

  .hero-copy,
  .detail-copy,
  .legal-headline,
  .hero-panel,
  .legal-shell,
  .legal-sidebar {
    padding: 24px;
  }

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

  .nav {
    width: 100%;
  }
}
