@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0F172A;
    --card-bg: rgba(30, 41, 59, 0.7);
    --surface: rgba(15, 23, 42, 0.75);
    --primary: #1E293B;
    --secondary: #334155;
    --cta: #22C55E;
    --cta-hover: #16A34A;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --accent: #38BDF8; /* Cyan accent matching the logo */
    --accent-glow: rgba(56, 189, 248, 0.3);
    
    --transition-fast: 200ms ease-in-out;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-max: 1200px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.12), transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.08), transparent 30%),
        linear-gradient(180deg, #0b1223 0%, #0f172a 45%, #0a1325 100%);
}

h1, h2, h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.nav-logo {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--cta);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

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

.btn-outline:hover {
    background: var(--accent);
    color: #000;
}

/* Navbar */
.floating-nav {
    position: fixed;
    top: 1.5rem;
    left: 2rem;
    right: 2rem;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    position: relative;
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text);
    border-radius: 0.5rem;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 18px;
    margin: 4px auto;
    background: var(--text);
    transition: var(--transition-fast);
}

.logo-accent, .logo-iot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
}

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

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + 100px);
    padding-bottom: 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr; /* More room for 'Industrial IoT' text */
    gap: 4rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    color: var(--cta);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--cta);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cta);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.accent-text {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-metrics div {
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.75rem;
    padding: 0.8rem 0.9rem;
}

.hero-metrics strong {
    display: block;
    font-size: 1.1rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: var(--accent);
}

.hero-metrics span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* Constrain the flowing images to one at a time */
}

.glow-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

/* Gallery track items no longer need a header */

.hero-gallery-track {
    height: 440px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.hero-gallery-track::-webkit-scrollbar {
    display: none;
}

/* Removed previous scrollbar custom styles to ensure hidden track */

.hero-gallery-item {
    position: relative;
    flex: 0 0 100%; /* Only one image visible at a time */
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    scroll-snap-align: center;
}

.hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Hardware looks better non-cropped in a single-view slider */
    display: block;
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    cursor: zoom-in;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-gallery-item img:hover {
    transform: scale(1.02);
}

/* Removed dots and counter */

.hero-gallery-item img:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Trust Strip */
.trust-strip {
    padding: 1rem 0 2.5rem;
}

.trust-strip-content {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem 1.25rem;
    display: grid;
    gap: 0.75rem;
    overflow: hidden;
}

.trust-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.trust-strip-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trust-kicker {
    font-size: 0.8rem;
    color: #c7d4e7;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    white-space: nowrap;
}

.trust-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trust-marquee-inner {
    display: flex;
    width: max-content;
    gap: 1rem;
    animation: trust-marquee-scroll 42s linear infinite;
}

.trust-marquee:hover .trust-marquee-inner {
    animation-play-state: paused;
}

.trust-track {
    display: flex;
    gap: 1rem;
}

.trust-chip {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 280px;
    background: rgba(30, 41, 59, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.9rem;
    padding: 0.6rem 0.75rem;
}

.trust-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #e6f4ff;
    background: linear-gradient(140deg, rgba(56, 189, 248, 0.28), rgba(30, 64, 175, 0.45));
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.trust-chip strong {
    display: block;
    font-size: 0.87rem;
    font-weight: 700;
    color: #f1f6ff;
    line-height: 1.2;
}

.trust-chip span {
    font-size: 0.74rem;
    color: #b5c4da;
    line-height: 1.2;
}

@keyframes trust-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 0.5rem));
    }
}

/* Proof */
.proof {
    padding: 110px 0;
}

.proof-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.proof-head h2,
.how-head h2,
.final-cta h2,
.energy-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    margin-bottom: 1rem;
}

.proof-head p,
.how-head p,
.final-cta p {
    color: var(--text-muted);
}

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

.proof-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 1rem;
    padding: 1.3rem;
}

.proof-card h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

/* How It Works */
.how-it-works {
    padding: 0 0 110px;
}

.how-head {
    max-width: 680px;
    margin-bottom: 2rem;
}

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

.how-card {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.74), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    padding: 1.35rem;
}

.how-step {
    display: inline-block;
    color: var(--cta);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.how-card h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.how-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Products */
.products {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    font-size: 2.5rem;
}

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

.product-card {
    padding: 1.5rem;
    transition: var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.product-img-wrapper {
    height: 250px;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    background: #000;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.specs {
    display: flex;
    gap: 0.5rem;
}

.specs span {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Features */
.features {
    padding: 100px 0;
    background: #0a1120;
}

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

.feature-item {
    text-align: center;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent);
}

.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }

/* Energy Monitoring */
.energy-preview {
    padding: 150px 0;
}

.energy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.stat-group {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.label {
    text-transform: none;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    color: var(--text-muted);
}

.mobile-mockup {
    padding: 1rem;
    border-radius: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-mockup img {
    border-radius: 1.5rem;
    cursor: zoom-in;
}

.mobile-mockup img:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ATRIoT + Unlimited Internet */
.internet-section {
    padding: 120px 0;
    position: relative;
}

.internet-section h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.internet-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.internet-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.internet-icon {
    color: var(--accent);
    font-size: 0.55rem;
    margin-top: 0.45rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.internet-features strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.internet-features span {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Final CTA */
.final-cta {
    padding: 0 0 120px;
}

.final-cta-content {
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
    text-align: center;
    padding: 2rem;
}

.final-cta .hero-btns {
    justify-content: center;
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.socials a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.socials a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Immersive Motion Reveal Section */
.motion-content {
    background: var(--bg);
}

#ecosystem-reveal {
    min-height: 300vh; /* Desktop scroll space — generous for slow scrollers */
    position: relative;
    background: #000;
}

.sticky-container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    place-items: center;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.reveal-end {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #000;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.reveal-end-media {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/future-homes-banner.png');
    background-size: cover;
    background-position: center 18%;
    transform: scale(1.015);
}

.reveal-end-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.14) 0%, rgba(2, 6, 23, 0.54) 63%, rgba(2, 6, 23, 0.82) 100%),
        radial-gradient(circle at 50% 22%, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.45));
}

.reveal-end-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem;
}

.reveal-end-content .fluid {
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.62);
}

.reveal-end-content p {
    margin-top: 1.2rem;
    color: #d7e2f2;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.grid {
    --container-width: 1600px;
    --gap: clamp(10px, 7.35vw, 80px);
    --offset: 0;

    width: var(--container-width);
    max-width: calc(100% - 4rem);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: var(--gap);
    margin: 0 auto;
    align-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.layer {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    opacity: 0;
    pointer-events: none; /* Prevents layers from blocking the interactive scaler */
    transition: opacity 0.5s ease;
}

@supports not (grid-template-columns: subgrid) {
    .layer {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(3, auto);
    }
}

/* Layer 1: Outer edges */
.layer:nth-of-type(1) div:nth-of-type(odd) { grid-column: 1; }
.layer:nth-of-type(1) div:nth-of-type(even) { grid-column: -2; }

/* Layer 2: Inner columns */
.layer:nth-of-type(2) div:nth-of-type(odd) { grid-column: calc(2 + var(--offset)); }
.layer:nth-of-type(2) div:nth-of-type(even) { grid-column: calc(-3 - var(--offset)); }

/* Layer 3: Center top/bottom */
.layer:nth-of-type(3) div:first-of-type { grid-column: calc(3 + var(--offset)); grid-row: 1; }
.layer:nth-of-type(3) div:last-of-type { grid-column: calc(3 + var(--offset)); grid-row: -1; }

.grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: zoom-in;
}

.grid img:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.scaler {
    position: relative;
    grid-area: 2 / calc(3 + var(--offset));
    z-index: 10;
    transform-origin: center center; /* Ensures scale animation radiates from cell centre */
}

.scaler img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.2);
    border: 1px solid var(--accent);
}

/* Image Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: 1.25rem;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-image {
    max-width: min(92vw, 1300px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

body.lightbox-open {
    overflow: hidden;
}

.fluid {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Founder Spotlight Section */
.founder-spotlight {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.03), transparent);
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.portrait-frame {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.portrait-frame img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: luminosity;
    transition: mix-blend-mode 0.5s ease;
}

.portrait-frame:hover img {
    mix-blend-mode: normal;
}

.frame-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15), transparent 70%);
    pointer-events: none;
}

.founder-text h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 24px;
}

.founder-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.founder-quote {
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text);
    padding-left: 24px;
    border-left: 4px solid var(--accent);
    margin-bottom: 40px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .founder-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .founder-quote {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--accent);
        padding-top: 24px;
    }
}

@media (max-width: 800px) {
    #ecosystem-reveal {
        min-height: 220vh; /* Tighter scroll zone — matches animation duration on mobile */
    }

    .sticky-container {
        /* Keep sticky so images stay visible while user scrolls — DO NOT set to relative */
        position: sticky;
        top: 0;
        min-height: 100svh; /* Use svh for mobile browser chrome awareness */
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: calc(100% - 2rem);
        --gap: clamp(8px, 4vw, 20px);
        --offset: -1;
    }

    @supports not (grid-template-columns: subgrid) {
        .layer {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .layer:nth-of-type(1) { display: none; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .energy-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }

    .hero-gallery {
        max-width: 720px;
        margin: 0 auto;
    }

    .hero-metrics {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .proof-grid,
    .how-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.7rem);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
        border-radius: 0.75rem;
        background: rgba(15, 23, 42, 0.97);
        border: 1px solid rgba(148, 163, 184, 0.22);
    }

    .floating-nav.nav-open .nav-links {
        display: flex;
    }

    .nav-actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .product-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2.5rem; }
    
    .stat-group {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .hero-gallery-track {
        height: 350px;
    }

    .hero-gallery-item img {
        height: 100%;
    }

    .trust-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .trust-chip {
        min-width: 230px;
    }

    .reveal-end {
        min-height: 70vh;
    }

    .reveal-end-media {
        background-size: cover;
        background-position: 52% 30%;
    }

    .reveal-end-content {
        padding: 1.4rem;
    }

    .reveal-end-content p {
        max-width: 40ch;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trust-marquee-inner {
        animation: none;
    }

    #ecosystem-reveal {
        min-height: 140vh;
    }

    .sticky-container {
        position: relative;
        top: auto;
    }

    .layer {
        opacity: 1;
    }

    .scaler img {
        transform: translate(-50%, -50%);
    }
}
