/* Front-end polish layer.
   Loaded last to smooth the current UI without rewriting every page stylesheet. */

:root {
  --ui-ring: 0 0 0 4px rgba(37, 99, 235, 0.16);
  --ui-card-shadow: 0 14px 42px rgba(15, 23, 42, 0.09);
  --ui-card-shadow-strong: 0 20px 58px rgba(15, 23, 42, 0.16);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% -10%, rgba(26, 86, 219, 0.08), transparent 28rem),
    linear-gradient(180deg, #f8fafc 0, #fff 18rem);
}

img,
svg,
video {
  max-width: 100%;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.95) !important;
  outline-offset: 3px;
}

:where(.btn-nav-cta, .btn-hero-main, .btn-hero-sec, .btn-inline-cta, .btn-submit, .lp-btn, .btn-cta, .sticky-btn, .section-link) {
  touch-action: manipulation;
  will-change: transform;
}

:where(.btn-nav-cta, .btn-hero-main, .btn-hero-sec, .btn-inline-cta, .btn-submit, .lp-btn, .btn-cta, .sticky-btn):hover {
  filter: saturate(1.08);
}

:where(.btn-nav-cta, .btn-hero-main, .btn-hero-sec, .btn-inline-cta, .btn-submit, .lp-btn, .btn-cta, .sticky-btn):active {
  transform: translateY(0) scale(0.985) !important;
}

.main-nav {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

.nav-inner {
  gap: clamp(8px, 1.2vw, 18px);
}

.nav-logo span,
.nav-links a,
.nav-login-link,
.btn-nav-cta,
.nav-hotline-link {
  letter-spacing: 0;
}

.nav-links a[aria-current="page"],
.nav-links a.active {
  color: #0f172a !important;
  background: rgba(26, 86, 219, 0.08) !important;
}

.nav-links a:hover {
  background: rgba(26, 86, 219, 0.07) !important;
}

.hero {
  isolation: isolate;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: center !important;
}

.hero-slide-title,
.hero h1,
.hero h2 {
  text-wrap: balance;
}

.hero-sub,
.sec-sub,
.lp-service-copy > p,
.sv-hero-desc {
  text-wrap: pretty;
}

.hero-image-wrapper {
  max-width: min(500px, 100%) !important;
  border-radius: 28px !important;
  box-shadow: 0 28px 70px rgba(2, 8, 23, 0.35) !important;
}

.hero-img {
  background: rgba(15, 23, 42, 0.55);
}

.hero-slider-dot {
  position: relative;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-slider-dot:hover,
.hero-slider-dot:focus-visible {
  transform: scale(1.18);
  background: #fff;
}

.hero-slider-dot.active {
  background: var(--hero-accent, #60a5fa);
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.14);
}

.hero-stats,
.svc-card,
.process-card,
.testi-card,
.why-card,
.lp-card,
.lp-service-card,
.sv-card,
.contact-form {
  box-shadow: var(--ui-card-shadow);
}

.svc-card,
.process-card,
.testi-card,
.lp-card,
.lp-service-card,
.sv-card {
  transform: translateZ(0);
}

.svc-card:hover,
.process-card:hover,
.testi-card:hover,
.lp-card:hover,
.lp-service-card:hover,
.sv-card:hover {
  box-shadow: var(--ui-card-shadow-strong) !important;
}

.svc-card h3,
.sv-card h3,
.lp-card h3,
.process-card h3 {
  line-height: 1.24;
}

.svc-card p,
.sv-card p,
.lp-card p,
.process-card p {
  line-height: 1.68;
}

.tc-chat-widget {
  font-family: var(--font-body) !important;
}

.tc-bubble {
  box-shadow: 0 14px 34px rgba(26, 86, 219, 0.38) !important;
}

.tc-chat-window,
.tc-fab-menu {
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2) !important;
}

@media (max-width: 991px) {
  .hero-grid,
  .lp-service-hero {
    grid-template-columns: 1fr !important;
  }

  .hero-text-content {
    text-align: center;
    align-items: center;
  }

  .hero-image-content {
    max-width: 520px;
  }
}

@media (max-width: 767px) {
  .hero-slide-title,
  .hero h1,
  .hero h2 {
    font-size: clamp(2rem, 10vw, 2.75rem) !important;
    line-height: 1.08 !important;
  }

  .hero-ctas,
  .lp-hero-actions {
    flex-wrap: wrap !important;
  }

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

  .svc-grid {
    gap: 16px;
  }

  .tc-chat-widget {
    right: 16px;
    bottom: 16px;
  }

  .tc-chat-window {
    width: calc(100vw - 32px);
    max-width: 360px;
    height: min(520px, calc(100vh - 120px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* UI refresh v2: clearer header, balanced hero, softer cards. */
body {
  color: #0f172a;
  font-size: 16px;
  letter-spacing: -0.005em;
}

.container,
.hero-inner,
.lp-shell,
.lp-landing-page.container {
  max-width: 1180px !important;
}

nav.main-nav {
  border-bottom: 1px solid rgba(226, 232, 240, 0.82) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-inner {
  height: 68px !important;
}

.nav-logo {
  min-width: 0;
  gap: 10px !important;
  padding: 8px 10px 8px 8px;
  border-radius: 999px;
  color: #1035a0 !important;
  background: linear-gradient(135deg, rgba(238, 243, 255, 0.9), rgba(255, 255, 255, 0.65));
}

.nav-logo img {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  flex: 0 0 34px;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.nav-logo span {
  color: #1035a0;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  align-items: center;
  gap: 4px !important;
}

.nav-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 12px !important;
  border-radius: 999px !important;
  color: #111827 !important;
  font-size: 0.92rem !important;
  font-weight: 750 !important;
}

.nav-links a::after {
  display: none !important;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-links a.active {
  color: #1035a0 !important;
  background: #eef3ff !important;
}

.nav-right {
  gap: 8px !important;
}

.icon-btn,
.nav-login-link,
.btn-nav-cta,
.mobile-toggle {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px !important;
}

.icon-btn,
.nav-login-link {
  color: #0f172a !important;
}

.icon-btn:hover,
.nav-login-link:hover {
  color: #1a56db !important;
  background: #eef3ff !important;
}

.btn-nav-cta {
  padding: 0 18px !important;
  background: linear-gradient(135deg, #2563eb, #1a56db) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25) !important;
}

.nav-hotline-group {
  padding-left: 14px !important;
  border-left-color: rgba(226, 232, 240, 0.9) !important;
}

.hero {
  padding-top: clamp(56px, 7vw, 86px) !important;
  background:
    radial-gradient(circle at 76% 16%, rgba(96, 165, 250, 0.22), transparent 28rem),
    radial-gradient(circle at 18% 80%, rgba(34, 211, 238, 0.12), transparent 24rem),
    linear-gradient(135deg, #07183f 0%, #0b2163 50%, #07142f 100%) !important;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: clamp(36px, 4.2vw, 58px) !important;
  min-height: min(520px, calc(100vh - 170px));
}

.hero-text-content {
  align-items: flex-start;
  max-width: 580px;
}

.hero-slide-title,
.hero h1,
.hero h2 {
  max-width: 650px !important;
  margin-bottom: 20px !important;
  font-size: clamp(2.35rem, 4.1vw, 4.25rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.055em !important;
}

.hero-slide-title em {
  margin-top: 8px !important;
  line-height: 1.04 !important;
}

.hero-sub {
  max-width: 560px !important;
  margin-bottom: 26px !important;
  color: rgba(226, 232, 240, 0.9) !important;
  font-size: clamp(1rem, 1.35vw, 1.12rem) !important;
}

.hero-ctas {
  gap: 14px !important;
  margin-bottom: 24px !important;
}

.btn-hero-main,
.btn-hero-sec,
.btn-inline-cta,
.section-link,
.lp-btn,
.btn-cta {
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-trust i {
  color: #4ade80;
}

.hero-image-content {
  justify-content: flex-end !important;
}

.hero-image-wrapper {
  max-width: min(520px, 100%) !important;
  border: 1px solid rgba(191, 219, 254, 0.22) !important;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 64, 175, 0.28)) !important;
}

.hero-img {
  min-height: 330px;
  object-fit: cover;
}

.hero-stats {
  max-width: 880px !important;
  border-radius: 22px !important;
  background: rgba(7, 24, 63, 0.88) !important;
}

.section {
  padding: clamp(64px, 8vw, 96px) 0 !important;
}

.split-heading {
  align-items: end !important;
  gap: 28px !important;
}

.sec-eyebrow,
.sv-eyebrow,
.lp-badge {
  letter-spacing: 0.08em !important;
}

.sec-title,
.lp-service-copy h1,
.lp-landing-page .lp-hero h1,
.sv-hero h1,
.sv-sec-title {
  letter-spacing: -0.04em !important;
  text-wrap: balance;
}

.svc-grid,
.process-grid,
.testi-grid,
.why-grid {
  gap: clamp(16px, 2vw, 24px) !important;
}

.svc-card,
.process-card,
.testi-card,
.why-card,
.sv-card,
.lp-card,
.lp-service-card,
.contact-form {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.svc-card:hover,
.process-card:hover,
.testi-card:hover,
.sv-card:hover,
.lp-card:hover,
.lp-service-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
}

.lp-service-copy h1,
.lp-service-copy h1 em,
.sv-card h3,
.svc-card h3 {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.lp-service-hero,
.lp-landing-page .lp-hero,
.sv-hero {
  border-radius: 30px !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.17) !important;
}

footer {
  margin-top: 0 !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(37, 99, 235, 0.2), transparent 28rem),
    #06112f !important;
}

.footer-grid {
  gap: clamp(28px, 5vw, 64px) !important;
}

.footer-col a,
.footer-brand p {
  line-height: 1.7 !important;
}

@media (max-width: 1180px) {
  .nav-hotline-group {
    display: none !important;
  }

  .nav-links a {
    padding-inline: 10px !important;
    font-size: 0.88rem !important;
  }
}

@media (max-width: 991px) {
  .hero-grid {
    min-height: auto;
  }

  .hero-text-content {
    align-items: center;
    max-width: 720px;
    margin-inline: auto;
  }

  .hero-image-content {
    justify-content: center !important;
  }

  .hero-slide-title,
  .hero h1,
  .hero h2,
  .hero-sub {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .nav-inner {
    height: 62px !important;
  }

  .nav-logo {
    padding: 6px !important;
    background: transparent;
  }

  .hero {
    padding-top: 42px !important;
  }

  .hero-slide-title,
  .hero h1,
  .hero h2 {
    font-size: clamp(2rem, 10.5vw, 2.85rem) !important;
    letter-spacing: -0.045em !important;
  }

  .hero-img {
    min-height: 240px;
  }
}