/* =========================================================
   HOMEPAGE STYLES
   ========================================================= */

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--clr-charcoal);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
}

/* Geometric accent */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(0,196,140,.08) 0%, transparent 70%),
    linear-gradient(135deg, rgba(13,27,42,.95) 0%, rgba(13,27,42,.6) 100%);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,196,140,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,196,140,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
  padding-block: var(--sp-24);
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.hero__eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--clr-teal);
  border-radius: 2px;
}

.hero__eyebrow-text {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-teal);
}

.hero h1 {
  color: var(--clr-white);
  margin-bottom: var(--sp-6);
}

.hero h1 em {
  font-style: normal;
  color: var(--clr-teal);
}

.hero__sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin-bottom: var(--sp-10);
  max-width: 56ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

/* Standards badge strip */
.hero__standards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.hero__std-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-right: var(--sp-2);
}

.std-pill {
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(0,196,140,.3);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  z-index: 1;
  opacity: .5;
  animation: bounce 2s infinite;
}

.hero__scroll span {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255,255,255,.6);
  fill: none;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ----------------------------------------------------------
   STATS STRIP
   ---------------------------------------------------------- */
.stats-strip {
  background: #0a1520;
  padding-block: var(--sp-12);
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,.07);
}

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--clr-teal);
  line-height: 1;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.stat-unit {
  font-size: 0.8em;
  font-weight: 600;
  color: var(--clr-amber);
}

.stat-measure {
  font-size: 0.48em;
  font-weight: 700;
  color: var(--clr-amber);
  white-space: nowrap;
}

.stat-label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.55);
  line-height: 1.4;
  max-width: 18ch;
  margin-inline: auto;
}

.stats-context {
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,.05);
}

.stats-context p {
  color: rgba(255,255,255,.5);
  font-size: var(--fs-sm);
  text-align: center;
  margin-inline: auto;
  max-width: 72ch;
  line-height: 1.7;
}

/* ----------------------------------------------------------
   PRODUCTS OVERVIEW
   ---------------------------------------------------------- */
.products-overview {
  background: var(--clr-stone);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.product-card {
  background: var(--clr-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t-mid), transform var(--t-mid);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card__img {
  background: var(--clr-charcoal);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
}

.product-card__img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.product-card__img-placeholder svg {
  width: 56px;
  height: 56px;
  stroke: var(--clr-teal);
  fill: none;
  opacity: .6;
}

.product-card__img-placeholder span {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

.product-card__badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
}

.product-card__body {
  padding: var(--sp-8);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--clr-charcoal);
  margin-bottom: var(--sp-2);
}

.product-card__tagline {
  font-size: var(--fs-sm);
  color: var(--clr-grey-dark);
  line-height: 1.6;
  margin-bottom: var(--sp-6);
}

.product-card__specs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
  flex: 1;
}

.spec-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}

.spec-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--clr-teal);
  fill: none;
  flex-shrink: 0;
}

.spec-row span {
  color: var(--clr-grey-dark);
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-teal);
  transition: gap var(--t-fast);
}

.product-card__link:hover { gap: var(--sp-3); }

.product-card__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

/* ----------------------------------------------------------
   WHY WATT WAGON (USP TILES)
   ---------------------------------------------------------- */
.why-section {
  background: var(--clr-charcoal);
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--sp-16);
  align-items: center;
}

.why-text .section-header {
  margin-bottom: var(--sp-8);
}

.why-text p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255,255,255,.68);
  margin-bottom: var(--sp-8);
  max-width: 50ch;
}

.why-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.why-tile {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  transition: background var(--t-mid), border-color var(--t-mid);
}

.why-tile:hover {
  background: rgba(0,196,140,.07);
  border-color: rgba(0,196,140,.2);
}

.why-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(0,196,140,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.why-tile__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--clr-teal);
  fill: none;
}

.why-tile__title {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--sp-2);
}

.why-tile__desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.5);
  line-height: 1.55;
  max-width: 100%;
}

/* ----------------------------------------------------------
   APPLICATIONS GRID
   ---------------------------------------------------------- */
.applications-section {
  background: var(--clr-white);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}

.app-tile {
  position: relative;
  background: var(--clr-charcoal);
  border-radius: var(--r-md);
  padding: var(--sp-8) var(--sp-6);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-mid);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}

.app-tile:hover {
  transform: translateY(-3px);
}

.app-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,196,140,.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-mid);
}

.app-tile:hover::before { opacity: 1; }

.app-tile__icon {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  width: 40px;
  height: 40px;
  opacity: .25;
  transition: opacity var(--t-mid);
}

.app-tile:hover .app-tile__icon { opacity: .5; }

.app-tile__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--clr-teal);
  fill: none;
}

.app-tile__name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-white);
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.app-tile__desc {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.45);
  margin-top: var(--sp-1);
  position: relative;
  z-index: 1;
  line-height: 1.4;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-mid), opacity var(--t-mid);
  opacity: 0;
}

.app-tile:hover .app-tile__desc {
  max-height: 60px;
  opacity: 1;
}

.apps-cta {
  text-align: center;
}

/* ----------------------------------------------------------
   SUSTAINABILITY BANNER
   ---------------------------------------------------------- */
.sustainability-banner {
  background: linear-gradient(135deg, #0a1f14 0%, #0d2a1a 50%, var(--clr-charcoal) 100%);
  position: relative;
  overflow: hidden;
}

.sustainability-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300C48C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.sustainability-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.sustainability-text h2 {
  color: var(--clr-white);
  margin-bottom: var(--sp-6);
}

.sustainability-text p {
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
}

.sustainability-badges {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.sus-badge {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(0,196,140,.2);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.sus-badge__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(0,196,140,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sus-badge__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--clr-teal);
  fill: none;
}

.sus-badge__title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-white);
}

.sus-badge__sub {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}

/* ----------------------------------------------------------
   WATT STACK / PV CALLOUT
   ---------------------------------------------------------- */
.stack-callout {
  background: var(--clr-stone);
}

.stack-callout-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-16);
  align-items: center;
}

.stack-callout__img {
  background: var(--clr-charcoal);
  border-radius: var(--r-lg);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.stack-callout__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-callout__img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-12);
}

.stack-callout__img-placeholder svg {
  width: 80px;
  height: 80px;
  stroke: var(--clr-teal);
  fill: none;
  opacity: .4;
}

.stack-callout__img-placeholder p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.3);
  text-align: center;
  max-width: 20ch;
}

.stack-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-8);
}

.stack-spec {
  padding: var(--sp-4);
  background: var(--clr-white);
  border-radius: var(--r-sm);
  border: 1px solid var(--clr-border);
}

.stack-spec__value {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-charcoal);
}

.stack-spec__label {
  font-size: var(--fs-xs);
  color: var(--clr-grey-mid);
  margin-top: 2px;
}

/* ----------------------------------------------------------
   STANDARDS STRIP
   ---------------------------------------------------------- */
.standards-strip {
  background: var(--clr-white);
  padding-block: var(--sp-12);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.standards-label {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-grey-mid);
  margin-bottom: var(--sp-6);
}

.standards-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

.std-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--clr-border);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-grey-dark);
  letter-spacing: 0.04em;
  background: var(--clr-stone);
  transition: border-color var(--t-fast), color var(--t-fast);
}

.std-badge:hover {
  border-color: var(--clr-teal);
  color: var(--clr-teal-dark);
}

.std-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--clr-teal);
  fill: none;
}

/* ----------------------------------------------------------
   ABOUT / IGS STRIP
   ---------------------------------------------------------- */
.about-strip {
  background: var(--clr-stone);
}

.about-strip-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.about-strip__img {
  background: var(--clr-charcoal);
  border-radius: var(--r-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-strip__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-strip__img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.about-strip__img-placeholder svg {
  width: 64px;
  height: 64px;
  stroke: var(--clr-teal);
  fill: none;
  opacity: .35;
}

.about-strip__img-placeholder span {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   FINAL CTA BANNER
   ---------------------------------------------------------- */
.cta-banner {
  background: var(--clr-charcoal);
  text-align: center;
  padding-block: var(--sp-24);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,196,140,.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--clr-white);
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: var(--sp-4);
}

.cta-banner__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.6);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .why-layout { grid-template-columns: 1fr; gap: var(--sp-10); }
  .sustainability-layout { grid-template-columns: 1fr; }
  .stack-callout-layout { grid-template-columns: 1fr; }
  .about-strip-layout { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-cards { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .why-tiles { grid-template-columns: 1fr; }
  .stack-specs { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; align-items: flex-start; }

  .stat-item::after { display: none; }
  .stat-item:nth-child(odd)::after {
    display: block;
    top: 50%;
    height: 1px;
    width: 80%;
    right: -40%;
    transform: translateY(-50%);
  }
}

@media (max-width: 480px) {
  .app-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
