/* ============================================================
   Knitopia Official Website
   NVIDIA-Inspired Futuristic Design with Video Backgrounds
   ============================================================ */

:root {
    --bg:         #000000;
    --bg-alt:     #050505;
    --bg-card:    #0A0A0A;
    --bg-elevated:#111111;
    --border:     #1A1A1A;
    --text:       #FFFFFF;
    --text-sec:   #8A8A8A;
    --text-muted: #555555;
    --green:      #76B900;
    --green-h:    #8ED100;
    --green-dim:  rgba(118,185,0,0.08);
    --green-glow: rgba(118,185,0,0.25);
    --radius:     12px;
    --radius-sm:  8px;
    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --font:       'Inter', system-ui, -apple-system, sans-serif;
    --mono:       'JetBrains Mono', 'Fira Code', monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-h); }
img { max-width: 100%; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--green) #000; }

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Container */
.w-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.w-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(118,185,0,0.06);
    transition: all 0.4s var(--ease);
}
.w-nav.scrolled {
    padding: 0.75rem 2.5rem;
    background: rgba(0,0,0,0.85);
    border-bottom-color: rgba(118,185,0,0.12);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.w-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--green);
    transition: text-shadow 0.3s;
}
.w-nav-brand:hover {
    color: var(--green-h);
    text-shadow: 0 0 20px rgba(118,185,0,0.5);
}
.w-nav-logo { width: 30px; height: 30px; border-radius: 6px; }

.w-nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.w-nav-brand-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--green);
}
.w-nav-brand-sub {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 1px;
}

.w-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.w-nav-links a {
    color: var(--text-sec);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.3s;
}
.w-nav-links a:hover { color: var(--green); }

.w-nav-app-link {
    color: var(--green) !important;
    font-weight: 600 !important;
}

.w-nav-cta {
    background: var(--green) !important;
    color: #000 !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.3s var(--ease) !important;
}
.w-nav-cta:hover {
    background: var(--green-h) !important;
    box-shadow: 0 0 20px rgba(118,185,0,0.3);
}

.w-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.w-nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-sec);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ================================================================
   HERO WITH VIDEO BACKGROUND
   ================================================================ */
.w-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.w-hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.w-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.w-hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.9) 100%),
        radial-gradient(ellipse at center 30%, rgba(118,185,0,0.06) 0%, transparent 60%);
    z-index: 1;
}

.w-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.w-hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.w-hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.w-line { display: block; }
.w-em {
    font-style: normal;
    background: linear-gradient(135deg, #FFFFFF 20%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w-hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-sec);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.w-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.w-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}
.w-hstat { text-align: center; }
.w-hstat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green);
    text-shadow: 0 0 15px rgba(118,185,0,0.3);
}
.w-hstat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

/* Scroll indicator */
.w-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.w-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--green), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 50px; }
    50%      { opacity: 1; height: 65px; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.w-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-decoration: none;
    min-height: 48px;
}
.w-btn-primary {
    background: var(--green);
    color: #000;
    border-color: var(--green);
    box-shadow: 0 0 15px rgba(118,185,0,0.2);
}
.w-btn-primary:hover {
    background: var(--green-h);
    border-color: var(--green-h);
    color: #000;
    box-shadow: 0 0 30px rgba(118,185,0,0.35);
    transform: translateY(-2px);
}
.w-btn-ghost {
    background: rgba(0,0,0,0.4);
    color: var(--text-sec);
    border-color: var(--border);
    backdrop-filter: blur(4px);
}
.w-btn-ghost:hover {
    color: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 15px rgba(118,185,0,0.08);
}
.w-btn-lg {
    font-size: 1.05rem;
    padding: 0.9rem 2.2rem;
}

/* ================================================================
   SECTIONS (base + video background utility)
   ================================================================ */
.w-section {
    padding: 7rem 0;
    position: relative;
}
.w-section-dark {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Section with video background */
.w-section-video {
    position: relative;
    overflow: hidden;
}
.w-section-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.w-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.45;
}
.w-section-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}
.w-section-video-overlay--heavy {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.65) 40%, rgba(0,0,0,0.65) 60%, rgba(0,0,0,0.85) 100%);
}

/* Content inside video sections sits above the overlay */
.w-section-video > .w-container {
    position: relative;
    z-index: 2;
}

.w-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1rem;
    opacity: 0.8;
}
.w-section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.w-section-desc {
    font-size: 1.1rem;
    color: var(--text-sec);
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* ================================================================
   PRODUCT GRID (01)
   ================================================================ */
.w-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.w-product-card {
    background: rgba(10,10,10,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}
.w-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}
.w-product-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(118,185,0,0.08);
    background: rgba(10,10,10,0.9);
}
.w-product-card:hover::before { opacity: 1; }

.w-product-icon {
    margin-bottom: 1.25rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.w-product-card:hover .w-product-icon { opacity: 1; }

.w-product-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.w-product-card p {
    font-size: 0.88rem;
    color: var(--text-sec);
    line-height: 1.6;
}

/* ================================================================
   OUTPUT SECTION (02) - Side-by-side layout with video
   ================================================================ */
.w-output-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}
.w-output-video-col {
    position: sticky;
    top: 120px;
}
.w-inline-video-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    position: relative;
}
.w-inline-video {
    width: 100%;
    aspect-ratio: 9 / 14;
    object-fit: cover;
    display: block;
}
.w-inline-video-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
}

/* Formats grid inside the output section */
.w-output-formats-col .w-formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.w-format-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.35s var(--ease);
}
.w-format-card:hover {
    border-color: rgba(118,185,0,0.3);
}

.w-format-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.w-format-preview {
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w-format-chart { background: #F5F5F0; }
.w-mini-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
}
.mc {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-family: var(--mono);
    border: 0.5px solid #CCC;
}
.mc.k { background: #F5E6D3; color: #555; }
.mc.p { background: #D4D4D4; color: #555; }
.mc.c { background: #B8E06E; color: #333; }

.w-format-text { background: #FAFAF5; }
.w-format-text code {
    font-family: Georgia, serif;
    font-size: 0.75rem;
    color: #333;
    line-height: 1.7;
}

.w-format-machine { background: #FFF; }
.w-mini-punch {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1px;
}
.mp {
    width: 14px;
    height: 14px;
    border: 0.5px solid #DDD;
}
.mp.on { background: #1A1A1A; }
.mp.off { background: #F0F0F0; }

.w-format-code { background: #060610; }
.w-format-code code {
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.6;
    color: #CCC;
}
.wc { color: #76B900; }
.wo { color: #FFF; }
.wn { color: #8ED100; }
.wb { color: #5DADE2; }

.w-format-card p {
    font-size: 0.82rem;
    color: var(--text-sec);
    line-height: 1.5;
}

/* ================================================================
   PIPELINE (03)
   ================================================================ */
.w-pipeline {
    max-width: 700px;
}
.w-pipe-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.w-pipe-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green);
    background: rgba(118,185,0,0.08);
    box-shadow: 0 0 15px rgba(118,185,0,0.15);
    backdrop-filter: blur(6px);
}
.w-pipe-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.w-pipe-content p {
    font-size: 0.92rem;
    color: var(--text-sec);
    line-height: 1.6;
}
.w-pipe-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--green), rgba(118,185,0,0.15));
    margin-left: 23px;
    margin-top: 4px;
    margin-bottom: 4px;
}

/* ================================================================
   TECHNOLOGY GRID (04) - with media cards
   ================================================================ */
.w-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.w-tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.35s var(--ease);
}
.w-tech-card:hover {
    border-color: rgba(118,185,0,0.25);
    box-shadow: 0 8px 30px rgba(118,185,0,0.06);
}

/* Tech card with image or video */
.w-tech-card--media {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.w-tech-card-media {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}
.w-tech-card-img,
.w-tech-card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}
.w-tech-card--media:hover .w-tech-card-img,
.w-tech-card--media:hover .w-tech-card-video {
    transform: scale(1.05);
}
.w-tech-card-body {
    padding: 1.5rem 2rem 2rem;
}

.w-tech-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: var(--green-dim);
    border-radius: 20px;
    display: inline-block;
}

.w-tech-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.w-tech-card p {
    font-size: 0.88rem;
    color: var(--text-sec);
    line-height: 1.6;
}

/* ================================================================
   USE CASES GRID (05) - with media cards
   ================================================================ */
.w-use-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.w-use-wide {
    grid-column: span 2;
}
.w-use-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.35s var(--ease);
}
.w-use-card:hover {
    border-color: rgba(118,185,0,0.2);
}

/* Use case card with media */
.w-use-card--media {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.w-use-card-media {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.w-use-card-img,
.w-use-card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}
.w-use-card--media:hover .w-use-card-img,
.w-use-card--media:hover .w-use-card-video {
    transform: scale(1.05);
}
.w-use-card-body {
    padding: 1.5rem 2rem 2rem;
}

/* Wide card media is taller */
.w-use-wide .w-use-card-media {
    height: 220px;
}

.w-use-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.75rem;
}
.w-use-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.w-use-card p {
    font-size: 0.88rem;
    color: var(--text-sec);
    line-height: 1.6;
}

/* ================================================================
   STORY / MISSION (06)
   ================================================================ */
.w-story {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.w-story-block {
    padding: 1.5rem;
    border-left: 2px solid var(--green);
    transition: all 0.35s;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.w-story-block:hover {
    background: rgba(118,185,0,0.06);
}
.w-story-year {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green);
    margin-bottom: 0.5rem;
}
.w-story-block p {
    font-size: 0.9rem;
    color: var(--text-sec);
    line-height: 1.6;
}

.w-quote {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}
.w-quote blockquote {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text);
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
}

/* Mission Numbers */
.w-mission-numbers {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.w-mn { text-align: center; }
.w-mn-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
    text-shadow: 0 0 20px rgba(118,185,0,0.25);
    letter-spacing: -0.02em;
}
.w-mn-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 0.4rem;
    max-width: 160px;
}

/* ================================================================
   CTA
   ================================================================ */
.w-section-cta {
    padding: 8rem 0;
}
.w-cta-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    border: 2px solid var(--green);
    border-radius: var(--radius);
    padding: 3.5rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(118,185,0,0.08);
}
.w-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green-h), transparent);
}
.w-cta-box h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.w-cta-box > p {
    font-size: 0.95rem;
    color: var(--text-sec);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.w-cta-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.w-cta-input {
    flex: 1;
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    background: #060610;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.w-cta-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(118,185,0,0.15);
}
.w-cta-input::placeholder { color: var(--text-muted); }

.w-cta-success { color: var(--green); font-weight: 600; }
.w-cta-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ================================================================
   FOOTER
   ================================================================ */
.w-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}
.w-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.w-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--green);
}
.w-footer-links {
    display: flex;
    gap: 1.5rem;
}
.w-footer-links a {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: color 0.3s;
}
.w-footer-links a:hover { color: var(--green); }
.w-footer-copy {
    width: 100%;
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1rem;
    opacity: 0.6;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .w-product-grid { grid-template-columns: repeat(2, 1fr); }
    .w-output-layout { grid-template-columns: 1fr; }
    .w-output-video-col {
        position: static;
        max-width: 400px;
    }
    .w-output-formats-col .w-formats-grid { grid-template-columns: repeat(2, 1fr); }
    .w-tech-grid { grid-template-columns: repeat(2, 1fr); }
    .w-story { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .w-nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
    }
    .w-nav-links.open { display: flex; }
    .w-nav-toggle { display: flex; }
    .w-nav { padding: 0.75rem 1.5rem; }
    .w-nav-brand-sub { display: none; }

    .w-hero { min-height: 90vh; padding: 5rem 1.5rem 3rem; }
    .w-hero-title { font-size: 2.4rem; }
    .w-hero-actions { flex-direction: column; align-items: center; }
    .w-hero-stats { flex-wrap: wrap; gap: 1.5rem; }

    .w-section { padding: 4rem 0; }
    .w-container { padding: 0 1.5rem; }

    .w-product-grid,
    .w-output-formats-col .w-formats-grid,
    .w-tech-grid,
    .w-use-grid { grid-template-columns: 1fr; }
    .w-use-wide { grid-column: span 1; }
    .w-story { grid-template-columns: 1fr; }
    .w-mission-numbers { flex-direction: column; gap: 2rem; align-items: center; }

    .w-output-layout { grid-template-columns: 1fr; }
    .w-output-video-col { max-width: 100%; }
    .w-inline-video { aspect-ratio: 16 / 9; }

    .w-tech-card-media { height: 150px; }
    .w-use-card-media { height: 160px; }
    .w-use-wide .w-use-card-media { height: 180px; }

    .w-cta-form { flex-direction: column; }
    .w-cta-box { padding: 2.5rem 1.5rem; }

    .w-footer-inner { justify-content: center; text-align: center; }
    .w-footer-links { flex-wrap: wrap; justify-content: center; }

    /* On small screens, reduce video quality burden */
    .w-bg-video { opacity: 0.35; }
}

@media (max-width: 480px) {
    .w-hero-title { font-size: 2rem; }
    .w-section-title { font-size: 1.7rem; }
}

/* ================================================================
   REDUCED MOTION ACCESSIBILITY
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .w-hero-video,
    .w-bg-video,
    .w-inline-video,
    .w-tech-card-video,
    .w-use-card-video {
        display: none;
    }
    .w-scroll-line { animation: none; opacity: 0.5; }
}
