:root {
  --bg: #000000;
  --bg-2: #000000;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muted-2: rgba(255, 255, 255, 0.52);
  --border: rgba(255, 255, 255, 0.10);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  --radius: 20px;
  --max: 1120px;

  --a1: #7c4dff;
  --a2: #00d4ff;
  --a3: #00ffa3;
}

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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(124, 77, 255, 0.18), transparent 62%),
    radial-gradient(740px 520px at 86% 14%, rgba(0, 212, 255, 0.12), transparent 62%),
    radial-gradient(880px 640px at 58% 92%, rgba(0, 255, 163, 0.08), transparent 66%);
  opacity: 0.95;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  padding: 1px 6px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  border: 1px solid var(--border);
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.72);
}

.nav__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand--small {
  font-weight: 650;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: radial-gradient(12px 12px at 30% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.15)),
    linear-gradient(135deg, var(--a1), var(--a2) 55%, var(--a3));
  box-shadow: 0 18px 50px rgba(124, 77, 255, 0.22);
}

.brand__name {
  font-size: 15px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav__link {
  padding: 9px 12px;
  border-radius: 12px;
}

.nav__link:hover {
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.1px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
}

.btn[aria-disabled="true"] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn[aria-disabled="true"]:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.03);
}

.btn--primary {
  border: 1px solid color-mix(in srgb, var(--a2) 22%, var(--border));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--a1) 34%, transparent),
    color-mix(in srgb, var(--a2) 28%, transparent)
  );
}

.btn--secondary {
  box-shadow: none;
}

.hero {
  padding: 86px 0 34px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--muted);
  font-size: 13px;
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.22));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--a2) 14%, transparent);
}

.hero__title {
  margin: 16px 0 12px;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero__copy {
  max-width: 56ch;
}

.hero__actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.6;
}

.visual {
  position: relative;
}

.visual__img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 34px 90px rgba(0, 0, 0, 0.48));
  transform: translateY(0);
  transition: transform 220ms ease;
}

.visual:hover .visual__img {
  transform: translateY(-2px);
}

.chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
}

.chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.chip[aria-selected="true"] {
  color: var(--text);
  border-color: color-mix(in srgb, var(--a2) 22%, var(--border));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--a1) 22%, transparent),
    color-mix(in srgb, var(--a2) 18%, transparent)
  );
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 56px 0;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section__title {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.section__sub {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
}

.card--doc {
  padding: 22px;
}

.card--callout {
  padding: 22px;
  background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--a1) 18%, transparent),
      color-mix(in srgb, var(--a2) 14%, transparent)
    ),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.callout__title {
  margin: 0 0 10px;
}

.callout__sub {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.card__icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 22%, transparent), var(--surface));
  display: grid;
  place-items: center;
}

.card__icon svg {
  width: 18px;
  height: 18px;
  opacity: 0.92;
}

.card__title {
  margin: 12px 0 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.card__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.screen {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 18px;
}

.screen img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.35));
}

.screen:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--a2) 55%, transparent);
  outline-offset: 6px;
}

.doc {
  padding: 44px 0 72px;
}

.prose h1,
.prose h2,
.prose h3 {
  letter-spacing: -0.01em;
}

.prose h1 {
  font-size: 30px;
  margin: 0 0 12px;
}

.prose h2 {
  font-size: 18px;
  margin: 22px 0 10px;
}

.prose h3 {
  font-size: 15px;
  margin: 18px 0 10px;
}

.prose p {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.prose ul,
.prose ol {
  margin: 10px 0 10px 20px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.prose li {
  margin: 6px 0;
}

.prose strong {
  color: var(--text);
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 0.95em;
  padding: 1px 6px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  border: 1px solid var(--border);
}

.prose pre {
  overflow: auto;
  padding: 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
  border: 1px solid var(--border);
}

.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.prose a {
  color: color-mix(in srgb, var(--text) 92%, var(--a2));
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 13px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer__meta {
  margin-top: 6px;
  color: var(--muted-2);
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__link {
  color: var(--text);
}

.footer__sep {
  color: var(--muted-2);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.70);
  z-index: 80;
  padding: 22px;
}

.modal[aria-hidden="false"] {
  display: grid;
}

.modal__inner {
  width: min(980px, 100%);
  border-radius: 22px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.modal__top button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  height: 34px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 650;
}

.modal__top button:hover {
  background: var(--surface-2);
}

.modal img {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .chips {
    justify-content: flex-start;
  }

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

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

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

  .nav__links {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
