:root {
  color-scheme: light dark;
  --bg: #f8fbff;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --ink: #07111f;
  --soft-ink: #334155;
  --muted: #64748b;
  --line: rgba(100, 116, 139, 0.24);
  --accent: #2563ff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(37, 99, 255, 0.12);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --bg: #06111f;
  --panel: rgba(13, 23, 38, 0.78);
  --panel-strong: #0d1726;
  --ink: #f8fbff;
  --soft-ink: #c7d2e2;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --accent-soft: rgba(37, 99, 255, 0.22);
  --shadow: 0 24px 100px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34rem),
    radial-gradient(circle at 82% 24%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 30rem),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.74), transparent 72%);
}

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

button,
input,
textarea {
  font: inherit;
}

.shell,
.site-header {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
}

.brand,
.nav-links,
.hero-actions,
.site-footer,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 850;
}

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.brand-icon svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  gap: 18px;
  color: var(--soft-ink);
  font-size: 0.93rem;
  font-weight: 700;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.theme-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.theme-toggle span {
  width: 16px;
  height: 16px;
  background: currentColor;
  border-radius: 999px;
  box-shadow: inset -5px -3px 0 color-mix(in srgb, var(--panel-strong) 88%, transparent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
  padding: 24px 0 56px;
}

.hero-copy,
.section-heading,
.waitlist-copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 100%;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
}

h3 {
  font-size: 1.15rem;
}

.hero-lede,
.split-section p,
.waitlist-copy p {
  max-width: 650px;
  color: var(--soft-ink);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--accent) 28%, transparent);
}

.button.secondary {
  color: var(--ink);
  background: var(--panel);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.launch-note {
  max-width: 520px;
  color: var(--muted);
  font-weight: 700;
}

.preview-card,
.feature-grid article,
.plans-grid article,
.waitlist-section,
.coming-list,
.waitlist-form {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.preview-card {
  overflow: hidden;
  border-radius: 22px;
}

.preview-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 999px;
}

.preview-topbar strong {
  font-size: 0.92rem;
}

.preview-topbar em {
  justify-self: end;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.grid-preview {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  touch-action: none;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 42%, transparent) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}

.preview-hint {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  pointer-events: none;
}

.preview-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.preview-edges path {
  fill: none;
  stroke: color-mix(in srgb, var(--muted) 86%, var(--accent));
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  animation: preview-flow 3.8s linear infinite;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 12%, transparent));
}

.preview-edges marker path {
  fill: color-mix(in srgb, var(--muted) 86%, var(--accent));
}

.preview-edges .dashed {
  stroke-dasharray: 8 9;
  animation-duration: 5.2s;
}

.node {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 142px;
  padding: 16px 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.12);
  cursor: grab;
  user-select: none;
  transform: translate(var(--x), var(--y));
  transition: box-shadow 180ms ease, border-color 180ms ease;
  touch-action: none;
  will-change: transform;
}

.node.is-dragging {
  z-index: 3;
  border-color: var(--accent);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--accent) 26%, transparent);
  cursor: grabbing;
}

.node strong {
  color: var(--accent);
  font-weight: 900;
}

.node span {
  color: var(--muted);
  font-size: 0.82rem;
}

.node-frontend {
  top: 0;
  left: 0;
}

.node-api {
  top: 0;
  left: 0;
}

.node-service {
  top: 0;
  left: 0;
}

.node-data {
  top: 0;
  left: 0;
}

.node-queue {
  top: 0;
  left: 0;
}

@keyframes preview-flow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -120;
  }
}

.section {
  padding: 44px 0;
}

.section-heading {
  margin-bottom: 24px;
}

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

.feature-grid article {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 18px;
}

.feature-grid span {
  color: var(--accent);
  font-weight: 900;
}

.feature-grid p,
.coming-list span {
  color: var(--soft-ink);
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.split-section > div {
  display: grid;
  gap: 18px;
}

.coming-list {
  display: grid;
  gap: 16px;
  padding: 24px;
  margin: 0;
  border-radius: 18px;
  list-style: none;
}

.coming-list li {
  display: grid;
  gap: 4px;
}

.coming-list strong {
  color: var(--ink);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plans-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border-radius: 18px;
}

.plans-grid article.featured {
  border-color: var(--accent);
  box-shadow: 0 22px 48px var(--accent-soft);
}

.plans-grid h3 {
  color: var(--ink);
}

.plans-grid p {
  color: var(--soft-ink);
  line-height: 1.6;
}

.plans-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.plans-grid li {
  color: var(--soft-ink);
  line-height: 1.55;
}

.plans-note {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}

.waitlist-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.75fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  border-radius: 22px;
}

.waitlist-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--panel-strong);
  border-radius: 18px;
  box-shadow: none;
}

.waitlist-form label {
  display: grid;
  gap: 7px;
  color: var(--soft-ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.waitlist-form em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.waitlist-form input,
.waitlist-form textarea {
  width: 100%;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 72%, var(--panel-strong));
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
}

.waitlist-form input {
  height: 44px;
  padding: 0 13px;
}

.waitlist-form textarea {
  resize: vertical;
  padding: 12px 13px;
}

.waitlist-form input:focus,
.waitlist-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-field {
  min-height: 65px;
}

.form-status {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-status.is-error {
  color: #ef4444;
}

.form-status.is-success {
  color: #16a34a;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  flex-wrap: wrap;
  gap: 16px;
}

.legal-page {
  padding: 48px 0 80px;
}

.legal-document {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.legal-document h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
}

.legal-document h2 {
  padding-top: 18px;
  font-size: 1.2rem;
}

.legal-document p,
.legal-document li {
  color: var(--soft-ink);
  line-height: 1.7;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .waitlist-section {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .shell,
  .site-header {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 3.7rem);
  }

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

  .grid-preview {
    min-height: 360px;
  }

  .node {
    min-width: 118px;
    padding: 12px;
  }

  .node-api {
    left: 0;
  }

  .node-service {
    left: 0;
    right: auto;
  }

  .node-queue {
    left: 0;
  }

  .node-data {
    right: auto;
  }

  .waitlist-section {
    padding: 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
