:root{
  --bg:#07111f;
  --bg2:#0b1830;
  --card:#0f1c35;
  --line:rgba(255,255,255,.08);
  --text:#f8fafc;
  --muted:#94a3b8;
  --gold1:#ffe27a;
  --gold2:#f3b400;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:
    radial-gradient(circle at top, rgba(35,77,180,.20), transparent 28%),
    linear-gradient(180deg,var(--bg),var(--bg2));
  color:var(--text);
}
.topbar{
  position:sticky;top:0;z-index:20;
  backdrop-filter:blur(14px);
  background:rgba(7,17,31,.78);
  border-bottom:1px solid var(--line);
}
.nav{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 0;
  gap:18px;
}
.logo-text{
  color:#f8fafc;text-decoration:none;font-weight:900;font-size:34px;
  background:linear-gradient(135deg,var(--gold1),#ffd84d,var(--gold2));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.nav-links{display:flex;gap:10px;flex-wrap:wrap}
.nav-links a{
  color:#fff;text-decoration:none;font-weight:700;
  background:rgba(255,255,255,.06);padding:10px 14px;border-radius:14px;
  border:1px solid rgba(255,255,255,.05)
}
.wrap{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:34px 0 80px}
.hero{text-align:center;padding:38px 0 28px}
.hero h1{
  margin:0 auto 12px;max-width:900px;
  font-size:48px;line-height:1.05;letter-spacing:-1.3px;
  text-shadow:0 10px 30px rgba(255,215,0,.10);
}
.hero p{margin:0 auto;max-width:860px;color:#dbe4f0;font-size:20px;line-height:1.6}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:24px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:16px;padding:14px 22px;font-weight:800;
  text-decoration:none;border:none;cursor:pointer;font-size:16px;
}
.btn-primary{
  background:linear-gradient(135deg,var(--gold1),#ffd84d,var(--gold2));
  color:#111827;box-shadow:0 12px 28px rgba(255,215,0,.18)
}
.btn-secondary{
  background:rgba(255,255,255,.08);color:#fff;border:1px solid var(--line);
}
.search{margin:24px auto 0;max-width:720px}
.search input{
  width:100%;padding:16px 18px;border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.06);color:#fff;font-size:16px;
}
.section{margin-top:34px}
.section h2{margin:0 0 8px;font-size:34px}
.section p.sub{margin:0 0 18px;color:var(--muted)}
.category-grid,.tool-grid,.dash-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px
}
.tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.dash-grid{grid-template-columns:1.15fr .85fr}
.card{
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.035));
  border:1px solid rgba(255,215,0,.18);
  border-radius:22px;padding:22px;color:#fff;text-decoration:none;
  box-shadow:0 18px 40px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.04);
  transition:.22s ease;
}
.card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,215,0,.42);
  box-shadow:0 22px 50px rgba(0,0,0,.22),0 0 22px rgba(255,215,0,.16);
}
.card h3{margin:0 0 10px;font-size:24px}
.card p{margin:0;color:#dbe4f0;line-height:1.6}
.meta{margin-top:12px;color:#ffe27a;font-weight:800;font-size:14px}
.card-top{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.pf{
  display:inline-flex;align-items:center;justify-content:center;
  width:26px;height:26px;min-width:26px;border-radius:9px;font-size:12px;font-weight:800;
  background:linear-gradient(135deg,var(--gold1),#ffd84d,var(--gold2));color:#111827;
  box-shadow:0 4px 12px rgba(255,215,0,.28)
}
.most-used .pf{display:none}
.panel{
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.035));
  border:1px solid var(--line);
  border-radius:22px;padding:22px;min-height:100px
}
.panel h3{margin:0 0 10px;font-size:26px}
.panel p{margin:0;color:#dbe4f0;line-height:1.6}
.list{display:grid;gap:12px;margin-top:16px}
.list a{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:14px 16px;background:#fff;color:#111827;text-decoration:none;
  border-radius:14px;font-weight:700
}
.count-badge{
  background:linear-gradient(135deg,var(--gold1),#ffd84d,var(--gold2));
  color:#111827;padding:6px 10px;border-radius:999px;font-weight:900;font-size:12px
}
.form{display:grid;gap:12px;max-width:460px}
.form input,.chat-box textarea{
  width:100%;padding:14px 16px;border-radius:14px;border:1px solid var(--line);
  background:rgba(255,255,255,.06);color:#fff;font-size:16px
}
.note{color:var(--muted);font-size:14px}
.row{display:flex;gap:12px;flex-wrap:wrap}
.kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.kpi{
  background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:18px;padding:18px
}
.kpi strong{display:block;font-size:28px;margin-bottom:6px}
.chat-box{display:grid;gap:12px}
.result{
  white-space:pre-wrap;background:rgba(255,255,255,.05);
  border:1px solid var(--line);border-radius:16px;padding:16px;color:#fff;min-height:120px
}
.footer{margin-top:26px;color:#94a3b8;text-align:center;font-size:14px}
@media (max-width:1100px){
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dash-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .hero h1{font-size:36px}
  .hero p{font-size:17px}
  .category-grid,.tool-grid,.kpis{grid-template-columns:1fr}
}
