/* ==========================================================================
   Page-specific styles — index.html
   ========================================================================== */

section {
  padding: 120px 80px;
  background: var(--navy);
  border-top: 2px solid var(--orange-dim);
}
section:not(.hero):not(.cta-section):nth-of-type(even) {
  background: var(--navy-light);
}
header {
  margin-bottom: 56px;
}
header h3 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero-sensorcard.jpg");
  background-size: cover;
  background-position: center right;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5, 26, 51, 0.93) 0%,
    rgba(5, 26, 51, 0.68) 42%,
    rgba(5, 26, 51, 0.22) 78%,
    rgba(5, 26, 51, 0.08) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 105px 80px 0;
  max-width: 1320px;
}
.hero h1 {
  font-size: clamp(46px, 6.2vw, 88px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.08;
  margin-bottom: 28px;
}
.hero h1 span {
  color: var(--orange);
}
.hero-sub {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 600px;
  margin-bottom: 36px;
}

/* TECHNOLOGY */
.tech-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: stretch;
  margin-bottom: 96px;
}
.tech-grid--reverse {
  grid-template-columns: 1.1fr 0.9fr;
}
.tech-img-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-lighter);
  margin-left: -80px;
  width: calc(100% + 80px);
  border-radius: 0 8px 8px 0;
  border-left: none;
}
.tech-img-card--reverse {
  order: 2;
  margin-left: 0;
  margin-right: -80px;
  border-radius: 8px 0 0 8px;
  border-left: 1px solid var(--line);
  border-right: none;
}
.tech-img-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tech-img-card--reverse img {
  transform: scaleX(-1);
}
.tech-img-card figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(5, 26, 51, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-dim);
}
.tech-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}
.tag-chip.lg {
  font-size: 13px;
  padding: 9px 16px;
}
.tech-callout {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: -0.2px;
  margin-top: 24px;
  margin-bottom: 12px;
}

/* PRODUCTS — modern tech cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--navy-lighter);
  border: 5px solid rgba(0, 0, 0, 0);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  /* box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); */
}
.product-img {
  position: relative;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      175deg,
      rgba(5, 26, 51, 0.32) 0%,
      rgba(5, 26, 51, 0.68) 100%
    ),
    url("../assets/product-bg.jpg") center/cover;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}
.product-img::after {
  content: "Learn More";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 26, 51, 0.72);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.product-card:hover .product-img::after {
  opacity: 1;
}
.product-img img {
  max-height: 390px;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(242, 154, 46, 0.4);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.product-card h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 0;
}

/* DASHBOARD */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
#dashboard h3 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
#dashboard p {
  color: var(--ink-dim);
  line-height: 1.6;
}
#dashboard .tag-chips {
  margin-top: 28px;
}

/* MARKETS */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.market-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  text-decoration: none;
  color: inherit;
}
.market-card .bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.market-card--defense .bg-img {
  background-image: url("../assets/market-defense-army.png");
}
.market-card--venues .bg-img {
  background-image: url("../assets/market-venues.jpg");
}
.market-card--transportation .bg-img {
  background-image: url("../assets/market-transportation.jpg");
}
.market-card .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 26, 51, 0.05) 0%,
    rgba(5, 26, 51, 0.78) 90%
  );
}
.market-card .content {
  position: relative;
  z-index: 2;
}
.market-card .kind {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.market-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.market-card p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
}

/* NEWS & STORIES */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--navy-lighter);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
a.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 154, 46, 0.4);
}
.news-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(242, 154, 46, 0.4);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.news-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.news-card p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.6;
  flex: 1;
}
.news-link {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}
.news-card.testimonial .news-tag {
  background: var(--orange-dim);
}
.testimonial-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.testimonial-person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.testimonial-person h4 {
  font-size: 15px;
  font-weight: 700;
}
.testimonial-person .role {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 2px;
}
.news-card.testimonial p {
  font-style: italic;
}
.news-more {
  text-align: center;
  margin-top: 40px;
}

/* TRACTION (kept as empty shell — content pending) */
.traction-section {
  background: var(--navy-lighter);
}

/* CTA */
.cta-section h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  section {
    padding: 80px 40px;
  }
  .hero-inner {
    padding: 105px 40px 0;
  }
  .tech-grid,
  .dash-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tech-img-card {
    margin-left: 0;
    margin-right: 0;
    width: auto;
    border-radius: 8px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    min-height: 340px;
  }
  .tech-img-card--reverse {
    order: -1;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .markets-grid {
    grid-template-columns: 1fr;
  }
  .hero-gradient {
    background: linear-gradient(
      100deg,
      rgba(5, 26, 51, 0.95) 0%,
      rgba(5, 26, 51, 0.82) 40%,
      rgba(5, 26, 51, 0.5) 75%,
      rgba(5, 26, 51, 0.3) 100%
    );
  }
}
@media (max-width: 640px) {
  section {
    padding: 64px 24px;
  }
  .hero-inner {
    padding: 150px 24px 0;
  }
  .hero h1 {
    font-size: clamp(22px, 6.4vw, 32px);
    overflow-wrap: break-word;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .hero-gradient {
    background: linear-gradient(
      100deg,
      rgba(5, 26, 51, 0.9) 0%,
      rgba(5, 26, 51, 0.75) 65%,
      rgba(5, 26, 51, 0.5) 90%,
      rgba(5, 26, 51, 0.3) 100%
    );
  }
}
