/*
Theme Name: NgocNguyen WP Manager
Theme URI: https://wpmanager.ngocnguyen.com.vn
Author: Ngoc Nguyen
Author URI: https://ngocnguyen.com.vn
Description: Landing page theme cho bộ plugin NgocNguyen WP Manager. Thiết kế tối giản, màu navy theo logo, responsive đầy đủ.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ngocnguyen
Tags: landing-page, custom-menu, translation-ready, block-styles, wide-blocks
*/

/* ============================================================
   RESET + TOKENS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-50:  #f0f1fa;
  --brand-100: #e0e2f5;
  --brand-200: #c5c9e8;
  --brand-400: #5c5cb8;
  --brand-500: #1a1a6c;
  --brand-600: #13134f;
  --brand-700: #0d0d3a;
  --accent-500: #2d2d9e;
  --accent-600: #2626a0;
  --ink-900: #0b0b1e;
  --ink-800: #1a1a2e;
  --ink-700: #2d2d44;
  --ink-600: #454565;
  --ink-500: #656580;
  --ink-400: #9494ae;
  --ink-300: #c8c8d8;
  --ink-200: #e4e4ee;
  --ink-100: #f0f0f6;
  --ink-50:  #f7f7fb;
  --white: #ffffff;
  --green: #10b981;
  --green-soft: #d1fae5;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --red: #ef4444;
  --red-soft: #fee2e2;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11,11,30,.06);
  --shadow: 0 4px 16px -4px rgba(11,11,30,.08), 0 2px 6px -2px rgba(11,11,30,.05);
  --shadow-md: 0 12px 32px -8px rgba(11,11,30,.12), 0 4px 12px -4px rgba(11,11,30,.06);
  --shadow-lg: 0 24px 60px -12px rgba(26,26,108,.22), 0 8px 20px -8px rgba(11,11,30,.08);
  --shadow-brand: 0 10px 30px -8px rgba(26,26,108,.45);

  --grad: linear-gradient(135deg, #1a1a6c 0%, #2d2d9e 100%);
  --grad-soft: linear-gradient(135deg, #f0f1fa 0%, #eef0fb 100%);

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink-800);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--brand-50);
  color: var(--brand-600);
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 500;
}

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

/* Admin bar offset */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink-900); }
h1 { font-size: clamp(2rem, 5.5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
.lead { font-size: clamp(1rem, 1.6vw, 1.175rem); color: var(--ink-500); line-height: 1.7; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand-500);
  background: var(--brand-50);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--grad);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px;
  font-weight: 600; font-size: 0.9375rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: var(--white); box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(26,26,108,.55); }
.btn-ghost {
  background: var(--white); color: var(--ink-800);
  border-color: var(--ink-200); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-500); background: var(--brand-50); }
.btn-lg { padding: 16px 30px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--ink-100); box-shadow: 0 1px 0 rgba(11,11,30,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.0625rem;
  color: var(--ink-900); letter-spacing: -0.02em;
}
.brand-logo {
  width: 42px; height: 42px; flex-shrink: 0;
  display: block;
}
.brand-text small {
  display: block; font-size: 0.6875rem; font-weight: 500;
  color: var(--ink-500); letter-spacing: 0; line-height: 1.2; margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px; border-radius: 10px;
  font-weight: 500; font-size: 0.9375rem; color: var(--ink-600);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--brand-500); background: var(--brand-50); }
.header-cta { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--ink-200); background: var(--white);
  align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--ink-800); border-radius: 2px;
  position: relative; transition: background .2s;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink-800);
  border-radius: 2px; transition: transform .2s, top .2s;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 clamp(60px, 8vw, 90px);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(45,45,158,.12) 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 20%, rgba(26,26,108,.10) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; text-align: center; }
.hero-content { max-width: 780px; margin: 0 auto; }
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .lead { margin: 22px auto 0; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-checks {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 22px; margin-top: 26px;
  font-size: 0.875rem; color: var(--ink-500); font-weight: 500;
  list-style: none;
}
.hero-checks li { display: flex; align-items: center; gap: 8px; }
.hero-checks svg { color: var(--green); flex-shrink: 0; }

/* ============================================================
   DASHBOARD MOCKUP
   ============================================================ */
.mockup-wrap { position: relative; margin-top: 56px; padding: 0 4px; }
.mockup {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left;
  font-size: 13px; color: var(--ink-700);
}
.mockup-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--ink-50);
  border-bottom: 1px solid var(--ink-200);
}
.mockup-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.mockup-bar .dot.r { background: #ff5f57; }
.mockup-bar .dot.y { background: #febc2e; }
.mockup-bar .dot.g { background: #28c840; }
.mockup-bar .url {
  margin-left: 12px; background: var(--white);
  border: 1px solid var(--ink-200); border-radius: 8px;
  padding: 4px 12px; font-size: 12px; color: var(--ink-500);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%; flex: 1;
}
.mockup-body { padding: 22px clamp(16px, 3vw, 28px) 26px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.mock-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-900); font-size: 15px; }
.mock-brand .logo-sm { width: 32px; height: 32px; flex-shrink: 0; }
.mock-head-actions { display: flex; gap: 8px; }
.chip-btn { padding: 7px 13px; border-radius: 9px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.chip-btn.primary { background: var(--grad); color: white; }
.chip-btn.ghost { background: var(--white); border: 1px solid var(--ink-200); color: var(--ink-700); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card {
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 15px; font-weight: 700; }
.stat-icon.blue { background: var(--brand-50); color: var(--brand-500); }
.stat-icon.green { background: var(--green-soft); color: #059669; }
.stat-icon.red { background: var(--red-soft); color: #dc2626; }
.stat-icon.amber { background: var(--amber-soft); color: #d97706; }
.stat-info .num { font-size: 20px; font-weight: 800; color: var(--ink-900); line-height: 1; }
.stat-info .lbl { font-size: 11.5px; color: var(--ink-500); margin-top: 3px; }

.site-table { border: 1px solid var(--ink-200); border-radius: 14px; overflow: hidden; }
.site-row {
  display: grid;
  grid-template-columns: 2.2fr 1.4fr 0.7fr 1fr 1fr 0.9fr 0.9fr 1.4fr;
  gap: 10px; padding: 13px 16px; align-items: center;
  font-size: 12.5px; border-bottom: 1px solid var(--ink-100);
}
.site-row:last-child { border-bottom: 0; }
.site-row.head {
  background: var(--ink-50); font-size: 11px; font-weight: 700;
  color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.05em;
}
.site-name { font-weight: 600; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-name small { display: block; font-weight: 400; color: var(--ink-500); font-size: 11px; margin-top: 1px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge.live { background: var(--green-soft); color: #065f46; }
.badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.badge.ok { color: #059669; font-weight: 600; }
.badge.new { background: var(--red-soft); color: #b91c1c; }
.badge.owner { background: var(--green-soft); color: #065f46; }
.toggle { width: 40px; height: 22px; border-radius: 999px; background: var(--red); position: relative; display: inline-block; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; transition: left .2s; }
.toggle.off { background: var(--ink-300); }
.toggle.off::after { left: 21px; }

/* ============================================================
   STRIP
   ============================================================ */
.strip { padding: 30px 0; border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); background: var(--ink-50); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.strip-item .num {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; letter-spacing: -0.02em;
}
.strip-item .lbl { font-size: 0.875rem; color: var(--ink-500); font-weight: 500; margin-top: 4px; }

/* ============================================================
   SECTION
   ============================================================ */
section.block { padding: clamp(64px, 10vw, 110px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .lead { margin-top: 16px; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.feature {
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--brand-200); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-500);
  margin-bottom: 18px; font-size: 22px;
}
.feature h3 { margin-bottom: 8px; font-size: 1.0625rem; }
.feature p { color: var(--ink-500); font-size: 0.9375rem; line-height: 1.65; }

/* ============================================================
   WHY CHOOSE
   ============================================================ */
.why-section { background: var(--ink-50); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.why-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--ink-200); position: relative; overflow: hidden;
}
.why-card .num { font-size: 0.75rem; font-weight: 800; color: var(--brand-500); letter-spacing: 0.1em; margin-bottom: 14px; }
.why-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.why-card p { color: var(--ink-500); font-size: 0.9375rem; }

/* ============================================================
   PREVIEW / SCREENSHOTS
   ============================================================ */
.preview-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.preview-card {
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.preview-card img { width: 100%; height: auto; display: block; }
.preview-card .placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); padding: 60px 20px;
  color: var(--brand-500); font-weight: 600;
  min-height: 260px; text-align: center; flex-direction: column; gap: 8px;
}
.preview-card .placeholder small { font-weight: 400; color: var(--ink-500); }
.preview-card .cap { padding: 18px 22px 22px; border-top: 1px solid var(--ink-100); }
.preview-card .cap strong { display: block; color: var(--ink-900); font-size: 1rem; margin-bottom: 4px; }
.preview-card .cap span { color: var(--ink-500); font-size: 0.875rem; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 820px; margin: 0 auto; }
.price-card {
  background: var(--white); border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-xl); padding: 36px 32px;
  position: relative; transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad) border-box;
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: white;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  padding: 6px 14px; border-radius: 999px;
  text-transform: uppercase; box-shadow: var(--shadow-brand);
  white-space: nowrap;
}
.price-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.price-card .sub { color: var(--ink-500); font-size: 0.875rem; margin-bottom: 22px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.price-amount .val { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 900; color: var(--ink-900); letter-spacing: -0.03em; line-height: 1; }
.price-amount .cur { font-size: 1.125rem; font-weight: 700; color: var(--ink-700); }
.price-amount .per { font-size: 0.9375rem; color: var(--ink-500); font-weight: 500; }
.price-note { color: var(--ink-500); font-size: 0.875rem; margin-bottom: 26px; }
.price-list { list-style: none; margin-bottom: 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; color: var(--ink-700); }
.price-list .tick {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-500);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--brand-200); box-shadow: var(--shadow); }
.faq-item summary {
  padding: 18px 22px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; list-style: none; color: var(--ink-900); font-size: 0.9375rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 22px; font-weight: 300;
  color: var(--brand-500); transition: transform .2s; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .ans { padding: 0 22px 20px; color: var(--ink-500); font-size: 0.9375rem; line-height: 1.7; }

/* ============================================================
   DOCS CTA
   ============================================================ */
.docs-cta {
  background: var(--grad); border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 64px); text-align: center;
  color: white; position: relative; overflow: hidden;
}
.docs-cta::before {
  content: ''; position: absolute; inset: -50%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.10) 0%, transparent 45%);
  pointer-events: none;
}
.docs-cta > * { position: relative; }
.docs-cta h2 { color: white; }
.docs-cta p { color: rgba(255,255,255,.85); max-width: 540px; margin: 16px auto 28px; font-size: 1.0625rem; }
.docs-cta .btn-ghost { background: white; color: var(--brand-500); border-color: transparent; font-weight: 700; }
.docs-cta .btn-ghost:hover { background: var(--brand-50); transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding: 56px 0 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { color: white; margin-bottom: 14px; }
.footer-brand .brand-text small { color: var(--ink-400); }
.footer-desc { color: var(--ink-400); max-width: 320px; line-height: 1.7; }
.footer-col h4 {
  color: white; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-400); transition: color .15s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.8125rem; color: var(--ink-500);
}

/* ============================================================
   WORDPRESS PAGE/POST BASE
   ============================================================ */
.entry-content { max-width: 780px; margin: 0 auto; padding: 60px var(--gutter); }
.entry-content h1, .entry-content h2, .entry-content h3 { margin: 1.5em 0 0.5em; }
.entry-content p { margin: 1em 0; }
.entry-content a { color: var(--brand-500); text-decoration: underline; }
.entry-content img { border-radius: var(--radius); margin: 1em 0; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 960px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .site-row { grid-template-columns: 1.8fr 1fr 0.7fr 1fr 1.4fr; }
  .site-row > *:nth-child(4),
  .site-row > *:nth-child(5),
  .site-row > *:nth-child(6),
  .site-row > *:nth-child(7) { display: none; }
  .preview-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 16px var(--gutter) 24px; gap: 4px;
    border-bottom: 1px solid var(--ink-100); box-shadow: var(--shadow-md);
  }
  body.admin-bar .nav.open { top: 118px; }
  .nav.open a { padding: 12px 14px; font-size: 1rem; }
  .menu-toggle { display: flex; }
  /* Trên mobile: ẩn nút Tài liệu, giữ nút Mua ngay */
.header-cta .btn.keep { display: none; }
.header-cta .btn-primary {
  display: inline-flex;
  padding: 10px 16px;
  font-size: 0.875rem;
  border-radius: 10px;
}

  .hero { padding-top: 40px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }

  .mockup { font-size: 11.5px; border-radius: var(--radius-lg); }
  .mock-head-actions .chip-btn.ghost { display: none; }
  .mockup-bar .url { font-size: 10px; padding: 3px 8px; }
  .site-row {
    grid-template-columns: 1.5fr 1fr;
    font-size: 11.5px;
    padding: 11px 14px;
  }
  .site-row > *:nth-child(2),
  .site-row > *:nth-child(3),
  .site-row > *:nth-child(4),
  .site-row > *:nth-child(5),
  .site-row > *:nth-child(6),
  .site-row > *:nth-child(7),
  .site-row > *:nth-child(8) { display: none; }
  .site-row.head > *:nth-child(8) { display: block; text-align: right; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 12px; gap: 10px; }
  .stat-info .num { font-size: 17px; }
  .stat-info .lbl { font-size: 10.5px; }

  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature { padding: 24px 22px; }
  .why-grid { grid-template-columns: 1fr; }
  .price-card { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .docs-cta { border-radius: var(--radius-lg); padding: 40px 24px; }
}
/* ============================================================
   HOVER EFFECT cho .why-card — nền navy + chữ trắng
   ============================================================ */
.why-card {
  transition:
    background .3s ease,
    border-color .3s ease,
    transform .25s ease,
    box-shadow .3s ease;
}

.why-card .num,
.why-card h3,
.why-card p {
  transition: color .3s ease;
}

.why-card:hover {
  background: var(--grad);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -10px rgba(26,26,108,.45);
}

/* Chữ đổi sang trắng */
.why-card:hover .num {
  color: rgba(255,255,255,.7);
}
.why-card:hover h3 {
  color: #ffffff;
}
.why-card:hover p {
  color: rgba(255,255,255,.85);
}
/* ============================================================
   DOCUMENTATION PAGE
   ============================================================ */
.doc-hero {
  background: var(--grad);
  color: white;
  padding: clamp(60px, 9vw, 100px) 0 clamp(100px, 14vw, 160px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.doc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(255,255,255,.10) 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 30%, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.doc-hero > * { position: relative; }
.doc-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 20px;
}
.doc-hero h1 { color: white; margin-bottom: 16px; }
.doc-hero p {
  color: rgba(255,255,255,.85);
  max-width: 620px; margin: 0 auto;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
}
.doc-hero-meta {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-top: 24px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  padding: 8px 18px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500;
  color: rgba(255,255,255,.9);
}

/* -------- Layout -------- */
.doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  max-width: 1180px;
  margin: clamp(-90px, -8vw, -60px) auto 80px;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* -------- Sidebar -------- */
.doc-sidebar { position: relative; }
.doc-sidebar-inner {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  box-shadow: var(--shadow-md);
  scrollbar-width: thin;
}
.doc-sidebar-inner::-webkit-scrollbar { width: 6px; }
.doc-sidebar-inner::-webkit-scrollbar-thumb {
  background: var(--ink-200); border-radius: 3px;
}
.doc-sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 12px 14px;
}
.doc-sidebar-title {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--ink-400);
}
.doc-sidebar-close { display: none; }

.doc-nav { display: flex; flex-direction: column; }
.doc-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--ink-600);
  font-weight: 500;
  transition: color .15s, background .15s;
  border-left: 2px solid transparent;
  line-height: 1.4;
}
.doc-nav a:hover { background: var(--brand-50); color: var(--brand-500); }
.doc-nav a.active {
  background: var(--brand-50);
  color: var(--brand-500);
  font-weight: 600;
  border-left-color: var(--brand-500);
  padding-left: 10px;
}

/* Nút toggle mobile — ẩn trên desktop */
.doc-sidebar-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink-700);
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

/* Overlay cho mobile */
.doc-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(11,11,30,.5);
  z-index: 90;
  opacity: 0;
  transition: opacity .25s;
}
.doc-overlay.active { opacity: 1; }

/* -------- Content card -------- */
.doc-content {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px) clamp(22px, 4vw, 56px);
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.doc-section {
  padding-top: 20px;
  scroll-margin-top: 90px;
}
.doc-section + .doc-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--ink-100);
}
.doc-section h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  margin-bottom: 16px;
  padding-bottom: 12px;
  position: relative;
}
.doc-section h2::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--grad);
  border-radius: 2px;
}
.doc-section h3 {
  font-size: 1.0625rem;
  margin: 28px 0 10px;
  color: var(--ink-900);
}
.doc-section p {
  color: var(--ink-700);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin: 10px 0;
}
.doc-section strong { color: var(--ink-900); font-weight: 700; }
.doc-section ul, .doc-section ol {
  padding-left: 22px;
  margin: 12px 0;
  color: var(--ink-700);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.doc-section li { margin: 6px 0; }
.doc-section li::marker { color: var(--brand-500); }
.doc-section small { color: var(--ink-500); font-size: 0.8125rem; }

/* Code inline */
.doc-content code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  background: var(--brand-50);
  color: var(--brand-600);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: 500;
  word-break: break-word;
}
/* Code block */
.doc-content pre {
  background: var(--ink-900);
  color: #e0e2f5;
  padding: 16px 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 14px 0;
  font-size: 0.8125rem;
  line-height: 1.65;
}
.doc-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* -------- Table -------- */
.doc-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
}
.doc-table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.doc-table-wrap th {
  background: var(--ink-50);
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--ink-900);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink-200);
  white-space: nowrap;
}
.doc-table-wrap td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-700);
  vertical-align: top;
  line-height: 1.65;
}
.doc-table-wrap tr:last-child td { border-bottom: 0; }
.doc-table-wrap tbody tr:hover { background: var(--ink-50); }

/* -------- Callout -------- */
.doc-callout {
  padding: 16px 20px;
  border-radius: 12px;
  margin: 16px 0;
  border-left: 4px solid;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.doc-callout.info { background: var(--brand-50); border-color: var(--brand-500); color: var(--ink-800); }
.doc-callout.warning { background: var(--amber-soft); border-color: var(--amber); color: #78350f; }
.doc-callout.success { background: var(--green-soft); border-color: var(--green); color: #065f46; }
.doc-callout.danger { background: var(--red-soft); border-color: var(--red); color: #7f1d1d; }
.doc-callout strong { color: inherit; }
.doc-callout ul, .doc-callout ol { color: inherit; }

/* -------- CTA cuối -------- */
.doc-cta {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--grad);
  border-radius: var(--radius);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.doc-cta strong { font-size: 1.0625rem; display: block; margin-bottom: 4px; }
.doc-cta p { color: rgba(255,255,255,.85); font-size: 0.875rem; margin: 0; }
.doc-cta .btn {
  background: white; color: var(--brand-500); font-weight: 700;
}
.doc-cta .btn:hover { background: var(--brand-50); }

/* -------- Back to top -------- */
.doc-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  display: grid; place-items: center;
  box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, visibility .25s, transform .25s;
  z-index: 80;
}
.doc-top.show { opacity: 1; visibility: visible; transform: none; }
.doc-top:hover { transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE — Tablet & Mobile
   ============================================================ */
@media (max-width: 960px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: -60px;
  }
  .doc-sidebar-inner {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    max-height: 100vh;
    border-radius: 0;
    border: 0;
    border-right: 1px solid var(--ink-200);
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    padding: 20px 14px;
    overflow-y: auto;
  }
  .doc-sidebar.open .doc-sidebar-inner { transform: translateX(0); }
  .doc-sidebar-close {
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--ink-100);
    color: var(--ink-700);
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
  }
  .doc-sidebar-close:hover { background: var(--red-soft); color: var(--red); }
  .doc-sidebar-toggle { display: inline-flex; }
  .doc-overlay { display: block; }
  body.doc-lock { overflow: hidden; }
}

@media (max-width: 720px) {
  .doc-hero { padding-bottom: 80px; }
  .doc-hero-meta { font-size: 0.75rem; padding: 6px 14px; }
  .doc-layout { margin-top: -50px; padding: 0 16px; }
  .doc-content { padding: 24px 20px; border-radius: var(--radius); }
  .doc-section + .doc-section { margin-top: 40px; padding-top: 40px; }
  .doc-cta { flex-direction: column; text-align: center; }
  .doc-cta .btn { width: 100%; }
  .doc-top { right: 16px; bottom: 16px; }
  .doc-table-wrap table { font-size: 0.8125rem; }
  .doc-table-wrap th, .doc-table-wrap td { padding: 10px 12px; }
}