:root{
  --bg:#070B14;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.08);
  --stroke:rgba(255,255,255,.12);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.66);
  --muted2:rgba(255,255,255,.45);
  --primary:#79c0ff;
  --primary2:#b2f5ea;
  --warn:#ffdd57;
  --danger:#ff6b6b;
  --ok:#2dd4bf;
  --shadow:0 16px 60px rgba(0,0,0,.55);
  --radius:16px;
  --radius2:22px;
  --max:1180px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
  color:var(--text);
  background:var(--bg);
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}

.container{width:min(var(--max), calc(100% - 48px)); margin:0 auto;}

.bg{position:fixed; inset:0; z-index:-1; pointer-events:none;}
.orb{position:absolute; filter:blur(60px); opacity:.55; border-radius:999px;}
.orb-1{width:420px; height:420px; left:-100px; top:-120px; background:radial-gradient(circle at 30% 30%, #7aa2ff, transparent 60%);}
.orb-2{width:520px; height:520px; right:-160px; top:140px; background:radial-gradient(circle at 30% 30%, #2dd4bf, transparent 62%);}
.orb-3{width:520px; height:520px; left:180px; bottom:-220px; background:radial-gradient(circle at 40% 40%, #ffdd57, transparent 62%); opacity:.35;}
.grid{position:absolute; inset:0; background-image:linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:70px 70px; opacity:.16; mask-image:radial-gradient(circle at 50% 30%, black 0%, transparent 68%);
}

.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(140%) blur(14px);
  background:linear-gradient(to bottom, rgba(7,11,20,.80), rgba(7,11,20,.40));
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0;}

.brand{display:flex; align-items:center; gap:10px;}
.brand-mark{width:14px; height:14px; border-radius:6px; background:linear-gradient(135deg, var(--primary), var(--primary2)); box-shadow:0 10px 30px rgba(121,192,255,.25);}
.brand-text{font-weight:700; letter-spacing:.2px}
.brand-sm .brand-text{font-weight:650}
.badge{font-size:12px; color:rgba(7,11,20,.9); background:rgba(121,192,255,.9); padding:3px 8px; border-radius:999px; font-weight:650;}

.nav{display:flex; gap:18px; color:var(--muted)}
.nav a{padding:8px 10px; border-radius:10px; transition:background .18s ease, color .18s ease}
.nav a:hover{background:rgba(255,255,255,.06); color:var(--text)}

.header-actions{display:flex; gap:10px; align-items:center;}

.btn{
  appearance:none; border:none; cursor:pointer;
  padding:10px 14px; border-radius:12px; font-weight:650;
  color:var(--text);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  transition:transform .12s ease, background .18s ease, border-color .18s ease;
}
.btn:hover{background:rgba(255,255,255,.09); border-color:rgba(255,255,255,.16)}
.btn:active{transform:translateY(1px)}
.btn-primary{background:linear-gradient(135deg, rgba(121,192,255,.95), rgba(45,212,191,.85)); color:rgba(7,11,20,.92); border-color:transparent;}
.btn-primary:hover{filter:saturate(1.05)}
.btn-secondary{background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.14)}
.btn-ghost{background:transparent}
.btn-sm{padding:8px 10px; border-radius:10px; font-weight:650}

.hero{padding:60px 0 26px}
.hero-inner{display:grid; grid-template-columns: 1.12fr .88fr; gap:28px; align-items:start}

h1{margin:0; font-size:44px; line-height:1.1; letter-spacing:-.4px}
.grad{display:block; background:linear-gradient(90deg, var(--primary), var(--primary2)); -webkit-background-clip:text; background-clip:text; color:transparent;}
.lead{margin:14px 0 0; color:var(--muted); font-size:16px; line-height:1.7}
.hero-cta{margin-top:18px; display:flex; gap:12px; flex-wrap:wrap}

.hero-metrics{margin-top:22px; display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
.metric{padding:14px 14px 12px; border-radius:16px; border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.05); box-shadow:0 10px 40px rgba(0,0,0,.28)}
.metric-title{color:var(--muted2); font-size:12px; letter-spacing:.3px}
.metric-value{font-size:18px; font-weight:750; margin-top:4px}
.metric-desc{color:var(--muted); font-size:12px; margin-top:4px; line-height:1.5}

.hero-card{border-radius:var(--radius2); background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10); box-shadow:var(--shadow); overflow:hidden}
.hero-card-top{display:flex; align-items:center; justify-content:space-between; padding:14px 14px 10px; border-bottom:1px solid rgba(255,255,255,.08)}
.pill{font-size:12px; color:var(--muted); padding:6px 10px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius:999px}
.status{display:flex; align-items:center; gap:8px; color:rgba(255,255,255,.75); font-size:12px}
.dot{width:8px; height:8px; border-radius:999px; background:var(--ok); box-shadow:0 0 0 6px rgba(45,212,191,.14)}

.mini{padding:16px 14px 6px}
.mini-row{display:flex; align-items:center; justify-content:space-between; padding:9px 10px; border-radius:12px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); margin-bottom:10px}
.mini-k{color:var(--muted); font-size:12px}
.mini-v{font-weight:800}

.hero-card-actions{padding:10px 14px 12px; display:flex; gap:10px}
.hero-card-foot{padding:0 14px 14px}
.tip{color:var(--muted); font-size:12px; line-height:1.55}

.section{padding:44px 0}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:16px}
.section-head h2{margin:0; font-size:26px; letter-spacing:-.2px}
.section-head p{margin:0; color:var(--muted); max-width:640px; line-height:1.6}

.features{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
.feature{padding:16px; border-radius:18px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10)}
.feature-ic{width:42px; height:42px; border-radius:14px; display:grid; place-items:center; background:rgba(121,192,255,.14); border:1px solid rgba(121,192,255,.18); font-size:18px; margin-bottom:12px}
.feature h3{margin:0; font-size:16px}
.feature p{margin:8px 0 0; color:var(--muted); line-height:1.6; font-size:13px}

.steps{list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(5,1fr); gap:12px}
.step{padding:14px; border-radius:18px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10)}
.step-n{font-weight:850; color:rgba(121,192,255,.9); letter-spacing:.2px}
.step-t{margin-top:10px; font-weight:750}
.step-d{margin-top:6px; color:var(--muted); font-size:12px; line-height:1.55}

.demo{display:grid; grid-template-columns: 1.15fr .85fr; gap:14px}
.panel{border-radius:var(--radius2); background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10); box-shadow:0 20px 70px rgba(0,0,0,.40); overflow:hidden}
.panel-head{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding:14px; border-bottom:1px solid rgba(255,255,255,.08)}
.panel-title{font-weight:850}
.panel-sub{margin-top:4px; font-size:12px; color:var(--muted); line-height:1.5}
.panel-actions{display:flex; gap:10px; align-items:center}

.filters{padding:14px; display:grid; grid-template-columns:repeat(4,1fr); gap:12px; border-bottom:1px solid rgba(255,255,255,.08)}
.field{display:flex; flex-direction:column; gap:6px}
.field span{font-size:12px; color:var(--muted)}
input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  color:var(--text);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  outline:none;
}
input:focus, select:focus, textarea:focus{border-color:rgba(121,192,255,.55); box-shadow:0 0 0 4px rgba(121,192,255,.12)}
textarea{resize:vertical; font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; font-size:12px}

.filter-actions{display:flex; gap:10px; align-items:flex-end; justify-content:flex-end}

.table-wrap{max-height:420px; overflow:auto}
.table{width:100%; border-collapse:separate; border-spacing:0}
.table th, .table td{padding:12px 14px; border-bottom:1px solid rgba(255,255,255,.08); vertical-align:top}
.table th{color:var(--muted2); font-size:12px; font-weight:700; position:sticky; top:0; backdrop-filter:blur(10px); background:rgba(7,11,20,.55)}
.table td{font-size:13px}
.row-title{font-weight:800}
.tag{display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.05); font-size:12px; color:var(--muted)}
.tag.ok{border-color:rgba(45,212,191,.24); background:rgba(45,212,191,.12); color:rgba(178,245,234,.95)}
.tag.bad{border-color:rgba(255,107,107,.25); background:rgba(255,107,107,.12); color:rgba(255,191,191,.95)}
.tag.warn{border-color:rgba(255,221,87,.24); background:rgba(255,221,87,.12); color:rgba(255,238,180,.95)}

.ops{display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap}
.ops .btn{padding:8px 10px; border-radius:10px; font-weight:750; font-size:12px}

.result{padding:14px; display:grid; grid-template-columns: 0.92fr 1.08fr; gap:12px}
.result-left{display:grid; gap:12px}
.qr{border-radius:18px; border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.04); overflow:hidden}
.qr-inner{padding:14px}
.qr-title{font-weight:850; margin-bottom:10px}
.qr-body{display:grid; place-items:center; height:200px; border-radius:14px; border:1px dashed rgba(255,255,255,.18); background:rgba(0,0,0,.16)}
.qr-placeholder{color:var(--muted); font-size:13px}
.qr-foot{margin-top:10px; color:var(--muted); font-size:12px}

.kv{border-radius:18px; border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.04); padding:12px}
.kv-row{display:flex; align-items:center; justify-content:space-between; padding:9px 10px; border-radius:12px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); margin-bottom:10px}
.kv-row:last-child{margin-bottom:0}
.kv-row span{color:var(--muted); font-size:12px}
.kv-row b{font-weight:850}

.code-head{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px}
.code-title{font-weight:850}
.code{margin:0; padding:12px; border-radius:18px; border:1px solid rgba(255,255,255,.10); background:rgba(0,0,0,.20); height:294px; overflow:auto; font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; font-size:12px; color:rgba(230,244,255,.92); line-height:1.55}

.logs{padding:14px; border-top:1px solid rgba(255,255,255,.08)}
.logs-head{display:flex; align-items:flex-end; justify-content:space-between; gap:10px}
.logs-title{font-weight:850}
.logs-sub{color:var(--muted); font-size:12px}
.log-list{list-style:none; padding:0; margin:10px 0 0; display:grid; gap:8px}
.log-item{display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border-radius:14px; border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.04)}
.log-time{color:var(--muted2); font-size:12px; min-width:76px}
.log-msg{color:var(--text); font-size:12px; line-height:1.5}
.log-meta{color:var(--muted); font-size:12px}

.faq{display:grid; gap:10px}
.qa{border-radius:18px; border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.05); padding:12px 14px}
.qa summary{cursor:pointer; font-weight:800}
.qa-a{margin-top:10px; color:var(--muted); line-height:1.65; font-size:13px}

.cta{margin-top:18px; padding:16px; border-radius:22px; border:1px solid rgba(255,255,255,.10); background:linear-gradient(135deg, rgba(121,192,255,.18), rgba(45,212,191,.10));}
.cta-title{font-weight:900; font-size:16px}
.cta-desc{margin-top:6px; color:var(--muted); line-height:1.6; font-size:13px}
.cta-actions{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap}

.footer{padding:30px 0 40px; border-top:1px solid rgba(255,255,255,.08); color:var(--muted)}
.footer-inner{display:flex; align-items:flex-start; justify-content:space-between; gap:16px}
.footer-right{display:flex; gap:14px; flex-wrap:wrap}
.footer-right a{color:var(--muted); padding:6px 8px; border-radius:10px}
.footer-right a:hover{background:rgba(255,255,255,.06); color:var(--text)}

.toast{
  position:fixed; left:50%; bottom:22px; transform:translateX(-50%);
  max-width:min(720px, calc(100% - 28px));
  padding:12px 14px; border-radius:14px;
  background:rgba(0,0,0,.66);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 18px 60px rgba(0,0,0,.55);
  color:rgba(255,255,255,.92);
  opacity:0; pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(-6px)}

.dialog{border:none; padding:0; background:transparent}
.dialog::backdrop{background:rgba(0,0,0,.6); backdrop-filter:blur(8px)}
.dialog-inner{width:min(860px, calc(100vw - 34px)); border-radius:22px; border:1px solid rgba(255,255,255,.12); background:rgba(7,11,20,.92); box-shadow:0 30px 120px rgba(0,0,0,.65); overflow:hidden}
.dialog-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:14px 14px 10px; border-bottom:1px solid rgba(255,255,255,.08)}
.dialog-title{font-weight:900}
.dialog-sub{margin-top:4px; color:var(--muted); font-size:12px; line-height:1.5}
.icon-btn{appearance:none; border:none; cursor:pointer; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:12px; color:var(--text); width:40px; height:40px; display:grid; place-items:center}
.icon-btn:hover{background:rgba(255,255,255,.10)}
.dialog-body{padding:14px; display:grid; gap:12px}
.dialog-foot{padding:12px 14px 14px; display:flex; justify-content:flex-end; gap:10px; border-top:1px solid rgba(255,255,255,.08)}
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:12px}

@media (max-width: 980px){
  .hero-inner{grid-template-columns:1fr;}
  .hero-metrics{grid-template-columns:1fr;}
  .features{grid-template-columns:1fr;}
  .steps{grid-template-columns:1fr;}
  .demo{grid-template-columns:1fr;}
  .filters{grid-template-columns:1fr 1fr;}
  .result{grid-template-columns:1fr;}
  .code{height:260px}
  h1{font-size:36px}
}

@media (max-width: 560px){
  .nav{display:none}
  .filters{grid-template-columns:1fr;}
  .header-inner{gap:10px}
}
