:root {
  --primary: #0b5cff;
  --primary-dark: #0842b8;
  --accent: #ff4d6d;
  --yellow: #ffc300;
  --green: #22c55e;
  --dark: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --bg-alt: #f4f7fb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Be Vietnam Pro', system-ui, sans-serif; color: var(--text); line-height: 1.65; background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; }

/* Topbar */
.topbar { background: var(--dark); color: #cbd5e1; font-size: 13px; }
.topbar-inner { display: flex; gap: 28px; padding: 8px 0; }
.topbar a { color: #fff; font-weight: 600; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; color: var(--dark); letter-spacing: .5px; }
.logo b { color: var(--primary); }
.logo.light { color: #fff; }
.logo-dots { display: grid; grid-template-columns: repeat(2, 12px); gap: 3px; }
.logo-dots i { width: 12px; height: 12px; border-radius: 50%; }
.logo-dots i:nth-child(1) { background: var(--accent); }
.logo-dots i:nth-child(2) { background: var(--yellow); }
.logo-dots i:nth-child(3) { background: var(--primary); }
.logo-dots i:nth-child(4) { background: var(--green); }
.nav { display: flex; gap: 30px; }
.nav a { font-weight: 500; font-size: 15px; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--primary); transition: width .3s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.quote-btn { display: flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--bg-alt); font-weight: 600; color: var(--dark); }
.badge { background: var(--accent); color: #fff; font-size: 12px; min-width: 20px; height: 20px; border-radius: 999px; display: inline-grid; place-items: center; padding: 0 6px; }
.menu-toggle { display: none; font-size: 26px; color: var(--dark); }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 600; transition: .25s; font-size: 15px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #4f8bff); color: #fff; box-shadow: 0 8px 20px rgba(11,92,255,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11,92,255,.4); }
.btn-ghost { border: 2px solid #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--dark); }
.full { width: 100%; }

/* Hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.7) 45%, rgba(15,23,42,.15) 100%), url('images/hero.jpg') center/cover; transform: scale(1.05); animation: zoom 20s ease-in-out infinite alternate; }
@keyframes zoom { to { transform: scale(1.15); } }
.hero-content { position: relative; padding: 80px 0; max-width: 1200px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.eyebrow.dark { color: var(--primary); }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-bottom: 20px; max-width: 760px; }
.grad { background: linear-gradient(90deg, var(--yellow), var(--accent), #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 600px; font-size: 18px; color: #e2e8f0; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 40px; margin-top: 60px; max-width: 760px; }
.hero-stats b { display: block; font-size: 36px; font-weight: 800; color: #fff; }
.hero-stats span { font-size: 14px; color: #cbd5e1; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2, .about-text h2, .contact-info h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: #cbd5e1; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.about-badge { position: absolute; bottom: -24px; right: -16px; background: #fff; padding: 18px 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-badge b { display: block; font-size: 22px; color: var(--primary); }
.about-badge span { font-size: 13px; color: var(--muted); }
.about-text p { margin-bottom: 14px; }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.checklist li { padding-left: 28px; position: relative; font-weight: 500; font-size: 15px; }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; display: grid; place-items: center; }

/* Filters & products */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.filters button { padding: 10px 20px; border-radius: 999px; background: #fff; font-weight: 600; color: var(--text); border: 1px solid #e2e8f0; transition: .2s; }
.filters button.active, .filters button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.search-wrap { max-width: 520px; margin: 0 auto 40px; }
.search-wrap input { width: 100%; padding: 14px 22px; border-radius: 999px; border: 1px solid #e2e8f0; font-family: inherit; font-size: 15px; outline: none; }
.search-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11,92,255,.1); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .3s; display: flex; flex-direction: column; animation: fadeUp .4s ease both; }
.product:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,23,42,.12); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.p-visual { height: 170px; position: relative; display: grid; place-items: center; overflow: hidden; }
.pellets { display: flex; flex-wrap: wrap; width: 150px; gap: 5px; justify-content: center; }
.pellets i { width: 18px; height: 14px; border-radius: 45%; box-shadow: inset -3px -3px 5px rgba(0,0,0,.25), inset 2px 2px 4px rgba(255,255,255,.45); }
.p-tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--dark); }
.p-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.p-body h3 { font-size: 17px; margin-bottom: 6px; }
.p-body p { font-size: 14px; color: var(--muted); margin-bottom: 12px; flex: 1; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.p-meta span { font-size: 12px; background: var(--bg-alt); padding: 3px 9px; border-radius: 6px; font-weight: 500; }
.p-actions { display: flex; gap: 8px; }
.p-actions button { flex: 1; padding: 10px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: .2s; }
.btn-detail { background: var(--bg-alt); color: var(--dark); }
.btn-detail:hover { background: #e2e8f0; }
.btn-add { background: var(--primary); color: #fff; }
.btn-add:hover { background: var(--primary-dark); }
.btn-add.added { background: var(--green); }
.empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 40px; }

/* Palette */
.palette-section { background: var(--dark); }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.swatch { border-radius: 12px; overflow: hidden; background: #1e293b; cursor: pointer; transition: .25s; }
.swatch:hover { transform: scale(1.06); }
.swatch div { height: 80px; }
.swatch span { display: block; padding: 8px 10px; font-size: 12px; color: #e2e8f0; font-weight: 500; }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app { padding: 30px; border-radius: var(--radius); border: 1px solid #e2e8f0; transition: .3s; }
.app:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.app span { font-size: 36px; }
.app h3 { margin: 12px 0 6px; }
.app p { color: var(--muted); font-size: 15px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { background: #fff; padding: 32px 26px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.feature .ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: linear-gradient(135deg, #e0ebff, #fde2e8); display: grid; place-items: center; font-size: 28px; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 30px 24px; border-radius: var(--radius); background: var(--bg-alt); }
.step b { font-size: 42px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 8px 0 6px; }
.step p { font-size: 15px; color: var(--muted); }

/* Contact */
.contact-section { background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #e2e8f0; }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.contact-info h2 { color: #fff; }
.contact-info ul { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.contact-info a { color: #fff; font-weight: 600; }
.contact-form { background: #fff; padding: 36px; border-radius: 24px; display: grid; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid #e2e8f0; font-family: inherit; font-size: 15px; outline: none; color: var(--dark); background: #fff; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--primary); }
.form-msg { text-align: center; color: var(--green); font-weight: 600; font-size: 14px; min-height: 1em; }

/* Footer */
.footer { background: #0b1120; color: #94a3b8; padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer p { margin-top: 14px; font-size: 14px; }
.footer h4 { color: #fff; margin-bottom: 14px; }
.footer-inner > div > a:not(.logo) { display: block; font-size: 14px; margin-bottom: 8px; }
.footer-inner > div > a:not(.logo):hover { color: #fff; }
.copyright { text-align: center; border-top: 1px solid #1e293b; padding: 20px; font-size: 13px; }

/* Floating */
.floating { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 12px; z-index: 40; }
.fl { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.2); animation: pulse 2s infinite; }
.zalo { background: #0068ff; }
.phone { background: var(--accent); font-size: 22px; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(11,92,255,.45); } 50% { box-shadow: 0 0 0 12px rgba(11,92,255,0); } }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); opacity: 0; pointer-events: none; transition: .3s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; z-index: 100; transform: translateX(100%); transition: .35s; display: flex; flex-direction: column; }
.drawer.show { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e2e8f0; }
.drawer-head button { font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid #e2e8f0; }
.q-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.q-dot { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.q-item .q-name { flex: 1; font-weight: 600; font-size: 14px; color: var(--dark); }
.q-item input { width: 70px; padding: 6px 8px; border: 1px solid #e2e8f0; border-radius: 8px; font-family: inherit; }
.q-item small { color: var(--muted); }
.q-item button { color: var(--accent); font-size: 18px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.6); display: none; place-items: center; z-index: 110; padding: 20px; }
.modal.show { display: grid; }
.modal-box { background: #fff; border-radius: 24px; max-width: 720px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; animation: fadeUp .3s; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: #fff; font-size: 18px; z-index: 2; }
.modal .p-visual { height: 220px; }
.modal-inner { padding: 28px; }
.modal-inner h3 { font-size: 24px; margin-bottom: 8px; }
.spec { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.spec td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; }
.spec td:first-child { font-weight: 600; color: var(--dark); width: 40%; background: var(--bg-alt); }

/* Toast */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 100px); background: var(--dark); color: #fff; padding: 12px 24px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: .35s; z-index: 120; opacity: 0; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .about, .contact { grid-template-columns: 1fr; }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; max-height: 0; overflow: hidden; transition: max-height .35s; box-shadow: 0 10px 20px rgba(0,0,0,.06); }
  .nav.open { max-height: 400px; }
  .nav a { padding: 14px 4%; border-top: 1px solid #f1f5f9; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .section { padding: 64px 0; }
  .apps, .features, .steps, .checklist, .contact-form .row, .footer-inner { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .about-badge { right: 8px; }
}
