:root {
    --bg-color: #050b14;
    --surface-color: #0c1627;
    --surface-hover: #132238;
    --text-main: #f0f4f8;
    --text-muted: #9baac8;
    --accent-cyan: #00f0ff;
    --accent-blue: #0055ff;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-highlight: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    --card-bg-gradient: linear-gradient(180deg, var(--surface-color) 0%, rgba(12, 22, 39, 0) 100%);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --logo-text: #fff;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-color: #f4f7f9;
    --surface-color: #ffffff;
    --surface-hover: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #475569;
    --accent-cyan: #0066ff;
    --accent-blue: #0033aa;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-highlight: rgba(0, 0, 0, 0.2);
    --card-bg-gradient: linear-gradient(180deg, var(--surface-color) 0%, rgba(244, 247, 249, 0) 100%);
    --logo-text: #0f172a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Layout & Utilities */
.container {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mono {
    font-family: var(--font-mono);
}

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

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 0;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--logo-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.nav-links a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s;
}

.nav-links a:hover,
.nav-links a:hover svg {
    color: var(--accent-cyan);
    stroke: var(--accent-cyan);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background: var(--surface-color);
    min-width: 220px;
    z-index: 100;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    transform: translateY(10px);
    display: flex;
    flex-direction: column;
}

body.light-mode .dropdown-content {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    padding: 0.75rem 1.5rem;
    width: 100%;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(0, 240, 255, 0.05);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-highlight);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FFD700;
    flex-shrink: 0;
}

body.light-mode .theme-toggle {
    color: #4a5b78;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle:hover {
    background: rgba(150, 150, 150, 0.1);
    border-color: var(--text-muted);
    transform: rotate(15deg);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 85, 255, 0.15) 0%, rgba(5, 11, 20, 0) 70%);
    z-index: -1;
    transition: background 0.3s ease;
}

body.light-mode .hero::before {
    background: radial-gradient(circle, rgba(0, 85, 255, 0.08) 0%, rgba(244, 247, 249, 0) 70%);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.2);
    width: 100%;
}

body.light-mode .hero-image-container {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.hero-image-container img {
    width: 100%;
    opacity: 0.85;
    mix-blend-mode: luminosity;
    transition: opacity 0.5s;
}

.hero-image-container:hover img {
    opacity: 1;
    mix-blend-mode: normal;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* Metrics Strip */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.metric-item h3 {
    font-size: clamp(1.8rem, 3vw + 1rem, 2.5rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.metric-item p {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.metric-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Section Setup */
section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw + 1rem, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 800px;
}

/* The Shift (Architecture) */
.architecture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.arch-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    opacity: 0.9;
}

.feature-item {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-item:hover {
    transform: translateX(10px);
    border-color: rgba(0, 102, 255, 0.3);
}

.feature-item h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.feature-item p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Products Matrix */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg-gradient);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--accent-blue);
    padding: 2.5rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 85, 255, 0.1);
}

.product-card.premium {
    border-top: 2px solid var(--accent-cyan);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-card h3 {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text-main);
}

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

/* About / Leadership Section */
.stats-strip {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(0, 85, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.stat-badge {
    flex: 1;
    min-width: 200px;
}

.stat-badge h4 {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-badge p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.team-card h3 {
    color: var(--text-main);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-card .title {
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Footer & Contact */
footer {
    background: var(--surface-color);
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-block h3 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-block .title {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.contact-detail svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-blue);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.contact-detail a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-detail a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

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

/* Categorized Products (NVIDIA-style) */
.category-block {
    margin-bottom: 5rem;
}

.category-block:last-child {
    margin-bottom: 0;
}

.category-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent-cyan);
}

.category-block > h3 {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.category-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.08);
}

.card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(0, 85, 255, 0.28), rgba(0, 240, 255, 0.06));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

body.light-mode .card-media::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

.card-glyph {
    position: relative;
    color: var(--accent-cyan);
    width: 80px;
    height: 80px;
    transition: transform 0.4s ease;
}

.feature-card:hover .card-glyph {
    transform: scale(1.1) rotate(-3deg);
}

.card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .card-image {
    transform: scale(1.06);
}

.card-media.has-photo::before {
    opacity: 0;
}

.card-media.has-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

body.light-mode .card-media.has-photo::after {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0) 50%);
}

.card-media .card-tag {
    z-index: 2;
}

.card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(5, 11, 20, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    z-index: 1;
}

body.light-mode .card-tag {
    background: rgba(255, 255, 255, 0.7);
}

.card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-cta {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: gap 0.3s ease;
}

.feature-card:hover .card-cta {
    gap: 0.8rem;
}

.category-block[data-cat="crypto"] .card-media {
    background: linear-gradient(135deg, rgba(120, 80, 255, 0.28), rgba(0, 240, 255, 0.05));
}

.category-block[data-cat="anomaly"] .card-media {
    background: linear-gradient(135deg, rgba(255, 100, 150, 0.22), rgba(0, 240, 255, 0.05));
}

.dropdown-content .menu-label {
    padding: 0.7rem 1.5rem 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    pointer-events: none;
    border-top: 1px solid var(--border-color);
    margin-top: 0.35rem;
    display: block;
}

.dropdown-content .menu-label:first-child {
    border-top: none;
    margin-top: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
    }

    .hero,
    .architecture-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image-container,
    .arch-image {
        display: block;
        margin: 0 auto;
    }

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

    section {
        padding: 4rem 0;
    }

    .hero {
        padding: 4rem 0 2rem 0;
    }
}

@media (max-width: 768px) {
    .nav-right {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-links {
        justify-content: flex-start;
        width: 100%;
        gap: 1rem;
    }

    .hero {
        text-align: left;
        padding: 3rem 0;
    }

    .hero::before {
        display: none;
    }

    .metrics {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .feature-item,
    .product-card {
        padding: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========== Dynamic + Mobile Enhancements ========== */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-links a.active,
.nav-links a.active svg {
    color: var(--accent-cyan);
    stroke: var(--accent-cyan);
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.text-gradient {
    background-size: 200% 200%;
    animation: shimmer 9s ease-in-out infinite;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-highlight);
    border-radius: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    flex-shrink: 0;
    transition: color 0.3s ease, border-color 0.3s ease;
    margin-left: auto;
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}

.nav-toggle:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .text-gradient { animation: none; }
    html { scroll-behavior: auto; }
}

@media (max-width: 768px) {
    nav {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        position: relative;
        gap: 1rem;
    }

    .nav-toggle { display: inline-flex; }

    .nav-right {
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
        padding: 0;
        margin: 0;
    }

    nav.open .nav-right {
        max-height: 80vh;
        overflow-y: auto;
        opacity: 1;
        padding: 1rem 0;
        margin-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        order: 1;
        width: 100%;
    }

    .nav-links > a,
    .nav-links .dropdown-toggle {
        padding: 0.85rem 0.25rem;
        border-bottom: 1px solid var(--border-color);
    }

    .theme-toggle {
        order: 2;
        align-self: flex-start;
        margin-top: 1rem;
    }

    .dropdown { width: 100%; }

    .dropdown-content {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: 0;
        margin-left: 1rem;
    }

    .dropdown.open .dropdown-content {
        max-height: 600px;
        padding: 0.5rem 0;
    }

    .dropdown-content a {
        padding: 0.6rem 1rem;
    }

    .dropdown-content .menu-label {
        padding: 0.7rem 1rem 0.3rem;
    }

    .card-glyph {
        width: 60px;
        height: 60px;
    }

    .card-body {
        padding: 1.4rem;
    }

    .stats-strip {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .stat-badge {
        min-width: 0;
    }

    .hero {
        padding: 2rem 0 1rem;
    }

    .category-block {
        margin-bottom: 3rem;
    }

    .category-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    nav { padding: 1.25rem 0; }
    .metrics { padding: 2.5rem 0; }
    .feature-card .card-tag { font-size: 0.65rem; }
    footer { padding: 4rem 0 3rem; }
}

/* ========== Hero Player (full-bleed video + particles) ========== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 540px;
    height: 70vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    grid-template-columns: none;
    gap: 0;
}

.hero::before { display: none; }

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.55;
    background: #050b14;
}

body.light-mode .hero-video {
    opacity: 0.5;
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(5, 11, 20, 0.92) 0%,
        rgba(5, 11, 20, 0.78) 35%,
        rgba(5, 11, 20, 0.35) 70%,
        rgba(5, 11, 20, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

body.light-mode .hero-overlay {
    background: linear-gradient(90deg,
        rgba(244, 247, 249, 0.95) 0%,
        rgba(244, 247, 249, 0.75) 40%,
        rgba(244, 247, 249, 0.15) 80%,
        rgba(244, 247, 249, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
    width: 100%;
}

.hero-content h1 {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

body.light-mode .hero-content h1 {
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.6);
}

.hero-content p {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

body.light-mode .hero-content p {
    text-shadow: none;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: none;
        gap: 0;
        padding: 0;
        height: 60vh;
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 65vh;
        min-height: 460px;
        padding: 0;
    }

    .hero-overlay {
        background: linear-gradient(180deg,
            rgba(5, 11, 20, 0.85) 0%,
            rgba(5, 11, 20, 0.7) 60%,
            rgba(5, 11, 20, 0.5) 100%);
    }

    body.light-mode .hero-overlay {
        background: linear-gradient(180deg,
            rgba(244, 247, 249, 0.9) 0%,
            rgba(244, 247, 249, 0.7) 60%,
            rgba(244, 247, 249, 0.4) 100%);
    }
}

/* ==========================================================================
   Video modal (Edge Datacenter & Matillo "Explore" CTAs)
   ========================================================================== */
.js-video-card {
    cursor: pointer;
}
.js-video-card:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.video-modal.is-open {
    display: flex;
}
.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.video-modal__dialog {
    position: relative;
    width: min(1100px, 100%);
    max-height: 90vh;
    background: #050b14;
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 240, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.video-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(0, 85, 255, 0.10), transparent);
}
.video-modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main, #f0f4f8);
    letter-spacing: 0.01em;
}
.video-modal__close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-main, #f0f4f8);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.video-modal__close:hover,
.video-modal__close:focus-visible {
    border-color: var(--accent-cyan, #00f0ff);
    color: var(--accent-cyan, #00f0ff);
    background: rgba(0, 240, 255, 0.08);
    outline: none;
}
.video-modal__stage {
    position: relative;
    background: #000;
    /* 16:9 aspect via padding-top trick so the mask aligns to video frame */
}
.video-modal__stage::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}
.video-modal__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: block;
}
/* Mask the lower-right "NotebookLM" watermark.
   Stage is 16:9 and video is 1280x720, so percentages map 1:1 to video pixels.
   Anchored to bottom-right; sized to fully cover the watermark in all states
   (the native controls overlay's fullscreen button is in this region too — a
   small UX cost, but Esc still closes the modal). */
.video-modal__watermark-mask {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18%;
    height: 12%;
    background: #000;
    pointer-events: none;
    z-index: 2;
}
/* Hide mask while user is scrubbing the controls bar so it doesn't sit on top
   of the controls — the native controls overlay is at the very bottom edge,
   so we lift the mask just above it. */
.video-modal__video::-webkit-media-controls-panel {
    z-index: 3;
}

@media (max-width: 600px) {
    .video-modal {
        padding: 0.5rem;
    }
    .video-modal__dialog {
        border-radius: 8px;
    }
    .video-modal__title {
        font-size: 0.9rem;
    }
}

body.light-mode .video-modal__dialog {
    background: #0b1422;
}
