:root {
  --main-navy: #0b1f3a;
  --main-blue: #2563eb;
  --main-sky: #06b6d4;
  --main-ink: #142033;
  --main-muted: #64748b;
  --main-line: #e2e8f0;
  --main-bg: #f6f9fc;
  --main-white: #ffffff;
}
/* ===== Layout Safety / Horizontal Overflow Fix ===== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.tech-banner,
.tech-banner *,
.tech-banner *::before,
.tech-banner *::after,
.main-section,
.main-section *,
.main-section *::before,
.main-section *::after,
.stats,
.stats *,
.stats *::before,
.stats *::after,
.cta-wrap,
.cta-wrap *,
.cta-wrap *::before,
.cta-wrap *::after {
  box-sizing: border-box;
}

.tech-banner,
.main-section,
.stats,
.cta-wrap {
  max-width: 100%;
  overflow-x: clip;
}


/* ===== Main Hero ===== */
.tech-banner {
  position: relative;
  width: 100%;
  min-height: 580px;
  height: min(72vh, 760px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/images/banner.png') center/cover no-repeat;
  isolation: isolate;
}

.tech-banner::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(246,249,252,0), var(--main-bg));
  z-index: 0;
  pointer-events: none;
}

.tech-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(34,211,238,.28), transparent 34%),
    linear-gradient(125deg, rgba(4,20,45,.94) 0%, rgba(10,48,91,.88) 48%, rgba(2,132,199,.58) 100%);
}

.tech-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  text-align: center;
  color: #fff;
  padding: 28px 20px 56px;
}

.tech-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  color: #dff8ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 22px;
}

.tech-content h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 84px);
  line-height: .96;
  font-weight: 900;
  letter-spacing: -.045em;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0,0,0,.18);
}

.tech-content h1 span {
  color: #5ee7f7;
}

.tech-content p {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(236,248,255,.92);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
  word-break: keep-all;
}

.banner-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.banner-buttons .btn {
  min-width: 178px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.banner-buttons .btn:hover {
  transform: translateY(-2px);
}

.banner-buttons .btn-primary {
  color: #06304a;
  background: linear-gradient(135deg, #67e8f9, #38bdf8);
  box-shadow: 0 14px 36px rgba(14,165,233,.28);
}

.banner-buttons .btn-secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

/* ===== Shared Section ===== */
.main-section {
  background: var(--main-bg);
  padding: 76px 20px;
}

.main-section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 34px;
}

.section-heading .kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--main-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.section-heading h2 {
  margin: 0;
  color: var(--main-ink);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.section-heading p {
  margin: 12px auto 0;
  max-width: 720px;
  color: var(--main-muted);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

/* ===== Services ===== */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border: 1px solid var(--main-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: 0 22px 56px rgba(15,23,42,.11);
}

.service-no {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 22px;
}

.service-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -.02em;
}

.service-card h3 a {
  color: #0f2d5e;
  text-decoration: none;
}

.service-card p {
  margin: 14px 0 0;
  color: #5f6f85;
  font-size: 14px;
  line-height: 1.75;
  word-break: keep-all;
}

.service-card .service-link {
  margin-top: auto;
  padding-top: 22px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.service-card.special {
  border: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(94,234,212,.28), transparent 34%),
    linear-gradient(145deg, #0d47c8 0%, #0ea5e9 100%);
  box-shadow: 0 20px 54px rgba(37,99,235,.24);
}

.service-card.special::before {
  background: rgba(255,255,255,.55);
}

.service-card.special .service-no {
  background: rgba(255,255,255,.16);
  color: #fff;
}

.service-card.special h3 a,
.service-card.special .service-link {
  color: #fff;
}

.service-card.special p {
  color: rgba(239,249,255,.9);
}

/* ===== Stats ===== */
.stats {
  padding: 80px 20px;
  background: #fff;
}

.stat-items {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat-item {
  padding: 28px 20px;
  border: 1px solid var(--main-line);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.stat-item strong {
  display: block;
  margin-bottom: 7px;
  color: #1769e0;
  font-size: clamp(31px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.04em;
}

.stat-item span {
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
}

/* ===== CTA ===== */
.cta-wrap {
  padding: 0 20px 80px;
  background: #fff;
}

.cta {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  padding: 56px 28px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(34,211,238,.28), transparent 35%),
    linear-gradient(135deg, #0f2c5a, #075baf 55%, #0ea5e9);
  box-shadow: 0 24px 70px rgba(15,75,145,.2);
}

.cta h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.35;
  letter-spacing: -.03em;
}

.cta p {
  margin: 12px 0 0;
  color: rgba(235,248,255,.88);
  font-size: 15px;
}

.cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 24px;
  padding: 0 26px;
  border-radius: 12px;
  background: #fff;
  color: #0756a8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .tech-banner {
    min-height: 460px;
    height: auto;
    background-position: 62% center;
  }

  .tech-banner::after {
    height: 82px;
  }

  .tech-overlay {
    background:
      radial-gradient(circle at 78% 18%, rgba(34,211,238,.22), transparent 32%),
      linear-gradient(155deg, rgba(4,20,45,.96) 0%, rgba(10,48,91,.92) 58%, rgba(2,132,199,.68) 100%);
  }

  .tech-content {
    width: 100%;
    padding: 54px 20px 66px;
  }

  .tech-eyebrow {
    margin-bottom: 16px;
    padding: 7px 11px;
    font-size: 11px;
    letter-spacing: .1em;
  }

  .tech-content h1 {
    font-size: clamp(42px, 13vw, 54px);
    line-height: 1;
  }

  .tech-content p {
    max-width: 520px;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  .tech-content p br {
    display: none;
  }

  .banner-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: min(100%, 420px);
    margin: 26px auto 0;
  }

  .banner-buttons .btn {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 14px;
  }

  .banner-buttons .btn:first-child:last-child,
  .banner-buttons .btn:nth-child(3) {
    grid-column: 1 / -1;
  }

  .main-section,
  .stats {
    padding: 50px 18px;
  }

  .section-heading {
    margin-bottom: 25px;
  }

  .section-heading .kicker {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .section-heading h2 {
    font-size: clamp(25px, 7.5vw, 31px);
    line-height: 1.3;
  }

  .section-heading p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.65;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    min-height: 0;
    padding: 23px 22px 21px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15,23,42,.055);
  }

  .service-card:hover {
    transform: none;
  }

  .service-no {
    width: 34px;
    height: 34px;
    margin-bottom: 15px;
    border-radius: 10px;
    font-size: 12px;
  }

  .service-card h3 {
    font-size: 18px;
    line-height: 1.45;
  }

  .service-card p {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.68;
  }

  .service-card .service-link {
    margin-top: 17px;
    padding-top: 0;
    font-size: 13.5px;
  }

  .stats {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .stat-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-item {
    padding: 20px 7px 18px;
    border-radius: 16px;
  }

  .stat-item strong {
    margin-bottom: 6px;
    font-size: clamp(23px, 7vw, 31px);
  }

  .stat-item span {
    display: block;
    font-size: 11.5px;
    line-height: 1.4;
    word-break: keep-all;
  }

  .cta-wrap {
    padding: 0 18px 46px;
  }

  .cta {
    border-radius: 20px;
    padding: 38px 20px;
  }

  .cta h2 {
    font-size: 24px;
    line-height: 1.4;
  }

  .cta p {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.6;
  }

  .cta .btn {
    width: min(100%, 300px);
    min-height: 48px;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .tech-banner {
    min-height: 430px;
  }

  .tech-content {
    padding: 46px 17px 58px;
  }

  .tech-content h1 {
    font-size: 42px;
  }

  .tech-content p {
    font-size: 14px;
  }

  .banner-buttons {
    grid-template-columns: 1fr;
    max-width: 330px;
  }

  .banner-buttons .btn:nth-child(3) {
    grid-column: auto;
  }

  .main-section,
  .stats {
    padding-left: 16px;
    padding-right: 16px;
  }

  .service-card {
    padding: 21px 20px 20px;
  }

  .stat-item {
    padding-left: 4px;
    padding-right: 4px;
  }

  .stat-item strong {
    font-size: 23px;
  }

  .stat-item span {
    font-size: 10.5px;
  }

  .cta-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cta {
    padding: 34px 18px;
  }

  .cta h2 {
    font-size: 22px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .banner-buttons .btn:hover,
  .service-card:hover {
    transform: none;
  }
}
