:root{
  --bg:#f6f8fb;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#5b6476;
  --brand:#22c55e;
  --brand2:#16a34a;
  --line:rgba(15,23,42,.10);
  --shadow: 0 14px 40px rgba(15,23,42,.10);
  --radius:18px;
  --max:1100px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(900px 520px at 85% 10%, rgba(37,99,235,.12), transparent 60%),
    var(--bg);
}

a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 18px;}

.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(246,248,251,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
  flex-wrap:wrap;
}

.brand{display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.2px;}
.logo{
  width:34px; height:34px; border-radius:12px;
  background:linear-gradient(135deg, var(--brand), #60a5fa);
  box-shadow: 0 12px 26px rgba(34,197,94,.18);
}

.nav{display:flex; gap:10px; flex-wrap:wrap;}
.nav a{
  color:var(--muted); font-weight:800; font-size:14px;
  padding:8px 10px; border-radius:12px;
}
.nav a:hover{background:rgba(15,23,42,.04); color:var(--text);}

.search{
  flex:1;
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.9);
  min-width:240px;
  box-shadow: 0 10px 18px rgba(15,23,42,.05);
}
.search input{width:100%; border:0; outline:0; background:transparent; color:var(--text); font-size:14px;}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.8);
  font-size:13px;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:900;
  cursor:pointer;
  transition:.15s ease;
}
.btn-primary{background:linear-gradient(135deg, var(--brand), var(--brand2)); color:#05210f;}
.btn-primary:hover{transform: translateY(-1px); filter:saturate(1.05);}
.btn-ghost{background:rgba(255,255,255,.85); border-color:var(--line); color:var(--text);}
.btn-ghost:hover{transform: translateY(-1px);}

.hero{padding:36px 0 12px;}
.hero-card{
  background:rgba(255,255,255,.93);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:22px;
  overflow:hidden;
  position:relative;
}
.hero-card h1{margin:10px 0 10px; font-size: clamp(24px, 3vw, 38px); line-height:1.1; letter-spacing:-.6px;}
.hero-card p{margin:0 0 16px; color:var(--muted); line-height:1.55;}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; align-items:center;}

.section{padding:18px 0;}
.section-head{display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin-bottom:12px;}
.section-head h2{margin:0; font-size:20px;}
.section-head span{color:var(--muted); font-size:13px;}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.card{
  grid-column: span 4;
  background:rgba(255,255,255,.95);
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 10px 22px rgba(15,23,42,.05);
  transition:.15s ease;
}
.card:hover{transform: translateY(-2px);}

.thumb{height:160px; background:linear-gradient(135deg, rgba(34,197,94,.10), rgba(96,165,250,.10));}
.thumb img{width:100%; height:100%; object-fit:cover;}
.body{padding:14px;}
.meta{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px;}
.tag{
  font-size:12px; color:var(--muted);
  padding:6px 10px; border:1px solid var(--line);
  border-radius:999px; background:rgba(255,255,255,.85);
}
.card h3{margin:0 0 8px; font-size:16px;}
.card p{margin:0 0 12px; color:var(--muted); font-size:14px; line-height:1.45;}
.row{display:flex; justify-content:space-between; align-items:center; gap:12px;}
.more{color:var(--muted); font-weight:900; font-size:13px;}
.more:hover{color:var(--text);}

.article{
  background:rgba(255,255,255,.95);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:22px;
}
.article h1{margin:0 0 10px; letter-spacing:-.5px;}
.article p{color:var(--muted); line-height:1.65;}
.hr{height:1px; background:var(--line); margin:18px 0;}

.product{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  background:rgba(15,23,42,.02);
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:14px;
  margin:12px 0;
}
.product img{width:120px; height:120px; object-fit:cover; border-radius:14px; background:#fff;}
.product h3{margin:0 0 6px;}
.small{color:var(--muted); font-size:13px; line-height:1.45;}
.badge{
  display:inline-flex; gap:8px; align-items:center;
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  font-size:12px; color:var(--muted);
  margin-right:8px;
}

.btn-ml{
  display:inline-block;
  padding:12px 14px;
  border-radius:12px;
  background:#ffe600;
  color:#000;
  font-weight:900;
  margin-top:10px;
}
.btn-ml:hover{filter:brightness(.96);}

footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  margin-top:26px;
  color:var(--muted);
  font-size:13px;
}

@media (max-width: 980px){
  .card{grid-column: span 6;}
  .product{grid-template-columns: 1fr; }
  .product img{width:100%; height:200px;}
}
@media (max-width: 640px){
  .card{grid-column: span 12;}
  .search{width:100%;}
}
