/* ===========================
   Main Site Styles
   =========================== */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f172a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Design --- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #7c3aed;
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --surface: #f8fafc;
  --border: #e2e8f0;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 16px rgba(37, 99, 235, .12), 0 2px 6px rgba(0, 0, 0, .06);
  --shadow-lg: 0 20px 50px rgba(37, 99, 235, .18), 0 8px 20px rgba(0, 0, 0, .08);
  --radius: 12px;
  --radius-lg: 20px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: .9375rem;
  border-radius: 10px;
  padding: 10px 22px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, .4);
}

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

.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.btn-white:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
}

.btn-white-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}

.btn-white-outline:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
  border-radius: 12px;
}

.store-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}

.header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 8px;
  transition: background .18s, color .18s;
}

.nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all .2s;
}

/* --- HERO --- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  background: linear-gradient(160deg, #eff6ff 0%, #fff 55%, #faf5ff 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, .12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8125rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 18px;
  letter-spacing: -.5px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.stat span {
  font-size: .8125rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Phone mockup stack */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Single combined hero image */
.hero-single-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 28px;
  filter: drop-shadow(0 28px 48px rgba(37, 99, 235, .22)) drop-shadow(0 8px 20px rgba(0, 0, 0, .12));
  transition: transform .35s ease, filter .35s ease;
}

.hero-single-img-wrap:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 36px 60px rgba(37, 99, 235, .28)) drop-shadow(0 10px 24px rgba(0, 0, 0, .14));
}

.hero-single-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 28px;
  display: block;
}

.phone-stack {
  position: relative;
  width: 380px;
  height: 500px;
}

.phone-card {
  position: absolute;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22), 0 8px 20px rgba(0, 0, 0, .10);
  transition: transform .35s ease;
}

.phone-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 36px;
}

/* Ảnh sau: ảnh 7 (hợp đồng), nằm phía sau bên trái, nghiêng trái */
.phone-back {
  width: 220px;
  height: 460px;
  top: 20px;
  left: 0;
  z-index: 1;
  transform: rotate(-6deg);
  filter: brightness(.88);
}

/* Ảnh trước: ảnh 6 (tổng quan), đè lên phân nửa ảnh sau, nghiêng phải nhẹ */
.phone-front {
  width: 230px;
  height: 480px;
  top: 10px;
  left: 130px;
  z-index: 2;
  transform: rotate(3deg);
  outline: 3px solid rgba(255, 255, 255, .55);
  outline-offset: -1px;
}

.phone-stack:hover .phone-front {
  transform: rotate(3deg) translateY(-10px) scale(1.03);
}

.phone-stack:hover .phone-back {
  transform: rotate(-9deg) translateX(-6px);
}

/* Hero wave */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
}

/* --- SECTION base --- */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8125rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  letter-spacing: -.3px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* --- FEATURES --- */
.features {
  background: var(--surface);
}

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

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 18px;
}

.icon-blue {
  background: #dbeafe;
}

.icon-purple {
  background: #ede9fe;
}

.icon-green {
  background: #dcfce7;
}

.icon-orange {
  background: #ffedd5;
}

.icon-teal {
  background: #ccfbf1;
}

.icon-rose {
  background: #ffe4e6;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- BENEFITS --- */
.benefits {
  background: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}


/* Dashboard mockup */
.benefit-mockup {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.red {
  background: #fc8181;
}

.mockup-dot.yellow {
  background: #f6e05e;
}

.mockup-dot.green {
  background: #68d391;
}

.mockup-title {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: auto;
}

.mockup-body {
  padding: 20px;
}

.mockup-stat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.mockup-stat-card {
  flex: 1;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}

.mockup-stat-card.blue {
  background: #dbeafe;
}

.mockup-stat-card.green {
  background: #dcfce7;
}

.mockup-stat-card.purple {
  background: #ede9fe;
}

.mockup-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.mockup-stat-lbl {
  font-size: .6875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mockup-chart {
  background: var(--surface);
  border-radius: 10px;
  padding: 14px;
}

.mockup-chart-title {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mockup-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.mockup-bar {
  flex: 1;
  background: #bfdbfe;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  transition: transform .2s;
}

.mockup-bar.active {
  background: var(--primary);
}

.mockup-bar span {
  font-size: .625rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.mockup-bar.active span {
  color: #fff;
}

/* Benefit list */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.benefit-item {
  display: flex;
  gap: 16px;
}

.benefit-check {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

/* --- APP SCREENS --- */
.app-screens {
  background: var(--surface);
}

.screens-row {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.screen-item {
  flex: 0 0 280px;
  text-align: center;
  transition: transform .25s ease;
}

.screen-item:hover {
  transform: translateY(-8px);
}

.screen-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255, 255, 255, .8);
  margin-bottom: 12px;
}

.screen-item p {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- CTA SECTION --- */
.cta-section {
  padding: 80px 0;
}

.cta-card {
  background: var(--gradient);
  border-radius: 24px;
  padding: 70px 48px;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 60px rgba(37, 99, 235, .3);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, .07);
  border-radius: 50%;
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 1.0625rem;
  opacity: .85;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
  background: #0f172a;
  color: #94a3b8;
}

.footer-inner {
  display: flex;
  gap: 60px;
  padding: 60px 24px 40px;
  align-items: flex-start;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  margin-top: 12px;
  font-size: .9rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
  margin-left: auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: .9rem;
  color: #94a3b8;
  transition: color .15s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 24px;
  text-align: center;
  font-size: .875rem;
}

.vlmt-link {
  color: #fff;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  text-decoration: none;
}

.vlmt-link:hover {
  color: #60a5fa;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.8);
  transform: scale(1.15) translateY(-1px);
}

.store-badge-link {
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
}

.store-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.store-badge {
  height: 48px;
  width: auto;
  display: block;
}

/* --- ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.fade-in.delay-1 {
  transition-delay: .12s;
}

.fade-in.delay-2 {
  transition-delay: .24s;
}

.fade-in.delay-3 {
  transition-delay: .36s;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
  }

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

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav.nav-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .screens-row {
    flex-direction: column;
    align-items: center;
  }

  .screen-item {
    flex: unset;
    width: 100%;
    max-width: 300px;
  }

  .phone-stack {
    width: 240px;
    height: 320px;
  }

  .phone-front {
    width: 190px;
    height: 310px;
  }

  .phone-back {
    width: 170px;
    height: 280px;
  }

  .footer-links {
    flex-direction: column;
    gap: 28px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
}