:root{
  --bg:#F6F7FB;
  --panel:#FFFFFF;
  --panel2:#F9FAFB;
  --text:#111827;
  --muted:rgba(17,24,39,.72);
  --muted2:rgba(17,24,39,.54);
  --border:rgba(17,24,39,.10);
  --primary:#2563EB;
  --primary2:#0EA5E9;
  --danger:#E11D48;
  --success:#16A34A;
  --shadow:0 16px 40px rgba(17,24,39,.10);
  --radius:14px;
  --radius2:18px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
}
a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
.container{max-width:1120px; margin:0 auto; padding:0 18px}

.site-header{
  position:sticky; top:0; z-index:50;
  background:#0B1220;
  color:#F8FAFC;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-header.compact{background:#0B1220}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0}
.brand{font-weight:900; letter-spacing:.2px; font-size:18px}
.brand-dot{color:#F59E0B}
.nav{display:flex; gap:14px; align-items:center; font-size:14px}
.nav a{padding:8px 10px; border-radius:10px; color:rgba(248,250,252,.78)}
.nav a.active, .nav a:hover{color:#fff; background:rgba(255,255,255,.08)}

.header-search{flex:1; display:flex; justify-content:center}
.searchbar{width:min(720px, 100%); display:flex; gap:10px; align-items:center; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); border-radius:999px; padding:10px 12px}
.searchbar input{flex:1; border:none; outline:none; background:transparent; color:#fff; font-weight:700}
.searchbar input::placeholder{color:rgba(255,255,255,.55)}

.cart-pill{display:flex; align-items:center; gap:10px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.06); padding:9px 12px; border-radius:999px; color:#fff; cursor:pointer}
.cart-pill.static{cursor:default}
.cart-pill-count{display:inline-flex; min-width:22px; height:22px; align-items:center; justify-content:center; border-radius:999px; background:#F59E0B; font-size:12px; font-weight:900; color:#0B1220}

.hero{padding:28px 0 22px}
.hero-grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; align-items:stretch}
.hero-copy h1{margin:0 0 10px; font-size:40px; line-height:1.05; letter-spacing:-.6px}
.lead{margin:0 0 16px; color:var(--muted); font-size:16px; line-height:1.5}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:11px 14px; border-radius:12px; border:1px solid var(--border); background:#fff; color:var(--text); font-weight:800; cursor:pointer}
.btn.primary{border:none; color:#fff; background:linear-gradient(135deg, var(--primary), var(--primary2)); box-shadow:0 10px 28px rgba(37,99,235,.20)}
.btn.ghost{background:transparent}
.btn:disabled{opacity:.6; cursor:not-allowed}

.hero-badges{display:flex; gap:10px; margin-top:16px; flex-wrap:wrap}
.badge{background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:10px 12px; min-width:112px; box-shadow:0 8px 18px rgba(17,24,39,.06)}
.badge-kpi{font-size:18px; font-weight:900}
.badge-label{font-size:12px; color:var(--muted2)}

.hero-card{background:#fff; border:1px solid var(--border); border-radius:var(--radius2); padding:16px; box-shadow:var(--shadow)}
.hero-card-top{display:flex; flex-direction:column; gap:6px; padding-bottom:10px; border-bottom:1px solid var(--border)}
.hero-card-title{font-weight:800; color:var(--muted)}
.hero-card-sub{font-size:18px; font-weight:900}
.checklist{list-style:none; margin:12px 0 14px; padding:0; display:grid; gap:10px; color:var(--muted)}
.checklist li{position:relative; padding-left:22px}
.checklist li::before{content:"✓"; position:absolute; left:0; top:0; color:var(--success); font-weight:900}
.hero-card-actions{display:flex; gap:10px; flex-wrap:wrap}

.section{padding:18px 0 30px}
.section-head{margin-bottom:14px}
.section-head h1,.section-head h2{margin:0 0 6px}
.section-head p{margin:0; color:var(--muted)}
.section-foot{margin-top:14px}

.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.panel{background:#fff; border:1px solid var(--border); border-radius:var(--radius2); padding:14px; box-shadow:0 10px 28px rgba(17,24,39,.08)}
.panel-title{font-weight:900; margin-bottom:10px}
.chart{width:100%; height:auto; background:var(--panel2); border:1px solid var(--border); border-radius:14px}

.filters{display:grid; grid-template-columns: 1.4fr repeat(2, .8fr); gap:12px; margin:12px 0 14px}
.field{display:flex; flex-direction:column; gap:6px}
.field-label{font-size:12px; color:var(--muted2)}
.input{padding:10px 12px; border-radius:12px; border:1px solid var(--border); background:#fff; color:var(--text)}

.product-grid{display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:14px}
.card{border:1px solid var(--border); border-radius:var(--radius2); overflow:hidden; background:#fff; box-shadow:0 10px 24px rgba(17,24,39,.06)}
.card:hover{transform:translateY(-1px); box-shadow:0 18px 36px rgba(17,24,39,.10)}
.card{transition:transform .15s ease, box-shadow .15s ease}
.card-top{height:92px; position:relative}
.card-badge{position:absolute; top:10px; left:10px; font-size:12px; padding:6px 10px; border-radius:999px; background:rgba(255,255,255,.92); border:1px solid rgba(17,24,39,.10); color:#111827; font-weight:900}
.card-body{padding:12px}
.card-title{margin:0 0 6px; font-weight:900; font-size:15px; letter-spacing:-.2px}
.card-author{font-size:12px; font-weight:800; color:var(--muted2); margin-bottom:6px}
.card-meta{display:flex; gap:6px; align-items:center; font-size:12px; color:var(--muted2); margin-bottom:8px; flex-wrap:wrap}
.stars{color:#F59E0B; font-weight:900}
.dot{opacity:.6}
.card-desc{margin:0 0 10px; color:var(--muted); font-size:13px; line-height:1.45; min-height:38px}
.card-row{display:flex; align-items:center; justify-content:space-between; gap:10px}
.price{font-weight:900}
.small{font-size:12px; color:var(--muted2)}

.product-page{display:grid; grid-template-columns: .9fr 1.1fr; gap:14px; margin-top:10px}
.product-cover{border-radius:var(--radius2); border:1px solid rgba(234,240,255,.12); min-height:260px; background:linear-gradient(135deg, rgba(139,92,246,.55), rgba(34,211,238,.28))}
.product-info{background:#fff; border:1px solid var(--border); border-radius:var(--radius2); padding:16px; box-shadow:0 10px 28px rgba(17,24,39,.08)}
.product-info h1{margin:0 0 8px}
.pills{display:flex; gap:8px; flex-wrap:wrap; margin:10px 0}
.pill{font-size:12px; padding:6px 10px; border-radius:999px; border:1px solid var(--border); color:var(--muted); background:var(--panel2)}
.product-meta{display:flex; gap:8px; align-items:center; flex-wrap:wrap; color:var(--muted2); font-size:12px; font-weight:800; margin:2px 0 10px}

.backlink{display:inline-block; margin-bottom:10px; color:var(--muted)}
.backlink:hover{color:var(--text)}

.cart-drawer{position:fixed; inset:0; z-index:100}
.cart-drawer-backdrop{position:absolute; inset:0; background:rgba(0,0,0,.55)}
.cart-drawer-panel{position:absolute; right:0; top:0; height:100%; width:min(420px, 92vw); background:#fff; border-left:1px solid var(--border); display:flex; flex-direction:column}
.cart-drawer-head{display:flex; align-items:center; justify-content:space-between; padding:14px; border-bottom:1px solid var(--border)}
.cart-drawer-title{font-weight:900}
.icon-btn{border:1px solid var(--border); background:var(--panel2); color:var(--text); border-radius:12px; padding:8px 10px; cursor:pointer}
.cart-drawer-body{padding:14px; overflow:auto; display:grid; gap:10px}
.cart-drawer-foot{padding:14px; border-top:1px solid var(--border); display:grid; gap:12px}
.cart-item{display:grid; grid-template-columns: 1fr auto; gap:8px; border:1px solid var(--border); border-radius:16px; padding:10px; background:var(--panel2)}
.cart-item-title{font-weight:800}
.cart-item-meta{font-size:12px; color:var(--muted2)}
.qty{display:flex; align-items:center; gap:8px}
.qty button{border:1px solid var(--border); background:#fff; color:var(--text); border-radius:10px; padding:6px 10px; cursor:pointer}

.checkout-items{display:grid; gap:10px}
.divider{height:1px; background:var(--border); margin:12px 0}
.summary .row{display:flex; justify-content:space-between; padding:6px 0; color:var(--muted)}
.summary .row.total{color:var(--text); font-size:18px; font-weight:900}
.form{display:grid; gap:12px}
.notice{border:1px dashed rgba(17,24,39,.20); border-radius:16px; padding:12px; color:var(--muted); background:var(--panel2)}

.prose h1{margin-top:0}
.prose p,.prose li{color:var(--muted); line-height:1.65}
.prose code{background:rgba(234,240,255,.06); padding:2px 6px; border-radius:8px; border:1px solid rgba(234,240,255,.12); color:var(--text)}

.site-footer{border-top:1px solid var(--border); padding:18px 0 24px; background:#fff}
.footer-grid{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap}
.footer-brand{font-weight:900}
.footer-links{display:flex; gap:12px; flex-wrap:wrap; color:var(--muted)}
.muted{color:var(--muted)}

@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr;}
  .product-grid{grid-template-columns: repeat(2, minmax(0,1fr));}
  .filters{grid-template-columns: 1fr 1fr;}
  .product-page{grid-template-columns: 1fr;}
  .grid-2{grid-template-columns: 1fr;}
}
@media (max-width: 520px){
  .product-grid{grid-template-columns: 1fr;}
  .nav{display:none}
}
