
:root{
  --bg:#0b1220;
  --card:#0f1a33;
  --text:#e8eefc;
  --muted:#b7c3e6;
  --accent:#62b3ff;
  --accent2:#76f2c1;
  --danger:#ff6b6b;
  --border:rgba(255,255,255,.12);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  background:linear-gradient(180deg,var(--bg),#070b14);
  color:var(--text);
  line-height:1.5;
}
header{
  position:sticky; top:0;
  backdrop-filter: blur(10px);
  background:rgba(11,18,32,.78);
  border-bottom:1px solid var(--border);
  z-index:10;
}
.container{max-width:1100px;margin:0 auto;padding:16px}
h1,h2,h3{line-height:1.15;margin:0 0 10px}
p{margin:0 0 12px;color:var(--muted)}
nav{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:10px;
}
nav a{
  color:var(--text);
  text-decoration:none;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
}
nav a:hover{border-color:rgba(98,179,255,.6); color:#fff}
main{padding:18px 0 32px}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:16px;
}
.card{
  background:rgba(15,26,51,.75);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; color:#071022;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  padding:6px 10px; border-radius:999px;
  font-weight:700;
}
.responsive{
  width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid var(--border);
}
label{display:block;margin:10px 0 6px;color:var(--muted)}
input,select,button,textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
}
input::placeholder, textarea::placeholder{color:rgba(183,195,230,.65)}
button{
  cursor:pointer;
  background:linear-gradient(90deg,rgba(98,179,255,.9),rgba(118,242,193,.9));
  color:#061022;
  font-weight:800;
  border:none;
}
button:hover{filter:brightness(1.05)}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:680px){.row{grid-template-columns:1fr}}
.output{
  white-space:pre-wrap;
  background:rgba(0,0,0,.18);
  border:1px dashed rgba(255,255,255,.18);
  padding:12px;
  border-radius:14px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color:#f2f6ff;
}
canvas{
  width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid var(--border);
  background:radial-gradient(circle at 30% 30%, rgba(98,179,255,.10), rgba(0,0,0,0));
}
footer{
  border-top:1px solid var(--border);
  padding:18px 0;
  color:rgba(183,195,230,.9);
}
.small{font-size:12px;color:rgba(183,195,230,.85)}
.kbd{
  display:inline-block;
  padding:2px 8px;
  border:1px solid var(--border);
  border-radius:8px;
  background:rgba(255,255,255,.06);
  font-family:ui-monospace,monospace;
  font-size:12px;
}
