:root {
  --bg: #07090f;
  --bg-elevated: #0e121b;
  --fg: #e8ecf4;
  --muted: #8b95a8;
  --line: rgba(232, 236, 244, 0.1);
  --accent: #3dffb5;
  --accent-dim: rgba(61, 255, 181, 0.14);
  --accent-2: #5b8cff;
  --warn: #ffc857;
  --radius: 14px;
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(61, 255, 181, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 20%, rgba(91, 140, 255, 0.1), transparent 50%),
    linear-gradient(rgba(232, 236, 244, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 236, 244, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 85%);
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--accent), #1f9e70 55%, var(--accent-2));
  box-shadow: 0 0 0 1px rgba(61, 255, 181, 0.35), 0 0 24px rgba(61, 255, 181, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-link {
  display: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

@media (min-width: 640px) {
  .nav-link {
    display: inline;
  }
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 1.25rem 0 0;
}

.home-links a {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-links a:hover {
  filter: brightness(1.1);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links > a:not(.footer-x) {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links > a:not(.footer-x):hover {
  color: var(--fg);
}

/* —— Docs / left-nav pages —— */
.docs-body {
  background: var(--bg);
}

.docs-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .docs-shell {
    grid-template-columns: 240px 1fr;
  }
}

.docs-nav {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line);
  background: rgba(7, 9, 15, 0.92);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

@media (min-width: 900px) {
  .docs-nav {
    display: flex;
  }
}

.docs-logo {
  margin-bottom: 1.5rem;
}

.docs-nav-label {
  margin: 1rem 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.docs-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.docs-nav-list a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.docs-nav-list a:hover {
  color: var(--fg);
  background: rgba(232, 236, 244, 0.05);
}

.docs-nav-list a.is-active {
  color: var(--accent);
  background: var(--accent-dim);
}

.docs-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.docs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

@media (min-width: 900px) {
  .docs-top .docs-mobile-home {
    visibility: hidden;
  }
}

.docs-mobile-home {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.docs-mobile-home:hover {
  color: var(--fg);
}

.docs-article {
  flex: 1;
  max-width: 820px;
  padding: 2rem 1.25rem 3rem;
}

@media (min-width: 900px) {
  .docs-article {
    padding: 2.5rem 2.5rem 4rem;
  }
}

.docs-article > h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.docs-article .signal-lede {
  margin-top: 1rem;
}

.docs-article .signal-grid {
  margin-top: 1.75rem;
}

.docs-article .signal-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.docs-article .signal-why h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.docs-faq {
  margin-top: 1.5rem;
}

.docs-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.docs-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .docs-footer {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.docs-footer a {
  color: var(--muted);
}

.docs-footer a:hover {
  color: var(--fg);
}

.docs-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

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

.x-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  display: block;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--fg);
  background: rgba(14, 18, 27, 0.6);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover {
  border-color: rgba(232, 236, 244, 0.28);
  background: rgba(232, 236, 244, 0.06);
  transform: translateY(-1px);
}

.icon-btn .x-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.btn-x .x-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 18, 27, 0.7);
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--mono);
}

.pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(61, 255, 181, 0.55);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(61, 255, 181, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 255, 181, 0);
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Waitlist → Formspree */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  max-width: 28rem;
  margin-top: 1.75rem;
}

.waitlist-form--inline {
  margin-top: 0;
}

.waitlist-form--compact {
  margin-top: 0;
  max-width: none;
}

.waitlist-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .waitlist-row {
    flex-direction: row;
    align-items: stretch;
  }
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 15, 0.75);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
}

.waitlist-form input[type="email"]::placeholder {
  color: rgba(139, 149, 168, 0.85);
}

.waitlist-form input[type="email"]:focus {
  outline: 2px solid rgba(61, 255, 181, 0.45);
  outline-offset: 1px;
  border-color: transparent;
}

.waitlist-form .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.waitlist-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.waitlist-status {
  margin: 0;
  font-size: 0.85rem;
  min-height: 1.25em;
  color: var(--muted);
}

.waitlist-status.is-ok {
  color: var(--accent);
}

.waitlist-status.is-error {
  color: #ff8a8a;
}

.hero .waitlist-form {
  margin-top: 1.5rem;
}

.notify-panel .waitlist-form {
  margin-top: 1.25rem;
  max-width: 32rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #04140e;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: rgba(61, 255, 181, 0.4);
  background: var(--accent-dim);
  filter: none;
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stats dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.stats dd {
  margin: 0;
  font-weight: 500;
}

.pillars {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 18, 27, 0.9), rgba(7, 9, 15, 0.6));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(61, 255, 181, 0.28);
  transform: translateY(-2px);
}

.card-index {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.card h2 {
  margin: 0.55rem 0 0.4rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.signal {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.signal-inner {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(14, 18, 27, 0.95), rgba(7, 9, 15, 0.75));
}

.signal-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.signal-inner > h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.signal-lede {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 46rem;
  font-size: 1.02rem;
}

.signal-lede strong {
  color: var(--fg);
  font-weight: 600;
}

.signal-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .signal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.signal-card {
  padding: 1.1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 15, 0.55);
}

.signal-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.signal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.signal-card strong {
  color: var(--fg);
  font-weight: 600;
}

.signal-why {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.signal-why h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.signal-why > p {
  margin: 0;
  color: var(--muted);
  max-width: 48rem;
  font-size: 0.95rem;
}

.signal-list {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 48rem;
}

.signal-list li {
  margin-bottom: 0.35rem;
}

.signal-list li::marker {
  color: var(--accent);
}

.signal-cite {
  margin: 1rem 0 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.5;
  color: rgba(139, 149, 168, 0.85) !important;
  max-width: 48rem;
}

.faq {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.faq > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(14, 18, 27, 0.7);
  padding: 0.85rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.faq-item a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notify {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.notify-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(61, 255, 181, 0.22);
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, rgba(61, 255, 181, 0.1), transparent 50%),
    var(--bg-elevated);
}

.notify-panel h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}

.notify-panel > p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 34rem;
}

.notify-cta {
  margin-top: 1.35rem;
}

.footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-x {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-x:hover {
  color: var(--fg);
}

.footer-x .x-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.mono {
  font-family: var(--mono);
  font-size: 0.8rem;
}
