:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#5b677a;
  --line:#e6e8ee;
  --card:#ffffff;
  --shadow: 0 10px 30px rgba(11,18,32,.08);
  --radius:16px;
  --radius-sm:12px;
  --max: 1120px;
  --accent:#111827;
  --accent2:#2563eb;
  --success:#16a34a;
  --warn:#d97706;
  --danger:#dc2626;
  --focus: 0 0 0 4px rgba(37,99,235,.15);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:linear-gradient(180deg,#fff 0%, #fbfbfd 45%, #fff 100%);
}

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

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

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding:12px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 220px;
}
.brand img{ width:40px; height:40px; border-radius:12px; }
.brand .brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand .brand-text strong{ font-size:14px; letter-spacing:.2px; }
.brand .brand-text span{ font-size:12px; color:var(--muted); }

.nav{
  display:flex; gap:12px; align-items:center;
  flex-wrap:wrap;
}
.nav a{
  font-size:13px;
  padding:8px 10px;
  border-radius:10px;
  color:var(--muted);
}
.nav a.active, .nav a:hover{
  background:#f3f4f6;
  color:var(--text);
  text-decoration:none;
}

.header-cta{
  display:flex; gap:10px; align-items:center;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
  color:var(--text);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.pill .dot{
  width:8px; height:8px; border-radius:99px;
  background:var(--success);
}
.btn{
  appearance:none; border:none; cursor:pointer;
  border-radius:12px;
  padding:10px 14px;
  font-weight:600;
  font-size:13px;
}
.btn.primary{ background:var(--accent); color:#fff; }
.btn.primary:hover{ filter:brightness(.95); }
.btn.secondary{
  background:#fff;
  color:var(--text);
  border:1px solid var(--line);
}
.btn.secondary:hover{ background:#fafafa; }

.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:6px 10px;
}

main{ padding:28px 0 60px; }

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:22px;
  align-items:center;
  padding:22px 0 10px;
}
.hero h1{
  font-size:44px;
  line-height:1.05;
  margin:0 0 10px;
  letter-spacing:-.8px;
}
.hero p{
  margin:0 0 18px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}
.hero .hero-actions{
  display:flex; gap:12px; flex-wrap:wrap;
}
.hero-card{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.hero-card h3{ margin:0 0 6px; font-size:14px; }
.hero-card p{ margin:0 0 10px; color:var(--muted); font-size:13px; line-height:1.5; }
.hero-card ul{ margin:0; padding-left:18px; color:var(--muted); font-size:13px; line-height:1.6; }

/* Sections */
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:12px;
  margin:26px 0 12px;
}
.section-title h2{ margin:0; font-size:18px; letter-spacing:-.2px; }
.section-title .sub{ color:var(--muted); font-size:13px; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:var(--radius);
  padding:16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow:var(--shadow);
}
.card .meta{
  display:flex; gap:10px; align-items:center; justify-content:space-between;
  color:var(--muted);
  font-size:12px;
}
.card h3{ margin:10px 0 8px; font-size:16px; letter-spacing:-.2px; }
.card p{ margin:0 0 12px; color:var(--muted); font-size:13px; line-height:1.5; }
.card .actions{ display:flex; gap:10px; flex-wrap:wrap; }

.kpi{
  display:flex; flex-direction:column;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.kpi strong{ font-size:16px; }
.kpi span{ color:var(--muted); font-size:12px; margin-top:2px; }

.toolbar{
  display:flex; gap:10px; align-items:center; justify-content:space-between;
  flex-wrap:wrap;
  margin:10px 0 12px;
}
.input{
  width:100%;
  max-width:420px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  outline:none;
  background:#fff;
}
.input:focus{ box-shadow:var(--focus); border-color: rgba(37,99,235,.45); }

.pills{ display:flex; gap:8px; flex-wrap:wrap; }
.pills button{
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  cursor:pointer;
}
.pills button.active{ background:#f3f4f6; color:var(--text); }

/* Table list */
.list{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
}
.row{
  display:grid;
  grid-template-columns: 1.3fr .9fr .8fr .6fr;
  gap:12px;
  padding:12px 14px;
  border-top:1px solid var(--line);
  align-items:center;
}
.row:first-child{ border-top:none; }
.row .name{ font-weight:700; }
.row .sub{ color:var(--muted); font-size:12px; margin-top:2px; }
.row .price{ font-weight:700; text-align:right; }
.row .tag{
  display:inline-flex; align-items:center;
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted); font-size:12px;
  justify-self:start;
}
.row .actions{ justify-self:end; display:flex; gap:8px; }

.small{ font-size:12px; color:var(--muted); }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Cart drawer */
.drawer-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.35);
  display:none;
  z-index:80;
}
.drawer{
  position:fixed; top:0; right:0;
  height:100%; width:min(420px, 92vw);
  background:#fff;
  border-left:1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .18s ease;
  z-index:90;
  display:flex; flex-direction:column;
}
.drawer.open{ transform: translateX(0); }
.drawer-backdrop.open{ display:block; }
.drawer header{
  padding:14px 16px;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid var(--line);
}
.drawer header strong{ font-size:14px; }
.drawer .content{ padding:14px 16px; overflow:auto; flex:1; }
.drawer .footer{
  border-top:1px solid var(--line);
  padding:12px 16px;
  display:flex; gap:10px; align-items:center; justify-content:space-between;
}

/* Footer */
.site-footer{
  border-top:1px solid var(--line);
  padding:18px 0;
  color:var(--muted);
  font-size:12px;
}
.site-footer a{ color:var(--muted); }

/* Responsive */
@media (max-width: 920px){
  .hero{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .row{ grid-template-columns: 1.2fr .9fr .7fr .8fr; }
}
@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
  .brand{ min-width:auto; }
  .row{ grid-template-columns: 1fr; }
  .row .price, .row .actions{ justify-self:start; text-align:left; }
}
