/*
 * CiCC Platform Theme 5.0.0 — AI x LeanERP Command Center
 * A focused visual layer over the existing v4 templates.
 */

:root {
  --v5-ink: #07111f;
  --v5-ink-soft: #10243d;
  --v5-electric: #45b7ff;
  --v5-cyan: #22d3ee;
  --v5-violet: #8b5cf6;
  --v5-lime: #b7f34a;
  --v5-glass: rgba(255, 255, 255, .72);
  --v5-radius-lg: 28px;
  --v5-radius-md: 18px;
  --v5-ease: cubic-bezier(.22, 1, .36, 1);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--v5-cyan) !important;
  outline-offset: 3px;
}
.skip-link:focus {
  z-index: 9999;
  background: var(--v5-ink) !important;
  color: #fff !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Shared SVG icon sizing for areas migrated away from emoji placeholders. */
.search-result-icon,
.section-tag-icon,
.btn-icon,
.wiki-title-icon,
.wiki-group-icon > .icon,
.wiki-card-icon > .icon,
.trial-inline-icon,
.trial-location-icon > .icon,
.trial-industry-icon > .icon,
.trial-app-icon > .icon,
.tc-icon > .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.search-result-icon svg { width: 18px; height: 18px; }
.section-tag-icon svg, .btn-icon svg { width: 1em; height: 1em; }
.wiki-title-icon svg { width: 1.1em; height: 1.1em; }
.wiki-group-icon > .icon svg, .wiki-card-icon > .icon svg { width: 28px; height: 28px; }
.search-empty-icon { color: var(--v5-cyan); margin-bottom: var(--space-lg); }
.search-empty-icon svg { width: 56px; height: 56px; }
.trial-inline-icon svg { width: 16px; height: 16px; }
.trial-location-icon > .icon svg, .trial-industry-icon > .icon svg,
.trial-app-icon > .icon svg, .tc-icon > .icon svg { width: 1.4em; height: 1.4em; }
.eco-site-icon > .icon svg { width: 38px; height: 38px; }

/* The page reads as one product surface instead of a collection of sections. */
body {
  background:
    radial-gradient(circle at 8% 0%, rgba(69, 183, 255, .08), transparent 32rem),
    radial-gradient(circle at 92% 16%, rgba(139, 92, 246, .07), transparent 28rem),
    var(--bg-primary) !important;
}

.top-bar {
  background: #06101d !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.site-header {
  background: rgba(7, 17, 31, .92) !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 14px 40px rgba(3, 10, 20, .18) !important;
  backdrop-filter: blur(18px) saturate(140%);
}

.site-switcher .site-link.active,
.site-switcher .site-link:hover {
  color: var(--v5-cyan) !important;
}

.hero {
  isolation: isolate;
  min-height: min(780px, calc(100vh - 105px));
  background:
    linear-gradient(90deg, rgba(3, 12, 26, .30), rgba(8, 31, 61, .14)),
    url('../images/branding/leanerp-command-center-wow-v5.webp') right center / cover no-repeat,
    linear-gradient(118deg, rgba(3, 12, 26, .98) 0%, rgba(8, 31, 61, .96) 52%, rgba(31, 15, 73, .94) 100%) !important;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(4px);
  opacity: .34;
  pointer-events: none;
}

.hero::before {
  top: -18rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(34,211,238,.55), transparent 68%);
}

.hero::after {
  bottom: -22rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(139,92,246,.55), transparent 68%);
}

.hero-content {
  padding-top: clamp(4.5rem, 10vw, 8rem) !important;
  padding-bottom: clamp(4rem, 9vw, 7rem) !important;
}

.hero-badge {
  border: 1px solid rgba(69,183,255,.38) !important;
  background: rgba(69,183,255,.10) !important;
  color: #bcecff !important;
  box-shadow: 0 0 0 6px rgba(69,183,255,.04), 0 10px 30px rgba(0,0,0,.16) !important;
}

.hero-title {
  max-width: 920px;
  letter-spacing: -.055em !important;
  text-wrap: balance;
  text-shadow: 0 8px 34px rgba(0,0,0,.25);
}

.hero-title strong,
.hero-title .gradient-text {
  background: linear-gradient(100deg, #fff 10%, var(--v5-cyan) 52%, #c4b5fd 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 720px !important;
  color: rgba(226, 242, 255, .78) !important;
}

.hero-cta .btn,
.hero-cta a {
  border-radius: 999px !important;
  transition: transform .25s var(--v5-ease), box-shadow .25s var(--v5-ease) !important;
}

.hero-cta .btn-primary {
  background: linear-gradient(120deg, var(--v5-electric), #6366f1) !important;
  border: 0 !important;
  box-shadow: 0 14px 34px rgba(69,183,255,.24) !important;
}

.hero-cta .btn:hover,
.hero-cta a:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 38px rgba(69,183,255,.28) !important;
}

.hero-ai-quick-chat {
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(4, 15, 29, .58) !important;
  border-radius: var(--v5-radius-md) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.20) !important;
  backdrop-filter: blur(12px);
}

.hero-ai-chip {
  border-color: rgba(69,183,255,.24) !important;
  background: rgba(69,183,255,.08) !important;
  color: #c9efff !important;
}

.hero-stats {
  border-top-color: rgba(255,255,255,.14) !important;
}

.hero-stat strong {
  color: #fff !important;
  text-shadow: 0 0 24px rgba(69,183,255,.36);
}

.section-header h2 {
  letter-spacing: -.04em;
  text-wrap: balance;
}

.section-tag {
  background: linear-gradient(120deg, #0e7490, #4f46e5) !important;
  box-shadow: 0 8px 18px rgba(79,70,229,.16);
}

.pillar-card,
.module-card,
.ai-feature-card,
.course-card,
.case-card,
.blog-card,
.testimonial-card {
  border-radius: var(--v5-radius-lg) !important;
  transition: transform .35s var(--v5-ease), box-shadow .35s var(--v5-ease), border-color .35s var(--v5-ease) !important;
}

.pillar-card:hover,
.module-card:hover,
.ai-feature-card:hover,
.course-card:hover,
.case-card:hover,
.blog-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 60px rgba(15,23,42,.16) !important;
}

.modules-section {
  position: relative;
  background:
    radial-gradient(circle at 78% 12%, rgba(34,211,238,.15), transparent 23rem),
    linear-gradient(135deg, #06101d, #101c3a 55%, #21134d) !important;
}

/* Visible Four Brothers cross-navigation: useful to people and crawlable by search engines. */
.footer-network {
  margin: 0 0 3rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(69, 183, 255, .18);
  border-radius: var(--v5-radius-lg);
  background: linear-gradient(135deg, rgba(18, 41, 70, .72), rgba(30, 20, 64, .7));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .16);
}

.footer-network-heading {
  max-width: 680px;
  margin-bottom: 1.25rem;
}

.footer-network-kicker {
  display: inline-block;
  margin-bottom: .55rem;
  color: var(--v5-cyan);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-network h2 {
  margin: 0 0 .5rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: -.035em;
}

.footer-network-heading p {
  margin: 0;
  color: rgba(226, 242, 255, .72);
  line-height: 1.7;
}

.footer-network-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.footer-network-link {
  display: flex;
  min-height: 7.2rem;
  flex-direction: column;
  justify-content: space-between;
  gap: .7rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--v5-radius-md);
  background: rgba(255, 255, 255, .055);
  color: #fff !important;
  text-decoration: none;
  transition: transform .28s var(--v5-ease), border-color .28s var(--v5-ease), background .28s var(--v5-ease);
}

.footer-network-link:hover,
.footer-network-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, .55);
  background: rgba(34, 211, 238, .12);
}

.footer-network-link strong { font-size: 1rem; }
.footer-network-link span { color: rgba(226, 242, 255, .68); font-size: .82rem; line-height: 1.5; }
.footer-network-link-current { border-color: rgba(183, 243, 74, .36); }
.footer-network-link-current strong { color: var(--v5-lime); }

@media (max-width: 900px) {
  .footer-network-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .footer-network-links { grid-template-columns: 1fr; }
}

.module-card {
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035)) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: #fff !important;
  backdrop-filter: blur(12px);
}

.module-card h3,
.module-card p {
  color: inherit !important;
}

/* Module Detail v5: make every LeanERP module feel like one product family. */
.phan-he-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(34,211,238,.14), transparent 24rem),
    linear-gradient(135deg, #07111f 0%, #10243d 58%, #21134d 100%) !important;
  border-bottom: 1px solid rgba(69,183,255,.16);
}

.phan-he-hero::after {
  content: '';
  position: absolute;
  inset: auto -8rem -15rem auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.24), transparent 68%);
  pointer-events: none;
}

.phan-he-hero .container { position: relative; z-index: 1; }

.phan-he-hero h1 {
  background: linear-gradient(100deg, #fff 15%, var(--v5-cyan) 58%, #c4b5fd 95%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  letter-spacing: -.05em !important;
}

.phan-he-hero .phan-he-subtitle { color: rgba(226,242,255,.78) !important; }
.phan-he-hero .hero-stat,
.phan-he-hero .hero-visual-card { background: rgba(255,255,255,.07) !important; border-color: rgba(255,255,255,.14) !important; }
.phan-he-hero .hero-stat-value,
.phan-he-hero .hero-stat-label,
.phan-he-hero .visual-title,
.phan-he-hero .visual-desc { color: #fff !important; }
.phan-he-hero .hero-stat-label,
.phan-he-hero .visual-desc { color: rgba(226,242,255,.68) !important; }
.phan-he-hero-cta .btn-primary { background: linear-gradient(120deg, var(--v5-electric), #6366f1) !important; box-shadow: 0 14px 34px rgba(69,183,255,.22) !important; }
.phan-he-hero-cta .btn-outline { border-color: rgba(255,255,255,.26) !important; color: #fff !important; }
.phan-he-hero-cta .btn-outline:hover { background: rgba(255,255,255,.10) !important; }

.phan-he-content,
.phan-he-comparison,
.phan-he-edge,
.phan-he-integration,
.phan-he-case-study,
.phan-he-pricing { scroll-margin-top: 7rem; }

.phan-he-related-eco .eco-box {
  border-color: rgba(69,183,255,.22) !important;
  background: linear-gradient(135deg, rgba(18,41,70,.78), rgba(30,20,64,.72)) !important;
}

.phan-he-related-eco .eco-box-text h3 { color: #fff !important; }
.phan-he-related-eco .eco-box-text p { color: rgba(226,242,255,.70) !important; }
.phan-he-related-eco .eco-box-links a { background: rgba(255,255,255,.07) !important; border-color: rgba(255,255,255,.14) !important; color: #fff !important; }
.phan-he-related-eco .eco-box-links a:hover { border-color: var(--v5-cyan) !important; color: var(--v5-cyan) !important; }

.module-ai-label {
  color: var(--v5-lime) !important;
  text-shadow: 0 0 18px rgba(183,243,74,.32);
}

.cta-section {
  background:
    linear-gradient(120deg, rgba(6,16,29,.98), rgba(25,35,112,.94)),
    radial-gradient(circle at 80% 30%, rgba(34,211,238,.3), transparent 22rem) !important;
}

@media (max-width: 700px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(3, 12, 26, .24), rgba(8, 31, 61, .32)),
      url('../images/branding/leanerp-mobile-v5.webp'),
      linear-gradient(118deg, rgba(3, 12, 26, .98), rgba(31, 15, 73, .94)) !important;
    background-position: center, center top, center;
  }
  .hero-content { padding-top: 3.5rem !important; }
  .hero-title { font-size: clamp(2.4rem, 12vw, 4rem) !important; }
  .hero-ai-quick-chat { margin-inline: 0 !important; }
  .pillar-card, .module-card, .ai-feature-card { border-radius: 20px !important; }
}

/* Child-page skin: make legacy archives/singles feel like one v5 product. */
body:not(.home) .site-main {
  color: var(--v5-ink);
}
body:not(.home) .site-main > .page-header,
body:not(.home) .site-main > .page-hero,
body:not(.home) .site-main .cs-header {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7rem) 1.25rem !important;
  background:
    linear-gradient(115deg, rgba(3,12,26,.97), rgba(20,35,86,.92) 58%, rgba(49,25,105,.90)),
    url('../images/branding/leanerp-command-center-wow-v5.webp') center/cover !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(34,211,238,.22);
}
body:not(.home) .site-main > .page-header::after,
body:not(.home) .site-main > .page-hero::after,
body:not(.home) .site-main .cs-header::after {
  content: '';
  position: absolute;
  left: 12%; right: 12%; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--v5-cyan), transparent);
  box-shadow: 0 0 22px rgba(34,211,238,.8);
}
body:not(.home) .site-main .page-header h1,
body:not(.home) .site-main .page-hero h1,
body:not(.home) .site-main .cs-header h1 { color: #fff !important; letter-spacing: -.035em; }
body:not(.home) .site-main .page-header p,
body:not(.home) .site-main .page-hero p,
body:not(.home) .site-main .cs-header p { color: rgba(226,242,255,.78) !important; }
body:not(.home) .site-main > .section,
body:not(.home) .site-main > section.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
body:not(.home) .site-main .section-header { max-width: 820px; margin-inline: auto; margin-bottom: 2.25rem; }
body:not(.home) .site-main .section-header h2,
body:not(.home) .site-main > .section h2 { letter-spacing: -.025em; }
body:not(.home) .site-main .section-header p { color: #52647a; }

body:not(.home) .site-main .course-card,
body:not(.home) .site-main .cs-card,
body:not(.home) .site-main .module-card,
body:not(.home) .site-main .phan-he-card,
body:not(.home) .site-main .post-card,
body:not(.home) .site-main .ai-card,
body:not(.home) .site-main .eco-site-card {
  border: 1px solid rgba(89,115,145,.18) !important;
  border-radius: var(--v5-radius-md) !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: 0 14px 45px rgba(8,31,61,.08) !important;
  overflow: hidden;
  transition: transform .28s var(--v5-ease), box-shadow .28s var(--v5-ease), border-color .28s ease;
}
body:not(.home) .site-main .course-card:hover,
body:not(.home) .site-main .cs-card:hover,
body:not(.home) .site-main .module-card:hover,
body:not(.home) .site-main .phan-he-card:hover,
body:not(.home) .site-main .post-card:hover,
body:not(.home) .site-main .eco-site-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34,211,238,.48) !important;
  box-shadow: 0 22px 60px rgba(8,31,61,.14) !important;
}
body:not(.home) .site-main .course-card h3,
body:not(.home) .site-main .cs-card h3,
body:not(.home) .site-main .module-card h3,
body:not(.home) .site-main .phan-he-card h3,
body:not(.home) .site-main .post-card h3,
body:not(.home) .site-main .eco-site-card h3 { letter-spacing: -.02em; }

body:not(.home) .site-main .archive-filters {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(89,115,145,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 30px rgba(8,31,61,.05);
}
body:not(.home) .site-main .chip,
body:not(.home) .site-main .filter-chip {
  border-radius: 999px;
  border-color: rgba(89,115,145,.24);
  transition: all .2s ease;
}
body:not(.home) .site-main .chip.active,
body:not(.home) .site-main .chip:hover,
body:not(.home) .site-main .filter-chip.active,
body:not(.home) .site-main .filter-chip:hover {
  background: var(--v5-ink-soft);
  border-color: var(--v5-ink-soft);
  color: #fff;
}
body:not(.home) .site-main .btn,
body:not(.home) .site-main .btn-primary,
body:not(.home) .site-main .btn-link { border-radius: 999px; }
body:not(.home) .site-main .btn-primary {
  background: linear-gradient(135deg, #0e7490, #4f46e5) !important;
  box-shadow: 0 10px 24px rgba(14,116,144,.20);
}
body:not(.home) .site-main .btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }

body:not(.home) .site-main .entry-content,
body:not(.home) .site-main .course-content,
body:not(.home) .site-main .cs-content-imported,
body:not(.home) .site-main .post-content {
  max-width: 780px;
  color: #26384d;
  font-size: 1.04rem;
  line-height: 1.82;
}
body:not(.home) .site-main .entry-content h2,
body:not(.home) .site-main .course-content h2,
body:not(.home) .site-main .cs-content-imported h2,
body:not(.home) .site-main .post-content h2 { margin-top: 2.5rem; color: var(--v5-ink-soft); }

/* Page-specific visual anchors. */
.ai-platform-v5 .ai-hero {
  background-image:
    linear-gradient(100deg, rgba(3,12,26,.92), rgba(8,31,61,.38)),
    url('../images/branding/leanerp-ai-platform-wow-v5.webp') !important;
  background-position: center, center;
  background-size: cover;
}
.service-hero,
.page-template-template-dich-vu .page-hero {
  background-image:
    linear-gradient(110deg, rgba(3,12,26,.92), rgba(8,52,61,.48)),
    url('../images/branding/leanerp-services-wow-v5.webp') !important;
  background-position: center;
  background-size: cover;
}
.courses-archive > .page-header {
  background-image:
    linear-gradient(115deg, rgba(3,12,26,.94), rgba(20,72,65,.58)),
    url('../images/branding/leanerp-academy-wow-v5.webp') !important;
}
.cs-archive > .page-header,
.cs-single .cs-header {
  background-image:
    linear-gradient(115deg, rgba(3,12,26,.94), rgba(20,35,86,.56)),
    url('../images/branding/leanerp-case-study-wow-v5.webp') !important;
}
.trial-main .tc-hero {
  background-image:
    linear-gradient(100deg, rgba(3,12,26,.88), rgba(8,31,61,.32)),
    url('../images/branding/leanerp-trial-command-v5.webp') !important;
  background-size: cover;
  background-position: center;
}
.docs-banner,
.eco-seo-hero,
body:not(.home) > .page-hero {
  background:
    linear-gradient(110deg, rgba(3,12,26,.94), rgba(20,35,86,.58)),
    url('../images/branding/leanerp-knowledge-hub-v5.webp') center/cover !important;
  border-bottom: 1px solid rgba(34,211,238,.24);
}
.eco-seo-hero {
  background-image:
    linear-gradient(110deg, rgba(3,12,26,.92), rgba(49,25,105,.54)),
    url('../images/branding/leanerp-ecosystem-v5.webp') !important;
}
body:not(.home) > .page-hero {
  background-image:
    linear-gradient(110deg, rgba(3,12,26,.92), rgba(20,35,86,.54)),
    url('../images/branding/leanerp-modules-wow-v5.webp') !important;
}

@media (max-width: 700px) {
  body:not(.home) .site-main > .page-header,
  body:not(.home) .site-main > .page-hero,
  body:not(.home) .site-main .cs-header {
    padding-block: 4rem !important;
    background-position: 64% center !important;
  }
  body:not(.home) .site-main .cs-bridge { margin-top: 2rem; }
  .ai-platform-v5 .ai-hero,
  .courses-archive > .page-header,
  .cs-archive > .page-header,
  .cs-single .cs-header,
  .trial-main .tc-hero { background-position: 62% center, 62% center !important; }
}

/* AI Platform v5: same command-center language as homepage and module detail. */
.ai-platform-v5 {
  background: var(--v5-navy) !important;
  color: #e8f4ff;
}
.ai-platform-v5 .ai-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(3, 12, 26, .96), rgba(24, 31, 94, .88)),
    url('../images/branding/leanerp-command-center-wow-v5.webp') center/cover;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.ai-platform-v5 .ai-hero::after {
  content: '';
  position: absolute;
  inset: auto 8% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--v5-cyan), transparent);
  box-shadow: 0 0 24px var(--v5-cyan);
}
.ai-platform-v5 .ai-hero-inner,
.ai-platform-v5 .ai-section,
.ai-platform-v5 .ai-cta { position: relative; z-index: 1; }
.ai-platform-v5 .section-tag { color: var(--v5-cyan); letter-spacing: .16em; }
.ai-platform-v5 .ai-hero h1 { text-shadow: 0 0 30px rgba(34,211,238,.24); }
.ai-platform-v5 .ai-card {
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035)) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
}
.ai-platform-v5 .ai-card:hover {
  border-color: rgba(34,211,238,.62) !important;
  transform: translateY(-5px);
}
.ai-platform-v5 .ai-cta .cta-box {
  background: linear-gradient(120deg, rgba(14,116,144,.72), rgba(76,29,149,.78)) !important;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 80px rgba(34,211,238,.15);
}

.cs-bridge {
  margin: 3rem 0 1rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(34,211,238,.22);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(8,47,73,.92), rgba(49,46,129,.72));
  color: #e8f4ff;
  text-align: center;
  box-shadow: 0 18px 55px rgba(3,12,26,.16);
}
.cs-bridge h2 { margin: .6rem 0 .5rem; color: #fff; }
.cs-bridge p { max-width: 680px; margin: 0 auto 1.2rem; color: rgba(226,242,255,.78); }
.cs-bridge-links { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.cs-bridge .btn-outline { border-color: rgba(255,255,255,.42); color: #fff; }
.cs-bridge .btn-outline:hover { border-color: var(--v5-cyan); color: var(--v5-cyan); }

@media (max-width: 700px) {
  .ai-platform-v5 .ai-hero {
    background-image:
      linear-gradient(180deg, rgba(3, 12, 26, .76), rgba(31, 15, 73, .92)),
      url('../images/branding/leanerp-mobile-v5.webp');
    background-position: center, center top;
  }
}

/* v5.1 visual polish: stronger light, depth and tactile interaction. */
:root {
  --v5-cyan-bright: #67e8f9;
  --v5-emerald: #34d399;
  --v5-indigo: #818cf8;
}

.hero::before,
.hero::after {
  animation: v5-orbit-glow 12s ease-in-out infinite alternate;
}

.hero::after { animation-delay: -4s; }

@keyframes v5-orbit-glow {
  from { transform: translate3d(-2%, 1%, 0) scale(.96); opacity: .28; }
  to { transform: translate3d(3%, -3%, 0) scale(1.08); opacity: .52; }
}

.hero-title strong,
.hero-title .gradient-text,
.phan-he-hero h1,
.ai-platform-v5 .ai-hero h1 {
  background-image: linear-gradient(100deg, #fff 6%, var(--v5-cyan-bright) 42%, var(--v5-emerald) 68%, #c4b5fd 96%);
  background-size: 180% auto;
  animation: v5-gradient-flow 8s ease-in-out infinite alternate;
}

@keyframes v5-gradient-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.hero-cta .btn-primary,
.phan-he-hero-cta .btn-primary,
body:not(.home) .site-main .btn-primary {
  background-image: linear-gradient(115deg, #22d3ee 0%, #3b82f6 46%, #8b5cf6 100%) !important;
  background-size: 180% 180%;
  animation: v5-button-flow 7s ease-in-out infinite alternate;
}

@keyframes v5-button-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.pillar-card,
.module-card,
.ai-feature-card,
.course-card,
.case-card,
.blog-card,
.testimonial-card,
.ai-platform-v5 .ai-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(34, 211, 238, .16) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255,255,255,.62);
}

.pillar-card::before,
.module-card::before,
.ai-feature-card::before,
.course-card::before,
.case-card::before,
.blog-card::before,
.testimonial-card::before,
.ai-platform-v5 .ai-card::before {
  content: '';
  position: absolute;
  inset: 0 18% auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--v5-cyan), var(--v5-emerald), transparent);
  opacity: .45;
  transition: opacity .35s ease, transform .35s var(--v5-ease);
}

.pillar-card:hover::before,
.module-card:hover::before,
.ai-feature-card:hover::before,
.course-card:hover::before,
.case-card:hover::before,
.blog-card:hover::before,
.testimonial-card:hover::before,
.ai-platform-v5 .ai-card:hover::before {
  opacity: 1;
  transform: scaleX(1.4);
}

body:not(.home) .site-main > .page-hero::after {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--v5-cyan-bright), var(--v5-emerald), transparent);
  box-shadow: 0 0 24px rgba(34,211,238,.75);
}

.section-tag {
  background-image: linear-gradient(120deg, #0891b2, #2563eb 52%, #7c3aed) !important;
  box-shadow: 0 0 0 4px rgba(34,211,238,.06), 0 10px 25px rgba(37,99,235,.24);
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero-title strong,
  .hero-title .gradient-text,
  .phan-he-hero h1,
  .ai-platform-v5 .ai-hero h1,
  .hero-cta .btn-primary,
  .phan-he-hero-cta .btn-primary,
  body:not(.home) .site-main .btn-primary { animation: none; }
}
