
:root{
  --bg:#0b1220;
  --surface:#0f172a;
  --card:#111c33;
  --card2:#0d1630;
  --text:#e5e7eb;
  --muted:#a7b0c0;
  --muted2:#8893a7;
  --border:rgba(255,255,255,.10);
  --brand1:#4f46e5; /* indigo */
  --brand2:#14b8a6; /* teal */
  --accent:#f59e0b; /* amber */
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius:16px;
  --radius2:22px;
  --max:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% -10%, rgba(79,70,229,.35), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(20,184,166,.28), transparent 55%),
              radial-gradient(800px 600px at 50% 110%, rgba(245,158,11,.10), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.6;
}

a{color:inherit}
a:hover{opacity:.95}

.container{max-width:var(--max); margin:0 auto; padding:0 20px}
.spacer{height:22px}

.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(11,18,32,.70);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.brand img{width:180px; height:auto; display:block}
.nav{display:flex; align-items:center; gap:12px; justify-content:center; flex:1}
.nav a{padding:10px 12px; border-radius:12px; text-decoration:none; color:var(--muted)}
.nav a.active,.nav a:hover{color:var(--text); background:rgba(255,255,255,.06)}
.right{display:flex; align-items:center; gap:10px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:14px; text-decoration:none;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
}
.btn.primary{
  border:none;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 18px 45px rgba(79,70,229,.25);
}
.iconbtn{
  width:44px; height:44px; border-radius:14px;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
}
.hamburger{display:none}
.mobile-drawer{
  display:none;
  position:fixed; inset:0; z-index:60;
  background:rgba(0,0,0,.55);
}
.drawer-panel{
  position:absolute; left:50%; top:18px; transform:translateX(-50%);
  width:min(520px, calc(100% - 24px));
  background:rgba(15,23,42,.95);
  border:1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:16px;
}
.drawer-panel a{display:block; padding:12px 14px; border-radius:14px; color:var(--text); text-decoration:none}
.drawer-panel a:hover{background:rgba(255,255,255,.06)}
.drawer-top{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 8px 12px}

.hero{
  padding:44px 0 18px;
}
.hero-grid{
  display:grid; grid-template-columns: 1.3fr .7fr; gap:18px;
}
.hero-card{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:26px;
  overflow:hidden;
  position:relative;
}
.kicker{color:var(--muted); font-weight:600; letter-spacing:.02em}
.h1{font-size:44px; line-height:1.1; margin:12px 0 10px; letter-spacing:-.02em}
.sub{color:var(--muted); font-size:18px; margin:0 0 16px}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap}
.pillrow{display:flex; flex-wrap:wrap; gap:10px; margin-top:16px}
.pill{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px; border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  background:rgba(255,255,255,.03);
  font-size:13px;
}
.pill b{color:var(--text)}
.mini{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(17,28,51,.70);
  padding:18px;
}
.stat{
  padding:14px; border-radius:16px;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.08);
}
.stat .big{font-size:28px; font-weight:800}
.stat .label{color:var(--muted); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.08em}
.hr{height:1px; background:var(--border); margin:14px 0}

.section{padding:18px 0}
.section h2{font-size:26px; margin:0 0 10px}
.section p{color:var(--muted); margin:0}

.grid{
  display:grid; grid-template-columns: repeat(12, 1fr); gap:14px;
}
.card{
  grid-column: span 4;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius: var(--radius2);
  padding:16px;
  text-decoration:none;
  display:flex; flex-direction:column; gap:10px;
  min-height: 190px;
}
.card:hover{transform: translateY(-2px); transition: transform .15s ease}
.card .meta{display:flex; gap:8px; flex-wrap:wrap}
.tag{
  font-size:12px;
  color:rgba(255,255,255,.78);
  padding:6px 10px;
  border-radius:999px;
  background: rgba(79,70,229,.16);
  border:1px solid rgba(79,70,229,.22);
}
.tag.teal{background: rgba(20,184,166,.14); border-color: rgba(20,184,166,.22)}
.tag.amber{background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.22)}
.card h3{margin:0; font-size:18px; line-height:1.25}
.card .excerpt{color:var(--muted); font-size:14px; margin:0}
.card .foot{margin-top:auto; color:var(--muted2); font-size:13px; display:flex; align-items:center; justify-content:space-between; gap:10px}

.article-shell{
  padding:26px 0 40px;
}
.article{
  border:1px solid var(--border);
  background: rgba(15,23,42,.65);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:24px;
}
.article h1{margin:10px 0 10px; font-size:38px; line-height:1.12}
.breadcrumbs{color:var(--muted2); font-size:13px}
.article .byline{color:var(--muted); font-size:14px; display:flex; gap:12px; flex-wrap:wrap}
.article .content{margin-top:18px}
.article .content h2{margin:24px 0 10px; font-size:22px}
.article .content h3{margin:18px 0 8px; font-size:18px}
.article .content p{color:rgba(229,231,235,.92)}
.article .content ul{padding-left:20px}
.article .content li{margin:6px 0; color:rgba(229,231,235,.92)}
.callout{
  margin:18px 0; padding:16px;
  border-radius:18px;
  border:1px solid rgba(20,184,166,.25);
  background: rgba(20,184,166,.10);
}
.searchbar{
  display:flex; gap:10px; margin:14px 0 0;
}
.searchbar input{
  flex:1;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline:none;
}
.searchbar input::placeholder{color:rgba(167,176,192,.75)}
.searchbar button{
  padding:12px 14px;
  border-radius:14px;
  border:none;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: var(--text);
  font-weight:700;
  cursor:pointer;
}

.footer{
  margin-top:30px;
  border-top:1px solid var(--border);
  background: rgba(11,18,32,.65);
}
.footer-inner{
  padding:22px 0;
  display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between;
  color: var(--muted);
  font-size:14px;
}
.footer a{color:var(--muted); text-decoration:none}
.footer a:hover{color:var(--text)}
.small{font-size:12px; color:var(--muted2)}

.cookiebar{
  position:fixed; left:16px; right:16px; bottom:16px;
  max-width: var(--max); margin:0 auto;
  display:none;
  z-index:70;
}
.cookiebox{
  border:1px solid var(--border);
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(16px);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:16px;
  display:flex; gap:14px; align-items:flex-start; justify-content:space-between;
}
.cookiebox p{margin:0; color:var(--muted); font-size:14px}
.cookie-actions{display:flex; gap:10px; flex-wrap:wrap}
.cookie-actions .btn{padding:10px 12px; border-radius:14px}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .nav{display:none}
  .hamburger{display:inline-flex}
  .card{grid-column: span 6}
}
@media (max-width: 640px){
  .h1{font-size:34px}
  .card{grid-column: span 12}
  .brand img{width:160px}
  .article h1{font-size:30px}
}

.toolgrid{display:grid; grid-template-columns:repeat(12,1fr); gap:14px}
.toolcard{grid-column:span 4; border:1px solid var(--border); background:rgba(15,23,42,.60); border-radius:var(--radius2); padding:16px}
.toolcard h3{margin:6px 0 10px}
.toolcard label{display:block; color:var(--muted); font-size:13px; margin:10px 0 6px}
.toolcard input,.toolcard select, .toolcard textarea{
  width:100%; padding:12px 14px; border-radius:14px; border:1px solid var(--border);
  background:rgba(255,255,255,.03); color:var(--text); outline:none;
}
.toolcard textarea{min-height:110px; resize:vertical}
.toolcard .out{margin-top:12px; padding:12px; border-radius:16px; background:rgba(0,0,0,.18); border:1px solid rgba(255,255,255,.10); color:rgba(229,231,235,.92)}
@media (max-width: 980px){.toolcard{grid-column:span 6}}
@media (max-width: 640px){.toolcard{grid-column:span 12}}
