:root {
  --primary: #5b55ff;
  --primary-dark: #4842e0;
  --dark: #061a2f;
  --navy: #03182d;
  --text: #07162e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --surface: #f8fafc;
  --scroll-offset: 90px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.1);
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

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

.btn-main {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  font-weight: 700;
  border: 1px solid var(--primary);
  box-shadow: 0 10px 25px rgba(91, 85, 255, 0.25);
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  text-decoration: none;
}

.btn-main:hover {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}

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

.btn-outline-main {
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  font-weight: 700;
  background: #fff;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  text-decoration: none;
}

.btn-outline-main:hover {
  background: var(--primary);
  color: #fff;
}

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

.navbar {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), padding var(--transition);
}

.navbar.navbar-scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border);
  padding: 10px 0;
}

.navbar .container {
  gap: 12px;
}

.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(91, 85, 255, 0.2);
}

.navbar-toggler-icon {
  width: 1.35em;
  height: 1.35em;
}

.navbar-brand img {
  max-width: 165px;
}

.nav-link {
  font-weight: 700;
  color: var(--text);
  margin: 0 10px;
  font-size: 14px;
  padding: 8px 4px !important;
  position: relative;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-link.active {
  border-bottom: 2px solid var(--primary);
}

.mobile-nav-cta {
  width: 100%;
  margin-top: 16px;
}

.nav-cta-btn {
  margin-left: 0;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .navbar-collapse {
    align-items: center;
  }

  .nav-cta-btn {
    margin-left: 24px;
    width: auto;
    margin-top: 0;
  }
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1;
}

.page-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition);
}

.page-breadcrumb-divider {
  color: #cbd5e1;
  font-weight: 500;
  user-select: none;
}

.page-breadcrumb a:hover {
  color: var(--primary);
}

.page-breadcrumb-current {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.hero-page .page-breadcrumb {
  margin-bottom: 28px;
}

@media (max-width: 991px) {
  .hero-page .page-breadcrumb {
    justify-content: center;
  }
}

.section-head {
  margin-bottom: 40px;
}

.section-head .section-sub,
.section-head .page-sub {
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  min-height: 720px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  right: -150px;
  top: 0;
  width: 48%;
  height: 100%;
  background: var(--navy);
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -2px;
  margin: 0;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  color: #334155;
  font-size: 18px;
  line-height: 1.8;
  max-width: 550px;
  margin: 28px 0 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Inner page hero — matches home layout, shorter height */
.hero-page {
  min-height: 0;
  padding: 28px 0 72px;
}

.hero-page h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -1.5px;
}

.hero-page p {
  font-size: 17px;
  margin: 22px 0 28px;
}

.hero-page-compact {
  padding: 28px 0 48px;
}

.hero-page-compact::after {
  display: none;
}

.hero-page-compact .hero-content {
  text-align: left;
}

/* Content cards — case studies & blog */
.content-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.content-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91, 85, 255, 0.35);
}

.content-card > a.content-card-visual {
  display: block;
  text-decoration: none;
  color: inherit;
}

.content-card-visual {
  position: relative;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
}

.content-card-visual-case {
  background: linear-gradient(145deg, var(--navy) 0%, #172554 100%);
}

.content-card-visual-blog {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #4f46e5 0%, var(--navy) 100%);
}

.content-card-visual-img {
  background: var(--navy);
}

.content-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.content-card:hover .content-card-img {
  transform: scale(1.06);
}

.content-card-visual-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 40, 0.55) 0%, rgba(10, 15, 40, 0.08) 55%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.content-card-visual-img .content-card-tag-light {
  z-index: 2;
}

.content-card-visual-blog .content-card-tag-light {
  position: absolute;
  top: 16px;
  left: 16px;
  margin: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-card-visual-img .content-card-tag-light {
  position: absolute;
  bottom: 14px;
  left: 14px;
  top: auto;
  margin: 0;
  background: rgba(91, 85, 255, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card-chart {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  padding: 0 28px 20px;
  opacity: 0.55;
}

.card-chart span {
  flex: 1;
  max-width: 22px;
  height: var(--h, 50%);
  background: linear-gradient(180deg, #a5b4fc 0%, var(--primary) 100%);
  border-radius: 4px 4px 0 0;
}

.content-card-metric {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}

.content-card-metric strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.content-card-metric span {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.content-card-icon {
  font-size: 56px;
  color: rgba(255, 255, 255, 0.92);
}

.content-card-visual-blog .content-card-tag-light {
  position: absolute;
  top: 16px;
  left: 16px;
  margin: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.content-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.content-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(91, 85, 255, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
}

.content-card-tag i {
  font-size: 13px;
}

.content-card-duration,
.content-card-date,
.content-card-read {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.content-card-body h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 12px;
}

.content-card-body h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.content-card-body h3 a:hover {
  color: var(--primary);
}

.content-card-body p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--transition);
}

.content-card-action:hover {
  gap: 12px;
  color: var(--primary-dark);
}

.cards-row > [class*="col-"] {
  display: flex;
}

.cards-row .content-card {
  width: 100%;
}

.detail-tag {
  display: inline-block;
  background: rgba(91, 85, 255, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.detail-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.detail-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.detail-meta i {
  color: var(--primary);
}

.detail-block {
  margin-bottom: 40px;
}

.detail-block h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.detail-block p {
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

.detail-list i {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.result-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  height: 100%;
}

.result-box strong {
  display: block;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 6px;
}

.result-box span {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.detail-quote {
  background: linear-gradient(135deg, var(--navy), #172554);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 0;
  border-left: 0;
}

.detail-quote p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #eef2ff;
}

.detail-quote cite {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
}

.detail-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: sticky;
  top: calc(var(--scroll-offset) + 16px);
}

.detail-sidebar h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.sidebar-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color var(--transition);
}

.sidebar-link:last-of-type {
  border-bottom: 0;
}

.sidebar-link strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.sidebar-link span {
  font-size: 13px;
  color: #64748b;
}

.sidebar-link:hover strong {
  color: var(--primary);
}

.post-cover-wrap {
  padding: 0 0 48px;
  background: #fff;
}

.post-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  line-height: 0;
}

.post-cover-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .post-cover-img {
    height: 220px;
  }
}

.article-body p {
  color: #475569;
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 20px;
}

.tip-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.tip-box h2 {
  font-size: 20px;
}

.banner-img {
  display: block;
  margin-left: auto;
  max-width: 620px;
  width: 100%;
}

.feature-mini {
  margin-top: 55px;
}

.mini-feature-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-feature-box i {
  font-size: 30px;
  color: #0f2340;
  flex-shrink: 0;
}

.mini-feature-box span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  display: block;
}

.section-dark {
  background: var(--navy);
  color: #fff;
  padding: 78px 0;
}

.section-title {
  font-size: clamp(26px, 4vw, 31px);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-sub {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.7;
  max-width: 620px;
}

.section-dark .section-sub:not(.mb-0) {
  margin-bottom: 0;
}

.section-dark .text-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 32px;
  height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(91, 85, 255, 0.5);
}

@media (hover: none) {
  .service-card:hover,
  .content-card:hover,
  .case-card:hover,
  .process-card:hover,
  .value-card:hover {
    transform: none;
  }
}

.icon-box {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 22px;
  margin-bottom: 22px;
}

.service-card h4 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-card p {
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 0;
}

.stats-section {
  padding: 70px 0;
  background: #fff;
}

.stats-section > .container > .section-head .page-sub,
.stats-section > .container > p {
  color: #334155;
}

.stat-item {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  height: 100%;
}

@media (min-width: 992px) {
  .stats-section .stat-item {
    background: transparent;
    border: 0;
    border-radius: 0;
    border-right: 1px solid var(--border);
    padding: 10px 20px;
  }

  .stats-section .row > [class*="col-"]:last-child .stat-item {
    border-right: 0;
  }
}

.stat-item i {
  color: var(--primary);
  font-size: 42px;
  margin-bottom: 12px;
  display: inline-block;
}

.stat-item h3 {
  color: var(--primary);
  font-weight: 700;
  font-size: 38px;
  margin-bottom: 5px;
}

.stat-item p {
  margin: 0;
  color: #334155;
  font-size: 14px;
}

.case-section {
  background: #fafafa;
  padding: 70px 0 90px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.case-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 85, 255, 0.25);
}

.case-card strong {
  display: block;
  margin-bottom: 10px;
}

.case-card h3 {
  color: var(--primary);
  font-weight: 700;
  font-size: 28px;
}

.mini-chart {
    height: 160px;
    background-image: url(../images/mini-chart.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 12px;
}

.cta {
  background: linear-gradient(90deg, #5b55ff, #172554);
  color: #fff;
  padding: 58px 0;
}

.cta small {
  font-weight: 800;
  text-transform: uppercase;
}

.cta h2 {
  font-size: 34px;
  font-weight: 700;
  margin: 10px 0 15px;
}

.cta p {
  margin: 0;
  color: #eef2ff;
}

.cta .btn {
  border-radius: var(--radius-sm);
  padding: 16px 36px;
  font-weight: 800;
  border: 1px solid #fff;
  color: var(--primary);
  background: #fff;
  min-height: 52px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.cta .btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

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

.page-section {
  padding: 78px 0;
  background: #fff;
}

.page-section-alt {
  background: #fafafa;
}

.page-section .section-title.text-dark,
.page-section .section-title {
  color: var(--text);
}

.page-sub {
  color: #64748b;
  font-size: 16px;
  line-height: 1.75;
  max-width: 620px;
}

.section-head .page-sub {
  max-width: 640px;
}

.process-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  border-color: rgba(91, 85, 255, 0.35);
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 18px;
}

.process-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.process-card p {
  color: #64748b;
  line-height: 1.7;
  margin: 0;
  font-size: 15px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(91, 85, 255, 0.35);
}

.value-card i {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 14px;
  display: block;
}

.value-card h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.value-card p {
  color: #64748b;
  line-height: 1.7;
  margin: 0;
  font-size: 14px;
}

.highlight-box {
  background: linear-gradient(135deg, var(--navy), #172554);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
}

.highlight-box .btn-main {
  width: auto;
}

.highlight-box .btn-main:hover {
  background: #fff;
  color: var(--primary);
}

.highlight-box h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.highlight-box p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 24px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: #334155;
  font-weight: 600;
  font-size: 15px;
}

.check-list i {
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

footer {
  background: var(--navy);
  color: #fff;
  padding: 60px 0 25px;
}

footer img {
  max-width: 170px;
  margin-bottom: 18px;
}

footer p,
footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
}

footer a:hover {
  color: #fff;
}

footer h5 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 22px;
}

.social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 8px;
  transition: background var(--transition), transform var(--transition);
}

.social a:hover {
  background: rgba(91, 85, 255, 0.45);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-bottom a {
  margin-left: 24px;
}

/* Large Laptop */
@media (max-width: 1199px) {
  .hero {
    min-height: 640px;
  }

  .hero p {
    font-size: 16px;
  }

  .banner-img {
    max-width: 520px;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .navbar {
    padding: 12px 0;
  }

  .navbar-collapse {
    background: #fff;
    padding: 16px;
    margin-top: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
  }

  .nav-cta-btn {
    width: 100%;
    margin-top: 12px;
  }

  .navbar-nav {
    width: 100%;
    align-items: stretch;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    margin: 0;
    display: block;
    width: 100%;
    padding: 12px 14px !important;
    border-radius: var(--radius-sm);
    min-height: 44px;
  }

  .nav-link:hover {
    background: var(--surface);
  }

  .nav-link.active {
    border-bottom: 0;
    background: rgba(91, 85, 255, 0.08);
    color: var(--primary) !important;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 48px;
    text-align: center;
  }

  .hero-page {
    padding: 24px 0 48px;
  }

  .hero-page-compact .hero-content {
    text-align: center;
  }

  .detail-sidebar {
    position: static;
    margin-top: 12px;
  }

  .content-card-visual {
    height: 160px;
  }

  .content-card-body {
    padding: 20px;
  }

  .content-card-body h3 {
    font-size: 17px;
  }

  .hero::after {
    display: none;
  }

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

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

  .feature-mini {
    margin-top: 36px;
    --bs-gutter-x: 1rem;
  }

  .mini-feature-box {
    justify-content: center;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    height: 100%;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .banner-img {
    margin: 0 auto;
    max-width: 560px;
  }

  .page-section {
    padding: 56px 0;
  }

  .section-dark,
  .stats-section,
  .case-section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .cta {
    text-align: center;
  }

  .cta .text-lg-end {
    text-align: center !important;
  }

  footer {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom a {
    margin: 0 12px;
  }
}

/* Mobile Landscape */
@media (max-width: 767px) {
  :root {
    --scroll-offset: 76px;
  }

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

  .hero-page {
    padding: 20px 0 40px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.7;
  }

  .page-breadcrumb {
    margin-bottom: 18px;
  }

  .highlight-box {
    padding: 28px 24px;
  }

  .highlight-box .btn-main {
    width: 100%;
  }

  .section-sub {
    font-size: 15px;
  }

  .service-card,
  .content-card-body,
  .process-card,
  .value-card {
    padding: 24px;
  }

  .stat-item {
    padding: 22px 12px;
  }

  .stat-item h3 {
    font-size: 28px;
  }

  .stat-item i {
    font-size: 30px;
  }

  .stat-item p {
    font-size: 13px;
  }

  .cta h2 {
    font-size: clamp(24px, 6vw, 30px);
  }
}

/* Mobile */
@media (max-width: 575px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .navbar-brand img {
    max-width: 130px;
  }

  .eyebrow {
    font-size: 12px;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-main,
  .btn-outline-main {
    width: 100%;
    padding: 12px 20px;
  }

  .hero-buttons .btn-main,
  .hero-buttons .btn-outline-main {
    margin-bottom: 0;
  }

  .feature-mini > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .mini-feature-box {
    justify-content: flex-start;
    max-width: none;
    margin: 0;
  }

  .banner-img {
    max-width: 100%;
  }

  .section-dark,
  .page-section,
  .page-section-alt {
    padding: 48px 0;
  }

  .stats-section {
    padding: 48px 0 32px;
  }

  .case-section {
    padding: 48px 0 56px;
  }

  .section-dark .service-card {
    text-align: center;
  }

  .icon-box {
    margin-left: auto;
    margin-right: auto;
  }

  .stat-item {
    padding: 20px 12px;
  }

  .mini-chart {
    height: 110px;
  }

  .cta {
    padding: 40px 0;
  }

  .cta .btn {
    width: 100%;
    padding: 14px 20px;
  }

  footer {
    padding-top: 40px;
  }

  footer img {
    max-width: 140px;
  }

  .footer-bottom a {
    display: inline-block;
    margin: 6px 10px;
  }

  .section-head {
    margin-bottom: 28px;
  }
}

/* ── Audit Popup Modal ─────────────────────────────────────────── */
.audit-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.audit-modal.is-open {
  display: flex;
}

.audit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 24, 45, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalBackdropIn 0.3s ease forwards;
}

@keyframes modalBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.audit-modal-dialog {
  position: relative;
  z-index: 1;
  width: 60%;
  max-width: 900px;
  min-width: 320px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(3, 24, 45, 0.35);
  overflow: hidden;
  animation: modalDialogIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalDialogIn {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.audit-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a1060 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.audit-modal-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0 0 6px;
  background: rgba(91, 85, 255, 0.18);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(91, 85, 255, 0.35);
}

.audit-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

.audit-modal-close {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  margin-top: 2px;
}

.audit-modal-close:hover {
  background: rgba(255,255,255,0.22);
  transform: rotate(90deg);
}

.audit-modal-body {
  height: 560px;
  padding: 0;
}

.audit-modal-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* Prevent body scroll while modal open */
body.audit-modal-open {
  overflow: hidden;
}

@media (max-width: 599px) {
  .audit-modal-dialog {
    max-width: 100%;
    border-radius: var(--radius-md);
  }

  .audit-modal-title {
    font-size: 18px;
  }

  .audit-modal-body {
    height: 480px;
  }
}