/* ==========================================================================
   DLS - LANDING PAGE STYLESHEET (MODERN GOVTECH THEME)
   Tuân thủ Nghị định 185/2026/NĐ-CP & Tiêu chuẩn Trải nghiệm số cơ sở
   ========================================================================== */

:root {
  /* Core Palette */
  --blue-primary: #1D5FD1;
  --blue-hover: #154BB0;
  --blue-dark: #0B1728;
  --blue-deep: #070E1A;
  --blue-soft: #EEF4FF;
  --blue-border: #BCD5FF;

  --gold: #F2B01E;
  --gold-hover: #DFA015;
  --gold-soft: #FEF7E8;
  --gold-glow: rgba(242, 176, 30, 0.4);

  --red: #D32F2F;
  --red-dark: #B71C1C;
  --red-soft: #FDE8E8;

  --green: #15803D;
  --green-soft: #DCFCE7;
  --green-glow: rgba(21, 128, 61, 0.3);

  --paper: #F6F8FC;
  --card: #FFFFFF;
  --card-elevated: #FFFFFF;
  --card-border: #E2E8F0;
  --ink: #0F172A;
  --ink-muted: #475569;
  --ink-light: #64748B;
  --border: #CBD5E1;

  --nav-bg: rgba(11, 23, 40, 0.88);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.15), 0 10px 15px -8px rgba(15, 23, 42, 0.08);
  --shadow-neo: 4px 4px 0 var(--ink);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  --blue-soft: #142540;
  --paper: #080E18;
  --card: #0F1B2C;
  --card-elevated: #15243B;
  --card-border: #1E3352;
  --ink: #F8FAFC;
  --ink-muted: #94A3B8;
  --ink-light: #64748B;
  --border: #223A5E;
  --nav-bg: rgba(8, 14, 24, 0.92);
  --glass-bg: rgba(15, 27, 44, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-neo: 4px 4px 0 #000;
}

/* Default theme is crisp, bright daylight GovTech */


/* ==========================================================================
   Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: "Bricolage Grotesque", "Be Vietnam Pro", sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: #10243E;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-sm {
  max-width: 900px;
}

section {
  padding: 80px 0;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-soft);
  color: var(--blue-primary);
  border: 1px solid var(--blue-border);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

:root[data-theme="dark"] .section-tag {
  background: rgba(29, 95, 209, 0.2);
  color: #93C5FD;
  border-color: rgba(29, 95, 209, 0.4);
}

.section-title {
  margin-bottom: 14px;
}

@media (min-width: 769px) {
  #bai-toan .section-head,
  #gia-tri .section-head {
    max-width: none;
  }

  #bai-toan .section-title,
  #gia-tri .section-title {
    font-size: clamp(1.5rem, 3.1vw, 2.7rem);
    white-space: nowrap;
  }

  #bai-toan .section-desc,
  #gia-tri .section-desc {
    max-width: 760px;
    margin-inline: auto;
  }
}

.section-desc {
  font-size: 1.12rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: var(--gold);
  color: #0F172A;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -3px rgba(15, 23, 42, 0.18);
  background: #FBBF24;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.14);
}

.btn-primary {
  background: linear-gradient(135deg, #1D5FD1 0%, #0B2F6B 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px -2px rgba(29, 95, 209, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563EB 0%, #15459E 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px -3px rgba(29, 95, 209, 0.55);
}

.btn-red {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px -2px rgba(239, 68, 68, 0.35);
}

.btn-red:hover {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  box-shadow: 0 8px 22px -3px rgba(239, 68, 68, 0.5);
}

.btn-white {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.btn-white:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.88rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.btn-sm:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.btn-pill {
  border-radius: 999px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(242, 176, 30, 0.4);
  color: #FFFFFF;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px;
}

/* Brand Lockup */
.brand-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.brand-sub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.brand-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

/* Desktop Segmented Navigation Bar - 100% Horizontal & Perfectly Aligned */
.nav-links {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
  list-style: none;
  margin: 0;
  height: 42px;
  box-sizing: border-box;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 11px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #CBD5E1;
  text-decoration: none;
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1;
  position: relative;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

/* Header Actions Toolbar */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}


/* CTA Buttons */
.nav-btn-demo,
.nav-btn-login {
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.nav-btn-demo {
  padding: 0 15px !important;
  font-size: 0.88rem !important;
}

.nav-btn-login {
  padding: 0 13px !important;
  font-size: 0.88rem !important;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 1200px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .nav-btn-demo {
    display: none !important;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--blue-dark);
  z-index: 99;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-110%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-bottom: 4px solid var(--gold);
}

.mobile-drawer.is-open {
  transform: translateY(0);
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover {
  background: var(--blue-primary);
  color: #FFFFFF;
}

/* ==========================================================================
   LED Notice Ticker
   ========================================================================== */
.led-ticker {
  background: #02040A;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 2px solid var(--gold);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  box-shadow: inset 0 0 30px rgba(242, 176, 30, 0.12);
  z-index: 10;
}

.led-ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.7) 60%) 0 0 / 4px 4px;
  z-index: 1;
}

.led-live-tag {
  flex: none;
  position: relative;
  z-index: 2;
  background: var(--red);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 7px 12px;
  margin-left: 14px;
  border: 1.5px solid #FFFFFF;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  animation: pulse-live 1.2s infinite ease-in-out;
}

@keyframes pulse-live {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.8);
  }
}

.led-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 10px 0;
}

.led-track {
  display: inline-block;
  white-space: nowrap;
  color: #FFC93C;
  text-shadow: 0 0 6px #F2B01E, 0 0 16px rgba(242, 176, 30, 0.5);
  animation: marquee-run 42s linear infinite;
  will-change: transform;
}

.led-ticker.is-paused .led-track {
  animation-play-state: paused;
}

.led-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 36px;
}

.led-badge {
  background: rgba(242, 176, 30, 0.2);
  border: 1px solid var(--gold);
  color: #FFD27A;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.8rem;
}

.led-ctrl-btn {
  flex: none;
  position: relative;
  z-index: 2;
  background: var(--gold);
  color: #0F172A;
  border: 0;
  border-left: 1px solid rgba(15, 23, 42, 0.2);
  padding: 9px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}

.led-ctrl-btn:hover {
  background: #FFD27A;
}

@keyframes marquee-run {
  from {
    transform: translateX(100vw);
  }

  to {
    transform: translateX(-100%);
  }
}

/* ==========================================================================
   Hero Section - Modern Daylight Village Panoramic Banner
   ========================================================================== */
.hero-section {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: #E2F0FD;
  background-image:
    linear-gradient(90deg, #E2F0FD 0%, #EAF3FD 35%, rgba(234, 243, 253, 0.9) 48%, rgba(234, 243, 253, 0.25) 66%, rgba(234, 243, 253, 0) 82%),
    url('../images/bg/nen-1.jpg');
  background-position: center center, right 20%;
  background-size: 100% 100%, cover;
  background-repeat: no-repeat;
  color: #0F172A;
  padding: 42px 0 32px;
  overflow: hidden;
}

#hero-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  box-sizing: border-box;
}

:root[data-theme="dark"] .hero-section {
  background-color: #071224;
  background-image:
    linear-gradient(90deg, #071224 0%, #0B1C38 38%, rgba(11, 28, 56, 0.92) 50%, rgba(11, 28, 56, 0.3) 70%, rgba(11, 28, 56, 0) 85%),
    url('../images/bg/hoang-hon.jpg');
  background-position: center center, right 20%;
  background-size: 100% 100%, cover;
  color: #FFFFFF;
}

/* Calligraphy Slogan on Top-Right */
.hero-corner-slogan {
  position: absolute;
  top: 6px;
  right: 20px;
  text-align: center;
  z-index: 10;
  pointer-events: none;
  font-family: 'Dancing Script', cursive;
  line-height: 1.25;
  color: #0E509E;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  filter: drop-shadow(0 2px 6px rgba(14, 80, 158, 0.15));
}

.hero-corner-slogan .slogan-line-1,
.hero-corner-slogan .slogan-line-2 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hero-corner-slogan .slogan-underline {
  width: 175px;
  height: 14px;
  margin-top: -2px;
  filter: drop-shadow(0 2px 3px rgba(245, 158, 11, 0.45));
}

:root[data-theme="dark"] .hero-corner-slogan {
  color: #93C5FD;
}

/* Bottom-Left Fresh Green Leaves Accent */
.hero-deco-leaves {
  position: absolute;
  bottom: -6px;
  left: 0;
  z-index: 6;
  pointer-events: none;
  line-height: 0;
}

.hero-deco-leaves svg {
  width: 125px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(22, 163, 74, 0.28));
}

/* Bottom-Right Flowing Blue Ribbon Waves */
.hero-deco-waves {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 440px;
  height: 190px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
}

.hero-deco-waves svg {
  width: 100%;
  height: 100%;
}

/* Hero Content Grid & Card */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 680px);
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 4;
}

.hero-content-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Greeting Pill */
.hero-greeting-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF7ED;
  border: 1.5px solid #FDE68A;
  color: #1E293B;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 7px 18px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-greeting-pill .greeting-icon {
  font-size: 1.15rem;
  display: inline-block;
  transform: rotate(-10deg);
}

.hero-greeting-pill .greeting-sparkle {
  font-size: 0.95rem;
}

:root[data-theme="dark"] .hero-greeting-pill {
  background: rgba(254, 243, 199, 0.12);
  border-color: rgba(253, 230, 138, 0.35);
  color: #FEF3C7;
}

/* Hero Title */
.hero-title {
  margin: 0 0 18px;
  font-family: 'Bricolage Grotesque', 'Be Vietnam Pro', sans-serif;
  font-size: clamp(2.3rem, 4.4vw, 3.45rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  display: flex;
  flex-direction: column;
}

.hero-title .title-lead {
  color: #0A3771;
}

.hero-title .title-sub {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.hero-title .text-blue {
  color: #0062D2;
}

.hero-title .text-orange {
  color: #EA580C;
}

:root[data-theme="dark"] .hero-title .title-lead {
  color: #FFFFFF;
}

:root[data-theme="dark"] .hero-title .text-blue {
  color: #60A5FA;
}

:root[data-theme="dark"] .hero-title .text-orange {
  color: #FB923C;
}

/* Hero Description */
.hero-desc {
  font-size: 1.06rem;
  line-height: 1.68;
  color: #374151;
  max-width: 610px;
  margin: 0 0 28px;
  font-weight: 450;
}

:root[data-theme="dark"] .hero-desc {
  color: #CBD5E1;
}

/* Hero Action CTA Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.btn-hero-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0066D6 0%, #0052B3 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 12px 28px;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 8px 22px rgba(0, 102, 214, 0.36);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-hero-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 102, 214, 0.48);
  background: linear-gradient(135deg, #0275EE 0%, #005BC5 100%);
}

.btn-hero-login .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-hero-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  color: #0A3771 !important;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 26px;
  border-radius: 9999px;
  border: 1.5px solid #BFDBFE;
  box-shadow: 0 4px 16px rgba(10, 55, 113, 0.07);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-hero-explore:hover {
  transform: translateY(-2px);
  border-color: #60A5FA;
  box-shadow: 0 8px 22px rgba(0, 102, 214, 0.14);
  color: #0062D2 !important;
}

.btn-hero-explore .btn-icon-calendar,
.btn-hero-explore .btn-icon-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

:root[data-theme="dark"] .btn-hero-explore {
  background: rgba(15, 27, 44, 0.9);
  color: #E2E8F0 !important;
  border-color: #2563EB;
}

/* Floating Trust Bar (Bottom Docked Card) */
.hero-trust-bar {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 38px -6px rgba(10, 55, 113, 0.09), 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 14px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1.35fr auto 1fr auto 1.15fr;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 5;
  margin-top: 10px;
}

:root[data-theme="dark"] .hero-trust-bar {
  background: rgba(15, 27, 44, 0.95);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 14px 40px -6px rgba(0, 0, 0, 0.5);
}

.hero-trust-col {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.hero-trust-col:hover .trust-icon-wrap {
  transform: scale(1.08);
}

.trust-icon-wrap.trust-shield {
  background: #DBEAFE;
}

.trust-icon-wrap.trust-cert {
  background: #DCFCE7;
}

.trust-icon-wrap.trust-handshake {
  background: #FFEDD5;
}

.trust-icon-wrap.trust-lightning {
  background: #F3E8FF;
}

:root[data-theme="dark"] .trust-icon-wrap.trust-shield {
  background: rgba(59, 130, 246, 0.25);
}

:root[data-theme="dark"] .trust-icon-wrap.trust-cert {
  background: rgba(34, 197, 94, 0.25);
}

:root[data-theme="dark"] .trust-icon-wrap.trust-handshake {
  background: rgba(249, 115, 22, 0.25);
}

:root[data-theme="dark"] .trust-icon-wrap.trust-lightning {
  background: rgba(168, 85, 247, 0.25);
}

.trust-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.trust-text .trust-title {
  font-weight: 700;
  font-size: 0.94rem;
  color: #0F172A;
}

.trust-text .trust-sub {
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 500;
}

:root[data-theme="dark"] .trust-text .trust-title {
  color: #F8FAFC;
}

:root[data-theme="dark"] .trust-text .trust-sub {
  color: #94A3B8;
}

.hero-trust-divider {
  width: 1px;
  height: 38px;
  background: #E2E8F0;
}

:root[data-theme="dark"] .hero-trust-divider {
  background: rgba(255, 255, 255, 0.12);
}

/* Responsive adjustments */
@media (max-width: 1099px) {
  .hero-corner-slogan {
    top: 4px;
    right: 16px;
  }
  .hero-corner-slogan .slogan-line-1,
  .hero-corner-slogan .slogan-line-2 {
    font-size: 1.55rem;
  }
  .hero-corner-slogan .slogan-underline {
    width: 145px;
  }
  .hero-trust-bar {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 18px;
  }
  .hero-trust-divider {
    display: none;
  }
}

@media (max-width: 991px) {
  .hero-section {
    background-image:
      linear-gradient(180deg, rgba(226, 240, 253, 0.96) 0%, rgba(234, 243, 253, 0.93) 55%, rgba(226, 240, 253, 0.98) 100%),
      url('../images/bg/nen-1.jpg');
    background-position: center top, center center;
    background-size: 100% 100%, cover;
    padding: 32px 0 24px;
  }

  .hero-corner-slogan {
    position: static;
    margin: 0 auto 16px auto;
    text-align: center;
    align-items: center;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .hero-corner-slogan .slogan-line-1,
  .hero-corner-slogan .slogan-line-2 {
    font-size: 1.45rem;
    white-space: normal;
  }
  .hero-corner-slogan .slogan-underline {
    width: 140px;
    height: 12px;
    margin-left: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-deco-waves {
    width: 260px;
    height: 110px;
    opacity: 0.45;
  }
  .hero-deco-leaves svg {
    width: 80px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 24px 0 20px;
  }

  .hero-corner-slogan {
    margin: 0 auto 14px auto;
  }
  .hero-corner-slogan .slogan-line-1,
  .hero-corner-slogan .slogan-line-2 {
    font-size: 1.35rem;
  }
  .hero-corner-slogan .slogan-underline {
    width: 130px;
  }

  .hero-greeting-pill {
    font-size: 0.82rem;
    padding: 5px 12px;
    gap: 6px;
    margin-bottom: 12px;
    white-space: normal;
    line-height: 1.3;
    max-width: 100%;
  }

  .hero-greeting-pill .greeting-icon {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
    margin-bottom: 12px;
  }

  .hero-title .title-sub {
    gap: 6px;
  }

  .hero-desc {
    font-size: 0.92rem;
    line-height: 1.58;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    margin-bottom: 20px;
  }

  .btn-hero-login,
  .btn-hero-explore {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .btn-hero-login {
    padding: 12px 20px;
    font-size: 0.98rem;
  }

  .btn-hero-explore {
    padding: 11px 12px;
    font-size: 0.86rem;
    white-space: normal;
  }

  .hero-trust-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    margin-top: 16px;
  }

  .hero-trust-col {
    gap: 12px;
  }

  .trust-icon-wrap {
    width: 38px;
    height: 38px;
  }

  .trust-icon-wrap svg {
    width: 19px;
    height: 19px;
  }

  .trust-text .trust-title {
    font-size: 0.88rem;
  }

  .trust-text .trust-sub {
    font-size: 0.78rem;
  }

  .hero-trust-divider {
    display: none;
  }

  .hero-deco-leaves {
    display: none;
  }

  .hero-deco-waves {
    width: 180px;
    height: 80px;
    opacity: 0.35;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-corner-slogan .slogan-line-1,
  .hero-corner-slogan .slogan-line-2 {
    font-size: 1.25rem;
  }
  .hero-corner-slogan .slogan-underline {
    width: 120px;
  }
  .btn-hero-explore {
    font-size: 0.82rem;
    gap: 6px;
  }
}

/* ==========================================================================
   3D Realistic Countryside Roadway & Village Mobility System (Khu Phố Ấp 3D)
   ========================================================================== */
.road-3d-scene {
  position: relative;
  width: 100%;
  height: 145px;
  overflow: hidden;
  pointer-events: none;
  background: #0D1624;
  border-top: 2.5px solid var(--gold);
  border-bottom: 2px solid #CBD5E1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  z-index: 4;
}

/* 3D Perspective Road Bed (Mặt đường bê tông nông thôn mới) */
.road-bed {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 105px;
  background: linear-gradient(180deg, #1C283B 0%, #121C2A 35%, #0A111B 100%);
  border-top: 3.5px solid #F59E0B;
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.7), inset 0 2px 6px rgba(255, 255, 255, 0.12);
  transform: perspective(700px) rotateX(15deg);
  transform-origin: bottom center;
}

.road-surface {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Reflective Center Divider Line (Vạch sơn vàng phản quang) */
.road-center-line {
  position: absolute;
  top: 48%;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, #FDE047 0 36px, transparent 36px 72px);
  box-shadow: 0 0 12px rgba(253, 224, 71, 0.75);
  opacity: 0.95;
}

/* Road Curbs (Gờ vỉa hè bê tông 2 bên) */
.road-curb-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, #E2E8F0 0 40px, #94A3B8 40px 80px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.road-curb-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, #94A3B8 0 40px, #64748B 40px 80px);
}

/* Milestone Boundary Posts (Cọc tiêu phản quang đỏ-trắng giao thông Việt Nam) */
.road-milestone {
  position: absolute;
  bottom: 96px;
  width: 12px;
  height: 32px;
  background: repeating-linear-gradient(180deg, #EF4444 0 8px, #FFFFFF 8px 16px);
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Solar Streetlights (Cột đèn đường năng lượng mặt trời nông thôn mới) */
.solar-light-post {
  position: absolute;
  bottom: 96px;
  width: 4px;
  height: 95px;
  background: linear-gradient(to right, #94A3B8, #475569);
  z-index: 3;
}

.solar-panel {
  position: absolute;
  top: -6px;
  left: -14px;
  width: 32px;
  height: 8px;
  background: #1E3A8A;
  border: 1px solid #60A5FA;
  border-radius: 2px;
  transform: rotate(-15deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.solar-bulb {
  position: absolute;
  top: 6px;
  left: -4px;
  width: 12px;
  height: 6px;
  background: #FEF08A;
  border-radius: 50%;
  box-shadow: 0 0 16px #FBBF24, 0 0 32px #F59E0B;
}

/* Glow Cone projecting onto the road */
.solar-glow-cone {
  position: absolute;
  top: 10px;
  left: -60px;
  width: 124px;
  height: 140px;
  background: radial-gradient(ellipse at 50% 0%, rgba(254, 240, 138, 0.3) 0%, rgba(251, 191, 36, 0.12) 50%, transparent 75%);
  pointer-events: none;
  border-radius: 0 0 50% 50%;
}

/* Lanes & Perspective Depth */
.lane-layer {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
}

.lane-far {
  bottom: 46px;
  height: 75px;
  z-index: 5;
}

.lane-near {
  bottom: 6px;
  height: 95px;
  z-index: 8;
}

/* Vehicle wrapper */
.rider {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--w, 140px);
  height: auto;
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  will-change: transform;
}

.bike-svg-3d,
.moto-svg-3d {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.rider:hover .bike-svg-3d,
.rider:hover .moto-svg-3d {
  filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.95)) !important;
}

/* Near Lane: Scale 1.0 (Detailed foreground) */
.rider-near {
  animation: cross-road-near var(--t, 18s) linear var(--d, 0s) infinite;
}

.rider-near.rev {
  animation-name: cross-road-near-rev;
}

/* Far Lane: Scale 0.72 (Perspective distance) */
.rider-far {
  animation: cross-road-far var(--t, 24s) linear var(--d, 0s) infinite;
}

.rider-far.rev {
  animation-name: cross-road-far-rev;
}

.rev svg {
  transform: scaleX(-1);
}

/* Crossing Animations across the full screen - Continuous & Smooth */
@keyframes cross-road-near {
  0% {
    transform: translateX(-240px) scale(1);
  }

  100% {
    transform: translateX(calc(100vw + 240px)) scale(1);
  }
}

@keyframes cross-road-near-rev {
  0% {
    transform: translateX(calc(100vw + 240px)) scale(1);
  }

  100% {
    transform: translateX(-240px) scale(1);
  }
}

@keyframes cross-road-far {
  0% {
    transform: translateX(-200px) scale(0.72);
  }

  100% {
    transform: translateX(calc(100vw + 200px)) scale(0.72);
  }
}

@keyframes cross-road-far-rev {
  0% {
    transform: translateX(calc(100vw + 200px)) scale(0.72);
  }

  100% {
    transform: translateX(-200px) scale(0.72);
  }
}

/* Spinning Wheel Animation */
.anim-spin {
  animation: spin-wheel 0.32s linear infinite;
}

@keyframes spin-wheel {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Cycling Pedals Crank Animation */
.anim-pedal {
  animation: spin-pedal 0.5s linear infinite;
}

@keyframes spin-pedal {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Cyclist Body Bobbing & Weight Shift */
.anim-rider-bob {
  animation: rider-bobbing 0.5s ease-in-out infinite alternate;
}

@keyframes rider-bobbing {
  0% {
    transform: translateY(0px) rotate(-0.5deg);
  }

  100% {
    transform: translateY(-3px) rotate(0.8deg);
  }
}

/* Dynamic Ground Shadow Breathing */
.anim-shadow {
  animation: shadow-breathe 0.5s ease-in-out infinite alternate;
}

@keyframes shadow-breathe {
  0% {
    transform: scaleX(1) scaleY(1);
    opacity: 0.9;
  }

  100% {
    transform: scaleX(0.94) scaleY(0.85);
    opacity: 0.7;
  }
}

/* Fluttering Scarf / Khăn rằn in the wind */
.anim-scarf {
  animation: scarf-flutter 0.35s ease-in-out infinite alternate;
  transform-origin: 68px 34px;
}

@keyframes scarf-flutter {
  0% {
    transform: rotate(-4deg) skewX(-2deg);
  }

  100% {
    transform: rotate(6deg) skewX(4deg);
  }
}

/* Pedaling Legs */
.anim-leg-front {
  animation: pedal-leg-f 0.5s linear infinite;
  transform-origin: 64px 54px;
}

@keyframes pedal-leg-f {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(18deg) translateY(2px);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(-16deg) translateY(-2px);
  }

  100% {
    transform: rotate(0deg);
  }
}

.anim-leg-back {
  animation: pedal-leg-b 0.5s linear infinite;
  transform-origin: 64px 54px;
}

@keyframes pedal-leg-b {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-16deg) translateY(-2px);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(18deg) translateY(2px);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Inter-Section 3D Countryside Roadway Ribbon */
.roadway-ribbon {
  position: relative;
  width: 100%;
  height: 64px;
  background: linear-gradient(180deg, #182333 0%, #0F1722 50%, #090E17 100%);
  border-top: 2px solid rgba(245, 158, 11, 0.4);
  border-bottom: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 5;
}

.roadway-ribbon.evening-ribbon {
  background: linear-gradient(180deg, #1A1829 0%, #111420 50%, #0A0D16 100%);
  border-top-color: rgba(242, 176, 30, 0.5);
  border-bottom-color: rgba(242, 176, 30, 0.5);
}

.roadway-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, #FDE047 0 28px, transparent 28px 56px);
  box-shadow: 0 0 8px rgba(253, 224, 71, 0.5);
  transform: translateY(-50%);
}

.roadway-curb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, #EF4444 0 24px, #FFFFFF 24px 48px);
}

.roadway-traveler {
  position: absolute;
  bottom: 2px;
  left: 0;
  will-change: transform;
  animation: cross-road var(--t) linear var(--d) infinite;
  transform: translateX(-200px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  pointer-events: auto;
  cursor: pointer;
}

.roadway-traveler.rev {
  animation-name: cross-road-rev;
}

.roadway-traveler.rev svg {
  transform: scaleX(-1);
}

@keyframes toast-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, 6px) scale(0.9);
  }

  15% {
    opacity: 1;
    transform: translate(-50%, 0px) scale(1);
  }

  80% {
    opacity: 1;
    transform: translate(-50%, -2px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.95);
  }
}

/* ==========================================================================
   Stats Counter Section (Năng lực TTP - Nền Vàng Lúa Chín & Trống Đồng Đông Sơn)
   ========================================================================== */
/* Continuous infinite partners ticker. */
.marquee-section {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #080f24 0%, #0f1c3d 50%, #080f24 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding: 16px 0;
  position: relative;
  z-index: 10;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}

.m-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.m-item:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
}

.m-item svg {
  flex-shrink: 0;
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7));
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-section {
    overflow-x: auto;
  }

  .marquee-track {
    animation: none;
  }

  .marquee-content[aria-hidden="true"] {
    display: none;
  }
}

.stats-section {
  position: relative;
  z-index: 10;
  padding: 48px 0 65px;
  background:
    radial-gradient(circle at 50% -10%, rgba(245, 158, 11, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 8% 90%, rgba(29, 95, 209, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 92% 90%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, #FEF9EE 0%, #FFFDF8 50%, #FDF7EB 100%);
  border-bottom: 2px solid #FDE68A;
  overflow: hidden;
}

:root[data-theme="dark"] .stats-section {
  background: linear-gradient(180deg, #09121F 0%, #0D1B2E 100%);
  border-bottom-color: rgba(245, 158, 11, 0.3);
}

/* Dong Son Sunburst Motif in Stats */
.stats-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23D97706' stroke-opacity='0.06' stroke-width='1.5'%3E%3Ccircle cx='200' cy='200' r='190'/%3E%3Ccircle cx='200' cy='200' r='170' stroke-dasharray='4,4'/%3E%3Ccircle cx='200' cy='200' r='145'/%3E%3Ccircle cx='200' cy='200' r='120' stroke-dasharray='2,6'/%3E%3Ccircle cx='200' cy='200' r='90'/%3E%3Ccircle cx='200' cy='200' r='60'/%3E%3Ccircle cx='200' cy='200' r='30' fill='%23D97706' fill-opacity='0.03'/%3E%3Cpath d='M200 10 L200 390 M10 200 L390 200 M65 65 L335 335 M65 335 L335 65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   Cultural Village Elements (Văn hóa Thôn, Ấp, Khu Phố)
   ========================================================================== */
.village-archway-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  color: #B45309;
  border: 1.5px solid #F59E0B;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 auto 24px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

:root[data-theme="dark"] .village-archway-banner {
  background: rgba(180, 83, 9, 0.15);
  border-color: #D97706;
  color: #FDE68A;
}

.village-motto-callout {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-left: 5px solid #1D5FD1;
  border-radius: var(--radius-md);
  padding: 16px 22px;
  margin: 0 auto 36px;
  max-width: 820px;
  font-size: 1.05rem;
  color: #1E3A8A;
  font-style: italic;
  box-shadow: 0 4px 12px rgba(29, 95, 209, 0.08);
}

:root[data-theme="dark"] .village-motto-callout {
  background: rgba(30, 58, 138, 0.25);
  border-left-color: #60A5FA;
  color: #BFDBFE;
}

.motto-section-divider {
  position: relative;
  z-index: 3;
  height: 0;
}

.motto-section-divider .village-motto-callout {
  position: relative;
  width: calc(100% - 40px);
  margin: 0 auto;
  transform: translateY(-50%);
  text-align: center;
}

:root[data-theme="dark"] .motto-section-divider .village-motto-callout {
  background: #172b50;
}

@media (max-width: 600px) {
  #bai-toan {
    padding-bottom: 120px;
  }

  #phap-ly {
    padding-top: 136px;
  }
}

/* ==========================================================================
   5 Stories: Nhu cầu thực tiễn / Bài toán cơ sở
   ========================================================================== */
.pain-stories-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pain-story-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: var(--transition);
}

.pain-story-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.pain-story-card--featured {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.pain-story-card--featured .pain-story-shot {
  flex: 1 0 320px;
}

@media (max-width: 1024px) {
  .pain-stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pain-story-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .pain-story-card--featured .pain-story-shot {
    flex: 0 0 260px;
  }
}

@media (max-width: 600px) {
  .pain-stories-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pain-story-card--featured .pain-story-shot {
    flex-basis: 180px;
  }
}

.pain-story-shot {
  order: -1;
  flex: 0 0 160px;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #0B1728;
}

.pain-story-shot img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pain-story-copy {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Share the bottom content row so stories 04 and 05 stay exactly aligned. */
@media (min-width: 1025px) {
  .pain-story-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    row-gap: 0;
  }

  .pain-story-card--featured {
    grid-row: 1 / span 4;
  }

  .pain-story-shot {
    grid-row: 1;
    min-height: 160px;
  }

  .pain-story-card--featured .pain-story-shot {
    grid-row: 1 / span 3;
  }

  .pain-story-copy {
    grid-row: 2;
    justify-content: flex-start;
  }

  .pain-story-card--featured .pain-story-copy {
    grid-row: 4;
  }
}

.pain-story-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  width: fit-content;
}

.pain-story-mark.tone-amber {
  background: #FEF3C7;
  color: #B45309;
}

.pain-story-mark.tone-blue {
  background: #DBEAFE;
  color: #1E40AF;
}

.pain-story-mark.tone-teal {
  background: #CCFBF1;
  color: #0F766E;
}

.pain-story-mark.tone-rose {
  background: #FFE4E6;
  color: #BE123C;
}

.pain-story-mark.tone-navy {
  background: #E0E7FF;
  color: #3730A3;
}

.pain-story-copy h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #0F172A;
  margin-bottom: 8px;
  font-weight: 800;
}

.pain-story-copy p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   Legal Section: 4 Papers & 4 Stamps 
   ========================================================================== */
.legal-section {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(220, 38, 38, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, #FFFDF8 0%, #FEF9EB 50%, #FFF8E6 100%);
  padding: 91px 0 85px;
  border-top: 2px solid #FDE68A;
  border-bottom: 2px solid #FDE68A;
  overflow: hidden;
}

:root[data-theme="dark"] .legal-section {
  background: linear-gradient(180deg, #180F11 0%, #201316 50%, #180F11 100%);
  border-color: rgba(220, 38, 38, 0.35);
}

.legal-section::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' fill='none' stroke='%23DC2626' stroke-opacity='0.045' stroke-width='1.5'%3E%3Ccircle cx='150' cy='150' r='140'/%3E%3Ccircle cx='150' cy='150' r='120' stroke-dasharray='4,4'/%3E%3Ccircle cx='150' cy='150' r='95'/%3E%3Ccircle cx='150' cy='150' r='70' stroke-dasharray='2,5'/%3E%3Ccircle cx='150' cy='150' r='45'/%3E%3Ccircle cx='150' cy='150' r='20' fill='%23DC2626' fill-opacity='0.03'/%3E%3Cpath d='M150 10 L150 290 M10 150 L290 150 M50 50 L250 250 M50 250 L250 50'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

.legal-showcase {
  position: relative;
  z-index: 2;
  padding: 66px 20px 24px;
  border-radius: 28px;
}
.legal-papers-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.legal-paper-connector {
  position: absolute;
  top: -52px;
  left: 0;
  width: 100%;
  height: 70px;
  overflow: visible;
  pointer-events: none;
}
.legal-paper-card {
  --paper-color: #2457af;
  --paper-tint: #d1dfff;
  --paper-surface: rgba(215, 226, 248, 0.88);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 64px 22px 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 38px;
  background: linear-gradient(150deg, var(--paper-surface), rgba(255, 255, 255, 0.78));
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.legal-paper-card:nth-of-type(2) {
  --paper-color: #c65d16;
  --paper-tint: #ffdabd;
  --paper-surface: rgba(255, 223, 203, 0.9);
}
.legal-paper-card:nth-of-type(3) {
  --paper-color: #147eb4;
  --paper-tint: #bfe9ff;
  --paper-surface: rgba(202, 233, 246, 0.9);
}
.legal-paper-card:nth-of-type(4) {
  --paper-color: #a66b0b;
  --paper-tint: #ffe49f;
  --paper-surface: rgba(255, 235, 194, 0.9);
}
.legal-paper-card:hover {
  border-color: var(--paper-tint);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}
.legal-paper-art {
  position: absolute;
  top: -48px;
  left: -10px;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper-color);
  border-radius: 50%;
  background: var(--paper-tint);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.5), 0 5px 18px rgba(15, 23, 42, 0.06);
  color: var(--paper-color);
}
.legal-paper-art svg {
  width: 52px;
  height: 52px;
}
.legal-paper-num {
  position: absolute;
  top: 12px;
  left: 52px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  background: #16243e;
  font-size: 0.8rem;
  font-weight: 800;
}
.legal-paper-num-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.legal-paper-card h3 {
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 12px;
  color: #14233e;
}
.legal-paper-issuer {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 5px 11px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--paper-tint);
  color: var(--paper-color);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.5;
}
.legal-paper-issuer::before { content: '🏛'; }
.legal-paper-card p {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0;
}
.stamps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid #edf2f7;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
.stamp-badge {
  --stamp-color: #3374e8;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 13px;
  align-content: center;
  text-align: left;
}
.stamp-badge:nth-child(2) { --stamp-color: #fb852a; }
.stamp-badge:nth-child(3) { --stamp-color: #22a7e5; }
.stamp-badge:nth-child(4) { --stamp-color: #ffb51e; }
.stamp-icon {
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--stamp-color);
  color: #ffffff;
  box-shadow: 0 0 0 10px #ffffff, 0 0 0 12px #f1f5f9, 0 5px 12px rgba(15, 23, 42, 0.14);
}
.stamp-icon svg { width: 24px; height: 24px; }
.stamp-badge strong {
  color: #14233e;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 3px;
}
.stamp-badge span {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.5;
}
:root[data-theme="dark"] .legal-paper-card {
  background: linear-gradient(145deg, #25344d, #172033);
  border-color: #475569;
}
:root[data-theme="dark"] .legal-paper-card h3,
:root[data-theme="dark"] .stamp-badge strong { color: #f1f5f9; }
:root[data-theme="dark"] .legal-paper-card p,
:root[data-theme="dark"] .stamp-badge span { color: #cbd5e1; }
:root[data-theme="dark"] .stamps-grid { background: #172033; border-color: #334155; }
:root[data-theme="dark"] .stamp-icon { box-shadow: 0 0 0 8px #172033, 0 0 0 10px #334155; }
@media (max-width: 1024px) {
  .legal-papers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 72px; }
  .legal-paper-connector { display: none; }
  .stamps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; border-radius: 32px; }
  .legal-paper-card h3 { font-size: 1.2rem; }
}
@media (max-width: 600px) {
  .legal-showcase { padding-inline: 12px; border-radius: 22px; }
  .legal-papers-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-paper-card { border-radius: 28px; padding-inline: 22px; }
  .stamps-grid { grid-template-columns: minmax(0, 1fr); padding: 26px; }
  .stamp-badge { column-gap: 20px; }
}

/* Motion from the legal-card reference, confined to the two showcase grids. */
.legal-showcase .legal-paper-card {
  animation: legal-showcase-enter 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.legal-showcase .legal-paper-card:nth-of-type(2) { animation-delay: 0.12s; }
.legal-showcase .legal-paper-card:nth-of-type(3) { animation-delay: 0.24s; }
.legal-showcase .legal-paper-card:nth-of-type(4) { animation-delay: 0.36s; }
.legal-showcase .legal-paper-card:hover {
  z-index: 2;
  transform: translateY(-12px) scale(1.025);
  box-shadow: 0 24px 44px rgba(30, 60, 120, 0.22);
}
.legal-showcase .legal-paper-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  background-size: 260% 100%;
  background-position: 160% 0;
  transition: background-position 0.9s ease;
}
.legal-showcase .legal-paper-card:hover::after { background-position: -60% 0; }
.legal-showcase .legal-paper-art,
.legal-showcase .legal-paper-num {
  animation: legal-showcase-bob 3.4s ease-in-out infinite;
}
.legal-showcase .legal-paper-card:nth-of-type(2) .legal-paper-art,
.legal-showcase .legal-paper-card:nth-of-type(2) .legal-paper-num { animation-delay: -0.8s; }
.legal-showcase .legal-paper-card:nth-of-type(3) .legal-paper-art,
.legal-showcase .legal-paper-card:nth-of-type(3) .legal-paper-num { animation-delay: -1.6s; }
.legal-showcase .legal-paper-card:nth-of-type(4) .legal-paper-art,
.legal-showcase .legal-paper-card:nth-of-type(4) .legal-paper-num { animation-delay: -2.4s; }
.legal-showcase .legal-paper-art::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--paper-color);
  border-radius: 50%;
  animation: legal-showcase-ping 2.6s ease-out infinite;
  pointer-events: none;
}
.legal-showcase .legal-paper-connector path { animation: legal-showcase-flow 1.1s linear infinite; }
.legal-showcase .stamps-grid { overflow: hidden; }
.legal-showcase .stamp-badge {
  position: relative;
  z-index: 1;
  animation: legal-showcase-enter 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s backwards;
  transition: transform 0.3s ease;
}
.legal-showcase .stamp-badge:nth-child(2) { animation-delay: 0.52s; }
.legal-showcase .stamp-badge:nth-child(3) { animation-delay: 0.64s; }
.legal-showcase .stamp-badge:nth-child(4) { animation-delay: 0.76s; }
.legal-showcase .stamp-badge:hover { transform: translateY(-5px); }
.legal-showcase .stamp-icon {
  position: relative;
  animation: legal-showcase-bob 3s ease-in-out infinite;
}
.legal-showcase .stamp-badge:nth-child(2) .stamp-icon { animation-delay: -0.7s; }
.legal-showcase .stamp-badge:nth-child(3) .stamp-icon { animation-delay: -1.4s; }
.legal-showcase .stamp-badge:nth-child(4) .stamp-icon { animation-delay: -2.1s; }
.legal-showcase .stamp-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid var(--stamp-color);
  border-radius: 50%;
  animation: legal-showcase-ping 2.6s ease-out infinite;
  pointer-events: none;
}
.legal-showcase .stamp-icon svg { transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.legal-showcase .stamp-badge:hover .stamp-icon svg { transform: rotate(-16deg) scale(1.25); }
.legal-showcase .stamps-grid::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 170, 90, 0.28), transparent);
  transform: translateX(-120%);
  animation: legal-showcase-sweep 5s ease-in-out infinite;
}
@keyframes legal-showcase-enter {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes legal-showcase-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes legal-showcase-ping {
  from { transform: scale(0.92); opacity: 0.7; }
  to { transform: scale(1.55); opacity: 0; }
}
@keyframes legal-showcase-flow { to { stroke-dashoffset: -34; } }
@keyframes legal-showcase-sweep {
  0% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(430%); }
}
@media (prefers-reduced-motion: reduce) {
  .legal-showcase .legal-paper-card,
  .legal-showcase .legal-paper-art,
  .legal-showcase .legal-paper-num,
  .legal-showcase .legal-paper-art::before,
  .legal-showcase .legal-paper-connector path,
  .legal-showcase .stamp-badge,
  .legal-showcase .stamp-icon,
  .legal-showcase .stamp-icon::after,
  .legal-showcase .stamps-grid::after {
    animation: none;
  }
  .legal-showcase .legal-paper-card,
  .legal-showcase .legal-paper-card::after,
  .legal-showcase .stamp-badge,
  .legal-showcase .stamp-icon svg { transition: none; }
  .legal-showcase .legal-paper-card:hover,
  .legal-showcase .stamp-badge:hover,
  .legal-showcase .stamp-badge:hover .stamp-icon svg { transform: none; }
  .legal-showcase .legal-paper-art::before,
  .legal-showcase .stamp-icon::after,
  .legal-showcase .stamps-grid::after { display: none; }
}

/* Two-row blue legal capsules. All original copy remains in the markup. */
.legal-showcase.legal-orbit {
  padding: 28px 20px 24px;
}
.legal-orbit .legal-papers-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
  margin-bottom: 30px;
  align-items: stretch;
}
.legal-orbit .legal-paper-connector {
  display: block;
  top: -26px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 52px);
}
.legal-orbit .legal-paper-card {
  --paper-color: #125081;
  --paper-tint: #cceaff;
  --orbit-bg: linear-gradient(130deg, #a5ddf5, #9dcbfa);
  min-height: 250px;
  padding: 28px 28px 28px 126px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 110px 85px 85px 110px;
  background: var(--orbit-bg);
  box-shadow: 0 12px 26px rgba(15, 70, 120, 0.12);
}
.legal-orbit .legal-paper-card:nth-of-type(2) {
  --paper-color: #b2defa;
  --paper-tint: rgba(255, 255, 255, 0.16);
  --orbit-bg: linear-gradient(125deg, #0754ae, #064396);
  background: var(--orbit-bg);
}
.legal-orbit .legal-paper-card:nth-of-type(3) {
  --paper-color: #bceaff;
  --paper-tint: rgba(255, 255, 255, 0.17);
  margin-left: 40px;
  --orbit-bg: linear-gradient(125deg, #0084db, #0064c4);
  background: var(--orbit-bg);
}
.legal-orbit .legal-paper-card:nth-of-type(4) {
  --paper-color: #b9cce0;
  --paper-tint: rgba(255, 255, 255, 0.13);
  margin-left: 16px;
  --orbit-bg: linear-gradient(125deg, #172a46, #09233b);
  background: var(--orbit-bg);
}
.legal-orbit .legal-paper-art {
  top: calc(50% - 46px);
  left: 32px;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  color: var(--paper-color);
}
.legal-orbit .legal-paper-art svg { width: 52px; height: 52px; }
.legal-orbit .legal-paper-art::before { inset: -4px; border-width: 1px; opacity: 0.3; }
.legal-orbit .legal-paper-num {
  top: calc(50% + 12px);
  left: 73px;
  width: 32px;
  height: 32px;
  font-size: 0.73rem;
  border-width: 1px;
}
.legal-orbit .legal-paper-card h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #10263d;
}
.legal-orbit .legal-paper-card p { font-size: 0.86rem; line-height: 1.65; color: #153b57; }
.legal-orbit .legal-paper-issuer { font-size: 0.7rem; padding: 4px 9px; margin-bottom: 14px; background: rgba(255, 255, 255, 0.25); color: #15456f; }
.legal-orbit .legal-paper-card:nth-of-type(n+2) h3 { color: #ffffff; }
.legal-orbit .legal-paper-card:nth-of-type(n+2) p { color: #e5f1ff; }
.legal-orbit .legal-paper-card:nth-of-type(n+2) .legal-paper-issuer { background: var(--paper-tint); color: #f0f7ff; }
.scenic-content .legal-orbit .stamps-grid,
.legal-orbit .stamps-grid {
  background: rgba(205, 236, 244, 0.95);
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.legal-orbit .stamp-badge { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; }
.legal-orbit .stamp-icon { width: 44px; height: 44px; box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.9), 0 5px 12px rgba(15, 23, 42, 0.12); }
.legal-orbit .stamp-badge strong { font-size: 0.88rem; }
.legal-orbit .stamp-badge span { font-size: 0.72rem; line-height: 1.5; }
:root[data-theme="dark"] .legal-orbit .legal-paper-card:first-of-type h3 { color: #10263d; }
:root[data-theme="dark"] .legal-orbit .legal-paper-card { background: var(--orbit-bg); }
:root[data-theme="dark"] .legal-orbit .legal-paper-card:first-of-type p { color: #153b57; }
:root[data-theme="dark"] .scenic-content .legal-orbit .stamps-grid { background: rgba(21, 52, 72, 0.96); }
@media (max-width: 1024px) {
  .legal-orbit .legal-papers-grid { gap: 24px; }
  .legal-orbit .legal-paper-card { padding: 26px 24px 26px 94px; border-radius: 70px; }
  .legal-orbit .legal-paper-card:nth-of-type(n+3) { margin-left: 0; }
  .legal-orbit .legal-paper-art { left: 18px; width: 56px; }
  .legal-orbit .legal-paper-art svg { width: 44px; height: 44px; }
  .legal-orbit .legal-paper-num { left: 48px; }
  .legal-orbit .legal-paper-card h3 { font-size: 1rem; }
}
@media (max-width: 700px) {
  .legal-showcase.legal-orbit { padding: 16px 0 12px; }
  .legal-orbit .legal-papers-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .legal-orbit .legal-paper-connector { display: none; }
  .legal-orbit .legal-paper-card { min-height: 0; padding: 26px 24px 26px 96px; border-radius: 64px 36px 36px 64px; }
  .legal-orbit .stamps-grid { padding: 24px; border-radius: 28px; }
}

/* ==========================================================================
   Duo Cards: Trợ lý AI & Phân quyền địa bàn
   ========================================================================== */
.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

@media (max-width: 768px) {
  .duo-grid {
    grid-template-columns: 1fr;
  }
}

.duo-card {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: var(--transition);
}

.duo-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-primary);
  box-shadow: 0 14px 30px rgba(29, 95, 209, 0.12);
}

.duo-ico {
  font-size: 2rem;
  background: #EFF6FF;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #BFDBFE;
  flex-shrink: 0;
}

.duo-card h3 {
  font-size: 1.2rem;
  color: #0F172A;
  margin-bottom: 8px;
  font-weight: 800;
}

.duo-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   Solve Section: Khó khăn -> Giải pháp DLS (Tông màu dịu mắt, dễ chịu)
   ========================================================================== */
.solve-section {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(2, 132, 199, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #F0F6F4 0%, #E5EFE9 50%, #EFF6F3 100%);
  padding: 85px 0;
  border-top: 1.5px solid rgba(16, 185, 129, 0.22);
  border-bottom: 1.5px solid rgba(16, 185, 129, 0.22);
  overflow: hidden;
}

:root[data-theme="dark"] .solve-section {
  background: linear-gradient(180deg, #09121F 0%, #0F1C30 50%, #09121F 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.solve-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.solve-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1.5px solid rgba(203, 213, 225, 0.85);
  border-radius: 18px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1.1fr auto 1fr;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.solve-card:hover {
  transform: translateY(-3px);
  border-color: #38BDF8;
  box-shadow: 0 14px 32px -4px rgba(2, 132, 199, 0.15);
}

@media (max-width: 860px) {
  .solve-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .solve-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }
}

.solve-q {
  display: flex;
  align-items: center;
  gap: 16px;
}

.solve-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  flex-shrink: 0;
}

.solve-ico.tone-blue {
  background: #EFF6FF;
  color: #1D5FD1;
  border: 1.5px solid #BFDBFE;
}

.solve-ico.tone-green {
  background: #F0FDF4;
  color: #16A34A;
  border: 1.5px solid #BBF7D0;
}

.solve-ico.tone-amber {
  background: #FFFBEB;
  color: #D97706;
  border: 1.5px solid #FDE68A;
}

.solve-ico.tone-teal {
  background: #F0FDFA;
  color: #0D9488;
  border: 1.5px solid #99F6E4;
}

.solve-shot-thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #CBD5E1;
}

.solve-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.solve-q h3 {
  font-size: 1.08rem;
  color: #0F172A;
  margin: 0;
  font-weight: 800;
}

.solve-arrow {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 900;
}

.solve-answer {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 14px 18px;
}

.solve-answer strong {
  display: block;
  color: #15803D;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.solve-answer p {
  color: #1E293B;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* Restored moving solution cards, with the original detailed content. */
.solve-carousel.is-ready .solve-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; justify-items: center; padding: 30px 0; perspective: 1200px; isolation: isolate; }
.solve-carousel.is-ready .solve-card {
  --solve-ink: #0369a1;
  --solve-tint: #f0f9ff;
  --solve-edge: #bae6fd;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  align-self: stretch;
  gap: 14px;
  width: min(380px, 80vw);
  min-height: 400px;
  padding: 26px;
  border-radius: 24px;
  text-align: center;
  backface-visibility: hidden;
  transition: transform 0.7s cubic-bezier(0.22, 0.68, 0, 1), opacity 0.7s ease, box-shadow 0.7s ease;
}
.solve-carousel.is-ready .solve-card[data-position="active"] { z-index: 3; opacity: 1; transform: translateX(0) translateZ(0); border-color: #7dd3fc; box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14); }
.solve-carousel.is-ready .solve-card[data-position="prev"] { z-index: 2; opacity: 0.55; transform: translateX(calc(-100% - 22px)) rotateY(28deg) scale(0.92); }
.solve-carousel.is-ready .solve-card[data-position="next"] { z-index: 2; opacity: 0.55; transform: translateX(calc(100% + 22px)) rotateY(-28deg) scale(0.92); }
.solve-carousel.is-ready .solve-card[data-position="back"] { z-index: 1; opacity: 0; transform: translateZ(-240px) scale(0.8); pointer-events: none; }
.solve-carousel.is-ready .solve-q { flex-direction: column; gap: 16px; }
.solve-carousel.is-ready .solve-ico { width: 56px; height: 56px; border-radius: 50%; }
.solve-carousel.is-ready .solve-ico svg { width: 30px; height: 30px; }
.solve-carousel.is-ready .solve-label { margin-bottom: 8px; }
.solve-carousel.is-ready .solve-q h3 { font-size: 1.2rem; line-height: 1.4; }
.solve-carousel.is-ready .solve-arrow { transform: none; margin: 0 auto; line-height: 1; color: var(--solve-ink); font-size: 1.35rem; }
.solve-carousel.is-ready .solve-answer { padding: 18px; text-align: left; background: var(--solve-tint); border-color: var(--solve-edge); }
.solve-carousel.is-ready .solve-answer p { font-size: 0.9rem; line-height: 1.65; }
.solve-carousel .solve-card[data-solve-theme="2"] { --solve-ink: #15803d; --solve-tint: #f0fdf4; --solve-edge: #bbf7d0; }
.solve-carousel .solve-card[data-solve-theme="3"] { --solve-ink: #b45309; --solve-tint: #fffbeb; --solve-edge: #fde68a; }
.solve-carousel .solve-card[data-solve-theme="4"] { --solve-ink: #0f766e; --solve-tint: #f0fdfa; --solve-edge: #99f6e4; }
.solve-carousel .solve-situation { font-size: 0.84rem; line-height: 1.6; color: #64748b; margin: 0; }
.solve-carousel.is-ready .solve-answer strong { color: var(--solve-ink); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 5px; }
.solve-carousel.is-ready .solve-answer .solve-lead { font-size: 0.98rem; font-weight: 800; color: #0f172a; margin-bottom: 14px; line-height: 1.4; }
.solve-carousel .solve-actions { display: grid; gap: 9px; list-style: none; padding: 0; margin: 0; }
.solve-carousel .solve-actions li { display: flex; gap: 8px; font-size: 0.81rem; line-height: 1.5; color: #334155; }
.solve-carousel .solve-actions li::before { content: '✓'; flex-shrink: 0; color: var(--solve-ink, #0369a1); font-weight: 800; }
.solve-carousel .solve-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.solve-carousel .solve-benefits span { padding: 5px 10px; border: 1px solid var(--solve-edge, #bae6fd); border-radius: 999px; color: var(--solve-ink, #0369a1); background: var(--solve-tint, #f0f9ff); font-size: 0.7rem; font-weight: 700; }
.solve-carousel .solve-carousel-controls:not([hidden]) { display: flex; justify-content: center; align-items: center; gap: 16px; position: relative; z-index: 4; margin-top: 10px; }
.solve-carousel-dots { display: flex; gap: 10px; }
.solve-carousel-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #cbd5e1; cursor: pointer; }
.solve-carousel-dots button[aria-pressed="true"] { background: #0284c7; }
.solve-carousel-controls button:focus-visible { outline: 3px solid #0284c7; outline-offset: 4px; }
:root[data-theme="dark"] .solve-carousel.is-ready .solve-q h3 { color: #f1f5f9; }
:root[data-theme="dark"] .solve-carousel .solve-situation { color: #cbd5e1; }
@media (prefers-reduced-motion: reduce) { .solve-carousel.is-ready .solve-card { transition: none; } }

/* ==========================================================================
   Banner Section
   ========================================================================== */
.banner-section {
  background: linear-gradient(135deg, #0B2F6B 0%, #1D5FD1 100%);
  color: #FFFFFF;
  padding: 55px 0 125px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 3D Mini Roadway Strip in Banner */
.banner-road-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 98px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(10, 17, 27, 0.98) 100%);
  border-top: 2.5px solid rgba(253, 224, 71, 0.85);
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.banner-road-line {
  position: absolute;
  top: 55%;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, #FDE047 0 24px, transparent 24px 48px);
  opacity: 0.9;
}

.banner-traveler {
  bottom: 10px;
  overflow: visible;
}

.banner-traveler svg {
  overflow: visible !important;
  display: block;
}

.roadway-traveler {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: var(--w, 80px);
  height: auto;
  pointer-events: auto;
  cursor: pointer;
  z-index: 5;
  will-change: transform;
  overflow: visible;
}

.roadway-traveler:not(.rev) {
  animation: cross-road-near var(--t, 20s) linear var(--d, 0s) infinite;
}

.roadway-traveler.rev {
  animation: cross-road-near-rev var(--t, 24s) linear var(--d, 0s) infinite;
}

.banner-section h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 900;
  margin-bottom: 12px;
  color: #FFFFFF;
  line-height: 1.35;
}

.banner-section h2 span {
  color: #FDE047;
}

.banner-section p {
  font-size: 1.12rem;
  color: #E2E8F0;
  max-width: 68ch;
  margin: 0 auto;
  line-height: 1.65;
}

/* 4 Badges in Flow */
.flow-badges-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.flow-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #1E293B;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.flow-badge-item.cb-blue {
  border-color: #3B82F6;
  color: #1D4ED8;
}

.flow-badge-item.cb-green {
  border-color: #22C55E;
  color: #15803D;
}

.flow-badge-item.cb-orange {
  border-color: #F97316;
  color: #C2410C;
}

.flow-badge-item.cb-purple {
  border-color: #A855F7;
  color: #7E22CE;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-box {
  background: #FFFFFF;
  border: 1.5px solid #FDE68A;
  border-top: 4.5px solid #F59E0B;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.08);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-box::after {
  content: '🌾';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.15rem;
  opacity: 0.28;
}

:root[data-theme="dark"] .stat-box {
  background: rgba(15, 27, 44, 0.85);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.stat-box:hover {
  border-color: #F59E0B;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.15);
}

.stat-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}

:root[data-theme="dark"] .stat-num {
  color: #60A5FA;
}

.stat-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   5 Stories: Nhu cầu thực tiễn / Bài toán cơ sở (Thôn Xóm Bình Yên & Lũy Tre Làng)
   ========================================================================== */
.pain-section {
  position: relative;
  background:
    radial-gradient(circle at 10% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, #F8FAF6 0%, #F0FDF4 50%, #ECFDF5 100%);
  padding: 75px 0 85px;
  border-top: 1.5px solid #DCFCE7;
  border-bottom: 1.5px solid #DCFCE7;
  overflow: hidden;
}

:root[data-theme="dark"] .pain-section {
  background: linear-gradient(180deg, #071510 0%, #0A1E17 50%, #071510 100%);
  border-color: rgba(34, 197, 94, 0.25);
}

.pain-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(16, 185, 129, 0.02) 38px, rgba(16, 185, 129, 0.02) 39px);
  pointer-events: none;
  z-index: 1;
}

.pain-stories-grid {
  position: relative;
  z-index: 2;
}

.pain-story-card {
  background: #FFFFFF;
  border: 1.5px solid #D1FAE5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="dark"] .pain-story-card {
  background: rgba(11, 28, 22, 0.85);
  border-color: rgba(34, 197, 94, 0.3);
}

.pain-story-card:hover {
  border-color: #10B981;
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.12);
}

/* ==========================================================================
   Road Journey (9 Stops - Đi Dọc Con Đường Làng Số & Ruộng Bậc Thang)
   ========================================================================== */
.road-section {
  position: relative;
  background:
    radial-gradient(circle at 15% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #FCF9F0 0%, #FEF6E4 40%, #FAF2DE 100%);
  padding: 85px 0 95px;
  border-top: 2.5px solid #F59E0B;
  border-bottom: 2.5px solid #F59E0B;
  overflow: hidden;
}

:root[data-theme="dark"] .road-section {
  background: linear-gradient(180deg, #111A2E 0%, #0F172A 50%, #111A2E 100%);
  border-color: rgba(245, 158, 11, 0.4);
}

.road-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.road-filter-btn {
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.road-filter-btn:hover,
.road-filter-btn.is-active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(29, 95, 209, 0.25);
}

/* Timeline Layout */
.road-timeline {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 0;
}

.road-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 8px;
  background: repeating-linear-gradient(to bottom, var(--border) 0 12px, transparent 12px 24px);
  border-radius: 4px;
}

.road-spine-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 8px;
  background: var(--blue-primary);
  border-radius: 4px;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.1s linear;
}

/* 3D Scout Cyclist traveling along the 9 milestones road */
.road-spine-scout {
  position: absolute;
  left: 32px;
  top: 0;
  width: 48px;
  height: 56px;
  transform: translate(-50%, -28px);
  z-index: 8;
  pointer-events: none;
  transition: top 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 6px 12px rgba(29, 95, 209, 0.6));
}

.road-spine-scout svg {
  width: 100%;
  height: 100%;
  animation: rider-bobbing 0.4s ease-in-out infinite alternate;
}

.road-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 72px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.road-item.is-hidden {
  display: none;
}

.road-marker {
  position: absolute;
  left: 12px;
  top: 18px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
  z-index: 5;
}

.road-card {
  background: #FFFFFF;
  border: 1.5px solid #FDE68A;
  border-left: 6px solid var(--blue-primary);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.08);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="dark"] .road-card {
  background: rgba(15, 27, 44, 0.9);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

@media (max-width: 850px) {
  .road-card {
    grid-template-columns: 1fr;
  }
}

.road-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 14px 34px rgba(29, 95, 209, 0.14);
}

.road-card-content h3 {
  margin-bottom: 6px;
  color: var(--blue-primary);
}
:root[data-theme="dark"] .road-card-content h3 {
  color: #60A5FA;
}

.road-card-desc {
  font-size: 0.98rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.road-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.road-role-badge {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 6px;
}

:root[data-theme="dark"] .road-role-badge {
  background: rgba(21, 128, 61, 0.2);
  color: #86EFAC;
}

.road-item .road-feature-symbol {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: radial-gradient(circle at center, #dbeafe, #eff6ff 65%, #f8fafc);
}

.road-item .road-feature-symbol span {
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1;
  filter: drop-shadow(0 12px 14px rgba(29, 95, 209, 0.15));
}

:root[data-theme="dark"] .road-item .road-feature-symbol {
  background: radial-gradient(circle at center, #1e3a5f, #0f1b2c);
}

.road-img-wrapper {
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
}

.road-img-wrapper img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.road-img-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--gold);
}

/* Mini Demo Trigger & Area in Road Stop */
.road-mini-demo {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #0B1728;
  color: var(--gold);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.92rem;
  display: none;
}

.road-mini-demo.is-open {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Three Users & Personas (Ba Người Dùng - Tình Làng Nghĩa Xóm & Sông Nước)
   ========================================================================== */
.roles-section {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(29, 95, 209, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(34, 197, 94, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, #F0F7FF 0%, #E8F3FF 50%, #F0F9FF 100%);
  padding: 80px 0 90px;
  border-top: 1.5px solid #BFDBFE;
  border-bottom: 1.5px solid #BFDBFE;
  overflow: hidden;
}

:root[data-theme="dark"] .roles-section {
  background: linear-gradient(180deg, #09172A 0%, #0D2038 50%, #09172A 100%);
  border-color: rgba(29, 95, 209, 0.3);
}

.role-expand .role-expand-list {
  display: flex;
  gap: 16px;
  align-items: stretch;
}
.role-expand .role-expand-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 28px 24px 82px;
  border: 1px solid #d8e4cb;
  border-radius: 28px;
  background: #e6efcf;
  overflow: hidden;
  transition: flex-grow 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.4s ease, box-shadow 0.4s ease;
}
.role-expand .role-expand-card:nth-child(2) { background: #e2eddf; }
.role-expand .role-expand-card:nth-child(3) { background: #e9efd5; }
.role-expand .role-expand-card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  bottom: -90px;
  left: -50px;
  border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.role-expand .role-expand-copy { position: relative; z-index: 1; }
.role-expand .role-expand-kicker { display: block; margin-bottom: 12px; color: #64744e; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.role-expand .role-expand-card h3 { margin: 0 0 16px; font-size: 1.12rem; line-height: 1.4; color: #1c3028; }
.role-expand .role-expand-message { font-size: 0.91rem; line-height: 1.5; color: #326348; font-weight: 700; margin: 0 0 18px; }
.role-expand .role-expand-details ol { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.role-expand .role-expand-details li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.role-expand .role-expand-details li > span { padding-top: 2px; color: #5c8254; font-size: 0.7rem; font-weight: 800; }
.role-expand .role-expand-details h4 { font-size: 0.83rem; line-height: 1.45; margin: 0 0 5px; color: #263d31; }
.role-expand .role-expand-details li p { font-size: 0.78rem; line-height: 1.65; color: #526257; margin: 0; }
.role-expand .role-expand-toggle {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% - 48px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #263d31;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.role-expand .role-expand-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); font-size: 1rem; transition: background 0.3s ease, transform 0.3s ease; }
.role-expand .role-expand-toggle:focus-visible { outline: 3px solid #2563eb; outline-offset: 6px; border-radius: 6px; }
.role-expand.is-ready .role-expand-card { height: var(--role-card-height, 460px); min-height: 0; }
.role-expand.is-ready .role-expand-copy { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
.role-expand.is-ready .role-expand-details { flex: 0 1 0; min-height: 0; opacity: 0; visibility: hidden; overflow: hidden; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.4s ease, visibility 0.3s ease; }
.role-expand.is-ready .role-expand-card.is-open {
  flex-grow: 2.8;
  background: #f2f5ef;
  border-color: #d6dfd3;
  box-shadow: 0 12px 30px rgba(30, 60, 45, 0.08);
}
.role-expand.is-ready .is-open .role-expand-copy { width: 100%; }
.role-expand.is-ready .is-open .role-expand-details { flex: 1 1 0; opacity: 1; visibility: visible; transform: translateY(0); overflow: visible; }
.role-expand.is-ready .is-open .role-expand-arrow { background: #c5e591; transform: rotate(45deg); }
:root[data-theme="dark"] .role-expand .role-expand-card { background: #223428; border-color: #3b5141; }
:root[data-theme="dark"] .role-expand.is-ready .role-expand-card.is-open { background: #1b2a23; border-color: #48614e; }
:root[data-theme="dark"] .role-expand .role-expand-card h3,
:root[data-theme="dark"] .role-expand .role-expand-details h4,
:root[data-theme="dark"] .role-expand .role-expand-toggle { color: #edf5e9; }
:root[data-theme="dark"] .role-expand .role-expand-kicker,
:root[data-theme="dark"] .role-expand .role-expand-details li p { color: #b4c6b8; }
:root[data-theme="dark"] .role-expand .role-expand-message,
:root[data-theme="dark"] .role-expand .role-expand-details li > span { color: #b9d899; }
:root[data-theme="dark"] .role-expand .role-expand-arrow { color: #263d31; }
@media (max-width: 900px) {
  .role-expand .role-expand-list { gap: 10px; }
  .role-expand .role-expand-card { padding: 22px 18px 76px; }
  .role-expand .role-expand-card h3 { font-size: 0.98rem; }
  .role-expand.is-ready .role-expand-card.is-open { flex-grow: 3.5; }
  .role-expand .role-expand-toggle { left: 18px; right: 18px; width: calc(100% - 36px); }
}
@media (max-width: 700px) {
  .role-expand.is-ready { overflow-x: auto; padding-bottom: 10px; }
  .role-expand .role-expand-list { gap: 14px; }
  .role-expand.is-ready .role-expand-list { min-width: 920px; }
  .role-expand .role-expand-card h3 { font-size: 1.1rem; }
  .role-expand .role-expand-details li p { font-size: 0.84rem; }
}
@media (prefers-reduced-motion: reduce) {
  .role-expand .role-expand-card,
  .role-expand .role-expand-details,
  .role-expand .role-expand-arrow { transition: none; }
}

.role-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .role-cards-grid {
    grid-template-columns: 1fr;
  }
}

.role-card {
  background: #FFFFFF;
  border: 1.5px solid #BFDBFE;
  border-top: 4.5px solid var(--blue-primary);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(29, 95, 209, 0.08);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

:root[data-theme="dark"] .role-card {
  background: rgba(11, 23, 40, 0.9);
  border-color: rgba(29, 95, 209, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.role-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 14px 34px rgba(29, 95, 209, 0.15);
}

.role-img-box {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.role-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.role-badge {
  display: inline-block;
  background: var(--gold);
  color: #0F172A;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.role-card-title {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.role-card-desc {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.role-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink);
}

.role-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-features-list li svg {
  color: var(--green);
  flex-shrink: 0;
}



/* ==========================================================================
   6-Step Implementation Roadmap (Hành Trình 6 Bước Đồng Hành Cùng Thôn Ấp)
   ========================================================================== */
.steps-section {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.09) 0%, transparent 50%),
    linear-gradient(180deg, #FFFDF5 0%, #FEF8E8 50%, #FFF7E2 100%);
  padding: 80px 0 90px;
  border-top: 2px solid #FDE68A;
  border-bottom: 2px solid #FDE68A;
  overflow: hidden;
}

:root[data-theme="dark"] .steps-section {
  background: linear-gradient(180deg, #1A1408 0%, #241B0B 50%, #1A1408 100%);
  border-color: rgba(245, 158, 11, 0.35);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: #FFFFFF;
  border: 1.5px solid #FDE68A;
  border-top: 4.5px solid #F59E0B;
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="dark"] .step-card {
  background: rgba(28, 20, 8, 0.85);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.step-card:hover {
  border-color: #F59E0B;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.14);
}

.step-badge {
  display: inline-block;
  background: #FFFBEB;
  color: #B45309;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border: 1px solid #F59E0B;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step-card h3 {
  font-size: 1.15rem;
  color: #0B2F6B;
  font-weight: 800;
  margin-bottom: 8px;
}

:root[data-theme="dark"] .step-card h3 {
  color: #FDE68A;
}

.step-card p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

:root[data-theme="dark"] .step-card p {
  color: #CBD5E1;
}

/* Isolated alternating circular six-step flow. */
.steps-flow .steps-flow-scroll {
  overflow-x: auto;
  padding: 22px 8px 30px;
}
.steps-flow .steps-flow-stage {
  position: relative;
  min-width: 1120px;
}
.steps-flow .steps-flow-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.steps-flow [data-steps-beam],
.steps-flow [data-steps-glow] {
  filter: drop-shadow(0 0 5px #f59e0b);
}
.steps-flow .steps-flow-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  align-items: start;
}
.steps-flow .steps-flow-column {
  --step-color: #06b6d4;
  --step-ring: #a5f3fc;
  position: relative;
  aspect-ratio: 1;
  border: 2px dashed var(--step-ring);
  border-radius: 50%;
  text-align: center;
}
.steps-flow .steps-flow-column:nth-child(even) { margin-top: 100px; }
.steps-flow .steps-flow-column:nth-child(2) { --step-color: #ec4899; --step-ring: #fbcfe8; }
.steps-flow .steps-flow-column:nth-child(3) { --step-color: #6366f1; --step-ring: #c7d2fe; }
.steps-flow .steps-flow-column:nth-child(4) { --step-color: #f59e0b; --step-ring: #fde68a; }
.steps-flow .steps-flow-column:nth-child(5) { --step-color: #a855f7; --step-ring: #e9d5ff; }
.steps-flow .steps-flow-column:nth-child(6) { --step-color: #22c55e; --step-ring: #bbf7d0; }
.steps-flow .steps-flow-node {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid var(--step-color);
  border-radius: 50%;
  background: #ffffff;
  color: var(--step-color);
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.steps-flow .steps-flow-card {
  position: absolute;
  inset: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border: 1px solid #f1f5f9;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #ffffff, #ffffff 60%, #f8fafc);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.steps-flow .steps-flow-card svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  color: var(--step-color);
}
.steps-flow .steps-flow-card h3 {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 6px;
  color: #0f172a;
}
.steps-flow .steps-flow-card p {
  font-size: 0.7rem;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
}
.steps-flow .is-active .steps-flow-node {
  background: var(--step-color);
  color: #ffffff;
  box-shadow: 0 0 16px var(--step-ring);
}
.steps-flow .is-active .steps-flow-card {
  border-color: var(--step-color);
  box-shadow: 0 0 22px var(--step-ring);
}
.steps-flow button:focus-visible,
.steps-flow .steps-flow-scroll:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}
:root[data-theme="dark"] .steps-flow .steps-flow-card {
  background: #1e293b;
  border-color: #334155;
}
:root[data-theme="dark"] .steps-flow .steps-flow-card h3 { color: #f1f5f9; }
:root[data-theme="dark"] .steps-flow .steps-flow-card p { color: #cbd5e1; }
:root[data-theme="dark"] .steps-flow .is-active .steps-flow-card { border-color: var(--step-color); }
@media (prefers-reduced-motion: reduce) {
  .steps-flow .steps-flow-node,
  .steps-flow .steps-flow-card { transition: none; }
}

.step-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: 8px;
}

:root[data-theme="dark"] .step-num {
  color: #60A5FA;
}

.step-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ==========================================================================
   Standard GovTech Footer 
   ========================================================================== */
.foot {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: #0B1B36;
  color: #CBD5E1;
  padding: 60px 0 35px;
  border-top: 3px solid var(--gold);
}

.foot-wrap {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.foot-col h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 18px;
  position: relative;
  letter-spacing: 0.02em;
}

.foot-col h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2.5px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 2px;
}

.foot-col .brand-logo {
  height: 52px;
  width: auto;
  margin-bottom: 14px;
}

.foot-tag {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.foot-quote {
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 14px;
}

.foot-about {
  font-size: 0.9rem;
  color: #E2E8F0;
}

.foot-commit,
.foot-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot-commit li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #E2E8F0;
}

.foot-commit li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10B981;
  font-weight: 900;
}

.foot-company {
  font-weight: 800;
  color: #FFFFFF;
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.foot-contact li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #E2E8F0;
}

.foot-contact a {
  color: var(--gold);
  text-decoration: none;
}
.foot-contact a:hover {
  text-decoration: underline;
}

.foot-contact .is-bold {
  font-weight: 800;
  font-size: 1.05rem;
  color: #FBBF24;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.88rem;
  color: #94A3B8;
  flex-wrap: wrap;
  gap: 12px;
}

.foot-bottom strong {
  color: #FFFFFF;
}

.foot-motto {
  color: var(--gold);
  font-weight: 700;
}


/* ==========================================================================
   Modal Dialog (Đăng Ký Demo & Khảo Sát)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 23, 40, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--card);
  color: var(--ink);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.25);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.is-active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  background: linear-gradient(135deg, #1D5FD1 0%, #0B2F6B 100%);
  color: #FFFFFF;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-header h3 {
  margin: 0;
  color: #FFFFFF;
  font-size: 1.3rem;
}

.modal-close-btn {
  background: transparent;
  border: 0;
  color: #FFFFFF;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--blue-primary);
  outline: none;
}

/* ==========================================================================
   Mobile Sticky Bottom Action Bar
   ========================================================================== */
.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--gold);
  padding: 8px 12px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .mobile-bottom-dock {
    display: flex;
    gap: 8px;
  }
}

.mobile-bottom-dock .btn {
  flex: 1;
  font-size: 0.88rem;
  padding: 9px 8px;
}

/* ==========================================================================
   Floating Scroll-to-Top Button
   ========================================================================== */
.scroll-top-btn {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 40;
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  background: #F8FAFC;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}


/* ==========================================================================
   Chatbot Widget (Hỏi Nhanh Về DLS)
   ========================================================================== */
.chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  font-size: 1.6rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.chat-toggle:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.55);
}

.chat.is-open .chat-toggle {
  display: none;
}

.chat-panel {
  width: min(23rem, calc(100vw - 32px));
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.22);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  max-height: min(35rem, 80svh);
  overflow: hidden;
  animation: chatPopup 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatPopup {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.chat-panel[hidden] {
  display: none;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1D5FD1 0%, #0B2F6B 100%);
  color: #FFFFFF;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-head strong {
  display: block;
  font-size: 1rem;
}

.chat-head span {
  font-size: 0.78rem;
  color: #BFDBFE;
}

.chat-close-btn {
  background: transparent;
  border: 0;
  color: #FFFFFF;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  background: var(--paper);
}

.chat-msg {
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  max-width: 88%;
  word-break: break-word;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.chat-msg-bot {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #E2E8F0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

:root[data-theme="dark"] .chat-msg-bot {
  background: #23344E;
  color: #F8FAFC;
  border-color: #385177;
}

.chat-msg-user {
  background: linear-gradient(135deg, #1D5FD1 0%, #0B2F6B 100%);
  color: #FFFFFF;
  border-color: transparent;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.chat-suggestion-chip {
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  cursor: pointer;
  transition: var(--transition);
}

.chat-suggestion-chip:hover {
  background: var(--blue-soft);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
}

.chat-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.9rem;
  background: #F8FAFC;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus {
  border-color: #2563EB;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.chat-submit-btn {
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  transition: all 0.2s ease;
}

.chat-submit-btn:hover {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5);
  transform: translateY(-1px);
}

/* Adjust mobile layout with bottom dock */
@media (max-width: 600px) {
  body {
    padding-bottom: 60px;
  }

  .chat {
    bottom: 74px;
    right: 14px;
  }

  .scroll-top-btn {
    bottom: 136px;
    right: 14px;
  }
}


/* ==========================================================================
   3D / 4D / 5D IMMERSIVE VISUAL SYSTEM (HIỆU ỨNG ĐA CHIỀU SỐNG ĐỘNG)
   ========================================================================== */

/* 3D Perspective Containers */
.perspective-container {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.tilt-card-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
  will-change: transform;
}

.tilt-layer-3d {
  transform: translateZ(35px);
  transform-style: preserve-3d;
}

.tilt-layer-floating {
  transform: translateZ(55px);
  transform-style: preserve-3d;
}

/* Dynamic 3D Glare / Specular Sheen Effect */
.glare-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.18), transparent 80%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.tilt-card-3d:hover .glare-sheen {
  opacity: 0;
}

/* Ambient 4D Glowing Orbs & Mesh Backgrounds */
.mesh-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.mesh-glow-orb.blue {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #1D5FD1, rgba(29, 95, 209, 0));
}

.mesh-glow-orb.gold {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #F2B01E, rgba(242, 176, 30, 0));
}

@keyframes orbFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(60px, 40px, 0) scale(1.15);
  }

  100% {
    transform: translate3d(-40px, 80px, 0) scale(0.95);
  }
}

/* 4D Canvas for Golden Fireflies / Dust Particles */
#hero-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 3D Holographic Persona Card */
.role-card-3d {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px -4px rgba(11, 47, 107, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.role-card-3d:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: #93C5FD;
  box-shadow: 0 20px 45px -8px rgba(29, 95, 209, 0.18), 0 4px 14px rgba(15, 23, 42, 0.06);
}

.role-hologram-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(11, 23, 40, 0.85);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--gold);
  color: #FFD27A;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(242, 176, 30, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 3D Milestone Pedestals in Road */
.road-marker-3d {
  position: absolute;
  left: 8px;
  top: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border: 2.5px solid #FFFFFF;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 8px 20px -2px rgba(217, 119, 6, 0.45), 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 6;
  transform: rotate(-3deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.road-item:hover .road-marker-3d {
  transform: rotate(0deg) scale(1.1);
  box-shadow: 0 12px 25px -2px rgba(217, 119, 6, 0.6);
  background: linear-gradient(135deg, #FBBF24 0%, #B45309 100%);
}

/* 3D Glowing Button Pulses */
.btn-3d-glow {
  position: relative;
  overflow: hidden;
}

.btn-3d-glow::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg,
      transparent 20%,
      rgba(255, 255, 255, 0.35) 50%,
      transparent 80%);
  transform: rotate(30deg) translate3d(-100%, 0, 0);
  transition: transform 0.6s ease;
}

.btn-3d-glow:hover::after {
  transform: rotate(30deg) translate3d(100%, 0, 0);
}


/* ==========================================================================
   VILLAGE ATMOSPHERE & 3D/4D/5D BACKGROUND DECORATION SYSTEM
   Họa tiết Đồng Quê, Lũy Tre, Cánh Cò, Trống Đồng & Mạng Lưới Số 4.0
   ========================================================================== */

/* Enhanced Body Textured Backdrop */
body {
  background-color: #F4F7FC;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(29, 95, 209, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 35%, rgba(242, 176, 30, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 65%, rgba(21, 128, 61, 0.05) 0%, transparent 55%),
    radial-gradient(circle at 20% 85%, rgba(211, 47, 47, 0.04) 0%, transparent 45%),
    linear-gradient(to bottom, rgba(244, 247, 252, 0.93), rgba(244, 247, 252, 0.96)),
    url('../images/bg/nen-1.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
}

:root[data-theme="dark"] body {
  background-color: #060B14;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(29, 95, 209, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 40%, rgba(242, 176, 30, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(6, 11, 20, 0.94), rgba(6, 11, 20, 0.98)),
    url('../images/bg/nen-1.jpg');
}

/* Semi-translucent Frosted Glass Cards to let the rich background peek through */
.stat-box,
.pain-story-card,
.road-card,
.role-card-3d,
.step-card,
.solve-card {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

:root[data-theme="dark"] .stat-box,
:root[data-theme="dark"] .pain-story-card,
:root[data-theme="dark"] .road-card,
:root[data-theme="dark"] .role-card-3d,
:root[data-theme="dark"] .step-card,
:root[data-theme="dark"] .solve-card {
  background: rgba(15, 27, 44, 0.88) !important;
}

/* 60fps GPU Hardware Acceleration & Smooth Scroll Optimization */
.pain-section,
.legal-section,
.road-section,
.roles-section,
.solve-section,
.banner-section,
.steps-section {
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.road-3d-scene,
.banner-road-strip,
.rider,
.roadway-traveler {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 3D Floating Village Artifacts along Margins (Vật Thể 3D Lơ Lửng Ven Trang) */
.margin-artifact-3d {
  position: absolute;
  z-index: 4;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 0 16px rgba(242, 176, 30, 0.25);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  animation: artifactFloat var(--time, 5s) ease-in-out infinite alternate var(--delay, 0s);
}

:root[data-theme="dark"] .margin-artifact-3d {
  background: rgba(15, 27, 44, 0.92);
  color: #FFFFFF;
  border-color: rgba(242, 176, 30, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 16px rgba(242, 176, 30, 0.3);
}

.margin-artifact-3d:hover {
  transform: scale(1.1) translateY(-4px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 25px rgba(242, 176, 30, 0.5);
}

@keyframes artifactFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-14px) rotate(2deg);
  }
}

/* Road Paddy Backdrop Terraces (Đồng Lúa Vàng Ven Đường Làng) */
.road-section {
  position: relative;
  overflow: hidden;
}

.road-paddy-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 40%, rgba(242, 176, 30, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(34, 197, 94, 0.06) 0%, transparent 50%),
    repeating-linear-gradient(135deg, transparent, transparent 35px, rgba(242, 176, 30, 0.02) 35px, rgba(242, 176, 30, 0.02) 70px);
  z-index: 0;
}

/* Hide margin artifacts on smaller screens to keep mobile clean */
@media (max-width: 1200px) {
  .margin-artifact-3d {
    display: none !important;
  }
}

/* Shared blurred village photography behind the sections below the hero. */
.scenic-content {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: clip;
}
.scenic-content .scenic-backdrop {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: #edf2e7;
}
.scenic-content .scenic-layer {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(4px) saturate(0.85);
  transform: scale(1.04);
  opacity: 0;
  will-change: transform, opacity;
}
.scenic-content .scenic-layer:first-child { opacity: 1; }
.scenic-content .scenic-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(248, 250, 247, 0.68), rgba(244, 248, 241, 0.57));
}
.scenic-content > .scenic-section,
:root[data-theme="dark"] .scenic-content > .scenic-section {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.22);
}
.scenic-content > #phap-ly { padding-bottom: 32px; }
.scenic-content > #phap-ly .legal-showcase { padding-bottom: 12px; }
.scenic-content > #chuc-nang {
  padding-top: 40px;
  background: linear-gradient(120deg, rgba(240, 253, 250, 0.35), rgba(255, 255, 255, 0.4) 55%, rgba(255, 253, 245, 0.35));
}
:root[data-theme="dark"] .scenic-content > #chuc-nang {
  background: linear-gradient(120deg, rgba(15, 30, 43, 0.65), rgba(17, 27, 45, 0.72));
}
.scenic-content > .banner-section,
:root[data-theme="dark"] .scenic-content > .banner-section {
  background: rgba(11, 47, 107, 0.85);
}
.scenic-content .section-title {
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.65);
}
.scenic-content :is(.pain-story-card, .road-card, .legal-paper-card, .solve-card, .steps-flow-card) {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.13);
}
.scenic-content .role-expand-card { box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1); }
.scenic-content .stamps-grid {
  background: rgba(255, 255, 255, 0.96);
}
:root[data-theme="dark"] .scenic-content .scenic-backdrop::after {
  background: linear-gradient(180deg, rgba(7, 15, 27, 0.79), rgba(7, 15, 27, 0.72));
}
:root[data-theme="dark"] .scenic-content .section-title { text-shadow: none; }
:root[data-theme="dark"] .scenic-content .stamps-grid { background: rgba(19, 33, 55, 0.96); }
@media (max-width: 700px) {
  .scenic-content .scenic-layer { filter: blur(3px) saturate(0.85); }
  .scenic-content > #phap-ly { padding-bottom: 24px; }
  .scenic-content > #chuc-nang { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .scenic-content .scenic-layer { will-change: auto; }
}
