:root {
  --bg: #070a12;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.66);
  --muted-2: rgba(255, 255, 255, 0.54);

  --brand: #a78bfa;
  --brand-2: #22d3ee;
  --accent: #f97316;
  --good: #22c55e;
  --bad: #ef4444;

  --radius: 16px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  --container: 1120px;
  --gutter: 20px;
}

* {
  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;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(167, 139, 250, 0.18), transparent 55%),
    radial-gradient(1000px 520px at 80% 10%, rgba(34, 211, 238, 0.14), transparent 56%),
    radial-gradient(900px 580px at 40% 90%, rgba(249, 115, 22, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.55;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-140%);
  transition: transform 0.15s ease;
  z-index: 100;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.75);
  outline-offset: 3px;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 18, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.95), rgba(34, 211, 238, 0.85));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 12px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button.small {
  padding: 9px 12px;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.92), rgba(34, 211, 238, 0.86));
  color: rgba(7, 10, 18, 0.92);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.hero {
  padding: 74px 0 38px;
}

.hero-meta {
  margin-top: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(42px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  max-width: 70ch;
}

.hero .panel .mono a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.26);
}

.hero .panel .mono a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.56);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.panel-note {
  margin-top: 14px;
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.kpi .stat {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
}

.kpi strong {
  display: block;
  font-size: 14px;
}

.kpi span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.section {
  padding: 38px 0;
  scroll-margin-top: 92px;
}

.section.alt {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.page-title {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.section p.subhead {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
  max-width: 80ch;
}

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

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

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

.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 16px;
}

.card strong {
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.answer-box {
  margin: 22px 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.12));
}

.answer-box p {
  margin-top: 0;
}

.answer-box ul {
  margin-bottom: 0;
}

.workflow-diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.workflow-step {
  position: relative;
  min-height: 160px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  overflow: hidden;
}

.workflow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.92), rgba(34, 211, 238, 0.86));
  color: rgba(7, 10, 18, 0.92);
  font-weight: 900;
}

.workflow-step strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.workflow-step p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.comparison-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.comparison-table td {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.sample-stage-grid {
  margin-top: 14px;
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
}

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

.faq-item summary::after {
  content: '+';
  float: right;
  color: rgba(255, 255, 255, 0.72);
}

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

.faq-answer {
  padding: 0 16px 14px;
  color: rgba(255, 255, 255, 0.72);
}

.faq-answer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.76);
}

.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.demo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

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

.demo textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
}

.demo .token-row {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.demo .token-row input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
}

.demo pre,
pre.code-block {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
  color: rgba(255, 255, 255, 0.84);
}

.form {
  display: grid;
  gap: 10px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.form input,
.form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.notice {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.notice.good {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.12);
}

.notice.bad {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.12);
}

.pricing-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.checkout-panel {
  margin: 18px 0;
}

.checkout-panel .checkout-subhead {
  margin: 6px 0 12px;
}

.pricing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.claim-panel {
  margin: 18px 0;
}

.claim-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.token-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.legal-note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.legal-note a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.26);
}

.legal-note a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.52);
}

.waitlist-note {
  margin-top: 12px;
}

.gtm-noscript-frame {
  display: none;
  visibility: hidden;
}

.footer {
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footer-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}

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

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
}

.footer-contact-note a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.footer-contact-note a:hover,
.footer-contact-note a:focus-visible {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
}

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

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

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

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

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

@media (max-width: 520px) {
  .hero {
    padding: 48px 0 28px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 38px);
    letter-spacing: -0.04em;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .workflow-diagram {
    grid-template-columns: 1fr;
  }
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 720px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 10, 18, 0.98);
    flex-direction: column;
    padding: 16px 20px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    width: 100%;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
