:root{
  --bg:#070A10;
  --surface:rgba(255,255,255,.03);
  --surface2:rgba(255,255,255,.05);
  --border:rgba(255,255,255,.08);
  --text:#E7EEF8;
  --muted:rgba(255,255,255,.65);
  --muted2:rgba(255,255,255,.50);
  --primary:#7C3AED;
  --primary2:#A78BFA;
  --success:#22C55E;
  --warning:#F59E0B;
  --danger:#EF4444;
  --r-lg:20px;
  --r-md:14px;
  --shadow:0 10px 40px rgba(0,0,0,.35);
  --max:1200px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(900px 500px at 85% 15%, rgba(167,139,250,.14), transparent 60%),
    var(--bg);
  color:var(--text);
  line-height:1.65;
}

a{color:inherit}
a.link{color:var(--primary2); text-decoration:none}
a.link:hover{text-decoration:underline}

.container{max-width:var(--max); margin:0 auto; padding:0 24px}
.section{padding:72px 0}
.section.sm{padding:54px 0}
.section.tight{padding:42px 0}

.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(180%) blur(12px);
  background:rgba(7,10,16,.62);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:68px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
}
.logo{
  width:34px; height:34px; border-radius:12px;
  background:
    radial-gradient(12px 12px at 30% 30%, rgba(255,255,255,.28), transparent 60%),
    linear-gradient(135deg, rgba(124,58,237,1), rgba(167,139,250,1));
  box-shadow:0 10px 30px rgba(124,58,237,.20);
  border:1px solid rgba(255,255,255,.18);
}
.brand .name{font-weight:850; letter-spacing:-.4px}
.brand .tag{font-size:12px; color:var(--muted); margin-top:-2px}

.nav-links{
  display:flex; align-items:center; gap:18px;
}
.nav-links a{
  font-size:14px; color:var(--muted);
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
}
.nav-links a:hover{background:rgba(255,255,255,.04); color:var(--text)}
.nav-links a.active{
  color:var(--text);
  background:rgba(124,58,237,.15);
  border:1px solid rgba(124,58,237,.28);
}

.nav-cta{
  display:flex; align-items:center; gap:10px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  font-weight:750;
  font-size:14px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  text-decoration:none;
  transition:transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.08)}
.btn.primary{
  border-color:rgba(124,58,237,.40);
  background:linear-gradient(135deg, rgba(124,58,237,1), rgba(167,139,250,1));
  box-shadow:0 10px 28px rgba(124,58,237,.22);
}
.btn.primary:hover{transform:translateY(-1px); filter:saturate(1.05)}
.btn.ghost{
  background:transparent;
  border-color:rgba(255,255,255,.14);
}

.mobile-toggle{
  display:none;
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
}
.mobile-menu{
  display:none;
  border-top:1px solid var(--border);
  padding:14px 0 18px;
}
.mobile-menu a{display:block; padding:10px 14px; border-radius:14px; text-decoration:none; color:var(--muted)}
.mobile-menu a:hover{background:rgba(255,255,255,.04); color:var(--text)}
.mobile-menu a.active{background:rgba(124,58,237,.15); border:1px solid rgba(124,58,237,.28); color:var(--text)}
.mobile-menu.open{display:block}

.hero{padding:70px 0 38px}
.hero-grid{display:grid; grid-template-columns:1.15fr .85fr; gap:26px; align-items:stretch}
.eyebrow{display:inline-flex; align-items:center; gap:10px; font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted)}
.eyebrow .dot{width:8px; height:8px; border-radius:999px; background:rgba(124,58,237,1); box-shadow:0 0 0 6px rgba(124,58,237,.12)}
h1{margin:12px 0 12px; font-size:52px; line-height:1.05; letter-spacing:-1.2px}
.sub{font-size:16px; color:var(--muted); max-width:60ch}
.badges{display:flex; flex-wrap:wrap; gap:10px; margin-top:18px}
.badge{display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; border:1px solid var(--border); background:rgba(255,255,255,.04); font-size:12px; color:rgba(255,255,255,.78)}
.badge .b{width:8px;height:8px;border-radius:999px;background:rgba(255,255,255,.35)}
.badge.p .b{background:rgba(124,58,237,1)}
.badge.g .b{background:rgba(34,197,94,1)}
.badge.y .b{background:rgba(245,158,11,1)}

.panel{
  border:1px solid var(--border);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow:var(--shadow);
  padding:18px;
  overflow:hidden;
  position:relative;
}
.panel:before{
  content:"";
  position:absolute; inset:-2px;
  background:radial-gradient(600px 240px at 30% 10%, rgba(124,58,237,.18), transparent 55%);
  pointer-events:none;
}
.panel .head{display:flex; justify-content:space-between; align-items:center; position:relative}
.pill{font-size:12px; padding:6px 10px; border-radius:999px; border:1px solid rgba(34,197,94,.24); background:rgba(34,197,94,.10); color:rgba(220,255,235,.92)}
.kpi-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:14px; position:relative}
.card{
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.03);
  padding:14px;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover{transform:translateY(-2px); border-color:rgba(124,58,237,.28); box-shadow:0 0 0 1px rgba(124,58,237,.10)}
.card .t{font-size:12px;color:var(--muted)}
.card .v{font-size:18px;font-weight:850;margin-top:6px;letter-spacing:-.4px}
.card .s{font-size:12px;color:var(--muted2);margin-top:4px}

.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
.grid2{display:grid; grid-template-columns:repeat(2,1fr); gap:14px}
.grid4{display:grid; grid-template-columns:repeat(4,1fr); gap:14px}

.h2{font-size:32px; margin:0 0 10px; letter-spacing:-.6px}
.p{color:var(--muted); margin:0; max-width:75ch}

.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:18px}
.section-head .left .label{font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted)}
.section-head .left .h2{margin-top:8px}

.list{margin:10px 0 0; padding-left:18px; color:var(--muted)}
.list li{margin:6px 0}

.steps{border:1px solid var(--border); border-radius:22px; background:rgba(255,255,255,.03); padding:18px}
.step{display:flex; gap:12px; padding:12px; border-radius:18px}
.step:hover{background:rgba(255,255,255,.03)}
.step .n{width:28px;height:28px;border-radius:10px; display:flex;align-items:center;justify-content:center; background:rgba(124,58,237,.16); border:1px solid rgba(124,58,237,.28); font-weight:850}
.step .txt .t{font-weight:800}
.step .txt .d{color:var(--muted); font-size:13px}

.cta-band{border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:rgba(255,255,255,.03)}
.cta-inner{display:flex; justify-content:space-between; align-items:center; gap:14px; padding:26px 0}
.cta-inner .t{font-size:22px;font-weight:900;letter-spacing:-.4px}
.cta-inner .d{color:var(--muted); max-width:70ch}

.footer{padding:40px 0; color:var(--muted)}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:18px; padding-top:18px; border-top:1px solid var(--border)}
.footer a{color:var(--muted); text-decoration:none}
.footer a:hover{color:var(--text)}
.small{font-size:12px;color:var(--muted2)}
hr.sep{border:0; border-top:1px solid var(--border); margin:28px 0}

.form{border:1px solid var(--border); border-radius:22px; background:rgba(255,255,255,.03); padding:18px}
.field{display:grid; gap:6px; margin-top:12px}
label{font-size:13px;color:rgba(255,255,255,.78)}
input,select,textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(7,10,16,.55);
  color:var(--text);
  outline:none;
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(124,58,237,.55);
  box-shadow:0 0 0 4px rgba(124,58,237,.16);
}
textarea{min-height:120px; resize:vertical}

.code{
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(0,0,0,.22);
  padding:14px;
  overflow:auto;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  line-height:1.55;
  color:rgba(231,238,248,.92);
}

@media (max-width: 980px){
  h1{font-size:42px}
  .hero-grid{grid-template-columns:1fr}
  .grid3{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
  .grid4{grid-template-columns:repeat(2,1fr)}
  .nav-links{display:none}
  .mobile-toggle{display:inline-flex; align-items:center; justify-content:center}
  .cta-inner{flex-direction:column; align-items:flex-start}
}

@media (max-width: 520px){
  h1{font-size:36px}
  .grid4{grid-template-columns:1fr}
}
