:root {
  --bg: #070a12;
  --surface: #0d1220;
  --surface-2: #121a2c;
  --surface-3: #18233a;
  --text: #f7f9ff;
  --muted: #9da8c3;
  --soft: #c7d0e8;
  --line: rgba(255,255,255,.11);
  --primary: #6d5dfc;
  --primary-2: #8d7cff;
  --cyan: #23d5ff;
  --green: #38f2a8;
  --orange: #ffb454;
  --pink: #ff5ebc;
  --danger: #ff5d73;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 20% -10%, rgba(109,93,252,.45), transparent 32rem),
    radial-gradient(circle at 84% 6%, rgba(35,213,255,.25), transparent 28rem),
    radial-gradient(circle at 50% 48%, rgba(255,94,188,.11), transparent 35rem),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7,10,18,.72);
  border-bottom: 1px solid var(--line);
}
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.03em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(109,93,252,.35);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand span { font-size: 1.12rem; }
.nav-links { display: flex; gap: 26px; align-items: center; color: var(--soft); font-size: .94rem; }
.nav-links a:hover, .footer-links a:hover { color: white; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; border: 1px solid var(--line); color: white; background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px 12px; }

.btn {
  border: 1px solid var(--line);
  color: white;
  background: rgba(255,255,255,.06);
  padding: 11px 17px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 720;
  transition: transform .2s ease, border .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.1); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(109,93,252,.28);
}
.btn-primary:hover { box-shadow: 0 20px 50px rgba(35,213,255,.24); }

.hero { padding: 92px 0 76px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.eyebrow {
  width: fit-content;
  display: flex; align-items: center; gap: 9px;
  color: #dfe7ff;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: .86rem;
  margin-bottom: 22px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 7px rgba(56,242,168,.12); }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.7rem); line-height: .91; letter-spacing: -.085em; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -.065em; }
.gradient-text {
  background: linear-gradient(90deg, #fff, #b9c5ff 35%, #7ee7ff 70%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p, .lead { color: var(--soft); font-size: 1.18rem; max-width: 720px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero-proof { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .93rem; }
.hero-proof strong { color: white; }

.api-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  isolation: isolate;
}
.api-card:before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(109,93,252,.8), rgba(35,213,255,.45), transparent 54%);
  z-index: -1;
  opacity: .42;
}
.window-bar { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.28); }
.dot:nth-child(1) { background: var(--danger); }
.dot:nth-child(2) { background: var(--orange); }
.dot:nth-child(3) { background: var(--green); }
pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  font-family: var(--mono);
  color: #dce8ff;
  font-size: .91rem;
  line-height: 1.7;
}
.token-blue { color: #7ee7ff; }
.token-purple { color: #b4a7ff; }
.token-green { color: #65f5bb; }
.token-orange { color: #ffd08a; }

.floating-stat {
  position: absolute;
  right: -20px;
  bottom: -28px;
  width: 210px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(13,18,32,.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.floating-stat strong { display: block; font-size: 2rem; letter-spacing: -.04em; }
.floating-stat span { color: var(--muted); font-size: .86rem; }

section, .page-section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { color: var(--muted); max-width: 520px; margin-bottom: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.055);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -.025em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .96rem; }
.icon {
  width: 44px; height: 44px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(109,93,252,.26), rgba(35,213,255,.15));
  margin-bottom: 18px;
  color: var(--cyan);
}

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; overflow: hidden; }
.price-card.featured { border-color: rgba(35,213,255,.38); background: linear-gradient(180deg, rgba(35,213,255,.13), rgba(255,255,255,.055)); transform: translateY(-10px); }
.price { font-size: 3rem; line-height: 1; letter-spacing: -.06em; margin: 18px 0 6px; }
.price small { font-size: .95rem; color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; color: var(--soft); }
.checks li { margin: 9px 0; }
.checks li:before { content: "✓"; color: var(--green); margin-right: 9px; }
.badge { display: inline-flex; border-radius: 999px; padding: 6px 10px; background: rgba(56,242,168,.12); color: #9cffd6; font-weight: 700; font-size: .78rem; }

.form-card { max-width: 620px; margin: 0 auto; }
.form-grid { display: grid; gap: 14px; }
label { color: var(--soft); font-weight: 700; }
.input, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.06);
  outline: none;
}
textarea { min-height: 140px; resize: vertical; }
.input:focus, textarea:focus { border-color: rgba(35,213,255,.55); box-shadow: 0 0 0 4px rgba(35,213,255,.12); }

.dashboard-metric strong { display: block; font-size: 2.2rem; line-height: 1; letter-spacing: -.05em; }
.dashboard-metric span { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; color: var(--soft); }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: white; }

.cta {
  margin: 72px 0 36px;
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: clamp(30px, 6vw, 64px);
  background:
    radial-gradient(circle at 25% 10%, rgba(109,93,252,.36), transparent 28rem),
    radial-gradient(circle at 80% 20%, rgba(35,213,255,.22), transparent 24rem),
    rgba(255,255,255,.055);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.075em; margin-bottom: 18px; }
.cta p { max-width: 640px; margin: 0 auto 28px; color: var(--soft); }
.component-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.footer { padding: 34px 0 56px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { margin-bottom: 12px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.flash { margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: rgba(255,255,255,.07); }
.flash-success { border-color: rgba(56,242,168,.35); }
.flash-error { border-color: rgba(255,93,115,.45); }

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

.legal-content { color: var(--soft); }
.legal-content h2, .legal-content h3 { color: white; }
.legal-content a { color: #7ee7ff; }

@media (max-width: 900px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .pricing { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    padding: 18px;
    background: rgba(13,18,32,.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .floating-stat { position: static; width: 100%; margin-top: 18px; }
  .price-card.featured { transform: none; }
  .section-head { display: block; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 26px, var(--max)); }
  .nav-actions .btn:not(.btn-primary) { display: none; }
  .hero { padding-top: 58px; }
  pre { font-size: .78rem; padding: 16px; }
}
