/* Lightflow v0.3 — additive fine tuning over the locked v0.2 baseline. */

/* Hero: longer signature fields, bolder contours, and a larger right-shifted trio. */
.hero-shell {
  position: relative;
  z-index: 2;
}

.hero-triangle-field {
  z-index: 1;
  background: linear-gradient(135deg, #cce5ff 0%, #6fc9f2 48%, #ffd451 100%);
  -webkit-mask: url("assets/signature/triangles.svg") center / 820px auto no-repeat;
  mask: url("assets/signature/triangles.svg") center / 820px auto no-repeat;
  opacity: .34;
}

.hero-triangle-field-left {
  top: -80px;
  left: -165px;
  width: 620px;
  height: 670px;
  transform: rotate(180deg);
}

.hero-triangle-field-right {
  z-index: 1;
  top: 15px;
  right: -105px;
  width: 570px;
  height: 650px;
  background: linear-gradient(225deg, #d9ecff 0%, #73cdf2 54%, #ffc400 100%);
  -webkit-mask-position: left center;
  mask-position: left center;
  opacity: .31;
  transform: rotate(2deg);
}

.hero-wave.wave-a {
  width: 650px;
  height: 360px;
  opacity: .7;
}

.hero-wave.wave-b {
  right: -20px;
  bottom: 82px;
  width: 650px;
  height: 360px;
  opacity: .52;
}

.hero-visual {
  z-index: 2;
}

.hero-photo-frame,
.hero-photo-frame-trio {
  inset: -12px -34px -12px 0;
  overflow: hidden;
}

.hero-photo-frame img,
.hero-photo-frame-trio img {
  width: 109%;
  height: 109%;
  object-position: center bottom;
  transform: translate(5.5%, 5.5%) scale(1.025);
  transform-origin: center bottom;
  transition: opacity .32s ease, transform .45s ease;
}

.hero-photo-frame-trio:hover img {
  transform: translate(5.5%, 5.5%) scale(1.045);
}

.hero-visual-backdrop {
  z-index: 0;
}

.hero-blue-sweep {
  z-index: 4;
}

.hero-context-card,
.shard-hero {
  z-index: 5;
}

/* Service cards: card opens its page; the fit button remains independently clickable. */
.service-card {
  cursor: pointer;
}

.service-card-hit {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
}

.service-card-hit:focus-visible {
  outline: 3px solid rgba(8, 111, 197, .45);
  outline-offset: 4px;
}

.service-card > :not(.service-card-hit) {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.service-card button,
.service-card .service-card-link {
  pointer-events: auto;
}

.service-card-top {
  min-height: 58px;
  justify-content: flex-start;
}

.service-index {
  display: none;
}

.service-logo {
  display: inline-flex;
  width: 112px;
  height: 54px;
  align-items: center;
  justify-content: flex-start;
}

.service-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.service-card .service-icon {
  width: 54px;
  height: 54px;
  font-size: 24px;
}

.service-card button {
  cursor: pointer;
}

/* InaRa home feature: use the horizontal canvas instead of growing out of frame. */
.inara-feature {
  display: grid;
  padding: 94px max(28px, calc((100vw - 1240px) / 2));
  grid-template-columns: minmax(320px, .72fr) minmax(640px, 1.28fr);
  gap: 28px;
  background: #f2f9ff;
}

.feature-block {
  display: contents;
}

.brand-panel {
  grid-column: 1;
  grid-row: 1;
  min-height: 465px;
  padding: 54px 46px;
  border: 1px solid var(--line);
  border-radius: 34px;
}

.brand-panel::before {
  width: 140px;
  height: 58px;
}

.brand-panel > img {
  width: 155px;
  height: 72px;
  margin-bottom: 24px;
}

.brand-panel h2 {
  font-size: clamp(36px, 3.15vw, 50px);
}

.feature-photo {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 365px;
  border-radius: 34px 34px 100px 34px;
  box-shadow: var(--shadow-sm);
}

.package-stack {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  min-width: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
  align-items: stretch;
  gap: 18px;
  background: transparent;
}

.package-card {
  min-width: 0;
  min-height: 465px;
  padding: 38px 32px 30px;
}

.package-card h3 {
  font-size: 29px;
}

.package-card p,
.package-card li,
.package-card a {
  font-size: 14px;
}

/* Coverage cards are denser and now represent the three public regions. */
.location-list article {
  min-height: 102px;
  padding: 17px 20px;
  grid-template-columns: 42px 1fr 30px;
}

.location-list h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.location-list p {
  font-size: 14px;
  line-height: 1.38;
}

.pin-icon {
  width: 42px;
  height: 48px;
}

/* Operations: let the actual team fill the frame. */
.operations-photo > img {
  top: -2px;
  right: auto;
  bottom: auto;
  left: -7%;
  width: 114%;
  height: 108%;
  object-fit: contain;
  object-position: center bottom;
}

/* Insight: text belongs on the quieter left side, away from the field worker. */
.insight-image {
  inset: 0 0 0 150px;
  border-radius: 140px 34px 34px 34px;
}

.insight-image::after {
  background: linear-gradient(90deg, rgba(7, 34, 72, .2), transparent 42%);
}

.insight-card {
  right: auto;
  left: 0;
  width: 480px;
}

/* Motto: the copy is intentionally brief, so the documentary frame gets more room. */
.motto-shell {
  grid-template-columns: .62fr 1.38fr;
}

.motto-copy {
  padding-right: 34px;
}

.motto-image {
  width: calc(100% + 72px);
  margin-left: -72px;
  clip-path: ellipse(96% 95% at 88% 50%);
}

.motto-image img {
  object-position: 48% center;
}

/* Shared service detail treatment for InaRa, InaLink, IT Managed, and IoT. */
.service-detail-page .inalite-hero {
  min-height: 720px;
}

.service-detail-logo {
  width: 190px;
  height: 88px;
  margin-bottom: 28px;
  object-fit: contain;
  object-position: left center;
}

.service-detail-mark {
  display: inline-flex;
  min-width: 190px;
  min-height: 74px;
  margin-bottom: 28px;
  padding: 14px 18px;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.service-detail-mark span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--blue-bright));
  border-radius: 15px;
  font-size: 23px;
  font-weight: 850;
}

.service-detail-mark strong {
  font-size: 20px;
  line-height: 1.15;
}

.service-detail-page .inalite-photo {
  background: linear-gradient(145deg, #dff4ff, #78cfee);
}

.service-detail-page .inalite-photo img {
  object-position: center;
}

.service-detail-page.detail-inara .inalite-photo img,
.service-detail-page.detail-inalink .inalite-photo img,
.service-detail-page.detail-iot .inalite-photo img {
  object-fit: cover;
}

.service-detail-page.detail-managed .inalite-photo img {
  object-fit: contain;
  object-position: center bottom;
}

.service-detail-page .benefit-card {
  min-height: 285px;
}

.service-detail-page .fit-card span {
  font-size: 11px;
}

@media (max-width: 1180px) {
  .inara-feature {
    grid-template-columns: minmax(300px, .8fr) minmax(560px, 1.2fr);
  }

  .package-card {
    padding-inline: 25px;
  }
}

@media (max-width: 900px) {
  .hero-triangle-field-left {
    left: -245px;
  }

  .hero-triangle-field-right {
    right: -190px;
  }

  .hero-photo-frame,
  .hero-photo-frame-trio {
    inset: -8px 2% -18px 4%;
  }

  .inara-feature {
    padding: 80px 7vw;
    grid-template-columns: 1fr;
  }

  .brand-panel {
    grid-column: 1;
    grid-row: 1;
    min-height: auto;
  }

  .package-stack {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-card {
    min-height: 420px;
  }

  .feature-photo {
    grid-column: 1;
    grid-row: 3;
  }

  .insight-image {
    inset: 0 0 120px;
    border-radius: 34px 100px 34px 34px;
  }

  .insight-card {
    top: auto;
    right: auto;
    bottom: 0;
    left: 25px;
    width: min(580px, calc(100% - 50px));
    transform: none;
  }

  .motto-shell {
    grid-template-columns: 1fr;
  }

  .motto-image {
    width: 100%;
    margin-left: 0;
    clip-path: ellipse(94% 90% at 58% 100%);
  }
}

@media (max-width: 620px) {
  .hero-triangle-field-left {
    top: -120px;
    left: -370px;
  }

  .hero-triangle-field-right {
    right: -330px;
    opacity: .25;
  }

  .hero-wave.wave-a {
    left: 5%;
    width: 480px;
  }

  .hero-wave.wave-b {
    width: 500px;
  }

  .hero-photo-frame,
  .hero-photo-frame-trio {
    inset: 0 -8% -12px 0;
  }

  .hero-photo-frame img,
  .hero-photo-frame-trio img {
    width: 110%;
    height: 110%;
    transform: translate(5%, 6%) scale(1.02);
  }

  .service-card-top {
    min-height: 52px;
  }

  .service-logo {
    width: 118px;
  }

  .inara-feature {
    padding: 68px 14px;
  }

  .brand-panel {
    padding: 42px 24px;
    border-radius: 28px;
  }

  .package-stack {
    grid-template-columns: 1fr;
  }

  .package-card {
    min-height: auto;
  }

  .feature-photo {
    min-height: 280px;
    border-radius: 28px 28px 76px 28px;
  }

  .location-list article {
    min-height: 94px;
    padding: 14px 16px;
  }

  .location-list h3 {
    font-size: 18px;
  }

  .location-list p {
    font-size: 13px;
  }

  .operations-photo > img {
    top: 4px;
    left: -11%;
    width: 122%;
    height: 108%;
  }

  .insight-image {
    bottom: 245px;
    border-radius: 25px 75px 25px 25px;
  }

  .insight-card {
    right: auto;
    left: 10px;
    width: calc(100% - 20px);
  }

  .service-detail-mark {
    min-width: 170px;
  }
}
