:root{
  --bg:#0b0f14;
  --card:#121925;
  --alt:#0f1622;
  --text:#e9eef7;
  --muted:#a9b4c7;
  --line:rgba(255,255,255,.10);
  --accent:#4da3ff;
  --accent2:#7c5cff;
  --radius:16px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
               "PingFang SC","Noto Sans CJK SC","Microsoft YaHei", sans-serif;
  background: var(--bg);
  color:var(--text);
  line-height:1.6;
}

a{color:inherit;text-decoration:none}
.container{width:min(1100px, 92%);margin:0 auto}
.muted{color:var(--muted)}

.h1{
  margin:0 0 8px;
  font-size: clamp(26px, 4vw, 40px);
}

/* ================= HEADER ================= */
/* Language switch button */
.lang-btn{
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:12px;
  color:var(--muted);
  font-weight:800;
}
.lang-btn:hover{ color:var(--text); }


.site-header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.85);
  border-bottom:1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-logo{
  height:40px;        /* controls logo size */
  width:auto;
  object-fit:contain;
  display:block;
}

.brand-name{
  font-weight:700;
  font-size:14px;
  white-space:nowrap;
}


.brand-name{
  font-weight:700;
  font-size:14px;
}

.nav{
  display:flex;
  gap:18px;
}

.nav a{
  color:var(--muted);
  font-weight:700;
}

.nav a.active,
.nav a:hover{
  color:var(--text);
}

.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--line);
  color:var(--text);
  border-radius:10px;
  padding:6px 10px;
  font-size:18px;
}

/* ================= SECTIONS ================= */

.section{
  padding:56px 0;
}

.section-head{
  margin-bottom:20px;
}

/* ================= CARDS ================= */

.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
}

/* ================= PRODUCTS PAGE ================= */

.product-layout{
  display:grid;
  grid-template-columns: 300px 1fr;
  gap:18px;
}

.sidebar h3{
  margin-top:0;
}

.hr{
  border:none;
  border-top:1px solid var(--line);
  margin:14px 0;
}

.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.pill{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  border-radius:999px;
  padding:6px 12px;
  font-weight:800;
  cursor:pointer;
}

.pill.active{
  background: rgba(77,163,255,.18);
  border-color: rgba(77,163,255,.45);
}

/* ===== PRODUCT GRID ===== */

.product-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

/* ===== PRODUCT CARD ===== */

.product{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

/* ✅ IMAGE SIZE FIX */
.product-img{
  width:100%;
  height:160px;
  object-fit:contain;
  background: rgba(0,0,0,.18);
  border-radius:10px;
  padding:10px;
  margin-bottom:10px;
}

/* TEXT */

.product-name{
  font-weight:800;
  font-size:15px;
  margin-top:4px;
}

.product-meta{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.product-note{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}

/* ================= FOOTER ================= */

.site-footer{
  border-top:1px solid var(--line);
  padding:20px 0;
  margin-top:40px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--muted);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 980px){
  .product-layout{
    grid-template-columns: 1fr;
  }

  .product-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-name{
    display:none;
  }
}

@media (max-width: 640px){
  .nav{
    display:none;
  }

  .nav.open{
    display:flex;
    position:absolute;
    right:4%;
    top:64px;
    flex-direction:column;
    background: rgba(11,15,20,.95);
    border:1px solid var(--line);
    border-radius:14px;
    padding:12px;
    gap:10px;
  }

  .nav-toggle{
    display:inline-flex;
  }

  .product-grid{
    grid-template-columns: 1fr;
  }
}
/* ================= MAIN PAGE UI UPGRADE ================= */

.hero2{
  padding: 56px 0 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 70%);
}

.hero2-inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: start;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}

.chip{
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.hero2-title{
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: .2px;
}

.hero2-sub{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.hero2-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}

.hero2-stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}

.stat{
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.03);
}

.stat-num{
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 2px;
}

.stat-label{
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero2-right{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.hero2-image{
  height: 290px;
  border-radius: 16px;
  border:1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(77,163,255,.18), rgba(124,92,255,.14)),
    url("./assets/hero.jpg") center/cover no-repeat;
}

.hero2-card{
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.03);
}

.hero2-card-title{
  font-weight: 900;
  margin-bottom: 8px;
}

.hero2-card-list .bullet{
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  margin: 6px 0;
}

/* Sections */
.section2{
  padding: 44px 0;
}

.section2-head{
  margin-bottom: 16px;
}

.section2-head h2{
  margin:0 0 6px;
  font-size: 26px;
}

.section2-head p{
  margin:0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.alt2{
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Grids */
.grid2{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tile{
  display:block;
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.03);
}

.tile-title{
  font-weight: 900;
  margin-bottom: 6px;
}

.tile-desc{
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature{
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.03);
}

.feature-title{
  font-weight: 900;
  margin-bottom: 6px;
}

.feature-desc{
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.center2{
  display:flex;
  justify-content:center;
  margin-top: 14px;
}

/* Split section */
.split2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.about2-image{
  height: 320px;
  border-radius: 16px;
  border:1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(77,163,255,.10), rgba(124,92,255,.08)),
    url("./assets/about.jpg") center/cover no-repeat;
}

.muted2{
  color: var(--muted);
  font-weight: 700;
}

.mini-list{
  margin-top: 12px;
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.03);
}

.mini-item{
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  margin: 6px 0;
}

/* Contact */
.contact2{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}

.contact2-card{
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.03);
}

.contact2-title{
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 10px;
}

.contact2-row{
  display:grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.contact2-row:last-child{
  border-bottom:none;
}

.contact2-k{
  color: var(--muted);
  font-weight: 900;
}

.contact2-v{
  font-weight: 800;
}

.contact2-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

.contact2-note{
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.02);
}

.contact2-note-title{
  font-weight: 900;
  margin-bottom: 6px;
}

.contact2-note-text{
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 980px){
  .hero2-inner{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: repeat(2, 1fr); }
  .grid3{ grid-template-columns: 1fr; }
  .split2{ grid-template-columns: 1fr; }
  .contact2{ grid-template-columns: 1fr; }
  .hero2-stats{ grid-template-columns: 1fr; }
  .hero2-image{ height: 240px; }
}

@media (max-width: 640px){
  .grid2{ grid-template-columns: 1fr; }
}
