/* Homepage V2 visual refinements */
:root {
  --container: 1440px;
  --page-gutter: clamp(24px, 4vw, 72px);
}

.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
}

.section-pad {
  padding: clamp(92px, 7vw, 128px) 0;
}

.site-header {
  background: rgba(255,255,255,.9);
}

.nav-shell {
  height: 88px;
}

.brand img {
  width: 196px;
}

.primary-nav {
  gap: 34px;
}

.primary-nav a {
  font-size: 14.5px;
}

.hero {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 10%, rgba(14,165,183,.13), transparent 32%),
    radial-gradient(circle at 16% 85%, rgba(99,102,241,.045), transparent 28%),
    linear-gradient(180deg, #fbfdfe 0%, #ffffff 100%);
}

.hero-grid {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
  grid-template-columns: minmax(0, 1.02fr) minmax(520px, .98fr);
  gap: clamp(72px, 6vw, 116px);
}

.hero-copy {
  max-width: 760px;
}

h1 {
  font-size: clamp(54px, 5vw, 78px);
  line-height: 1.02;
  max-width: 760px;
  letter-spacing: -.045em;
}

.hero-lead {
  max-width: 720px;
  font-size: 19px;
  line-height: 1.62;
}

.hero-actions {
  gap: 32px;
}

.hero-proof {
  max-width: 720px;
  margin-top: 52px;
  padding-top: 30px;
}

.hero-proof strong {
  font-size: 14.5px;
}

.hero-proof span {
  font-size: 13.5px;
}

.hero-visual {
  min-height: 570px;
}

.hero-visual::before {
  inset: 28px 0 18px 48px;
  border-radius: 22px;
  background-size: 38px 38px;
}

.visual-glow {
  inset: 4% -2% 0 8%;
  background: radial-gradient(circle, rgba(14,165,183,.16), rgba(99,102,241,.05) 54%, transparent 74%);
  filter: blur(10px);
}

.system-card {
  border-color: rgba(11,45,74,.09);
  border-radius: 14px;
  box-shadow: 0 30px 75px rgba(11,45,74,.11);
  backdrop-filter: blur(10px);
}

/* Hero card geometry: platform and outcome are a matched pair, with the
   implementation card deliberately wider between them. */
.card-platform,
.card-outcome {
  width: 76%;
  height: 124px;
  right: 2%;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-platform {
  top: 34px;
}

.card-build {
  width: 82%;
  top: 190px;
  left: 1%;
  padding: 27px;
}

.card-outcome {
  top: 415px;
  bottom: auto;
  border-left: 1px solid rgba(11,45,74,.09);
}

/* Symmetrical connector gaps between the three stages. */
.connector {
  width: 2px;
  left: 65%;
  background: linear-gradient(180deg, rgba(14,165,183,.62), rgba(14,165,183,.28));
}

.connector::before,
.connector::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.connector::before { top: -4px; }
.connector::after { bottom: -4px; }

.connector-a {
  top: 158px;
  height: 32px;
  left: 55%;
}

.connector-b {
  top: 383px;
  height: 32px;
}

.hero-mark {
  width: 112px;
  height: 112px;
  left: 18px;
  top: 92px;
  opacity: .16;
}

.platform-strip {
  background: rgba(248,251,252,.92);
}

.platform-row {
  min-height: 86px;
  gap: 26px;
}

.platform-label {
  font-size: 11.5px;
  letter-spacing: .14em;
}

.platform-name {
  font-size: 14.5px;
}

.split-heading {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .6fr);
  gap: clamp(70px, 7vw, 120px);
}

.service-card {
  min-height: 290px;
  padding: 40px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  border: 1px solid rgba(14,165,183,.24);
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff 0%, #f3fbfc 100%);
  box-shadow: 0 12px 26px rgba(11,45,74,.06);
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card.is-active .service-icon {
  border-color: rgba(113,213,223,.42);
  background: rgba(255,255,255,.07);
  box-shadow: none;
}

.service-card.is-active .service-icon svg {
  stroke: #71d5df;
}

.credibility-grid {
  min-height: 600px;
}

.credibility-panel {
  padding: clamp(58px, 5vw, 78px);
}

.expertise-list {
  padding: 42px clamp(46px, 5vw, 72px);
}

/* About credibility pillars */
.expertise-item {
  grid-template-columns: 68px 1fr;
  gap: 24px;
}

.expertise-no {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  text-indent: -9999px;
  border: 1px solid rgba(14,165,183,.22);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f3fbfc 100%);
  box-shadow: 0 10px 24px rgba(11,45,74,.055);
}

.expertise-no::before {
  content: "";
  position: absolute;
  inset: 12px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.expertise-item:nth-child(1) .expertise-no::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230EA5B7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 38V16h28v22M7 38h34M16 16V9h16v7M17 23h4M27 23h4M17 30h4M27 30h4'/%3E%3C/svg%3E");
}

.expertise-item:nth-child(2) .expertise-no::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230EA5B7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14h28M10 24h28M10 34h28'/%3E%3Ccircle cx='18' cy='14' r='3'/%3E%3Ccircle cx='31' cy='24' r='3'/%3E%3Ccircle cx='22' cy='34' r='3'/%3E%3C/svg%3E");
}

.expertise-item:nth-child(3) .expertise-no::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230EA5B7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='15' r='4'/%3E%3Ccircle cx='36' cy='15' r='4'/%3E%3Ccircle cx='24' cy='34' r='4'/%3E%3Cpath d='M16 15h16M14 19l8 12M34 19l-8 12'/%3E%3C/svg%3E");
}

.cta-shell {
  min-height: 390px;
}

/* Delivery approach flow */
.flow-steps {
  position: relative;
  border-top: 0;
  gap: 0;
}

.flow-steps::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg, rgba(14,165,183,.18), rgba(14,165,183,.65), rgba(99,102,241,.28));
  z-index: 0;
}

.flow-step {
  position: relative;
  z-index: 1;
  padding: 0 34px 0 0;
  border-left: 0 !important;
}

.flow-step + .flow-step {
  padding-left: 34px;
}

.flow-visual {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 90px;
  margin-bottom: 18px;
}

.flow-number {
  display: none !important;
}

.flow-icon {
  display: inline-grid !important;
  place-items: center;
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
  border: 1px solid rgba(14,165,183,.24) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #ffffff 0%, #f3fbfc 100%);
  box-shadow: 0 14px 30px rgba(11,45,74,.07);
}

.flow-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-step h3 {
  font-size: 21px;
}

.flow-step p {
  max-width: 270px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  :root { --page-gutter: 32px; }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 54px;
  }

  h1 {
    font-size: clamp(50px, 5.5vw, 68px);
  }

  .hero-visual {
    min-height: 520px;
  }

  .card-platform,
  .card-outcome {
    height: 116px;
  }

  .card-platform { top: 28px; }
  .card-build { top: 174px; }
  .card-outcome { top: 376px; }
  .connector-a { top: 144px; height: 30px; }
  .connector-b { top: 346px; height: 30px; }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-visual {
    width: min(100%, 700px);
    margin: 0 auto;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-heading > p {
    max-width: 620px;
    margin-top: 0;
  }

  .flow-steps::before {
    display: none;
  }

  .flow-step,
  .flow-step + .flow-step {
    padding: 26px 24px 26px 0;
  }

  .flow-step:nth-child(even) {
    padding-left: 24px;
  }
}

@media (max-width: 700px) {
  :root { --page-gutter: 20px; }

  .nav-shell { height: 76px; }
  .brand img { width: 166px; }

  .hero { min-height: auto; }
  .hero-grid { gap: 42px; }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 1.03;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-proof div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .card-platform,
  .card-outcome {
    width: 90%;
    height: 108px;
    right: 0;
  }

  .card-platform { top: 18px; }
  .card-build { width: 94%; top: 154px; left: 0; padding: 18px; }
  .card-outcome { top: 382px; }

  .connector {
    left: 64%;
  }

  .connector-a { top: 126px; height: 28px; left: 46%; }
  .connector-b { top: 354px; height: 28px; }

  .connector::before,
  .connector::after {
    width: 7px;
    height: 7px;
  }

  .split-heading {
    gap: 18px;
  }

  .service-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
  }

  .service-icon svg {
    width: 30px;
    height: 30px;
  }

  .expertise-item {
    grid-template-columns: 58px 1fr;
    gap: 18px;
  }

  .expertise-no {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .expertise-no::before {
    inset: 10px;
  }

  .flow-step,
  .flow-step + .flow-step,
  .flow-step:nth-child(even) {
    padding: 24px 0;
  }

  .flow-visual {
    min-height: 0;
    margin-bottom: 14px;
  }

  .flow-icon {
    width: 58px !important;
    height: 58px !important;
  }
}

/* Consistent entry alignment for primary navigation targets. */
#home,
#services,
#about {
  scroll-margin-top: 88px;
}

@media (min-width: 701px) {
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .services,
  .credibility {
    padding-top: 64px;
  }
}

@media (max-width: 700px) {
  #home,
  #services,
  #about {
    scroll-margin-top: 76px;
  }

  .hero {
    padding-top: 48px;
  }

  .services,
  .credibility {
    padding-top: 48px;
  }
}
