:root{
  --bg:#0b0c10;
  --card:#11131a;
  --text:#f2f4ff;
  --muted:#a9afc3;
  --line:#1d2230;
  --accent:#c7ff6b;
  --accent2:#6be4ff;
  --shadow: 0 18px 55px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% -10%, rgba(107,228,255,.18), transparent 60%),
              radial-gradient(1100px 900px at 100% 10%, rgba(199,255,107,.12), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit}
.wrap{max-width:980px; margin:0 auto; padding:0 20px}
.site-header{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(10px);
  background: rgba(11,12,16,.7);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{
  display:flex; gap:18px; align-items:center; justify-content:space-between;
  padding:14px 20px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
}
.brand .mark{
  width:30px; height:30px; display:grid; place-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  background: rgba(255,255,255,.03);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.brand .name{font-weight:700; letter-spacing:.2px}
.nav{display:flex; gap:14px; flex-wrap:wrap; justify-content:flex-end}
.nav a{
  text-decoration:none;
  color:var(--muted);
  border:1px solid transparent;
  padding:6px 10px;
  border-radius:12px;
}
.nav a:hover{
  color:var(--text);
  border-color:var(--line);
  background: rgba(255,255,255,.03);
}

.main{padding:36px 0 50px}
.hero{padding:18px 0 10px}
h1{font-size: clamp(34px, 6vw, 52px); margin:0 0 10px}
.lede{margin:0 0 24px; color:var(--muted); font-size: clamp(16px, 2.2vw, 19px)}
h2{margin:0 0 10px; font-size:22px}
h3{margin:0 0 6px; font-size:18px}
p{margin:10px 0}
.muted{color:var(--muted)}
blockquote{
  margin:12px 0;
  padding:14px 16px;
  border-left: 3px solid rgba(199,255,107,.6);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius: 18px;
  padding:16px 16px;
  margin:14px 0;
  box-shadow: var(--shadow);
}
.grid{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
  gap:12px;
  margin: 10px 0 18px;
}
.tile{
  text-decoration:none;
  border-radius:18px;
  border:1px solid var(--line);
  padding:14px 14px;
  background: rgba(255,255,255,.02);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.tile:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.04);
  border-color: rgba(199,255,107,.3);
}

.stack{display:flex; flex-direction:column; gap:12px}
.offer{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 12px;
  background: rgba(255,255,255,.02);
}

.btn{
  display:inline-block;
  text-decoration:none;
  border:1px solid rgba(107,228,255,.35);
  background: rgba(107,228,255,.08);
  padding:10px 12px;
  border-radius: 14px;
}
.btn:hover{
  border-color: rgba(199,255,107,.45);
  background: rgba(199,255,107,.08);
}
.btn.disabled{opacity:.55; cursor:not-allowed; pointer-events:none}

code{
  background: rgba(255,255,255,.06);
  padding:3px 6px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.06);
}

.site-footer{
  border-top:1px solid var(--line);
  padding:24px 0 36px;
  background: rgba(0,0,0,.15);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:12px;
  align-items:start;
}
.footer-grid .right{justify-self:end}
@media (max-width: 720px){
  .footer-grid{grid-template-columns:1fr; }
  .footer-grid .right{justify-self:start}
}


/* Demo layout */
.demo-wrap{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap:14px;
  align-items:start;
}
.demo-panel{position:relative}
@media (max-width: 920px){
  .demo-wrap{grid-template-columns:1fr}
}
#demoCanvas{
  width:100%;
  height:auto;
  border-radius:18px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  box-shadow: var(--shadow);
}

.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding:8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}
.demo-row{display:flex; gap:8px; flex-wrap:wrap}
.swatch{width:10px; height:10px; border-radius:999px; display:inline-block}
.swatch-met{background: rgba(242,244,255,.85)}
.swatch-red{background: rgba(255,120,120,.9)}
.swatch-blue{background: rgba(120,190,255,.9)}

.controls{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.controls label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color: var(--muted);
  font-size: 14px;
}
.controls input[type="range"]{width:100%}
.val{color: var(--text); font-variant-numeric: tabular-nums}
.chk{flex-direction:row !important; align-items:center; gap:10px !important; color: var(--text) !important}
.chk input{transform: translateY(1px)}
.btnrow{display:flex; gap:10px; flex-wrap:wrap}
.readout{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.metric{
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px;
  background: rgba(255,255,255,.02);
}
.metric .label{color: var(--muted); font-size: 12px}
.metric .value{font-size: 16px; font-weight: 700; margin-top:4px; font-variant-numeric: tabular-nums}
