:root{
  --bg: #0b1020;
  --card: #0f172a;
  --card2:#111c36;
  --text:#e5e7eb;
  --muted:#a1a1aa;
  --line: rgba(255,255,255,0.08);
  --accent:#7c3aed;
  --accent2:#22c55e;
  --danger:#ef4444;
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(124,58,237,0.22), transparent 50%),
              radial-gradient(900px 700px at 80% 0%, rgba(34,197,94,0.18), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

.topbar{
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,0.65);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.logo{
  width:38px;
  height:38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), rgba(34,197,94,0.9));
  box-shadow: 0 10px 30px rgba(124,58,237,0.25);
}

.nav{
  display:flex;
  gap:10px;
  margin-top: 14px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar{ height: 8px; }
.nav::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.12); border-radius: 999px; }
.nav a{ flex: 0 0 auto; }

.nav a{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
}
.nav a:hover{
  background: rgba(255,255,255,0.10);
  text-decoration:none;
}

.hero{
  padding: 28px 0 8px;
}
.hero h1{
  margin: 0 0 8px 0;
  font-size: 34px;
  line-height: 1.15;
}
.hero p{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}
@media (min-width: 900px){
  .grid{ grid-template-columns: 1.2fr 0.8fr; }
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h2{
  margin: 0 0 12px 0;
  font-size: 20px;
}

.field{
  margin-top: 12px;
}
label{
  display:block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: rgba(229,231,235,0.95);
}
input, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(15,23,42,0.65);
  color: var(--text);
  outline: none;
}
input:focus, select:focus{
  border-color: rgba(124,58,237,0.7);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.18);
}

.row{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px){
  .row{ grid-template-columns: 1fr 1fr; }
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(124,58,237,0.95), rgba(34,197,94,0.75));
  color: #0b1020;
  font-weight: 900;
  cursor: pointer;
  margin-top: 14px;
}
.btn:hover{ filter: brightness(1.03); }

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.badge.ok{ color: #06240f; background: rgba(34,197,94,0.9); border-color: rgba(34,197,94,0.9); }
.badge.no{ color: #2a0b0b; background: rgba(239,68,68,0.9); border-color: rgba(239,68,68,0.9); }

.small{
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.footer{
  margin-top: 28px;
  padding: 20px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.footer a{ color: var(--text); }

/* Tools directory */
.searchbar{
  display:flex;
  gap:12px;
  align-items:center;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}
.searchbar input{
  flex: 1 1 320px;
}
.pills{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pill{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  font-weight: 800;
  font-size: 13px;
  cursor:pointer;
  user-select:none;
}
.pill.active{
  background: rgba(124,58,237,0.35);
  border-color: rgba(124,58,237,0.55);
}
.tool-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 800px){
  .tool-grid{ grid-template-columns: 1fr 1fr; }
}
.tool-card{
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.tool-card h3{ margin: 0 0 6px 0; }
.tool-card .meta{ color: var(--muted); font-size: 13px; margin-top: 6px; }
.tool-card .tags{ margin-top: 10px; display:flex; gap:8px; flex-wrap: wrap; }
.tag{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(229,231,235,0.95);
}

/* Steps panel */
.steps-wrap{
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  background: rgba(15,23,42,0.55);
  padding: 12px;
}
.steps-header{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.steps-scroll{
  max-height: 58vh;
  overflow: auto;
  padding-right: 6px;
}
.steps-scroll::-webkit-scrollbar{ width: 10px; }
.steps-scroll::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.12); border-radius: 999px; }
.steps ol{
  margin: 0;
  padding-left: 20px;
}
.steps li{
  margin: 0 0 12px 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.steps h3{
  margin: 0 0 6px 0;
  font-size: 15px;
}
.kv{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  color: rgba(229,231,235,0.95);
  white-space: pre-wrap;
  word-break: break-word;
}


/* --- EXAMPLES_BUTTON_V1 --- */
.btn-example{
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}
.btn-example:hover{
  background: rgba(255,255,255,0.10);
}
