/* ============================================================
   VỰA AI MARKETING TEAM — LANDING PAGE
   Design System & Styles
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --bg: #070d1c;
  --surface: #0c1426;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #9aa7bd;
  --accent: #00e5ff;
  --accent-glow: 0 0 24px rgba(0, 229, 255, 0.4);
  --shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 99px;
  --transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  --grad-meta: linear-gradient(135deg, #0070f3, #06b6d4);
  --grad-brand: linear-gradient(135deg, #f59e0b, #f97316);
  --grad: linear-gradient(135deg, #00e5ff 0%, #0070f3 100%);

  /* --- Accent color tokens (previously missing — caused dull look) --- */
  --cyan: #22d3ee;
  --green: #2fd990;
  --red: #ff6b7d;
  --purple: #a78bfa;
  --amber: #fbbf24;
  --grad-purple: linear-gradient(135deg, #a78bfa, #818cf8);
  --grad-green: linear-gradient(135deg, #2fd990, #06b6d4);
  --grad-cta: linear-gradient(135deg, #06b6d4 0%, #3b82f6 55%, #6366f1 100%);
  --glow-cyan: 0 0 0 1px rgba(34, 211, 238, .25), 0 12px 32px -8px rgba(34, 211, 238, .45);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 0%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  mask-image: radial-gradient(circle at 50% 50%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 10%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

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

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

ul {
  list-style: none;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* --- Typography --- */
h1 {
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 900;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 800;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

p {
  color: var(--muted);
  margin: 8px 0;
}

.grad {
  color: var(--accent);
}

.text-meta {
  background: var(--grad-meta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.text-brand {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-title {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 40px;
}

.kicker {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.kicker::before,
.kicker::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--cyan);
  opacity: .4;
}

.section-title p {
  font-size: 17px;
  max-width: 640px;
  margin: 12px auto 0;
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: 24px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-grid .card {
  height: 100%;
}

.bento-grid .bento-large {
  grid-column: span 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.bento-grid .bento-large .icon {
  font-size: 64px;
  margin-bottom: 0;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid .bento-large {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid .bento-large {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
  .bento-grid .bento-large .icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #EDEDED;
  color: #000000 !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  border: 0;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: #ffffff;
}

.btn:active {
  transform: scale(0.98);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ededed !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

.btn.btn-full {
  width: 100%;
}

.btn.btn-outline {
  background: transparent;
  color: #ededed !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.btn.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

/* --- Navigation --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: var(--transition);
}

.topbar.scrolled {
  background: rgba(5, 5, 5, .95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.03em;
  flex-shrink: 0;
}

.logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, .15);
  color: var(--text);
  font-size: 20px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(40, 225, 255, .08), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(40, 225, 255, .08);
  border: 1px solid rgba(40, 225, 255, .25);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: #d6fbff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 20px;
  animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(40, 225, 255, .25); }
  50% { border-color: rgba(40, 225, 255, .5); }
}

h1 {
  margin-bottom: 20px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* --- Hero Metrics Bar --- */
.hero-metrics-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 24px 0;
  margin-top: 40px;
}

.metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-item b {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.metric-item span {
  font-size: 14px;
  color: var(--muted);
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--line);
}

@media (max-width: 768px) {
  .metric-divider {
    display: none;
  }
  .metrics-row {
    flex-direction: column;
    align-items: flex-start;
  }
}



.hero-img {
  position: relative;
}

.hero-img img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(6, 182, 212, 0.15);
  animation: float-img 6s ease-in-out infinite;
  transition: var(--transition);
}

@keyframes float-img {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero-img:hover img {
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 100px rgba(6, 182, 212, 0.3);
}

.float {
  position: absolute;
  left: -32px;
  bottom: 28px;
  background: rgba(15, 15, 15, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: none;
  max-width: 280px;
  animation: float-card 8s ease-in-out infinite reverse;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float b {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.float span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* --- Cards --- */
.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--card-hover);
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
  transition: var(--transition);
}

.card:hover .icon {
  background: rgba(255, 255, 255, 0.08);
}

.card ul {
  margin-top: 14px;
  padding-left: 0;
}

.card li {
  color: var(--muted);
  margin: 10px 0;
  padding-left: 22px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
}

.card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}

.card li strong {
  color: var(--text);
}

/* --- Split Layout --- */
.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.split img:hover {
  transform: scale(1.02);
}

/* --- Quote --- */
.quote {
  font-size: 18px;
  font-weight: 700;
  color: #effcff;
  background: rgba(40, 225, 255, .06);
  border-left: 4px solid var(--cyan);
  padding: 22px 26px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  line-height: 1.7;
}

.solution-list {
  margin-top: 20px;
}

.solution-list li {
  color: var(--muted);
  margin: 12px 0;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
}

.solution-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.solution-list li strong {
  color: var(--text);
}

/* --- Process Steps --- */
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  color: #061426;
  margin-bottom: 18px;
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad);
  opacity: .15;
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: .15; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: linear-gradient(180deg, rgba(19, 43, 71, .95), rgba(10, 25, 44, .95));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Featured pricing card */
.price-card.featured {
  border-color: rgba(39, 217, 144, .4);
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow), 0 0 60px rgba(39, 217, 144, .12);
  z-index: 2;
}

.price-card.featured:hover {
  transform: translateY(-16px) scale(1.02);
}

.price-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
}

.popular-badge {
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--grad-brand);
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 40px;
  transform: rotate(45deg);
  letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  margin-bottom: 12px;
}

.pill-green {
  background: rgba(39, 217, 144, .12);
  color: #aaf7d9;
}

.pill-blue {
  background: rgba(47, 156, 255, .12);
  color: #a4d4ff;
}

.pill-purple {
  background: rgba(167, 139, 250, .12);
  color: #d4c5ff;
}

.pill-amber {
  background: rgba(255, 204, 102, .12);
  color: #ffe6a0;
}

.price-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.price {
  font-size: 44px;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin: 8px 0 2px;
}

.price-period {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.price-card .divider {
  height: 1px;
  background: rgba(255, 255, 255, .08);
  margin: 18px 0;
}

.price-card ul {
  margin: 0;
}

.price-card li {
  font-size: 14px;
  line-height: 1.55;
}

.price-card .btn {
  margin-top: auto;
  padding-top: 15px;
}

.price-card ul {
  flex: 1;
}

.price-card > a.btn {
  margin-top: auto;
  flex-shrink: 0;
}

/* Card note for visual balance */
.card-note {
  margin-top: 18px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(47, 156, 255, .06), rgba(40, 225, 255, .04));
  border: 1px dashed rgba(47, 156, 255, .18);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.65;
}

.card-note.purple {
  background: linear-gradient(135deg, rgba(167, 139, 250, .06), rgba(129, 140, 248, .04));
  border-color: rgba(167, 139, 250, .18);
}

.card-note strong {
  color: var(--cyan);
}

.card-note.purple strong {
  color: var(--purple);
}

/* --- Long-term Benefits Section (standalone) --- */
.benefits-section {
  position: relative;
}

.benefits-highlight {
  background: linear-gradient(135deg, rgba(39, 217, 144, .07), rgba(40, 225, 255, .04));
  border: 1px solid rgba(39, 217, 144, .18);
  border-radius: 28px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.benefits-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--green));
}

.benefits-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(39, 217, 144, .1);
  border: 1px solid rgba(39, 217, 144, .25);
  padding: 8px 18px;
  border-radius: 999px;
  color: #aaf7d9;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.benefits-highlight h2 {
  margin: 12px 0 6px;
}

.benefits-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  transition: var(--transition);
}

.benefit-item:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(39, 217, 144, .2);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.08);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.benefit-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.benefit-text p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* Contact sale card */
.price-card.enterprise {
  border-color: rgba(167, 139, 250, .3);
  background: linear-gradient(180deg, rgba(30, 28, 60, .9), rgba(15, 15, 40, .9));
}

.price-contact {
  font-size: 28px;
  font-weight: 900;
  background: var(--grad-purple);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 12px 0 4px;
}

/* --- Custom Add-on Banner --- */
.custom-banner {
  grid-column: 1 / -1;
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.custom-banner:hover {
  border-color: rgba(40, 225, 255, .2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.custom-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #A78BFA, #818CF8, #2FD990, #A78BFA);
  background-size: 200% 100%;
  animation: bg-shift 4s linear infinite;
}

.custom-banner-left h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.custom-banner-left p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.custom-banner-left p strong {
  color: var(--cyan);
}

.custom-banner-link {
  display: inline-flex;
  align-items: center;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.custom-banner-link:hover {
  color: #fff;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .custom-banner {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
}

/* --- Comparison --- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-card {
  padding: 32px;
}

.compare-card.danger {
  border-color: rgba(255, 107, 125, .3);
}

.compare-card.danger h3 {
  color: var(--red);
}

.compare-card.danger li::before {
  content: '✗';
  color: var(--red);
}

.compare-card.success {
  border-color: rgba(39, 217, 144, .3);
}

.compare-card.success h3 {
  color: var(--green);
}

.compare-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

/* --- FAQ --- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-item {
  background: linear-gradient(180deg, rgba(19, 43, 71, .8), rgba(10, 25, 44, .8));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(40, 225, 255, .15);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
  user-select: none;
}

.faq-question h3 {
  font-size: 15px;
  margin-bottom: 0;
  flex: 1;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(40, 225, 255, .1);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--cyan);
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  background: rgba(40, 225, 255, .2);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
}

.faq-answer-inner {
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* --- CTA --- */
.cta-box {
  background:
    linear-gradient(135deg, rgba(47, 156, 255, .15), rgba(39, 217, 144, .1)),
    rgba(15, 34, 56, .6);
  border: 1px solid rgba(40, 225, 255, .18);
  border-radius: 32px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(40, 225, 255, .05), transparent, rgba(39, 217, 144, .05), transparent);
  animation: cta-rotate 12s linear infinite;
  pointer-events: none;
}

@keyframes cta-rotate {
  to { transform: rotate(360deg); }
}

.cta-box h2 {
  position: relative;
}

.cta-box p {
  position: relative;
  font-size: 17px;
  max-width: 540px;
  margin: 14px auto 0;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  position: relative;
  flex-wrap: wrap;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  text-align: center;
}

footer p {
  font-size: 14px;
  color: var(--muted);
}

footer strong {
  color: var(--text);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* --- Shimmer effect on featured card --- */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50% { left: 200%; }
  100% { left: 200%; }
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(6, 20, 38, .98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-10px);
  opacity: 0;
  transition: var(--transition);
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .addon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-card.featured {
    transform: translateY(-8px) scale(1);
  }
}

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-grid,
  .split,
  .grid-2,
  .grid-3,
  .grid-4,
  .metrics,
  .compare-grid,
  .faq-grid,
  .pricing-grid,
  .addon-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .float {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }

  .price-card.featured {
    transform: none;
  }

  .price-card.featured:hover {
    transform: translateY(-4px);
  }

  .popular-badge {
    display: none;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  .price {
    font-size: 36px;
  }

  .cta-box {
    padding: 36px 24px;
    border-radius: var(--radius);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .card {
    padding: 22px 18px;
  }

  .price-card {
    padding: 26px 20px;
  }
}

/* ====== CALCULATOR MODAL ====== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #11111a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(90deg);
}

.calc-header {
  padding: 32px 32px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.calc-header h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.calc-header p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.calc-body {
  padding: 24px 32px;
}

.calc-section {
  margin-bottom: 24px;
}

.calc-section:last-child {
  margin-bottom: 0;
}

.calc-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #e2e8f0;
}

.calc-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calc-section-title h4 {
  margin-bottom: 0;
}

.calc-section-title .badge {
  background: rgba(40, 225, 255, 0.1);
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.calc-base-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-base-label {
  cursor: pointer;
}

.calc-base-label input {
  display: none;
}

.calc-base-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}

.calc-base-label input:checked + .calc-base-card {
  border-color: var(--cyan);
  background: rgba(40, 225, 255, 0.05);
  box-shadow: 0 0 0 1px var(--cyan);
}

.plan-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.calc-base-label input:checked + .calc-base-card .plan-name {
  color: #fff;
}

.plan-price {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.calc-base-label input:checked + .calc-base-card .plan-price {
  color: var(--cyan);
}

.calc-addons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.calc-addon-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-addon-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.08);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.calc-addon-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.calc-addon-text p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.calc-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ctrl-btn {
  width: 28px; height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.ctrl-btn:hover {
  background: var(--cyan);
  color: #000;
}

.ctrl-val {
  font-size: 15px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.calc-footer {
  padding: 24px 32px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0 0 20px 20px;
}

.calc-total-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calc-total-wrap span {
  font-size: 15px;
  color: var(--muted);
}

.calc-total-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--green);
}

@media (max-width: 600px) {
  .calc-header, .calc-body, .calc-footer {
    padding: 20px;
  }
  .calc-base-options {
    grid-template-columns: 1fr;
  }
  .calc-addon-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .calc-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* --- Contact Modal --- */
.contact-content {
  max-width: 480px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.08);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-item p {
  margin: 0;
  font-size: 14px;
  color: var(--cyan);
}

/* ============================================================
   ✦ ENHANCEMENTS v2 — "Thổi hồn" giao diện
   Nền động · CTA phát sáng · hover sống động · vi tương tác
   ============================================================ */

/* --- 1. Animated aurora background (thay nền tĩnh) --- */
body::before {
  background-image:
    radial-gradient(circle at 12% -5%, rgba(34, 211, 238, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 88% 5%, rgba(59, 130, 246, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(167, 139, 250, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 85%, rgba(245, 158, 11, 0.08) 0%, transparent 55%);
  background-size: 200% 200%;
  animation: aurora-drift 22s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 50% 100%; }
}

/* Glow “nhơi thở” tỏa quanh hero */
.hero::before {
  background: radial-gradient(circle, rgba(34, 225, 255, .14), transparent 70%);
  animation: hero-breathe 7s ease-in-out infinite;
}

@keyframes hero-breathe {
  0%, 100% { opacity: .55; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

/* --- 2. Gradient chữ thương hiệu chuyển động nhẹ --- */
.text-brand, .text-meta {
  background-size: 200% auto;
  animation: text-shine 5s linear infinite;
}

@keyframes text-shine {
  to { background-position: 200% center; }
}

/* --- 3. CTA chính: gradient phát sáng + ánh sáng quét --- */
.btn:not(.secondary):not(.btn-outline) {
  background: var(--grad-cta);
  background-size: 180% auto;
  color: #ffffff !important;
  box-shadow: 0 8px 24px -6px rgba(59, 130, 246, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  position: relative;
  overflow: hidden;
  transition: background-position .5s ease, transform .25s ease, box-shadow .3s ease;
}

.btn:not(.secondary):not(.btn-outline)::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
}

.btn:not(.secondary):not(.btn-outline):hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -6px rgba(59, 130, 246, .7), 0 0 22px rgba(34, 211, 238, .4);
}

.btn:not(.secondary):not(.btn-outline):hover::after { left: 130%; }

/* --- 4. Card: viền sáng gradient khi hover + nhấc nhẹ --- */
.card {
  transition: var(--transition), transform .3s ease, box-shadow .35s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .5), transparent 40%, transparent 60%, rgba(167, 139, 250, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .85), 0 0 28px -8px rgba(34, 211, 238, .25);
}

.card:hover::before { opacity: 1; }

/* Icon bừng sáng khi hover card */
.card:hover .icon {
  background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(99, 102, 241, .12));
  border-color: rgba(34, 211, 238, .35);
  box-shadow: 0 0 18px -4px rgba(34, 211, 238, .5);
  transform: translateY(-2px) scale(1.05);
}

/* --- 5. Tiêu đề section: ánh sáng tinh tế --- */
.section-title h2 { text-shadow: 0 2px 30px rgba(34, 211, 238, .12); }

/* --- 6. Metrics: số gradient + tách dòng sống động --- */
.metric-item b {
  background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.02em;
}

.metric-item { transition: transform .3s ease; }
.metric-item:hover { transform: translateY(-3px); }

/* --- 7. Badge hero: nền sống động hơn --- */
.badge {
  background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(99, 102, 241, .1));
  box-shadow: 0 0 22px -6px rgba(34, 211, 238, .4);
}

/* --- 8. Fix chữ “Contact Sale” (gradient tím) --- */
.price-contact {
  background: var(--grad-purple);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- 9. FAQ toggle & list pop nhẹ --- */
.faq-item.active {
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .25), 0 14px 30px -16px rgba(34, 211, 238, .4);
}

/* --- 10. Pricing featured: viền sáng chạy --- */
.price-card.featured::before {
  background: linear-gradient(90deg, #22d3ee, #6366f1, #2fd990, #22d3ee);
  background-size: 300% 100%;
  animation: bg-shift 5s linear infinite;
}

@keyframes bg-shift {
  to { background-position: 300% 0; }
}

.price-card.featured {
  box-shadow: var(--shadow), 0 0 70px -10px rgba(34, 211, 238, .25);
}

/* --- 11. Thanh tiến trình cuộn (đầu trang) --- */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #22d3ee, #6366f1, #2fd990);
  box-shadow: 0 0 12px rgba(34, 211, 238, .6);
  z-index: 200;
  transition: width .1s linear;
}

/* --- 12. Nút back-to-top --- */
#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, .35);
  background: rgba(10, 18, 32, .8);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  z-index: 150;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .7);
}

#backToTop.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#backToTop:hover {
  background: var(--grad-cta);
  border-color: transparent;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 24px rgba(34, 211, 238, .5);
}

/* --- 13. Logo glow nhẹ --- */
.logo span { filter: drop-shadow(0 0 10px rgba(34, 211, 238, .35)); }

/* --- 14. Hình hero: viền sáng hơn --- */
.hero-img img {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 90px -10px rgba(34, 211, 238, 0.28);
}

/* --- 15. Link nav: gạch chân gradient khi hover --- */
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* --- 15b. Glow theo con trỏ chuột trên card --- */
.card, .benefit-item { --mx: 50%; --my: 50%; }
.benefit-item { position: relative; overflow: hidden; }

.card::after,
.benefit-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(34, 211, 238, .12), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 0;
}

.card:hover::after,
.benefit-item:hover::after { opacity: 1; }

.card > *,
.benefit-item > * { position: relative; z-index: 1; }

/* --- 16. Tôn trọng người dùng tắt hiệu ứng chuyển động --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   ✦ 17. KHÓA TRÀN NGANG TRÊN MOBILE (no horizontal scroll)
   ============================================================ */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Không phần tử nào được rộng quá khung hình */
img, video, svg, iframe { max-width: 100%; height: auto; }

/* Lưới quà tặng: cột co được, không ép 300px gây tràn */
.benefits-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* Cho phép các item flex/grid co lại thay vì đẩy tràn */
.metrics-row, .hero-actions, .cta-actions,
.card, .price-card, .faq-item, .benefit-item,
.bento-grid .bento-large { min-width: 0; }

.bento-grid .bento-large > div,
.card > div { min-width: 0; }

@media (max-width: 768px) {
  .benefits-grid { grid-template-columns: 1fr; gap: 12px; }
  .benefits-highlight { padding: 28px 20px; border-radius: 20px; }
  .cta-box { padding: 36px 20px; }
  .quote { padding: 18px 18px; word-break: break-word; }

  /* Glow/quầng sáng lớn không tạo thanh cuộn ngang */
  .hero::before { max-width: 100vw; }
  .cta-box::before { width: 150%; height: 150%; top: -25%; left: -25%; }

  /* Badge “PHỔ BIẾN” xoay không thò ra ngoài */
  .price-card { overflow: hidden; }

  /* Nút back-to-top sát mép hơn trên mobile */
  #backToTop { right: 16px; bottom: 16px; width: 44px; height: 44px; }

  /* Modal vừa khít, chừa lề 2 bên */
  .modal-content { width: calc(100% - 32px); }
}

/* Wrap chữ dài (email, số…) không phá khung */
.contact-item p, .benefit-text p, .card p { overflow-wrap: anywhere; }

/* ============================================================
   ✦ ELEVATE v3 — PREMIUM POLISH
   Áp dụng nguyên tắc canvas-design: khoảng thở, phân cấp,
   typography tinh tế, bề mặt sang trọng, grain texture.
   ============================================================ */

/* --- A. Typography tinh tế & nhất quán --- */
body {
  font-feature-settings: "cv11" 1, "ss01" 1, "calt" 1;
  letter-spacing: -0.011em;
}
h1, h2, h3,
.section-title h2,
.price-card h3,
.cta-box h2 { text-wrap: balance; }

.lead, .section-title p, .cta-box p { text-wrap: pretty; }

/* Số liệu dùng tabular-nums cho thẳng hàng, cao cấp */
.price, .calc-total-price, .metric-item b,
.plan-price, .price-contact { font-variant-numeric: tabular-nums; }

/* Lead nhẹ nhàng, sang hơn */
.lead { font-weight: 400; color: #aeb9cb; }

/* --- B. Khoảng thở (negative space) theo nhịp chuẩn --- */
section { padding: 104px 0; }
.section-title { margin-bottom: 56px; }
.section-title p { font-size: 17.5px; line-height: 1.7; }

@media (max-width: 768px) {
  section { padding: 66px 0; }
  .section-title { margin-bottom: 36px; }
}

/* Hairline gradient ngăn cách giữa các khối — chi tiết thủ công */
#problems, #advantages, #solution, #process,
#pricing, #compare, #faq {
  position: relative;
}
#advantages::before, #solution::before, #process::before,
#pricing::before, #compare::before, #faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
}

/* --- C. Bề mặt sang trọng: hairline + đổ bóng mềm (bớt neon) --- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .013));
  border-color: rgba(255, 255, 255, .07);
}
.card:hover {
  box-shadow:
    0 30px 60px -32px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(34, 211, 238, .16),
    0 0 30px -10px rgba(34, 211, 238, .18);
}

/* Hình hero: bóng điện ảnh, viền hairline tinh tế */
.hero-img img {
  box-shadow:
    0 50px 90px -40px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(255, 255, 255, .06),
    0 0 130px -50px rgba(34, 211, 238, .22);
}

/* Pricing & FAQ: nền sâu, tinh tế hơn */
.price-card {
  background: linear-gradient(180deg, rgba(22, 34, 56, .9), rgba(11, 19, 35, .92));
}
.price-card.featured {
  box-shadow: var(--shadow), 0 0 80px -24px rgba(34, 211, 238, .3);
}

/* --- D. Nút bấm: tinh chỉnh chữ, bo nhẹ chuyển động --- */
.btn { letter-spacing: .01em; font-weight: 650; }
.btn.btn-lg { padding: 17px 34px; }

/* --- E. CTA box: trầm & sang hơn --- */
.cta-box {
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(34, 211, 238, .12), transparent 60%),
    linear-gradient(180deg, rgba(17, 28, 48, .8), rgba(11, 18, 33, .85));
  border-color: rgba(255, 255, 255, .1);
}

/* --- F. Logo hình ảnh & kicker: tinh tế --- */
.kicker { letter-spacing: .18em; opacity: .96; }

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: transform .3s ease, filter .3s ease;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(34, 211, 238, .25));
}
.logo:hover { transform: translateY(-1px); }
.logo:hover img { filter: drop-shadow(0 3px 16px rgba(34, 211, 238, .45)); }

@media (max-width: 768px) {
  .logo img { height: 38px; }
}

/* Logo trong footer */
.footer-logo {
  height: 56px;
  width: auto;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 3px 14px rgba(34, 211, 238, .22));
}

@media (max-width: 768px) {
  .footer-logo { height: 46px; }
}

/* --- G0. Canvas Particle Network (mạng lưới hạt liên kết) --- */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;            /* nằm sau nội dung, trên nền tối */
  pointer-events: none;   /* không chặn click/scroll */
  display: block;
}

/* Làm lưới ô vuông mờ hơn để hạt nổi bật hơn */
body::after { opacity: .6; }

/* --- G. Lớp grain texture (đặc trưng web cao cấp) --- */
#grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* --- H. Cuộn mượt + chọn vùng văn bản theo brand --- */
::selection { background: rgba(34, 211, 238, .28); color: #fff; }

/* ============================================================
   ✦ BẢNG GIÁ 2026 — giá gạch, ưu đãi, Enterprise band
   ============================================================ */

/* Giá gạch (neo giá tâm lý) */
.was {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 120, 120, .85);
  text-decoration-thickness: 2px;
  margin: 6px 0 -2px;
  font-variant-numeric: tabular-nums;
}

/* Badge ưu đãi đăng ký 3 tháng */
.deal {
  display: inline-block;
  background: linear-gradient(135deg, rgba(251, 191, 36, .16), rgba(249, 115, 22, .1));
  border: 1px solid rgba(251, 191, 36, .42);
  color: #ffe6a0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  padding: 7px 13px;
  border-radius: 10px;
  margin: 4px 0 2px;
}

/* Enterprise band — full width dưới 4 gói */
.enterprise-band {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 32px;
  border-radius: 18px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(167, 139, 250, .14), transparent 60%),
    linear-gradient(180deg, rgba(30, 28, 60, .78), rgba(15, 15, 40, .82));
  border: 1px solid rgba(167, 139, 250, .3);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.enterprise-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a78bfa, #818cf8, #22d3ee, #a78bfa);
  background-size: 300% 100%;
  animation: bg-shift 6s linear infinite;
}

.enterprise-band:hover {
  border-color: rgba(167, 139, 250, .5);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9), 0 0 40px -14px rgba(167, 139, 250, .3);
}

.eb-left h3 { font-size: 21px; font-weight: 800; margin: 8px 0 6px; }
.eb-left p { font-size: 14.5px; color: var(--muted); margin: 0; max-width: 720px; }
.eb-left p strong { color: var(--text); }

.eb-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.eb-price {
  font-size: 24px;
  font-weight: 900;
  background: var(--grad-purple);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .enterprise-band { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 20px; }
  .eb-right { align-items: stretch; width: 100%; }
  .eb-right .btn { width: 100%; }
}

/* Giá tiền trong bảng so sánh in-house */
.compare-card li b {
  color: var(--amber);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Dòng tổng chi phí */
.compare-total {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, .16);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.compare-total strong {
  font-size: 21px;
  color: #ff8f9c;
  font-variant-numeric: tabular-nums;
}
.compare-total.green strong { color: var(--green); }
.compare-total span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.55;
}

/* Ghi chú điều khoản dưới bảng giá */
.pricing-terms {
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  text-align: center;
}
.pricing-terms strong { color: var(--text); }

/* --- I. Tinh chỉnh reveal: easing điện ảnh, dịch nhẹ hơn --- */
.reveal {
  transform: translateY(24px);
  transition:
    opacity .9s cubic-bezier(.16, 1, .3, 1),
    transform .9s cubic-bezier(.16, 1, .3, 1);
}
