/* =============================================================================
   NETZERO AQUA — HOME PAGE SECTIONS
   =============================================================================
   Requires css/na-system.css and css/na-blocks.css.

   This file owns ONLY what the home page alone uses: the full-bleed hero with
   its floating telemetry, the challenge cards, the five-layer grid and the
   solution cards. Everything the home page shares with another page — the
   dashboard panel, the stats band, impact metrics, project cards, partner
   cards, the closing CTA — lives in na-blocks.css, because the moment a
   second page needed them, copying was the wrong answer.
   ========================================================================== */

/* =============================================================================
   1 — HERO
   =============================================================================
   Full-bleed aerial imagery, a dark wash heavy enough to carry white text at
   16:1, and floating glass telemetry over the water. The wash is a gradient,
   not a flat scrim: flat scrims kill the photograph.
   ========================================================================== */

.na-hero {
    position: relative;
    isolation: isolate;
    min-height: min(94vh, 900px);
    display: flex;
    align-items: center;
    padding-top: calc(var(--na-header-h) + clamp(2rem, 1rem + 4vw, 4.5rem));
    padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
    background: var(--na-dark-2);
    color: #fff;
    overflow: hidden;
}

.na-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.na-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

/* Three stacked washes: a vertical one so the header and the CTAs both have
   ground, a horizontal one so the copy column stays legible over bright
   water, and an aqua cast that ties the photograph to the palette. */
.na-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(0, 36, 60, 0.88) 0%,
            rgba(0, 36, 60, 0.55) 34%,
            rgba(0, 36, 60, 0.72) 78%,
            rgba(0, 24, 48, 0.96) 100%),
        linear-gradient(96deg,
            rgba(0, 36, 60, 0.92) 0%,
            rgba(0, 36, 60, 0.62) 42%,
            rgba(0, 36, 60, 0.12) 74%),
        radial-gradient(120% 90% at 82% 28%,
            rgba(76, 130, 255, 0.20) 0%,
            transparent 62%);
}

/* A faint coordinate grid. Reads as instrumentation rather than decoration,
   and is the cheapest way to say "this is a data product" over a photo. */
.na-hero__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 88px 88px;
    -webkit-mask-image: radial-gradient(110% 80% at 70% 40%, #000 12%, transparent 72%);
    mask-image: radial-gradient(110% 80% at 70% 40%, #000 12%, transparent 72%);
    pointer-events: none;
}

.na-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 1rem + 4vw, 4rem);
    align-items: center;
    width: 100%;
}

.na-hero__copy { max-width: 42rem; }

.na-hero h1 {
    /* Deliberately below --na-t-display: at 84px this headline broke to five
       lines and stopped reading as one sentence. */
    font-size: clamp(2.5rem, 1.9rem + 3.1vw, 4.5rem);
    /* The logo green, sampled from the ring. 7.97:1 on the hero ground — the
       strongest pairing in the palette, stronger than the white it replaced
       needs to be. The <em> inside keeps the blue, so the sentence carries
       both marks: green wordmark, blue AQUA. */
    color: var(--na-lime);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin-bottom: 1.25rem;
}
.na-hero h1 em {
    font-style: normal;
    color: var(--na-aqua);
}

.na-hero__lead {
    font-size: var(--na-t-lead);
    color: var(--na-on-dark-2);
    max-width: 34rem;
    margin-bottom: 2rem;
}

/* ---- 1b. Hero micro-message ----------------------------------------------
   "↑ Higher Productivity  ○ Lower Resource Use  ↓ Lower Emissions
    ▥ Measurable Impact" — the philosophy without another paragraph. */

.na-micro {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    margin: 2.25rem 0 0;
    padding: 1.75rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    list-style: none;
}

.na-micro li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--na-on-dark-2);
}
.na-micro svg {
    width: 16px; height: 16px;
    flex: none;
    color: var(--na-aqua);
}

/* ---- 1c. Floating telemetry cards ---------------------------------------- */

.na-tele {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
    align-content: center;
    justify-self: end;
    width: min(100%, 26rem);
}

.na-tele__card {
    position: relative;          /* the live dot anchors to this */
    padding: 1.125rem 1.25rem;
    border-radius: 14px;
}

/* Carbon intensity is the point of the whole company, so it gets the full
   width and the aqua edge. Nothing else in the stack is emphasised. */
.na-tele__card--wide {
    grid-column: 1 / -1;
    border-color: rgba(76, 130, 255, 0.34);
    background: rgba(76, 130, 255, 0.12);
}

.na-tele__label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--na-on-dark-3);
    margin-bottom: 0.375rem;
}

.na-tele__value {
    display: block;
    font-family: var(--na-font-display);
    font-size: 1.625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}
.na-tele__unit {
    font-size: 0.8125rem;
    font-weight: 500;
    font-style: normal;
    color: var(--na-on-dark-2);
    letter-spacing: 0;
    margin-left: 0.25em;
}

.na-tele__card--wide .na-tele__value { color: var(--na-aqua); }

/* A single slow pulse on the live dot. It is the only looping animation on
   the page, it is 6px across, and it is what makes the panel read as live. */
.na-tele__live {
    position: absolute;
    top: 1.125rem; right: 1.25rem;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--na-aqua);
}
.na-tele__live::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--na-aqua);
    animation: na-ping 2.6s var(--na-ease) infinite;
}
@keyframes na-ping {
    0%   { transform: scale(0.7); opacity: 0.9; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .na-tele__live::after { animation: none; opacity: 0.4; }
}

@media (max-width: 1024px) {
    .na-hero__inner { grid-template-columns: 1fr; }
    .na-tele {
        justify-self: start;
        width: 100%;
        max-width: none;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .na-tele__card--wide { grid-column: auto; }
}

@media (max-width: 560px) {
    /* The spec: "Hero metrics become horizontal scroll cards." */
    .na-tele {
        display: grid;
        /* Same trap as .na-swipe — see the note in na-system.css. Without this
           the first two cards kept the 2-up template and the remaining three
           were pushed off-screen. */
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 62vw;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin-inline: calc(-1 * clamp(1.25rem, 0.8rem + 2vw, 2.5rem));
        padding-inline: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
        gap: 0.75rem;
    }
    .na-tele::-webkit-scrollbar { display: none; }
    .na-tele__card { scroll-snap-align: start; }
    .na-hero .na-btns .na-btn { width: 100%; }
}

/* =============================================================================
   3 — THE PROBLEM
   ========================================================================== */

.na-problem__cards { margin-top: 0.5rem; }

.na-problem .na-card {
    background: var(--na-surface);
    padding-top: 1.75rem;
}
.na-problem .na-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: var(--na-r) 0 0 var(--na-r);
    background: linear-gradient(180deg, var(--na-aqua), transparent);
    opacity: 0;
    transition: opacity var(--na-normal) var(--na-ease);
}
.na-problem .na-card--hover:hover::before { opacity: 1; }

/* =============================================================================
   4 — FIVE INTELLIGENCE LAYERS
   =============================================================================
   The signature grid. Five cards, numbered, on the primary dark. On desktop
   they read left to right as a pipeline; the connector line under the numbers
   is what makes that read as 01 → 02 → 03 → 04 → 05 rather than five boxes.
   ========================================================================== */

.na-layers { position: relative; }

.na-layers__grid { position: relative; z-index: 1; }

.na-layer {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
}

.na-layer__top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.na-layer__top .na-num { margin: 0; }

/* The connector. A hairline that runs out of each card's number toward the
   next one, drawn only where there is a next one. */
.na-layer__top::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--na-dark-line-2), transparent);
}

.na-layer h3 {
    font-size: 1.0625rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.25rem;
}
.na-layer__kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--na-aqua);
    margin-bottom: 0.875rem;
    display: block;
}

.na-layer .na-list { margin-top: auto; padding-top: 1rem; }

/* The solution cards moved to na-blocks.css when the Solutions hub needed the
   same component. */
