/* ==========================================================================
   vpage.vn — Dịch vụ thiết kế website & Landing page
   Theme: Light (default) + Dark toggle
   ========================================================================== */

/* ---------- Brand + Light theme (default) ---------- */
:root {
  /* Brand */
  --c-primary: #5b4cf0;
  --c-primary-2: #7b6ef6;
  --c-accent: #0bb5d6;
  --c-accent-2: #16c3a4;
  --grad-main: linear-gradient(135deg, #5b4cf0 0%, #0bb5d6 100%);
  --grad-soft: linear-gradient(135deg, rgba(91,76,240,.08), rgba(11,181,214,.08));
  --grad-hero: radial-gradient(1200px 500px at 80% -10%, rgba(91,76,240,.10), transparent 60%),
               radial-gradient(900px 400px at 0% 10%, rgba(11,181,214,.08), transparent 55%);

  /* Surfaces */
  --c-bg: #ffffff;
  --c-bg-2: #f4f6fc;
  --c-bg-3: #eef1fb;
  --c-surface: #ffffff;
  --c-surface-2: #f7f9fe;
  --c-border: #e6e9f4;
  --c-border-2: #eef1f9;
  --c-text: #16182f;
  --c-heading: #0e1024;
  --c-muted: #5a6182;
  --c-muted-2: #9095b3;
  --c-ghost: rgba(20, 22, 50, .045);
  --c-ghost-hover: rgba(20, 22, 50, .08);
  --c-skeleton: rgba(20, 22, 50, .07);
  --c-grid: rgba(20, 22, 50, .045);

  /* Effects */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --maxw: 1200px;
  --shadow-xs: 0 1px 2px rgba(16, 18, 40, .04);
  --shadow-sm: 0 2px 8px rgba(16, 18, 40, .06);
  --shadow: 0 12px 32px rgba(16, 18, 40, .08);
  --shadow-lg: 0 28px 64px rgba(16, 18, 40, .14);
  --shadow-glow: 0 12px 28px rgba(91, 76, 240, .28);

  --ff: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 76px;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --grad-soft: linear-gradient(135deg, rgba(123,110,246,.14), rgba(11,181,214,.14));
  --grad-hero: radial-gradient(1200px 500px at 80% -10%, rgba(91,76,240,.22), transparent 60%),
               radial-gradient(900px 400px at 0% 10%, rgba(11,181,214,.16), transparent 55%);

  --c-bg: #0b0d18;
  --c-bg-2: #0f1224;
  --c-bg-3: #131734;
  --c-surface: #14172c;
  --c-surface-2: #191d36;
  --c-border: rgba(255,255,255,.09);
  --c-border-2: rgba(255,255,255,.06);
  --c-text: #e9ebf7;
  --c-heading: #f4f5fc;
  --c-muted: #9ba1c4;
  --c-muted-2: #6b7099;
  --c-ghost: rgba(255,255,255,.05);
  --c-ghost-hover: rgba(255,255,255,.1);
  --c-skeleton: rgba(255,255,255,.1);
  --c-grid: rgba(255,255,255,.05);

  --shadow-xs: 0 1px 2px rgba(0,0,0,.3);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.3);
  --shadow: 0 14px 36px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
  --shadow-glow: 0 12px 30px rgba(91,76,240,.4);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--ff);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: rgba(91,76,240,.18); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; }
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 80px 0; }
.bg-alt { background: linear-gradient(180deg, var(--c-bg-2), var(--c-bg-3)); position: relative; }
.bg-alt::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 320px at 88% -5%, rgba(91,76,240,.07), transparent 70%); pointer-events: none; }
[data-theme="dark"] .bg-alt::before { background: radial-gradient(700px 320px at 88% -5%, rgba(91,76,240,.16), transparent 70%); }
.text-center { text-align: center; }
.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Headings */
h1, h2, h3, h4, h5 { color: var(--c-heading); letter-spacing: -.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-primary);
  padding: 7px 16px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--c-border);
  margin-bottom: 20px;
}
.section-title { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; line-height: 1.15; }
.section-sub { color: var(--c-muted); font-size: 17.5px; max-width: 640px; margin: 18px auto 0; }
.section-head { margin-bottom: 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15.5px;
  padding: 13px 26px; border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(91,76,240,.4); }
.btn-ghost { background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--c-ghost); transform: translateY(-2px); border-color: var(--c-muted-2); }
.btn-light { background: #fff; color: #15182e; box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,0,0,.18); }
.btn-lg { padding: 16px 34px; font-size: 16.5px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--c-bg) 82%, transparent);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow .25s ease, background .35s ease;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: flex; align-items: center; gap: 0; font-weight: 800; font-size: 21px; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad-main); margin-right: 11px;
  display: grid; place-items: center; font-size: 18px; color: #fff; box-shadow: var(--shadow-glow);
}
.logo span { color: var(--c-primary); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--c-muted); font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--c-text); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad-main); border-radius: 2px; transition: width .25s; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--c-text); border-radius: 2px; transition: .3s; }
.nav-cta-mobile { display: none; }

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-xs);
  font-size: 18px; transition: transform .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--c-primary); }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 96px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    var(--grad-hero),
    radial-gradient(circle at 14% 18%, rgba(91,76,240,.10), transparent 32%),
    radial-gradient(circle at 92% 70%, rgba(11,181,214,.09), transparent 36%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 5%, #000 25%, transparent 72%);
          mask-image: radial-gradient(ellipse 75% 70% at 60% 5%, #000 25%, transparent 72%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; line-height: 1.06; margin-bottom: 24px; }
.hero p.lead { font-size: 19px; color: var(--c-muted); margin-bottom: 36px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.avatar-stack { display: flex; }
.avatar-stack img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 3px solid var(--c-bg); margin-left: -12px; box-shadow: var(--shadow-xs); }
.avatar-stack img:first-child { margin-left: 0; }
.hero-proof .proof-txt { font-size: 14px; color: var(--c-muted); }
.hero-proof .proof-txt b { color: var(--c-heading); }
.hero-proof .proof-txt .stars { color: #f5a623; letter-spacing: 1px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 32px; font-weight: 800; color: var(--c-heading); }
.hero-stats .stat span { font-size: 14px; color: var(--c-muted); }

.badge-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 7px; border-radius: 999px;
  background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-xs);
  font-size: 14px; color: var(--c-muted); margin-bottom: 28px;
}
.badge-pill b { background: var(--grad-main); color: #fff; padding: 3px 11px; border-radius: 999px; font-size: 12px; }

/* Hero visual */
.hero-visual { position: relative; }
.mock-window {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg); transition: transform .6s ease;
}
.mock-window:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: var(--c-surface-2); border-bottom: 1px solid var(--c-border); }
.mock-bar i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.mock-bar i:nth-child(1){ background:#ff5f57;} .mock-bar i:nth-child(2){ background:#febc2e;} .mock-bar i:nth-child(3){ background:#28c840;}
.mock-url { margin-left: 14px; font-size: 12px; color: var(--c-muted); background: var(--c-bg); padding: 5px 14px; border-radius: 999px; flex: 1; border: 1px solid var(--c-border-2); }
.mock-body { padding: 24px; }
.mock-hero { height: 130px; border-radius: 14px; background: var(--grad-main); margin-bottom: 18px; position: relative; overflow: hidden; }
.mock-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%); animation: shine 3.2s infinite; }
@keyframes shine { 0%{ transform: translateX(-100%);} 100%{ transform: translateX(100%);} }
.mock-line { height: 12px; border-radius: 6px; background: var(--c-skeleton); margin-bottom: 11px; }
.mock-line.w70 { width: 70%; } .mock-line.w50 { width: 50%; } .mock-line.w90 { width: 90%; }
.mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 18px; }
.mock-card { height: 76px; border-radius: 12px; background: var(--c-surface-2); border: 1px solid var(--c-border); }

.floating-tag {
  position: absolute; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--c-heading); animation: float 4.5s ease-in-out infinite;
}
.floating-tag .dot { width: 10px; height: 10px; border-radius: 50%; background: #28c840; box-shadow: 0 0 10px #28c840; }
.floating-tag.t1 { top: -22px; right: 24px; }
.floating-tag.t2 { bottom: -26px; left: -14px; animation-delay: 1.6s; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-13px);} }

/* Trusted */
.trusted { padding: 38px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: var(--c-bg-2); }
.trusted p { text-align: center; color: var(--c-muted-2); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; font-weight: 600; }
.trusted-row { display: flex; align-items: center; justify-content: center; gap: 52px; flex-wrap: wrap; }
.trusted-row span { font-weight: 700; font-size: 18px; color: var(--c-muted-2); transition: color .2s; }
.trusted-row span:hover { color: var(--c-primary); }

/* ==========================================================================
   Grid / Cards
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 34px; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
  position: relative; box-shadow: var(--shadow-xs); height: 100%;
}
.card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: var(--shadow); }
.card .ico {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 22px; background: var(--grad-soft); border: 1px solid var(--c-border);
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 11px; }
.card p { color: var(--c-muted); font-size: 15px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.card .tags span { font-size: 12px; font-weight: 600; color: var(--c-primary); background: var(--grad-soft); padding: 5px 11px; border-radius: 999px; }

/* ==========================================================================
   Process / Steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; position: relative; }
.step { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 34px 28px; position: relative; box-shadow: var(--shadow-xs); transition: transform .28s, box-shadow .28s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step .num {
  width: 50px; height: 50px; border-radius: 14px; background: var(--grad-main); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 20px; box-shadow: var(--shadow-glow);
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 9px; }
.step p { color: var(--c-muted); font-size: 14.5px; }
.step .arrow { position: absolute; top: 52px; right: -22px; color: var(--c-primary); font-size: 22px; z-index: 2; opacity: .5; }
.step.highlight { border-color: var(--c-primary); background: linear-gradient(180deg, var(--grad-soft), var(--c-surface)); box-shadow: var(--shadow); }
.step .timer-badge { display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-size:12px; font-weight:700; color:var(--c-primary); background:var(--grad-soft); padding:6px 13px; border-radius:999px; }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio-filter { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 46px; }
.portfolio-filter button {
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--c-muted);
  border: 1px solid var(--c-border); background: var(--c-surface); transition: .2s; box-shadow: var(--shadow-xs);
}
.portfolio-filter button.active, .portfolio-filter button:hover { background: var(--grad-main); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }
.portfolio-item {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); background: var(--c-surface);
  transition: transform .28s ease, box-shadow .28s ease; box-shadow: var(--shadow-xs);
}
.portfolio-item:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.portfolio-thumb { display: block; height: 220px; position: relative; overflow: hidden; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; position: relative; z-index: 0; }
.portfolio-item:hover .portfolio-thumb img { transform: scale(1.08); }
.portfolio-thumb::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45)); z-index: 1; }
.portfolio-thumb .pf-cat { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,.92); color: #15182e; font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.portfolio-meta { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; }
.portfolio-meta h4 { font-size: 16.5px; font-weight: 700; }
.portfolio-meta span { font-size: 12px; font-weight: 600; color: var(--c-primary); }
.pf-order { font-size: 13px; font-weight: 700; color: var(--c-primary); white-space: nowrap; flex-shrink: 0; transition: color .2s; }
.pf-order:hover { color: var(--c-accent); }
.pf-g1 { background: linear-gradient(135deg,#5b4cf0,#a18cff);} .pf-g2 { background: linear-gradient(135deg,#0bb5d6,#16c3a4);}
.pf-g3 { background: linear-gradient(135deg,#ff6b9d,#ffa07a);} .pf-g4 { background: linear-gradient(135deg,#43e97b,#38f9d7);}
.pf-g5 { background: linear-gradient(135deg,#fa709a,#fee140);} .pf-g6 { background: linear-gradient(135deg,#30cfd0,#5b4cf0);}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 34px 28px;
  display: flex; flex-direction: column; transition: transform .28s ease, box-shadow .28s; position: relative; box-shadow: var(--shadow-xs);
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--c-primary); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-card.featured:hover { transform: scale(1.03) translateY(-8px); }
.price-card .plan { font-size: 14px; font-weight: 700; color: var(--c-primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.price-card .amount { font-size: 38px; font-weight: 800; color: var(--c-heading); }
.price-card .amount small { font-size: 15px; font-weight: 500; color: var(--c-muted); }
.price-card .desc { color: var(--c-muted); font-size: 14px; margin: 10px 0 24px; min-height: 42px; }
.price-card ul { display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; flex: 1; }
.price-card ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--c-text); }
.price-card ul li::before { content: "✓"; color: var(--c-accent); font-weight: 800; }
.price-card ul li.off { color: var(--c-muted-2); }
.price-card ul li.off::before { content: "✕"; color: var(--c-muted-2); }
.tag-popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-main); color: #fff; font-size: 11.5px; font-weight: 700; padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-glow); white-space: nowrap; }

/* ==========================================================================
   Why
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 24px; }
.why-item { display: flex; gap: 18px; }
.why-item .ico { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 23px; background: var(--grad-soft); border: 1px solid var(--c-border); }
.why-item h4 { font-size: 17.5px; font-weight: 700; margin-bottom: 5px; }
.why-item p { color: var(--c-muted); font-size: 14.5px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.testi { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-xs); }
.testi .stars { color: #f5a623; margin-bottom: 16px; letter-spacing: 2px; }
.testi p { color: var(--c-text); font-size: 15.5px; margin-bottom: 22px; }
.testi .author { display: flex; align-items: center; gap: 13px; }
.testi .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad-main); display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; flex-shrink: 0; }
.testi .avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi .author b { display: block; font-size: 15px; color: var(--c-heading); } .testi .author span { font-size: 13px; color: var(--c-muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--c-border); border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--c-surface); overflow: hidden; box-shadow: var(--shadow-xs); transition: box-shadow .2s; }
.faq-item.open { box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; font-size: 16px; font-weight: 600; color: var(--c-heading); }
.faq-q .pm { font-size: 24px; color: var(--c-primary); transition: transform .3s; flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 26px 22px; color: var(--c-muted); font-size: 15px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--grad-main); border-radius: var(--radius-lg); padding: 70px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 25% 15%, rgba(255,255,255,.28), transparent 50%); }
.cta-band h2 { font-size: clamp(28px,4vw,40px); font-weight: 800; color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 18.5px; margin: 16px 0 30px; position: relative; }
.cta-band .btn { position: relative; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  border-top: 1px solid var(--c-border);
  padding: 0 0 32px;
  /* Bảng màu tối riêng cho chân trang — nền tối, chữ trắng cho nổi bật */
  --c-bg-2: #0b0d18;
  --c-surface: #14172c;
  --c-border: rgba(255,255,255,.10);
  --c-text: #e9ebf7;
  --c-heading: #ffffff;
  --c-muted: #c2c7e0;
  --c-muted-2: #9095b3;
  --grad-soft: linear-gradient(135deg, rgba(123,110,246,.18), rgba(11,181,214,.18));
  background: var(--c-bg-2);
  color: var(--c-text);
}
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-main); z-index: 1; }
.footer::after { content: ""; position: absolute; bottom: 0; right: 0; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle at bottom right, rgba(91,76,240,.12), transparent 65%); pointer-events: none; }

/* Newsletter CTA */
.footer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 32px 40px; margin: -44px 0 56px; position: relative; z-index: 2; box-shadow: var(--shadow-lg);
}
.footer-cta-text h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.footer-cta-text p { color: var(--c-muted); font-size: 15px; }
.footer-newsletter { display: flex; gap: 10px; flex: 1; min-width: 280px; max-width: 440px; }
.footer-newsletter .input { flex: 1; }
.footer-newsletter .btn { flex-shrink: 0; }

.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 44px; padding-top: 24px; margin-bottom: 48px; position: relative; z-index: 1; }
.footer-col h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 20px; color: var(--c-heading); }
.footer-col ul li { margin-bottom: 13px; }
.footer-col a { color: var(--c-muted); font-size: 15px; transition: color .2s, transform .2s; display: inline-flex; align-items: center; gap: 6px; }
.footer-col a:hover { color: var(--c-primary); }
.footer-about p { color: var(--c-muted); font-size: 15px; margin: 18px 0 22px; max-width: 340px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-border); display: grid; place-items: center; font-size: 17px; font-weight: 700; transition: .2s; box-shadow: var(--shadow-xs); }
.footer-social a:hover { background: var(--grad-main); color: #fff; transform: translateY(-3px); border-color: transparent; }

/* Contact with icon chips */
.footer-contact ul li { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; color: var(--c-muted); font-size: 15px; }
.footer-contact ul li a { gap: 11px; }
.footer-contact .fi { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--grad-soft); border: 1px solid var(--c-border); display: grid; place-items: center; font-size: 15px; color: var(--c-primary); }

.footer-bottom { border-top: 1px solid var(--c-border); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--c-muted-2); font-size: 14px; position: relative; z-index: 1; }
.footer-legal { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-legal a { color: var(--c-muted); transition: color .2s; }
.footer-legal a:hover { color: var(--c-primary); }
.footer-top { font-weight: 600; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-page { padding: 60px 0 110px; }
.form-shell { max-width: 740px; margin: 0 auto; }
.form-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow); }
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; color: var(--c-heading); }
.field label .req { color: #f5476b; }
.field .hint { font-size: 13px; color: var(--c-muted-2); margin-top: 7px; }
.input, .textarea, .select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--c-bg);
  border: 1px solid var(--c-border); color: var(--c-text); font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(91,76,240,.16); }
.textarea { resize: vertical; min-height: 116px; }
.input::placeholder, .textarea::placeholder { color: var(--c-muted-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.choice {
  position: relative; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 18px;
  cursor: pointer; transition: .2s; display: flex; gap: 14px; align-items: flex-start; background: var(--c-bg);
}
.choice:hover { border-color: var(--c-primary); box-shadow: var(--shadow-xs); }
.choice input { position: absolute; opacity: 0; }
.choice .c-ico { font-size: 25px; }
.choice .c-txt b { display: block; font-size: 15px; color: var(--c-heading); } .choice .c-txt span { font-size: 13px; color: var(--c-muted); }
.choice input:checked ~ .c-check { opacity: 1; }
.choice .c-check { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-main); display: grid; place-items: center; color: #fff; font-size: 12px; opacity: 0; transition: .2s; }
.choice.selected { border-color: var(--c-primary); background: var(--grad-soft); }

.swatches { display: flex; gap: 11px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 11px; cursor: pointer; border: 3px solid transparent; transition: .2s; box-shadow: var(--shadow-xs); }
.swatch.selected { border-color: var(--c-bg); transform: scale(1.12); box-shadow: 0 0 0 2px var(--c-primary); }

.upload {
  border: 2px dashed var(--c-border); border-radius: var(--radius-sm); padding: 30px; text-align: center;
  cursor: pointer; transition: .2s; color: var(--c-muted); background: var(--c-bg);
}
.upload:hover { border-color: var(--c-primary); color: var(--c-text); background: var(--grad-soft); }
.upload .up-ico { font-size: 32px; margin-bottom: 10px; }

/* Stepper */
.stepper { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 40px; }
.stepper .s { display: flex; flex-direction: column; align-items: center; gap: 9px; flex: 1; position: relative; }
.stepper .s .dot { width: 42px; height: 42px; border-radius: 50%; background: var(--c-bg-2); border: 1px solid var(--c-border); display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--c-muted); transition: .3s; z-index: 2; }
.stepper .s .lbl { font-size: 13px; color: var(--c-muted); font-weight: 500; text-align: center; }
.stepper .s::before { content: ""; position: absolute; top: 21px; left: -50%; width: 100%; height: 2px; background: var(--c-border); z-index: 1; }
.stepper .s:first-child::before { display: none; }
.stepper .s.active .dot, .stepper .s.done .dot { background: var(--grad-main); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }
.stepper .s.active .lbl, .stepper .s.done .lbl { color: var(--c-heading); font-weight: 600; }
.stepper .s.done::before, .stepper .s.active::before { background: var(--c-primary); }

.form-step { display: none; animation: fadeIn .4s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.step-title { font-size: 23px; font-weight: 700; margin-bottom: 7px; }
.step-desc { color: var(--c-muted); font-size: 15px; margin-bottom: 30px; }
.form-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 14px; }

.err-msg { color: #f5476b; font-size: 13px; margin-top: 7px; display: none; }
.field.error .input, .field.error .textarea, .field.error .select { border-color: #f5476b; }
.field.error .err-msg { display: block; }

/* ==========================================================================
   Lookup / status
   ========================================================================== */
.status-result { display: none; }
.status-result.show { display: block; animation: fadeIn .4s ease; }
.status-track { display: flex; flex-direction: column; margin-top: 26px; }
.track-item { display: flex; gap: 16px; padding-bottom: 30px; position: relative; }
.track-item:last-child { padding-bottom: 0; }
.track-item::before { content: ""; position: absolute; left: 18px; top: 38px; bottom: 0; width: 2px; background: var(--c-border); }
.track-item:last-child::before { display: none; }
.track-dot { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 16px; background: var(--c-bg-2); border: 1px solid var(--c-border); color: var(--c-muted); z-index: 2; }
.track-item.done .track-dot { background: var(--grad-main); color: #fff; border-color: transparent; }
.track-item.current .track-dot { background: var(--c-surface); border-color: var(--c-primary); color: var(--c-primary); box-shadow: 0 0 0 4px rgba(91,76,240,.14); }
.track-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.track-item p { font-size: 14px; color: var(--c-muted); }

/* ==========================================================================
   Thank you
   ========================================================================== */
.thanks { text-align: center; max-width: 660px; margin: 0 auto; padding: 50px 0; }
.thanks .check {
  width: 100px; height: 100px; border-radius: 50%; background: var(--grad-main); margin: 0 auto 30px;
  display: grid; place-items: center; font-size: 48px; color: #fff; box-shadow: var(--shadow-glow);
  animation: pop .5s cubic-bezier(.17,.67,.3,1.33);
}
@keyframes pop { 0%{ transform: scale(0);} 100%{ transform: scale(1);} }
.thanks h1 { font-size: clamp(30px,4vw,42px); font-weight: 800; margin-bottom: 16px; }
.thanks p { color: var(--c-muted); font-size: 18px; margin-bottom: 12px; }
.countdown-box { display: inline-flex; align-items: center; gap: 16px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px 32px; margin: 30px 0; box-shadow: var(--shadow-sm); }
.countdown-box .ico { font-size: 32px; }
.countdown-box .time { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--c-heading); }
.countdown-box .lbl { font-size: 13px; color: var(--c-muted); }
.thanks-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.next-steps { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 32px; margin-top: 40px; text-align: left; box-shadow: var(--shadow-xs); }
.next-steps h3 { font-size: 17px; margin-bottom: 18px; }
.next-steps li { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 14px; color: var(--c-muted); font-size: 15px; }
.next-steps li b { color: var(--c-heading); }
.next-steps .n { width: 28px; height: 28px; border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--c-border); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--c-primary); flex-shrink: 0; }

/* Sub page hero */
.subhero { padding: 70px 0 24px; text-align: center; position: relative; }
.subhero::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); pointer-events: none; }
.subhero h1 { font-size: clamp(32px,4.5vw,48px); font-weight: 800; margin-bottom: 16px; position: relative; }
.subhero p { color: var(--c-muted); font-size: 18px; max-width: 580px; margin: 0 auto; position: relative; }

/* Floating contact */
.float-contact { position: fixed; bottom: 26px; right: 26px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-contact a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; box-shadow: var(--shadow); transition: transform .2s; }
.float-contact a:hover { transform: scale(1.1); }
.fc-zalo { background: #0068ff; color: #fff; }
.fc-phone { background: #28c840; color: #fff; animation: pulse 2s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(40,200,64,.5);} 70%{ box-shadow: 0 0 0 16px rgba(40,200,64,0);} 100%{ box-shadow: 0 0 0 0 rgba(40,200,64,0);} }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Tablet / collapse nav into hamburger */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { max-width: 640px; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4, .pricing-grid { grid-template-columns: repeat(2,1fr); }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-8px); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step .arrow { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .section { padding: 84px 0; }

  /* Hamburger nav */
  .nav-links, .nav-actions .btn-ghost, .nav-actions .btn-primary { display: none; }
  .nav-actions { margin-left: auto; }      /* đẩy nhóm icon sang phải */
  .nav-actions + .nav-toggle { margin-left: 4px; }
  .nav { gap: 10px; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--c-bg); border-bottom: 1px solid var(--c-border);
    padding: 8px 24px 20px; box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 15px 4px; border-bottom: 1px solid var(--c-border-2); font-size: 16px; }
  .nav-links.open a::after { display: none; }
  .nav-links.open .nav-cta-mobile { display: inline-flex; justify-content: center; margin-top: 16px; padding: 15px 26px; border-bottom: none; color: #fff; }
}

/* Phone */
@media (max-width: 680px) {
  .container { padding: 0 18px; }
  .section { padding: 62px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 60px 0 64px; }
  .hero h1 { margin-bottom: 18px; }
  .hero p.lead { font-size: 17px; margin-bottom: 28px; }
  .hero-cta { gap: 12px; flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .grid-3, .grid-2, .grid-4, .testi-grid, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .card { padding: 28px; }
  .field-row, .choice-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-about, .footer-contact { grid-column: 1 / -1; }
  .footer-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 28px 22px; margin-top: -36px; }
  .footer-newsletter { max-width: none; flex-direction: column; }
  .footer-newsletter .btn { width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 14px; }
  .footer-legal { justify-content: center; gap: 18px; }
  .form-card { padding: 24px 20px; }
  .cta-band { padding: 44px 22px; }
  .stepper .s .lbl { display: none; }
  .stepper .s .dot { width: 38px; height: 38px; }
  .hero-stats { gap: 22px; width: 100%; }
  .hero-stats .stat strong { font-size: 26px; }
  .hero-proof { flex-wrap: wrap; }
  .trusted-row { gap: 28px; }
  .trusted-row span { font-size: 15px; }
  .form-nav { flex-direction: column-reverse; }
  .form-nav .btn { width: 100%; }
  .countdown-box { width: 100%; justify-content: center; }
  .thanks-actions .btn { width: 100%; }
  .float-contact { bottom: 18px; right: 18px; }
  .float-contact a { width: 50px; height: 50px; font-size: 21px; }
}
