.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--space-10) 0 var(--space-12);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-primary-container);
  background-image: url("../../assets/images/home-hero.png");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}

/* Dark veil so headline stays readable over sparks / laser bloom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(10, 17, 40, 0.92) 0%,
      rgba(10, 17, 40, 0.78) 38%,
      rgba(10, 17, 40, 0.42) 62%,
      rgba(10, 17, 40, 0.28) 100%
    ),
    linear-gradient(180deg, rgba(16, 20, 23, 0.35) 0%, rgba(16, 20, 23, 0.15) 45%, rgba(16, 20, 23, 0.75) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(700px 380px at 72% 48%, rgba(3, 86, 255, 0.16), transparent 60%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-right: auto;
  margin-left: 40px;
  text-align: left;
}

.hero-copy h1 {
  margin: var(--space-3) 0 var(--space-3);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-copy .accent {
  color: var(--color-secondary-container);
}

.hero-copy .lede {
  margin-bottom: var(--space-4);
  color: var(--color-on-surface-variant);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.why-card {
  text-align: center;
  padding: var(--space-3) var(--space-2);
}

.why-card .icon-orb {
  margin: 0 auto var(--space-3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.why-card .icon-orb--feature {
  width: 96px;
  height: 96px;
  color: #3d7bff;
  filter: drop-shadow(0 0 6px rgba(3, 86, 255, 0.55));
}

.why-card .icon-orb--feature svg {
  width: 58px;
  height: 58px;
}

.why-card:hover .icon-orb {
  border-color: rgba(3, 86, 255, 0.7);
  box-shadow: 0 0 22px rgba(3, 86, 255, 0.35), inset 0 0 0 1px rgba(182, 196, 255, 0.12);
  filter: drop-shadow(0 0 10px rgba(61, 123, 255, 0.75));
}

@media (max-width: 719px) {
  .why-card .icon-orb--feature {
    width: 84px;
    height: 84px;
  }

  .why-card .icon-orb--feature svg {
    width: 50px;
    height: 50px;
  }
}

.why-card h3 {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--color-on-surface-variant);
  font-size: 14px;
}

.brands {
  background: var(--color-surface-container-lowest);
}

.brands .section-heading p {
  margin-top: 12px;
  color: var(--color-on-surface-variant);
}

.brand-logo-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
  align-items: stretch;
}

.brand-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  height: 96px;
  padding: 18px 22px;
  background: #f4f6fa;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(3, 86, 255, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.brand-logo-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 200px;
  max-height: 55px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

/* Bodor source is tightly cropped — scale slightly so wordmark reads clearly */
.brand-logo-card__img--bodor {
  max-width: 132px;
  max-height: 40px;
  transform: scale(1.08);
}

.brand-logo-card:hover {
  border-color: rgba(3, 86, 255, 0.35);
  box-shadow: 0 0 20px rgba(3, 86, 255, 0.16);
  transform: translateY(-2px);
}

.brand-logo-card--cta {
  background: rgba(29, 32, 35, 0.95);
  color: var(--color-on-surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--color-border-soft);
}

.brand-logo-card--cta:hover {
  border-color: var(--color-secondary-container);
  color: var(--color-secondary);
}

.expertise {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px 420px at 85% 20%, rgba(3, 86, 255, 0.22), transparent 55%),
    radial-gradient(700px 360px at 10% 80%, rgba(3, 86, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #0c121c 0%, var(--color-primary-container) 45%, #101417 100%);
}

.expertise::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 79px,
      rgba(191, 197, 228, 0.045) 79px 80px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 79px,
      rgba(191, 197, 228, 0.045) 79px 80px
    );
}

.expertise::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 42%, rgba(3, 86, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(16, 20, 23, 0.15), transparent 30%, rgba(16, 20, 23, 0.35));
}

.expertise > .container {
  position: relative;
  z-index: 1;
}

.expertise-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(3, 86, 255, 0.22);
}

.expertise-head .kicker {
  color: var(--color-secondary-container);
  margin-bottom: var(--space-2);
}

.expertise-head .accent-rule {
  margin: var(--space-2) 0 var(--space-3);
}

.expertise-head .lede {
  margin-top: 0;
  max-width: 560px;
}

.expertise-head .text-link {
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.expertise-head .text-link:hover {
  border-bottom-color: var(--color-secondary);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-3);
}

.service-card {
  position: relative;
  grid-column: span 3;
  min-height: 168px;
  background: rgba(29, 32, 35, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Row 2: three equal cards across full width */
.expertise-grid .service-card:nth-child(n + 5) {
  grid-column: span 4;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-4);
  right: var(--space-4);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(3, 86, 255, 0.55), transparent);
  opacity: 0.7;
}

.service-card:hover {
  border-color: rgba(3, 86, 255, 0.45);
  box-shadow: 0 0 28px rgba(3, 86, 255, 0.18);
  transform: translateY(-2px);
}

.service-card h3 {
  margin: var(--space-2) 0 10px;
  font-size: 17px;
  line-height: 1.3;
}

.service-card p {
  color: var(--color-on-surface-variant);
  font-size: 14px;
  line-height: 1.5;
}

.systems {
  background: linear-gradient(180deg, var(--color-background), var(--color-surface-container-lowest));
}

.systems-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
  align-items: center;
}

.systems-copy .kicker {
  color: var(--color-secondary-container);
  margin-bottom: var(--space-2);
}

.systems-copy .lede {
  margin: var(--space-3) 0;
}

.systems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.system-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px 18px;
  background: var(--color-surface-container);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

@media (max-width: 1199px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1023px) {
  .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .expertise-head,
  .systems-layout {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .expertise-head .text-link {
    justify-self: start;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .expertise-grid .service-card,
  .expertise-grid .service-card:nth-child(n + 5) {
    grid-column: auto;
    min-height: 0;
  }

  .expertise .service-card.card-pad {
    padding: 18px 16px;
  }

  .expertise .service-card h3 {
    font-size: 15px;
  }

  .expertise .service-card p {
    font-size: 13px;
  }

  .expertise-grid .service-card:last-child {
    grid-column: 1 / -1;
  }

  .brand-logo-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .systems-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 719px) {
  .hero {
    min-height: 0;
    padding: 28px 0 36px;
    background-position: 62% 42%;
    background-size: cover;
    align-items: center;
  }

  /*
    .hero-copy also uses .container. Setting only margin-left: 0 breaks
    margin-inline: auto and pins content flush to the left edge.
  */
  .hero-copy {
    width: min(100% - 48px, var(--container-max));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy h1 {
    font-size: 24px;
    line-height: 1.2;
    margin: 10px 0 12px;
  }

  .hero-copy .lede {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(10, 17, 40, 0.78) 0%,
        rgba(10, 17, 40, 0.7) 45%,
        rgba(10, 17, 40, 0.88) 100%
      ),
      linear-gradient(
        90deg,
        rgba(10, 17, 40, 0.45) 0%,
        rgba(10, 17, 40, 0.2) 100%
      );
  }

  /* Keep laptop-like density: 2-up rows, last odd card full width */
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .why-grid .why-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .why-card {
    padding: 14px 10px;
  }

  .why-card h3 {
    font-size: 12px;
  }

  .why-card p {
    font-size: 11px;
    line-height: 1.45;
  }

  .why-card .icon-orb--feature {
    width: 72px;
    height: 72px;
  }

  .why-card .icon-orb--feature svg {
    width: 42px;
    height: 42px;
  }

  .systems-grid,
  .brand-logo-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .systems-copy h2 {
    font-size: 18px;
  }

  .systems-copy .lede {
    font-size: 12px;
    line-height: 1.5;
  }

  .systems-grid {
    gap: 10px;
  }

  .system-tile {
    min-height: 0;
    gap: 10px;
    padding: 12px 10px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.03em;
    font-weight: 600;
  }

  .system-tile .icon-tile {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .system-tile .icon-tile svg {
    width: 15px;
    height: 15px;
  }

  .expertise-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  .expertise-head h2 {
    font-size: 18px;
    line-height: 1.25;
  }

  .expertise-head .lede {
    font-size: 12px;
    line-height: 1.5;
    max-width: none;
  }

  .expertise-head .text-link {
    font-size: 12px;
  }

  .expertise-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .expertise-grid .service-card,
  .expertise-grid .service-card:nth-child(n + 5) {
    grid-column: span 1;
  }

  .expertise .service-card.card-pad {
    min-height: 0;
    padding: 12px 10px 14px;
    display: flex;
    flex-direction: column;
  }

  .expertise .service-card .icon-tile {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .expertise .service-card .icon-tile svg {
    width: 16px;
    height: 16px;
  }

  .expertise .service-card::before {
    left: 10px;
    right: 10px;
  }

  .expertise .service-card h3 {
    font-size: 12px;
    line-height: 1.3;
    margin: 10px 0 6px;
    letter-spacing: 0.01em;
  }

  .expertise .service-card p {
    font-size: 11px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  /* 7 cards: 2+2+2, last full-width row layout */
  .expertise .expertise-grid .service-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    padding: 14px;
  }

  .expertise .expertise-grid .service-card:last-child .icon-tile {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .expertise .expertise-grid .service-card:last-child h3 {
    margin: 0;
    grid-column: 2;
  }

  .expertise .expertise-grid .service-card:last-child p {
    grid-column: 2;
    -webkit-line-clamp: 2;
  }

  .brand-logo-card {
    min-height: 64px;
    height: 64px;
    padding: 10px;
  }

  .brand-logo-card img {
    max-height: 28px;
  }

  .brand-logo-card--cta {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .brands .section-heading h2,
  .section.brand .section-heading h2 {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
    padding: 12px 18px;
    font-size: 11px;
  }

  .section {
    padding-block: 40px;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section-heading h2 {
    font-size: 20px;
  }
}

a.service-card {
  color: inherit;
  display: block;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.service-card:hover {
  border-color: rgba(3, 86, 255, 0.45);
  box-shadow: 0 0 28px rgba(3, 86, 255, 0.16);
  transform: translateY(-2px);
}