/* ============================================================
   Bangding Technology - Official Website Styles
   ============================================================ */

:root {
  --bg-dark: #0d1620;
  --bg-darker: #080e15;
  --bg-panel: #131f2b;
  --bg-light: #f5f7f9;
  --bg-white: #ffffff;
  --accent: #2f9bd6;
  --accent-light: #5cb8e8;
  --accent-glow: rgba(47, 155, 214, 0.25);
  --text-dark: #16232f;
  --text-light: #e8eef4;
  --text-muted: #9fb0c0;
  --text-muted-dark: #5c6b78;
  --border: rgba(255, 255, 255, 0.1);
  --border-dark: #dde3e8;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --radius: 10px;
  --max-width: 1200px;
  --header-h: 76px;
  --font: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(13, 22, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  flex-shrink: 0;
}
.brand-mark {
  width: 38px; height: 38px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -1px;
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 3px;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: color 0.25s;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: var(--accent-light); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.25s, transform 0.2s;
  flex-shrink: 0;
}
.header-cta:hover { background: var(--accent-light); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  background: none; border: none;
  color: #fff; font-size: 26px;
  cursor: pointer;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 640px;
  height: 90vh;
  max-height: 820px;
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #0d1620 0%, #162736 55%, #1d3446 100%);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 75% 40%, var(--accent-glow) 0%, transparent 45%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(92, 184, 232, 0.4);
  border-radius: 30px;
  padding: 6px 16px;
  margin-bottom: 24px;
}
.hero-content h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.1;
  color: #fff;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero-content h1 span { color: var(--accent-light); }
.hero-content p.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 34px;
  line-height: 1.75;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-dark { background: var(--bg-dark); color: #fff; }
.btn-dark:hover { background: #1b2c3b; transform: translateY(-2px); }
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual img {
  width: 100%;
  max-width: 560px;
  filter: drop-shadow(0 30px 45px rgba(0,0,0,0.55));
  border-radius: 8px;
}
.hero-stats {
  position: absolute;
  z-index: 3;
  bottom: 0; left: 0; right: 0;
  background: rgba(8, 14, 21, 0.7);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.hero-stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 26px; padding-bottom: 26px;
}
.stat { text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 30px; font-weight: 800; color: #fff; line-height: 1; }
.stat-num span { color: var(--accent-light); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 8px; letter-spacing: 0.5px; }

/* ---------------- Sections ---------------- */
section { padding: 90px 0; }
.section-light { background: var(--bg-light); }
.section-white { background: var(--bg-white); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}
.section-dark .section-head h2 { color: #fff; }
.section-head p { color: var(--text-muted-dark); font-size: 16px; }
.section-dark .section-head p { color: var(--text-muted); }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20, 40, 60, 0.1);
  border-color: var(--accent);
}
.feature-icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: rgba(47, 155, 214, 0.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--text-dark); }
.feature-card p { font-size: 14px; color: var(--text-muted-dark); line-height: 1.65; }

/* Product category showcase */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  background: var(--bg-dark);
  display: block;
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.5s, opacity 0.4s;
}
.cat-card:hover img { transform: scale(1.08); opacity: 0.95; }
.cat-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 22px;
  background: linear-gradient(transparent, rgba(8,14,21,0.9));
  color: #fff;
}
.cat-card-body h3 { font-size: 20px; margin-bottom: 4px; }
.cat-card-body span { font-size: 12px; color: var(--accent-light); letter-spacing: 1px; text-transform: uppercase; }
.cat-card-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, #162736, #1d3446);
  color: rgba(255,255,255,0.25);
}
.cat-card-placeholder svg { width: 90px; height: 90px; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-visual img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,0.18); width: 100%; }
.split-content h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; color: var(--text-dark); letter-spacing: -0.5px; }
.split-content p { color: var(--text-muted-dark); margin-bottom: 16px; font-size: 15.5px; }
.split-content .highlight { color: var(--accent); font-weight: 600; }
.check-list { margin: 22px 0 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 15px; }
.check-list li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--accent) 0%, #1c7bb0 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { font-size: 32px; margin-bottom: 12px; }
.cta-band p { font-size: 16px; opacity: 0.92; margin-bottom: 26px; }

/* ---------------- Products page ---------------- */
.page-hero {
  margin-top: var(--header-h);
  background: linear-gradient(120deg, #0d1620, #1b3040);
  color: #fff;
  padding: 76px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(34px, 4.5vw, 50px); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent-light); }

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.tab-btn {
  padding: 11px 24px;
  border: 1px solid var(--border-dark);
  background: var(--bg-white);
  color: var(--text-muted-dark);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.product-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-dark);
  padding: 20px;
}
.product-gallery .main-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}
.thumbs { display: flex; gap: 10px; margin-top: 14px; }
.thumb {
  width: 76px; height: 62px;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 3px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}
.thumb.active, .thumb:hover { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-info h2 { font-size: 32px; margin-bottom: 8px; color: var(--text-dark); }
.product-model { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 1px; margin-bottom: 20px; }
.product-info p.desc { color: var(--text-muted-dark); margin-bottom: 24px; font-size: 15px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--border-dark); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 11px 4px; vertical-align: top; }
.spec-table td:first-child { color: var(--text-muted-dark); width: 45%; }
.spec-table td:last-child { color: var(--text-dark); font-weight: 600; }
.spec-table tr.group td {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 12px;
}
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tag-pill {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(47,155,214,0.1); color: var(--accent);
  margin: 0 8px 8px 0;
}
.coming-soon {
  text-align: center; padding: 60px 20px;
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  background: var(--bg-light);
}
.coming-soon svg { width: 64px; height: 64px; color: var(--accent); opacity: 0.6; margin: 0 auto 18px; }
.coming-soon h3 { font-size: 22px; margin-bottom: 10px; }
.coming-soon p { color: var(--text-muted-dark); max-width: 460px; margin: 0 auto 22px; }

/* ---------------- About page ---------------- */
.timeline { margin-top: 40px; }
.timeline-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 28px; padding-bottom: 32px;
  position: relative;
}
.timeline-year {
  font-size: 22px; font-weight: 800; color: var(--accent);
  text-align: right; padding-top: 2px;
}
.timeline-content { border-left: 2px solid var(--accent); padding-left: 28px; position: relative; }
.timeline-content::before {
  content: ''; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-light);
}
.timeline-content h3 { font-size: 18px; margin-bottom: 6px; }
.timeline-content p { color: var(--text-muted-dark); font-size: 15px; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  color: var(--text-light);
}
.value-card .num { font-size: 36px; font-weight: 800; color: var(--accent-light); margin-bottom: 10px; }
.value-card h3 { font-size: 18px; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--text-muted); }

/* ---------------- Contact page ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(20,40,60,0.08); }
.contact-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(47,155,214,0.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 15px; color: var(--text-dark); margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 15px; color: var(--text-muted-dark); }
.contact-card a:hover { color: var(--accent); }
.contact-card.whatsapp-card { border-color: var(--whatsapp); background: #f2fbf5; }
.contact-card.whatsapp-card .contact-icon { background: var(--whatsapp); color: #fff; }
.contact-card.whatsapp-card h3 { color: var(--whatsapp-dark); }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--whatsapp); color: #fff;
  padding: 13px 22px; border-radius: 7px;
  font-weight: 600; font-size: 14px;
  transition: background 0.25s, transform 0.2s;
}
.btn-whatsapp:hover { background: #1eb85a; transform: translateY(-2px); }
.btn-whatsapp svg { width: 22px; height: 22px; }

.contact-form {
  background: var(--bg-white);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form h2 { font-size: 24px; margin-bottom: 6px; }
.contact-form > p { color: var(--text-muted-dark); font-size: 14px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text-dark); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,155,214,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none;
  background: #eef9f2; color: #1a7a45;
  border: 1px solid #b7e4c9;
  padding: 14px 16px; border-radius: 6px;
  font-size: 14px; margin-bottom: 20px;
}

/* ---------------- Floating WhatsApp ---------------- */
.float-wa {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 1100;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}
.float-wa:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(37,211,102,0.6); }
.float-wa svg { width: 30px; height: 30px; }
.float-wa .pulse {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(0.9); opacity: 0.8; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--bg-darker);
  color: var(--text-muted);
  padding: 66px 0 0;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-col h3 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-col p { line-height: 1.8; margin-bottom: 14px; }
.footer-col a { display: block; margin-bottom: 11px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-light); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: #6b7c8b;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg-panel); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 20px; border-bottom: 1px solid var(--border); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-content p.lead { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .hero { height: auto; padding-bottom: 90px; }
  .feature-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .product-layout, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stat:nth-child(2) { border-right: none; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .container { padding: 0 18px; }
  .feature-grid, .cat-grid, .value-grid, .form-row { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 38px; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 24px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-year { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-wa { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
