:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --primary: #0b0f17;
  --primary-light: #1a2232;
  --accent: #e60000;
  --accent-hover: #c40000;
  --accent-soft: #fef2f2;
  --accent-border: #fecaca;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --success: #059669;
  --font-display: 'Genos', 'Be Vietnam Pro', sans-serif;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(11, 15, 23, 0.08);
  --shadow-md: 0 10px 25px -5px rgba(11, 15, 23, 0.1), 0 8px 10px -6px rgba(11, 15, 23, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(11, 15, 23, 0.22);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

[id] {
  scroll-margin-top: 84px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.18rem, 4vw, 1.45rem);
  letter-spacing: 0.02em;
  color: var(--primary);
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-location {
  display: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-call-full {
  display: none;
}

@media (min-width: 480px) {
  .brand-logo {
    height: 40px;
  }
  .header-call-short {
    display: none;
  }
  .header-call-full {
    display: inline;
  }
}

@media (min-width: 900px) {
  .header-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(217, 0, 0, 0.45);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-dark {
  background: var(--primary);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--primary-light);
}

.btn-zalo {
  background: #0068ff;
  color: #ffffff;
}

.btn-zalo:hover {
  background: #0054d1;
}

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
}

.btn-sm {
  padding: 9px 12px;
  font-size: 0.86rem;
}

.btn-block {
  width: 100%;
  white-space: normal;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  background: var(--primary);
  color: #ffffff;
  padding: 32px 0 48px;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11, 15, 23, 0.94) 0%, rgba(11, 15, 23, 0.84) 55%, rgba(11, 15, 23, 0.74) 100%);
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 56px 0 66px;
  }
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 38px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 0, 0, 0.18);
  border: 1px solid rgba(254, 202, 202, 0.4);
  color: #fecaca;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.hero-title span {
  color: #ff5252;
}

.hero-desc {
  font-size: 0.98rem;
  color: #e2e8f0;
  margin-bottom: 18px;
  max-width: 590px;
}

.hero-mobile-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

@media (min-width: 960px) {
  .hero-mobile-cta {
    display: none;
  }
}

.hero-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-bottom: 20px;
}

@media (min-width: 600px) {
  .hero-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: #f8fafc;
}

.hero-highlights .check {
  color: #ff5252;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  line-height: 1.1;
  color: #ffffff;
}

.stat-item span {
  font-size: 0.78rem;
  color: #cbd5e1;
  display: block;
}

/* Lead Card */
.lead-card {
  background: #ffffff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--accent);
}

.lead-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--primary);
}

.lead-card-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: inherit;
  font-size: 16px; /* >= 16px to prevent iOS Safari auto-zoom */
  color: var(--text);
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

.form-control.is-invalid {
  border-color: var(--accent);
  background: #fffafa;
}

.field-error {
  display: none;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 4px;
}

.field-error.active {
  display: block;
}

.form-status-error {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.83rem;
  line-height: 1.45;
}

.form-status-error.active {
  display: block;
}

.form-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Sections */
.section {
  padding: 52px 0;
}

.section-alt {
  background: var(--surface);
}

.section-dark {
  background: var(--primary);
  color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 32px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-dark .section-eyebrow {
  color: #ff6b6b;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 0.96rem;
  color: var(--text-muted);
}

.section-dark .section-sub {
  color: #cbd5e1;
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-dark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 82, 82, 0.12);
  border: 1px solid rgba(255, 82, 82, 0.28);
  color: #ff5252;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.card-highlight {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

/* Comparison Box */
.compare-box {
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.compare-title {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .compare-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compare-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px;
}

.compare-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  margin-bottom: 5px;
}

.compare-item strong {
  display: block;
  font-size: 0.94rem;
  color: var(--accent);
}

.compare-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* USP Dark Cards */
.usp-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 20px;
}

.usp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.usp-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.usp-card p {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.usp-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: #ff5252;
  line-height: 1;
}

/* Case Study Cards */
.case-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.case-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.case-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.case-body p {
  font-size: 0.89rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.case-price {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* Material Banner */
.material-box {
  margin-top: 26px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-md);
}

@media (min-width: 840px) {
  .material-box {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.material-img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.material-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.material-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.material-content > p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.material-list {
  list-style: none;
  margin: 14px 0 18px;
  display: grid;
  gap: 8px;
}

.material-list li {
  font-size: 0.91rem;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}

.material-list li::before {
  content: '•';
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* Pricing Table -> Mobile Card Layout */
.price-table-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}

.price-table th {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-val {
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 639px) {
  .price-table thead {
    display: none;
  }
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td {
    display: block;
    width: 100%;
  }
  .price-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }
  .price-table tr:last-child {
    border-bottom: none;
  }
  .price-table td {
    padding: 4px 0;
    border: none;
  }
  .price-table td[data-label]::before {
    content: attr(data-label) ': ';
    font-weight: 600;
    color: var(--primary);
  }
  .price-table td.price-val {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
    font-size: 0.98rem;
  }
}

.price-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: center;
}

/* Process 5 steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

@media (min-width: 768px) {
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -15px;
    width: 15px;
    border-top: 2px dashed #cbd5e1;
  }
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
}

.step-time {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
}

.step-card h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.step-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 18px;
  text-align: left;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 18px 16px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  display: block;
}

/* Bottom CTA */
.cta-box {
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 860px) {
  .cta-box {
    padding: 40px;
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.45rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.cta-box p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  padding: 12px 18px;
  border-radius: 10px;
}

/* Footer */
.site-footer {
  background: #070a10;
  color: #94a3b8;
  padding: 26px 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

/* Floating & Mobile Sticky Call */
.desktop-float-call {
  display: none;
}

@media (min-width: 768px) {
  .desktop-float-call {
    display: inline-flex;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    background: var(--accent);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 12px 24px rgba(217, 0, 0, 0.36);
    align-items: center;
    gap: 8px;
  }
  .desktop-float-call:hover {
    background: var(--accent-hover);
  }
}

.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 8px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}

.mobile-sticky-bar .btn {
  padding: 10px 8px;
  font-size: 0.84rem;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* Modal QR Zalo */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 15, 23, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 26px 22px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-badge {
  display: inline-block;
  background: #ecfdf5;
  color: var(--success);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.modal-qr {
  margin: 10px auto 0;
  width: 170px;
  height: 170px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
}
