:root {
  --bg: #0c0b12;
  --bg-raised: #14121d;
  --bg-card: #18151f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f0f9;
  --text-soft: #b9b4cc;
  --text-faint: #807a95;
  --brand: #7b5cff;
  --brand-bright: #9f88ff;
  --mint: #5ce0b8;
  --danger: #ff6b7d;
  --radius: 18px;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1160px, 100% - 32px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(12, 11, 18, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  transition: border-color 0.2s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.15s,
    background-color 0.15s;
}

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

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    background-color 0.15s,
    border-color 0.15s,
    box-shadow 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(123, 92, 255, 0.7);
}

.btn.primary:hover {
  background: #8a6dff;
  box-shadow: 0 12px 30px -8px rgba(123, 92, 255, 0.85);
}

.btn.ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.site-nav .btn.small {
  margin-left: 8px;
  color: #fff;
}

.site-nav .btn.small:hover {
  background: #8a6dff;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  margin: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(92, 224, 184, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(92, 224, 184, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(92, 224, 184, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(92, 224, 184, 0);
  }
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.site-footer {
  margin-top: 120px;
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 32px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-grid p {
  max-width: 34ch;
  margin: 12px 0 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@media (max-width: 760px) {
  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--bg-raised);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition:
      opacity 0.18s,
      transform 0.18s,
      visibility 0.18s;
  }

  .site-nav.open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .site-nav .btn.small {
    margin: 6px 0 0;
    min-height: 46px;
  }

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

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

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