:root{
  --bg:#0b1220;
  --card:#121b2e;
  --text:#e8eefc;
  --muted:#b7c4e2;
  --line:rgba(255,255,255,.12);
  --accent:#6aa7ff;
  --accent2:#7ef0c8;

  --radius:16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --container: 1040px;
  --pad: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(106,167,255,.18), transparent 60%),
              radial-gradient(1200px 600px at 90% 10%, rgba(126,240,200,.12), transparent 55%),
              var(--bg);
  color: var(--text);
}
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(var(--container), calc(100% - 2*var(--pad)));
  margin:0 auto;
}

.site-header{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  border-bottom:1px solid var(--line);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{
  width:36px; height:36px; display:grid; place-items:center;
  border-radius:12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#051025;
  font-weight:800;
}
.brand-text{ font-weight:750; letter-spacing:.2px; }
.nav{ display:flex; gap:14px; }
.nav a{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.nav a:hover{ border-color: var(--line); text-decoration:none; }

.site-footer{
  border-top:1px solid var(--line);
  margin-top:32px;
  background: rgba(18,27,46,.35);
}
.footer-row{
  display:flex; justify-content:space-between; gap:16px;
  padding:18px 0;
  color: var(--muted);
}

.hero{ padding:28px 0 10px; }
.hero h1{ margin:0 0 10px; font-size: clamp(26px, 3vw, 40px); }
.hero p{ margin:0; color: var(--muted); max-width: 75ch; }

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  margin-top:18px;
}
@media (min-width: 880px){
  .grid{ grid-template-columns: 1fr 1fr; }
}

.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18,27,46,.72);
  box-shadow: var(--shadow);
  padding:16px;
}
.card h3{ margin: 0 0 6px; }
.meta{ display:flex; flex-wrap:wrap; gap:10px; color: var(--muted); font-size: 14px; }
.badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.toolbar{
  display:grid;
  gap:10px;
  margin: 16px 0;
}
@media (min-width: 880px){
  .toolbar{ grid-template-columns: 1.3fr .9fr .9fr auto; align-items:end; }
}

label{ display:block; font-size:13px; color: var(--muted); margin-bottom:6px; }
input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(6,10,18,.6);
  color: var(--text);
  outline:none;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  user-select:none;
}
.btn.primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#051025;
  font-weight:700;
}
.btn:disabled{ opacity:.55; cursor:not-allowed; }

.notice{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius: 12px;
  padding:12px;
  color: var(--muted);
}
.notice.ok{ border-color: rgba(126,240,200,.45); }
.notice.err{ border-color: rgba(255,120,120,.45); color: #ffd2d2; }

.hr{ height:1px; background: var(--line); margin:14px 0; border:0; }

.two-col{
  display:grid;
  gap:14px;
}
@media (min-width: 880px){
  .two-col{ grid-template-columns: 1.2fr .8fr; }
}