/* AtmoScale — unified styles (brand-correct: dark navy + cyan + purple) */

:root {
    color-scheme: dark;
    --bg: #0b0d17;
    --bg-2: #0f1220;
    --bg-3: #141830;
    --text: #e0e6ed;
    --text-muted: #a0a0a0;
    --text-dim: #6a7284;
    --accent: #00d4ff; /* cyan */
    --accent-2: #7b2cbf; /* purple */
    --accent-pink: #ff5ea3; /* reflectivity pink */
    --nav-bg: rgba(11, 13, 23, 0.82);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-bg-hi: rgba(255, 255, 255, 0.07);
    --rule: rgba(255, 255, 255, 0.08);
    --rule-hi: rgba(0, 212, 255, 0.25);

    --font-main: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', var(--font-main);
    --maxw: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition:
        color 0.2s,
        opacity 0.2s;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ============== NAV ============== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition:
        border-color 0.2s,
        padding 0.2s;
}

nav.scrolled {
    border-bottom-color: var(--rule);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 64px;
    width: auto;
    transition: transform 0.3s;
}

.logo:hover .nav-logo {
    transform: scale(1.03);
}

nav.scrolled .nav-logo {
    height: 52px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    font-size: 0.95rem;
}

.nav-links a {
    color: var(--text);
    opacity: 0.82;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.nav-links a[aria-current='page'] {
    color: var(--accent);
    opacity: 1;
}

.nav-cta {
    background: var(--accent);
    color: var(--bg) !important;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    white-space: nowrap;
    opacity: 1 !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.35);
    color: var(--bg) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--accent);
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.7rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    border: 0;
    cursor: pointer;
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        background 0.25s,
        color 0.25s;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.35);
    color: var(--bg);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.08);
    transform: translateY(-2px);
}

.btn .arrow {
    transition: transform 0.2s;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* ============== SECTIONS — SHARED ============== */
main {
    padding-top: 80px;
}

.section-head {
    margin-bottom: 3rem;
    max-width: 760px;
}

.section-num {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-num.cyan {
    color: var(--accent);
    opacity: 0.8;
}

.section-lede {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 52ch;
}

.muted {
    color: var(--text-dim);
    font-weight: 400;
}

.grad {
    background: linear-gradient(120deg, #fff 10%, var(--accent) 90%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============== HERO ============== */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 4rem 5% 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('../images/radar-reflectivity-bg.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    filter: saturate(1.2);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 50% at 15% 50%, rgba(11, 13, 23, 0.85), transparent 65%),
        linear-gradient(180deg, rgba(11, 13, 23, 0.35) 0%, rgba(11, 13, 23, 0.55) 70%, rgba(11, 13, 23, 0.95) 100%);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.page-hero {
    padding: 9rem 2rem 5rem;
    text-align: left;
    max-width: var(--maxw);
    margin: 0 auto;
}

.page-hero-inner {
    max-width: 920px;
}

.page-hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 900px) {
    .page-hero-split {
        grid-template-columns: 1fr;
    }

    .page-hero-art {
        max-width: 360px;
        margin: 1rem auto 0;
    }
}

.page-hero-art {
    position: relative;
}

.radar-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.15));
}

.radar-sweep {
    animation: radarSpin 6s linear infinite;
}

@keyframes radarSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.radar-cells circle {
    animation: cellPulse 3.5s ease-in-out infinite;
}

.radar-cells circle:nth-child(2) {
    animation-delay: 0.6s;
}

.radar-cells circle:nth-child(3) {
    animation-delay: 1.2s;
}

.radar-cells circle:nth-child(4) {
    animation-delay: 1.8s;
}

.radar-cells circle:nth-child(5) {
    animation-delay: 2.4s;
}

@keyframes cellPulse {
    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Hero cross-section animations */
.radar-pulse {
    animation: radarPulse 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes radarPulse {
    0%,
    100% {
        opacity: 0.5;
        r: 3;
    }

    50% {
        opacity: 1;
        r: 5;
    }
}

.hero-beams path {
    stroke-dasharray: 4 3;
    animation: beamFlow 3s linear infinite;
}

.hero-beams path:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-beams path:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-beams path:nth-child(4) {
    animation-delay: 0.9s;
}

@keyframes beamFlow {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -28;
    }
}

.storm-core {
    animation: cellPulse 2.4s ease-in-out infinite;
    transform-origin: center;
}

.hero-rain line {
    animation: rainFall 1.6s ease-in infinite;
    opacity: 0;
}

.hero-rain line:nth-child(1) {
    animation-delay: 0s;
}

.hero-rain line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-rain line:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-rain line:nth-child(4) {
    animation-delay: 0.6s;
}

.hero-rain line:nth-child(5) {
    animation-delay: 0.8s;
}

.hero-rain line:nth-child(6) {
    animation-delay: 1s;
}

.hero-rain line:nth-child(7) {
    animation-delay: 1.2s;
}

.river-flow path {
    stroke-dasharray: 6 4;
    animation: beamFlow 2.5s linear infinite reverse;
}

/* ============ AUDIENCE CARD ILLUSTRATIONS ============ */
.aud-illus {
    margin: -0.5rem -0.5rem 1.2rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(167, 139, 250, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-dim);
}

.illus-svg {
    width: 100%;
    height: auto;
    display: block;
    max-height: 140px;
}
/* Met & Hydro: rain drop animation */
.rain-drops line {
    animation: rainFall 1.4s ease-in infinite;
    opacity: 0;
}

.rain-drops line:nth-child(1) {
    animation-delay: 0s;
}

.rain-drops line:nth-child(2) {
    animation-delay: 0.35s;
}

.rain-drops line:nth-child(3) {
    animation-delay: 0.7s;
}

.rain-drops line:nth-child(4) {
    animation-delay: 1.05s;
}

@keyframes rainFall {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}
/* Research: data scan animation */
.res-cells rect {
    animation: scanCell 2.6s ease-in-out infinite;
}

.res-cells rect:nth-child(2) {
    animation-delay: 1.3s;
}

@keyframes scanCell {
    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}
/* Water: hydrograph trace */
.hydrograph {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: traceHydro 4s ease-in-out infinite;
}

@keyframes traceHydro {
    0% {
        stroke-dashoffset: 200;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -200;
    }
}
/* Water: rain animation */
.wat-rain line {
    animation: rainFall 1.6s ease-in infinite;
    opacity: 0;
}

.wat-rain line:nth-child(1) {
    animation-delay: 0s;
}

.wat-rain line:nth-child(2) {
    animation-delay: 0.2s;
}

.wat-rain line:nth-child(3) {
    animation-delay: 0.4s;
}

.wat-rain line:nth-child(4) {
    animation-delay: 0.6s;
}

.wat-rain line:nth-child(5) {
    animation-delay: 0.8s;
}

.wat-rain line:nth-child(6) {
    animation-delay: 1s;
}

@media (prefers-reduced-motion: reduce) {
    .radar-sweep,
    .radar-cells circle,
    .rain-drops line,
    .wat-rain line,
    .res-cells rect,
    .hydrograph,
    .radar-pulse,
    .hero-beams path,
    .storm-core,
    .hero-rain line,
    .river-flow path {
        animation: none;
    }

    .rain-drops line,
    .wat-rain line,
    .hero-rain line {
        opacity: 0.6;
    }

    .hydrograph {
        stroke-dashoffset: 0;
    }
}

.page-hero h1 {
    font-family: Outfit, sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    margin: 1rem 0 1.5rem;
}

.page-hero-sub {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 720px;
    line-height: 1.55;
}
/* ============ AUDIENCES TEASER (homepage) ============ */
.audiences-teaser {
    padding: 5rem 2rem;
    max-width: var(--maxw);
    margin: 0 auto;
}

.teaser-list {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
    .teaser-list {
        grid-template-columns: 1fr;
    }
}

.teaser-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 0.25rem;
    border-bottom: 1px solid var(--line);
}

.teaser-tag {
    font-family: Inter, sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--accent);
    flex: 0 0 70px;
}

.teaser-tag.muted {
    color: var(--text-faint);
}

.teaser-name {
    font-family: Outfit, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
}

.teaser-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: Outfit, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--accent);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.teaser-link:hover {
    border-bottom-color: var(--accent);
}

.teaser-link .arrow {
    transition: transform 0.2s;
}

.teaser-link:hover .arrow {
    transform: translateX(4px);
}

.aud-list {
    margin-top: 1.2rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.aud-list li {
    font-size: 0.92rem;
    color: var(--text-dim);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.45;
}

.aud-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 600;
}

@keyframes driftBg {
    0%,
    100% {
        transform: scale(1.08) translate(0, 0);
    }

    50% {
        transform: scale(1.08) translate(1%, 1%);
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--maxw);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}

.hero-inner-centered {
    grid-template-columns: 1fr;
    max-width: 1000px;
    text-align: left;
}

.hero-inner-centered .hero-copy {
    max-width: 900px;
}

.hero-inner-centered h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 50px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.55);
}

.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 52ch;
    margin-bottom: 2rem;
    line-height: 1.55;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--rule);
    max-width: 620px;
}

.hero-meta > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-meta-n {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.hero-meta-l {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.35;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    filter: drop-shadow(0 20px 60px rgba(0, 212, 255, 0.18));
}

.radar-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle, rgba(11, 13, 23, 0.4) 0%, rgba(11, 13, 23, 0.9) 100%);
    border: 1px solid rgba(0, 212, 255, 0.18);
    flex-shrink: 0;
}

#weather-canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block;
    filter: blur(6px) saturate(1.25);
}

.radar-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    display: block;
}

.radar-sweep {
    transform-origin: 250px 250px;
    animation: sweep 6s linear infinite;
}

@keyframes sweep {
    to {
        transform: rotate(360deg);
    }
}

.radar-hud {
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(11, 13, 23, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 212, 255, 0.25);
    padding: 8px 14px;
    border-radius: 6px;
    font-family: Inter, sans-serif;
}

.radar-hud {
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(11, 13, 23, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 212, 255, 0.25);
    padding: 8px 14px;
    border-radius: 6px;
    font-family: Inter, sans-serif;
}

.hud-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.hud-time {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.hud-scale {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 2px;
}

.hud-scale span {
    flex: 1;
}

.hud-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.55rem;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        max-width: 380px;
        margin: 0 auto;
    }

    .hero-meta {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* ============== PROBLEM ============== */
.problem {
    padding: 6rem 5%;
    border-top: 1px solid var(--rule);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    position: relative;
    overflow: hidden;
}

.problem-map {
    position: absolute;
    inset: 0;
    background-image: url('../images/world-radar-coverage.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.55;
    pointer-events: none;
}

.problem-inner {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .problem-figure {
        margin-top: 2rem;
    }
}

/* Split layout: text + figure */
.problem-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .problem-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.problem-figure {
    margin: 0;
    position: relative;
}

.problem-map-frame {
    position: relative;
    aspect-ratio: 2/1;
    width: 100%;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(255, 94, 163, 0.03)),
        radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.06), transparent 60%);
    overflow: hidden;
}

.problem-pings {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.problem-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    font-family: Inter, sans-serif;
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-item .dot.cyan {
    background: #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.legend-item .dot.pink {
    background: #ff5ea3;
    box-shadow: 0 0 8px rgba(255, 94, 163, 0.6);
}

.ping-grp circle {
    fill: #ff5ea3;
}

.ping-grp circle.ping-ring {
    fill: none;
    stroke: #ff5ea3;
    stroke-width: 1;
    transform-box: fill-box;
    transform-origin: center;
    animation: pingRing 3s ease-out infinite;
}

.ping-grp circle:not(.ping-ring) {
    animation: pingDot 3s ease-in-out infinite;
}

@keyframes pingDot {
    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}

@keyframes pingRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(5);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ping-grp circle {
        animation: none !important;
    }

    .ping-grp circle.ping-ring {
        opacity: 0.3;
    }
}

.problem-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.problem h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.problem-body {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 54ch;
}

.problem-body .problem-big {
    font-size: 1.2rem;
    color: var(--text);
}

.problem-body .problem-big strong {
    color: var(--accent);
    font-weight: 600;
}

.problem-strong {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    font-weight: 600;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
    margin-top: 0.5rem;
}

@media (max-width: 800px) {
    .problem-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============== PROOF ============== */
.proof {
    padding: 6rem 5%;
    max-width: var(--maxw);
    margin: 0 auto;
}

.proof-head h2 {
    font-size: clamp(2rem, 3.6vw, 3rem);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.proof-card {
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.05) 0%, rgba(123, 44, 191, 0.04) 100%);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition:
        transform 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
    min-height: 320px;
}

.proof-card:hover {
    transform: translateY(-4px);
    border-color: var(--rule-hi);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.08);
}

.proof-metric {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.8vw, 3.6rem);
    font-weight: 900;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.proof-was {
    font-size: 0.82rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

.proof-was em {
    font-style: normal;
    color: var(--accent-pink);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1.05rem;
    margin-left: 4px;
}

.proof-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    max-width: 30ch;
    margin-top: 0.4rem;
}

.proof-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 48ch;
}

.proof-tag {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    font-family: var(--font-main);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.proof-footnote {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
    max-width: 70ch;
}

@media (max-width: 800px) {
    .proof-grid {
        grid-template-columns: 1fr;
    }
}

/* ============== BELIEF / MANIFESTO ============== */
.belief {
    padding: 7rem 5%;
    background:
        radial-gradient(ellipse 60% 45% at 15% 10%, rgba(0, 212, 255, 0.1), transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 90%, rgba(123, 44, 191, 0.14), transparent 60%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    position: relative;
    overflow: hidden;
}

.belief-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/satellite-texture.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    mix-blend-mode: screen;
    pointer-events: none;
}

.belief > * {
    position: relative;
    z-index: 1;
}

.belief-head {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.belief-head h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 700;
}

.belief-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
}

.belief-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.belief-item h3 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 600;
    max-width: 30ch;
    margin-bottom: 0.8rem;
    line-height: 1.25;
}

.belief-item p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 50ch;
}

.belief-quote {
    max-width: 900px;
    margin: 5rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid var(--rule);
    text-align: center;
}
/* ============== FLOW / HOW IT WORKS ============== */
.flow {
    padding: 7rem 5%;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
    border-top: 1px solid var(--rule);
    position: relative;
    overflow: hidden;
}

.flow-inner {
    max-width: var(--maxw);
    margin: 0 auto;
}

.flow-head {
    max-width: 760px;
    margin-bottom: 3rem;
}

.flow-diagram {
    margin: 2rem 0 3rem;
    background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(123, 44, 191, 0.1), transparent 70%);
    padding: 1rem 0;
}

.flow-svg {
    width: 100%;
    height: auto;
    max-height: 560px;
    filter: drop-shadow(0 30px 60px rgba(123, 44, 191, 0.2));
}

.flow-cube {
    animation: cubeFloat 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes cubeFloat {
    0%,
    100% {
        transform: translate(600px, 260px) rotate(0deg);
    }

    50% {
        transform: translate(600px, 250px) rotate(0.5deg);
    }
}

.flow-legend {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
}

.flow-col h4 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7a8494;
    margin: 0 0 0.75rem;
}

.flow-col-mid h4 {
    color: var(--text);
}

.flow-col:last-child h4 {
    color: #ff5ea3;
}

.flow-col p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 900px) {
    .flow-legend {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .flow-svg {
        max-height: none;
    }
}

.belief-quote .section-num {
    margin-bottom: 1rem;
}

.belief-quote p {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.3vw, 2.4rem);
    line-height: 1.2;
    color: #fff;
    font-weight: 600;
    max-width: 30ch;
    margin: 0 auto;
}

.belief-quote em {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
}

@media (max-width: 800px) {
    .belief-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============== AUDIENCES ============== */
.audiences {
    padding: 6rem 5%;
    max-width: var(--maxw);
    margin: 0 auto;
}

.audiences-head {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: end;
}

.audiences-head h2 {
    font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.audiences-toolbar p {
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 40ch;
    margin-bottom: 1rem;
}

.tweak-inline {
    display: inline-flex;
    border: 1px solid var(--rule);
    background: var(--card-bg);
    border-radius: 50px;
    padding: 4px;
    gap: 3px;
}

.tweak-inline button {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--text-muted);
    padding: 7px 14px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 50px;
    transition:
        background 0.2s,
        color 0.2s;
}

.tweak-inline button.active {
    background: var(--accent);
    color: var(--bg);
}

.aud-divider {
    border: 0;
    height: 1px;
    background: var(--rule);
    margin: 2.5rem 0;
}

.audience-primary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.audience-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.aud-card {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition:
        transform 0.3s,
        border-color 0.3s,
        background 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.aud-card:hover {
    transform: translateY(-4px);
    border-color: var(--rule-hi);
    background: var(--card-bg-hi);
}

.aud-card-lg {
    min-height: 280px;
}

.aud-card-sm {
    padding: 1.5rem 1.75rem;
}

.aud-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.aud-tag {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    font-size: 0.66rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--accent);
}

.aud-tag.muted {
    color: var(--text-dim);
}

.aud-card h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    max-width: 22ch;
}

.aud-card h4 {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 600;
    max-width: 22ch;
}

.aud-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 36ch;
}

/* Flat mode */
.audiences[data-mode='flat'] .aud-divider {
    display: none;
}

.audiences[data-mode='flat'] .audience-primary,
.audiences[data-mode='flat'] .audience-secondary {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.audiences[data-mode='flat'] .audience-secondary {
    margin-top: 1.5rem;
}

.audiences[data-mode='flat'] .audience-secondary .aud-card-sm {
    padding: 2rem;
    min-height: 280px;
}

.audiences[data-mode='flat'] .aud-tag {
    color: var(--accent);
}

@media (max-width: 900px) {
    .audiences-head {
        grid-template-columns: 1fr;
    }

    .audience-primary,
    .audience-secondary {
        grid-template-columns: 1fr;
    }
}

/* ============== WHY ============== */
.why-atmoscale {
    padding: 6rem 5%;
    max-width: var(--maxw);
    margin: 0 auto;
}

.why-atmoscale h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.differentiator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.differentiator-card {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    transition:
        border-color 0.3s,
        background 0.3s;
}

.differentiator-card:hover {
    border-color: var(--rule-hi);
    background: var(--card-bg-hi);
}

.differentiator-card .card-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 212, 255, 0.08);
    position: absolute;
    top: 0.8rem;
    right: 1.5rem;
    pointer-events: none;
    line-height: 1;
}

.differentiator-card h3 {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.differentiator-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.98rem;
}

.differentiator-card em {
    color: var(--text);
    font-style: italic;
}

@media (max-width: 800px) {
    .differentiator-grid {
        grid-template-columns: 1fr;
    }
}

/* ============== CREDIBILITY ============== */
.credibility-bar {
    padding: 2.5rem 5%;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: rgba(255, 255, 255, 0.015);
    text-align: center;
}

.credibility-bar p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.credibility-bar em {
    color: var(--text);
    font-style: italic;
}

/* ============== CLOSING CTA ============== */
.closing-cta {
    padding: 6rem 5%;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 212, 255, 0.08), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.closing-cta .section-num {
    margin-bottom: 0.5rem;
}

.closing-cta h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    margin-bottom: 1.2rem;
    background: linear-gradient(120deg, #fff, var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.closing-cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.closing-email {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* ============== FOOTER ============== */
footer {
    background: #05060a;
    padding: 3rem 5% 2rem;
    border-top: 1px solid var(--rule);
}

.footer-content {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
}

.footer-brand .footer-logo {
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.88rem;
    max-width: 32ch;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col h4 {
    font-family: var(--font-main);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-base {
    max-width: var(--maxw);
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-version {
    font-family: var(--font-main);
    opacity: 0.7;
}

@media (max-width: 700px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============== TWEAKS PANEL ============== */
.tweaks-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 280px;
    background: var(--bg-3);
    border: 1px solid var(--rule-hi);
    border-radius: 12px;
    padding: 18px;
    font-family: var(--font-main);
    font-size: 13px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    z-index: 2000;
    display: none;
}

.tweaks-panel.visible {
    display: block;
}

.tweaks-panel h4 {
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.tweak-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tweak-row:last-child {
    margin-bottom: 0;
}

.tweak-row label {
    color: var(--text);
    opacity: 0.85;
}

.tweak-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 3px;
    gap: 2px;
}

.tweak-toggle button {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 50px;
}

.tweak-toggle button.active {
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
}

/* ============== MOBILE NAV ============== */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        border-top: 1px solid var(--rule);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }
}

/* ============== REDUCED MOTION ============== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .radar-sweep {
        animation: none;
    }
}

/* ============== VISION PAGE ============== */
.page-header {
    padding: 7rem 5% 3rem;
    max-width: var(--maxw);
    margin: 0 auto;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    background: linear-gradient(120deg, #fff, var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
}

.page-header .vision-intro {
    max-width: 60ch;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
}

.vision-block {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3rem 5%;
}

.vision-block h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-2);
}

.vision-block p,
.vision-block li {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 72ch;
}

.vision-block ul {
    padding-left: 1.5rem;
}

.vision-block ul li {
    margin-bottom: 0.6rem;
}

.vision-block ul li strong {
    color: var(--text);
    font-weight: 600;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.principle-card {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 2rem;
    transition:
        border-color 0.3s,
        background 0.3s;
}

.principle-card:hover {
    border-color: var(--rule-hi);
    background: var(--card-bg-hi);
}

.principle-card .num {
    font-family: var(--font-heading);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
    display: block;
}

.principle-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.principle-card p {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.approach-card {
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.05), rgba(123, 44, 191, 0.04));
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 2rem;
    transition:
        transform 0.3s,
        border-color 0.3s;
    position: relative;
}

.approach-card:hover {
    transform: translateY(-4px);
    border-color: var(--rule-hi);
}

.approach-card .highlight-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(0, 212, 255, 0.08);
    pointer-events: none;
    line-height: 1;
}

.approach-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.approach-card p {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.callout {
    background: linear-gradient(145deg, rgba(123, 44, 191, 0.12), rgba(0, 212, 255, 0.06));
    border: 1px solid rgba(123, 44, 191, 0.25);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: var(--maxw);
}

.callout .section-num {
    color: var(--accent-2);
    opacity: 0.9;
}

.callout h3 {
    font-size: 1.4rem;
    color: #fff;
    margin: 0.5rem 0 1rem;
    font-weight: 600;
}

.callout p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 75ch;
}

@media (max-width: 800px) {
    .principle-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }
}

/* ============== ABOUT ============== */
.about-section {
    padding: 6rem 5%;
    border-top: 1px solid var(--rule);
}

.about-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.about-block h3 {
    font-family: Outfit, sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--cyan);
    margin: 0 0 0.75rem;
    letter-spacing: 0.01em;
}

.about-block p {
    color: var(--text-dim);
    line-height: 1.65;
    margin: 0;
}

/* ============== FOOTER 4-COL ============== */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

.footer-grid .footer-col h4 {
    font-family: Inter, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 0 0 1.1rem;
}

.footer-grid .footer-col a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 0.35rem 0;
    font-size: 0.95rem;
}

.footer-grid .footer-col a:hover {
    color: var(--cyan);
}

.footer-email {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-email:hover {
    color: var(--cyan);
}
