:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --border: #e6e9ef;
  --text: #1f2430;
  --muted: #6b7280;
  --accent: #3a7bfd;
  --accent-hover: #2e63d6;
  --accent2: #9b6bff;
  --badge-alphacam: #3a7bfd;
  --badge-artcam: #ffc24b;
  --badge-aspire: #ff8b5c;
  --badge-powermill: #b87aff;
  --badge-nx: #5cd6c8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; }

/* ── Thanh điều hướng ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--accent);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-portal-link { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-nav-ghost, .btn-nav-solid {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
}
.btn-nav-ghost { color: var(--accent); background: #eaf1ff; }
.btn-nav-ghost:hover { background: #dde9ff; }
.btn-nav-solid { color: #fff; background: var(--accent); }
.btn-nav-solid:hover { background: var(--accent-hover); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 18px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 24px 100px;
  text-align: center;
}
.hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35; }
.hb-1 { width: 360px; height: 360px; background: var(--accent); top: -120px; left: -80px; }
.hb-2 { width: 300px; height: 300px; background: var(--accent2); top: 20px; right: -100px; }
.hb-3 { width: 260px; height: 260px; background: var(--badge-aspire); bottom: -140px; left: 40%; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--text);
}
.hero-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero-solid, .btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
}
.btn-hero-solid { color: #fff; background: var(--accent); box-shadow: 0 8px 24px rgba(58, 123, 253, 0.35); }
.btn-hero-solid:hover { background: var(--accent-hover); }
.btn-hero-ghost { color: var(--text); background: #fff; border: 1px solid var(--border); }
.btn-hero-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Sections chung ─────────────────────────────────────────── */
.section { max-width: 1180px; margin: 0 auto; padding: 70px 24px; }
.section-alt { background: #eef1f7; max-width: none; }
.section-alt .section-title,
.section-alt .section-sub,
.section-alt .feature-grid { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 27px; font-weight: 800; margin: 0 0 10px; text-align: center; }
.section-sub { color: var(--muted); font-size: 14.5px; text-align: center; max-width: 620px; margin: 0 auto 40px; }

/* ── Sản phẩm ───────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: left;
}
.product-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  margin-bottom: 14px;
}
.pb-alphacam { background: var(--badge-alphacam); }
.pb-artcam { background: var(--badge-artcam); }
.pb-aspire { background: var(--badge-aspire); }
.pb-powermill { background: var(--badge-powermill); }
.pb-nx { background: var(--badge-nx); }
.product-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.product-desc { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ── Vì sao chọn Posthub ────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
}
.feature-icon { font-size: 26px; margin-bottom: 12px; }
.feature-name { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ── Hỗ trợ ─────────────────────────────────────────────────── */
.support-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--card); }
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 14px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-portal-link { display: inline; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .btn-nav-ghost { display: none; }
  .hero h1 { font-size: 30px; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 20px 70px; }
  .section { padding: 50px 20px; }
}
