/* CSS Variables for Theme */
:root {
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --text-tertiary: #adb5bd;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #707070;
    --accent-primary: #818cf8;
    --accent-secondary: #a78bfa;
    --border-color: #333333;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

/* Material Icons Base Styles */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    background-color: rgba(var(--bg-primary-rgb), 0.9);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo img {
    height: 28px;
    width: auto;
    filter: invert(1);
    transition: filter 0.3s ease;
}

[data-theme="light"] .nav-scrolled .logo img {
    filter: invert(0);
}

.footer-brand .logo img {
    height: 24px;
}

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

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

/* Hide Products in nav for now */
.nav-links > li:has(> a[href="products.html"]),
.nav-links > li:has(> a[href="../products.html"]) {
    display: none;
}

/* Hide Solutions in nav for now */
.nav-links > li:has(> a[href="solutions.html"]),
.nav-links > li:has(> a[href="../solutions.html"]) {
    display: none;
}

.nav-links a.nav-cta {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.nav-links a.nav-cta:hover {
    opacity: 0.95;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4);
}

/* Dropdown menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a::after {
    content: 'expand_more';
    font-family: 'Material Symbols Rounded';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

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

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
}

/* Nested dropdown (By Use Case submenu) */
.nav-subdropdown {
    position: relative;
}

.dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-subdropdown:hover .dropdown-submenu {
    opacity: 1;
    visibility: visible;
}

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

.theme-icon {
    font-size: 24px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.1);
}

/* Navbar scrolled past hero — adapt for light backgrounds */
[data-theme="light"] .nav-scrolled .nav-links a {
    color: var(--text-primary);
}

[data-theme="light"] .nav-scrolled .nav-links a:hover {
    color: var(--accent-primary);
}

[data-theme="light"] .nav-scrolled .nav-links a.nav-cta {
    color: #fff !important;
}

[data-theme="light"] .nav-scrolled .theme-toggle {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 15, 15, 0.75) 0%,
        rgba(26, 26, 26, 0.6) 50%,
        rgba(15, 15, 15, 0.75) 100%
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
    text-align: center;
}

.hero-title {
    font-size: 5.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.18em;
}

.hero-title-meet {
    line-height: 1;
    font-size: 0.64em;
    font-weight: 600;
}

.hero-title-logo {
    height: 0.78em;
    width: auto;
    display: block;
    filter: invert(1);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

/* Features Section */
.features {
    background-color: var(--bg-secondary);
}

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

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
    border-color: var(--accent-primary);
}

.feature-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon .material-symbols-rounded {
    font-size: 48px;
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon .material-symbols-rounded {
    color: var(--accent-secondary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* What's NEXE? Section */
.whats-nexe {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.whats-nexe-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.whats-nexe-content {
    width: 100%;
    text-align: center;
}

.whats-nexe-content .whats-nexe-title {
    text-align: center;
    margin-bottom: 1.25rem;
}

.whats-nexe-content .section-subtitle {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.8;
}

.whats-nexe-placeholder {
    margin: 0;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.whats-nexe-photo {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
}

/* Value Proposition Section */
.value-proposition {
    padding: 80px 0;
    background: var(--bg-primary);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--shadow);
}

.value-icon {
    font-size: 40px;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.value-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Platform Capabilities Section */
.platform-capabilities {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.capabilities-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.capabilities-text {
    max-width: 520px;
}

.capabilities-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.capabilities-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.capabilities-description {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.capabilities-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.capability-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.65rem 0.9rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.capability-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px var(--shadow);
}

.capability-icon {
    font-size: 1.25rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.capabilities-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.capabilities-image-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 24px 48px var(--shadow-lg);
}

.capabilities-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

/* Enterprise-style treatment for NEXE PCB image */
.capabilities-image-enterprise {
    border-color: var(--border-color);
    box-shadow: 0 24px 48px var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.capabilities-image-enterprise img {
    filter: grayscale(35%) contrast(1.08) brightness(0.97);
    transition: filter 0.35s ease;
    aspect-ratio: auto;
    object-fit: contain;
}

.capabilities-image-enterprise::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 100%);
    pointer-events: none;
}

.capabilities-visual img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

/* Platform overview — single hero + caption (homepage) */
.platform-capabilities-minimal {
    padding: 72px 0 88px;
}

.platform-capabilities-minimal-inner {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.platform-capabilities-minimal-visual {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.platform-capabilities-minimal-visual img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
}

.platform-capabilities-minimal-visual.capabilities-image-enterprise img {
    filter: grayscale(12%) contrast(1.06) brightness(1.02);
}

.platform-capabilities-description {
    margin: 1.75rem auto 0;
    max-width: 40rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* Platform / Software page — static placeholder + caption */
.platform-software-showcase {
    padding: 0 0 5rem;
    background: var(--bg-primary);
}

.platform-software-showcase-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

.platform-software-showcase .capabilities-visual {
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.platform-software-showcase .capabilities-slider {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-software-showcase .platform-software-placeholder-wrap {
    max-width: 960px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16 / 10;
    min-height: 300px;
}

.platform-software-showcase .platform-software-placeholder-wrap::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.14) 100%);
}

.platform-software-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
    min-height: 300px;
    box-sizing: border-box;
    padding: 2rem 1.5rem;
    background: linear-gradient(155deg, var(--bg-primary) 0%, var(--bg-secondary) 55%, var(--bg-primary) 100%);
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
}

.platform-software-placeholder-icon {
    font-size: 4.875rem;
    color: var(--accent-primary);
    opacity: 0.9;
    line-height: 1;
}

.platform-software-placeholder-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    max-width: 16rem;
    line-height: 1.45;
}

.platform-software-showcase #platform-software-caption {
    width: 100%;
    margin: 0;
    padding: 0;
}

.platform-software-showcase .platform-capabilities-description {
    margin-top: 1.75rem;
    margin-bottom: 0;
    padding: 0 0.5rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

/* Store — Stripe pricing table embed */
.store-pricing-section {
    padding: 0 0 4rem;
    background: var(--bg-primary);
}

.store-pricing-inner {
    max-width: 1100px;
}

.store-pricing-inner stripe-pricing-table {
    display: block;
    width: 100%;
    min-height: 400px;
}

@media (max-width: 968px) {
    .capabilities-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .capabilities-text {
        max-width: none;
    }

    .capabilities-features {
        justify-items: center;
        max-width: 360px;
        margin: 0 auto;
    }

    .capability-item {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .capabilities-features {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

/* How It Works Section — Particle-style blocks */
.how-it-works-v2 {
    padding: 5rem 0 2rem;
}

.hw-header {
    text-align: center;
    margin-bottom: 4rem;
}

.hw-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.hw-header-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

.hw-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 9rem 0;
    border-top: none;
}

.hw-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.hw-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hw-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hw-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.hw-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.hw-features li:hover {
    border-color: var(--accent-primary);
}

.hw-features li .material-symbols-rounded {
    font-size: 1.1rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.hw-block-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stacked layer visual (Particle-style isometric) */
.hw-stack {
    position: relative;
    width: 340px;
    height: 300px;
    perspective: 600px;
}

/* Progressive stack: layers hidden until section is in view */
.hw-stack-layer {
    position: absolute;
    left: 50%;
    width: 250px;
    transform: translateX(-50%) rotateX(55deg) rotateZ(-45deg);
    padding: 1rem 1.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.5s ease;
    opacity: 0;
}

/* In-view: animate layers stacking one by one */
@keyframes hw-stack-layer-in {
    from {
        opacity: 0;
        transform: translateX(-50%) rotateX(55deg) rotateZ(-45deg) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) rotateX(55deg) rotateZ(-45deg);
    }
}

@keyframes hw-stack-layer-in-single {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(50%) rotateX(55deg) rotateZ(-45deg) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(50%) rotateX(55deg) rotateZ(-45deg);
    }
}

.hw-stack-in-view .hw-stack-layer--1 {
    animation: hw-stack-layer-in 0.75s ease 0s forwards;
}

.hw-stack-in-view .hw-stack-layer--2 {
    animation: hw-stack-layer-in 0.75s ease 0.23s forwards;
}

.hw-stack-in-view .hw-stack-layer--3 {
    animation: hw-stack-layer-in 0.75s ease 0.45s forwards;
}

.hw-stack-in-view .hw-stack-layer--4 {
    animation: hw-stack-layer-in 0.75s ease 0.68s forwards;
}

.hw-stack--single.hw-stack-in-view .hw-stack-layer--1 {
    animation: hw-stack-layer-in-single 0.75s ease 0s forwards;
}

.hw-stack-layer .material-symbols-rounded {
    font-size: 1.25rem;
    color: inherit;
}

.hw-stack-layer--1 {
    bottom: 195px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    z-index: 4;
}

.hw-stack-layer--2 {
    bottom: 130px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    z-index: 3;
}

.hw-stack-layer--3 {
    bottom: 65px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    z-index: 2;
}

.hw-stack-layer--4 {
    bottom: 0;
    background: linear-gradient(135deg, #06b6d4, #67e8f9);
    z-index: 1;
}

/* Single-layer stack (e.g. NEXE Micro only) */
.hw-stack--single .hw-stack-layer--1 {
    bottom: 50%;
    transform: translateX(-50%) translateY(50%) rotateX(55deg) rotateZ(-45deg);
}

.hw-stack--single:hover .hw-stack-layer--1 {
    transform: translateX(-50%) translateY(50%) rotateX(55deg) rotateZ(-45deg) translateY(-8px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

/* Two-layer stack (e.g. NEXE Micro + OneWire) */
.hw-stack--double .hw-stack-layer--3,
.hw-stack--double .hw-stack-layer--4 {
    display: none;
}

.hw-stack--double .hw-stack-layer--1 {
    bottom: 65px;
    opacity: 1;
    animation: none !important;
}

.hw-stack--double .hw-stack-layer--2 {
    bottom: 0;
}

/* Three-layer stack (e.g. NEXE Micro + OneWire + Cellular) */
.hw-stack--triple .hw-stack-layer--4 {
    display: none;
}

.hw-stack--triple .hw-stack-layer--1,
.hw-stack--triple .hw-stack-layer--2 {
    opacity: 1;
    animation: none !important;
}

/* Four-layer stack where first three are persistent (Layer 4 section) */
.hw-stack--quad .hw-stack-layer--1,
.hw-stack--quad .hw-stack-layer--2,
.hw-stack--quad .hw-stack-layer--3 {
    opacity: 1;
    animation: none !important;
}

.hw-stack:hover .hw-stack-layer--1 {
    transform: translateX(-50%) rotateX(55deg) rotateZ(-45deg) translateY(-10px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}
.hw-stack:hover .hw-stack-layer--2 {
    transform: translateX(-50%) rotateX(55deg) rotateZ(-45deg) translateY(-4px);
}
.hw-stack:hover .hw-stack-layer--3 {
    transform: translateX(-50%) rotateX(55deg) rotateZ(-45deg) translateY(4px);
}
.hw-stack:hover .hw-stack-layer--4 {
    transform: translateX(-50%) rotateX(55deg) rotateZ(-45deg) translateY(10px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

@media (max-width: 968px) {
    .hw-header-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hw-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 5.5rem 0;
    }

    .hw-block-image {
        order: -1;
        margin-bottom: 0.5rem;
    }

    .hw-stack {
        width: 280px;
        height: 260px;
        margin: 0 auto;
    }

    .hw-stack-layer {
        width: 210px;
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }

    .hw-features {
        grid-template-columns: 1fr;
    }

    .hw-title {
        font-size: 1.5rem;
    }

    .hw-header-title {
        font-size: 1.75rem;
    }
}

/* Audience Section */
.audience {
    background-color: var(--bg-secondary);
}

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

.audience-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.audience-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audience-icon .material-symbols-rounded {
    font-size: 56px;
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

.audience-card:hover .audience-icon .material-symbols-rounded {
    color: var(--accent-secondary);
}

.audience-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.audience-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Launch Kit Section */
.kit {
    padding: 80px 0;
}

/* Option E: Minimal single column */
.kit-minimal .kit-minimal-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.kit-minimal .section-title {
    margin-bottom: 0.75rem;
}

.kit-minimal .kit-image-placeholder {
    margin-bottom: 1.5rem;
}

.kit-minimal .kit-image-placeholder img {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    background: var(--bg-tertiary);
}

.kit-minimal .kit-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.kit-minimal .kit-features-compact {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-align: left;
}

.kit-minimal .kit-features-compact li {
    padding: 0.2rem 0;
}

.kit-minimal .kit-features-compact li::before {
    content: "· ";
    color: var(--accent-primary);
    font-weight: bold;
    margin-right: 0.25rem;
}

.kit-minimal .btn {
    margin-bottom: 2rem;
}

.kit-minimal .kit-image-below {
    margin-top: 0;
}

.kit-minimal .kit-image-below img {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 60px var(--shadow-lg);
}

/* Legacy two-column kit (e.g. other pages) */
.kit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.kit-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.kit-features {
    list-style: none;
    margin-bottom: 2rem;
}

.kit-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.kit-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px var(--shadow-lg);
}

@media (max-width: 640px) {
    .kit-minimal .kit-features-compact {
        grid-template-columns: 1fr;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Platform showcase (homepage carousel + dots) */
.platform-showcase {
    padding: 48px 0 80px;
    background: var(--bg-primary);
}

.the-platform > .container > .section-title {
    margin-bottom: 0.35rem;
}

.the-platform .platform-section-tagline {
    margin-top: 0;
    margin-bottom: 1.75rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* The Platform — two-tab switcher (Designer | Hardware), mockup-style */
.platform-duo {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    max-width: 1080px;
    margin: 0 auto;
}

.platform-duo-nav {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 11.25rem;
}

.platform-duo-tab {
    width: 100%;
    min-height: 3.75rem;
    padding: 0.85rem 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.platform-duo-tab:hover {
    border-color: var(--text-tertiary);
    color: var(--text-primary);
}

.platform-duo-tab:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.platform-duo-tab.is-active {
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 22px color-mix(in srgb, var(--accent-primary) 42%, transparent);
}

.platform-duo-main {
    flex: 1;
    min-width: 0;
    position: relative;
}

.platform-duo-panel[hidden] {
    display: none !important;
}

.platform-duo-card {
    height: 100%;
    min-height: 24rem;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    box-shadow: 0 10px 36px var(--shadow);
}

.platform-duo-card--designer .platform-duo-text,
.platform-duo-card--hardware .platform-duo-text {
    text-align: center;
}

.platform-duo-card--designer .platform-duo-text-plain,
.platform-duo-card--hardware .platform-duo-text-plain {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.platform-duo-graphic {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    aspect-ratio: 16 / 9;
    /* Hero-sized media: scales with viewport, much larger than the old 320px cap */
    max-height: min(62vw, 600px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
    border: 1px solid var(--border-color);
}

.platform-duo-graphic-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Designer screenshot: fill the 16:9 frame (square asset crops to edges) */
.platform-duo-card--designer .platform-duo-graphic {
    position: relative;
    display: block;
}

.platform-duo-card--designer .platform-duo-graphic-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Hardware photo: fill the 16:9 frame (crop excess background) */
.platform-duo-card--hardware .platform-duo-graphic {
    position: relative;
    display: block;
}

.platform-duo-card--hardware .platform-duo-graphic-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.28);
    transform-origin: center center;
}

.platform-duo-text {
    text-align: left;
}

.platform-duo-text-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.65rem;
    line-height: 1.25;
}

.platform-duo-text-plain {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 720px) {
    .platform-duo {
        flex-direction: column;
        gap: 0.85rem;
    }

    .platform-duo-nav {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.15rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .platform-duo-tab {
        flex: 1 1 0;
        min-width: 0;
        min-height: 3.25rem;
    }
}

/* Scroll-driven stack story — typography & cards match #how-it-works (.hw-*) */
section.nexe-scroll-stack-section {
    --nexe-scroll-transition-duration: 0.6s;
    padding: 0;
    margin: 0;
    overflow-x: clip;
    background: var(--bg-primary);
}

.nexe-scroll-track {
    position: relative;
}

.nexe-scroll-sticky {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    overflow: hidden;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .nexe-scroll-sticky {
        padding: 0 6rem;
    }
}

.nexe-scroll-text-col {
    position: relative;
    min-height: 280px;
    aspect-ratio: 4 / 3;
}

@media (min-width: 769px) {
    .nexe-scroll-text-col {
        min-height: 460px;
        aspect-ratio: auto;
    }
}

.nexe-scroll-panel {
    position: absolute;
    left: 0;
    width: 100%;
    padding-right: 1rem;
    text-align: left;
    will-change: transform, opacity;
}

.nexe-scroll-card-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.nexe-scroll-panel-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1.35rem;
    color: var(--text-primary);
    line-height: 1.12;
}

.nexe-scroll-panel-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0 0 2.125rem;
    max-width: 560px;
    line-height: 1.7;
}

.nexe-scroll-feature-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nexe-scroll-feature-list li {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    white-space: nowrap;
    transition: border-color 0.2s ease;
}

.nexe-scroll-feature-list li:hover {
    border-color: var(--accent-primary);
}

/* Feature grid — larger type + spacing (matches roomy OneWire / Micro reference) */
.nexe-scroll-feature-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.125rem;
    text-align: left;
}

.nexe-scroll-feature-grid li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.nexe-scroll-feature-grid li:hover {
    border-color: var(--accent-primary);
}

.nexe-scroll-feature-icon {
    font-size: 1.35rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .nexe-scroll-feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nexe-scroll-panel-title {
        font-size: 1.75rem;
    }

    .nexe-scroll-feature-grid li {
        padding: 1rem 1.15rem;
        font-size: 0.9375rem;
    }

    .nexe-scroll-feature-icon {
        font-size: 1.2rem;
    }
}

.nexe-scroll-feature-grid--onewire {
    max-width: 640px;
}

.nexe-scroll-feature-grid--onewire li:last-child {
    grid-column: 1 / -1;
}

.nexe-scroll-feature-grid--compact {
    max-width: 560px;
}

.nexe-scroll-img-col {
    position: relative;
    display: grid;
    will-change: transform, opacity;
}

.nexe-scroll-img-layer {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition:
        opacity var(--nexe-scroll-transition-duration) ease,
        transform var(--nexe-scroll-transition-duration) ease;
}

.nexe-scroll-img-layer[data-index="0"] {
    z-index: 1;
}

.nexe-scroll-img-layer[data-index="1"] {
    z-index: 2;
    margin-top: 20px;
    margin-left: -10px;
}

.nexe-scroll-img-layer[data-index="2"] {
    z-index: 3;
    margin-top: 40px;
    margin-left: -20px;
}

.nexe-scroll-img-layer[data-index="3"] {
    z-index: 4;
    margin-top: 60px;
    margin-left: -30px;
}

.nexe-scroll-img-layer.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nexe-scroll-placeholder-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .nexe-scroll-placeholder-img {
    color: rgba(0, 0, 0, 0.3);
}

.nexe-scroll-placeholder-img--board {
    border-color: var(--nexe-board-tray-border, var(--border-color));
}

/* Hardware scroll: tray gradient + border per slide (custom props inherit into .nexe-scroll-board-frame) */
.nexe-scroll-img-layer[data-index="0"] {
    --nexe-board-tray-top: #38306a;
    --nexe-board-tray-bottom: #12101c;
    --nexe-board-tray-border: color-mix(in srgb, var(--border-color) 48%, var(--accent-secondary) 52%);
}

.nexe-scroll-img-layer[data-index="1"] {
    --nexe-board-tray-top: #2c3258;
    --nexe-board-tray-bottom: #0f1118;
    --nexe-board-tray-border: color-mix(in srgb, var(--border-color) 42%, var(--accent-primary) 58%);
}

.nexe-scroll-img-layer[data-index="2"] {
    --nexe-board-tray-top: #263d52;
    --nexe-board-tray-bottom: #0d1218;
    --nexe-board-tray-border: color-mix(in srgb, var(--border-color) 55%, var(--accent-primary) 45%);
}

.nexe-scroll-img-layer[data-index="3"] {
    --nexe-board-tray-top: #3a2c48;
    --nexe-board-tray-bottom: #141018;
    --nexe-board-tray-border: color-mix(in srgb, var(--border-color) 50%, var(--accent-secondary) 50%);
}

[data-theme="light"] .nexe-scroll-img-layer[data-index="0"] {
    --nexe-board-tray-top: #f0ebfb;
    --nexe-board-tray-bottom: #e3daf8;
    --nexe-board-tray-border: color-mix(in srgb, var(--border-color) 72%, var(--accent-secondary) 28%);
}

[data-theme="light"] .nexe-scroll-img-layer[data-index="1"] {
    --nexe-board-tray-top: #e8ebfa;
    --nexe-board-tray-bottom: #dbe4f6;
    --nexe-board-tray-border: color-mix(in srgb, var(--border-color) 68%, var(--accent-primary) 32%);
}

[data-theme="light"] .nexe-scroll-img-layer[data-index="2"] {
    --nexe-board-tray-top: #e5eef8;
    --nexe-board-tray-bottom: #d6e4f4;
    --nexe-board-tray-border: color-mix(in srgb, var(--border-color) 70%, var(--accent-primary) 30%);
}

[data-theme="light"] .nexe-scroll-img-layer[data-index="3"] {
    --nexe-board-tray-top: #f3ebf5;
    --nexe-board-tray-bottom: #e9dff2;
    --nexe-board-tray-border: color-mix(in srgb, var(--border-color) 72%, var(--accent-secondary) 28%);
}

.nexe-scroll-placeholder-img--board.nexe-scroll-board-frame {
    position: relative;
    background-color: var(--nexe-board-tray-bottom);
    background-image: linear-gradient(
        180deg,
        var(--nexe-board-tray-top) 0%,
        var(--nexe-board-tray-bottom) 100%
    );
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* NEXE Micro / AI board photos: sharpen render without filtering the tray */
.nexe-scroll-board-frame .nexe-scroll-board-photo {
    position: absolute;
    inset: 0.5rem;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    filter: contrast(1.14) saturate(1.08) brightness(1.06);
}

[data-theme="light"] .nexe-scroll-board-frame .nexe-scroll-board-photo {
    filter: contrast(1.08) saturate(1.05) brightness(1.03);
}

.nexe-scroll-placeholder-img--cellular,
.nexe-scroll-placeholder-img--ai,
.nexe-scroll-placeholder-img--sound {
    flex-direction: column;
    gap: 0.75rem;
    border-radius: 1.25rem;
}

.nexe-scroll-placeholder-img--cellular {
    background: linear-gradient(160deg, #0c4a6e 0%, #1e3a5f 40%, var(--bg-tertiary) 100%);
    color: rgba(255, 255, 255, 0.45);
}

[data-theme="light"] .nexe-scroll-placeholder-img--cellular {
    background: linear-gradient(160deg, #bae6fd 0%, #e0f2fe 50%, var(--bg-secondary) 100%);
    color: rgba(26, 26, 26, 0.45);
}

.nexe-scroll-placeholder-img--ai {
    background: linear-gradient(155deg, #4c1d95 0%, #312e81 50%, #1e1b4b 100%);
    color: rgba(255, 255, 255, 0.45);
}

[data-theme="light"] .nexe-scroll-placeholder-img--ai {
    background: linear-gradient(155deg, #ddd6fe 0%, #e9d5ff 45%, var(--bg-secondary) 100%);
    color: rgba(26, 26, 26, 0.45);
}

.nexe-scroll-placeholder-img--sound {
    background: linear-gradient(155deg, #3f2e1e 0%, #292524 45%, #1c1917 100%);
    color: rgba(255, 255, 255, 0.45);
}

[data-theme="light"] .nexe-scroll-placeholder-img--sound {
    background: linear-gradient(155deg, #fde68a 0%, #fef3c7 45%, var(--bg-secondary) 100%);
    color: rgba(26, 26, 26, 0.45);
}

.nexe-scroll-placeholder-icon-lg {
    font-size: 3rem !important;
    color: var(--accent-primary);
    opacity: 0.85;
}

@media (max-width: 768px) {
    .nexe-scroll-sticky {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
        height: auto;
        min-height: calc(100vh - 80px);
    }

    .nexe-scroll-img-col {
        order: -1;
    }

    .nexe-scroll-text-col {
        min-height: 280px;
        aspect-ratio: auto;
    }

    .nexe-scroll-img-layer[data-index="1"] {
        margin-top: 16px;
        margin-left: -8px;
    }

    .nexe-scroll-img-layer[data-index="2"] {
        margin-top: 32px;
        margin-left: -16px;
    }

    .nexe-scroll-img-layer[data-index="3"] {
        margin-top: 48px;
        margin-left: -24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nexe-scroll-img-layer {
        transition: none;
    }
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

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

/* Hide Products and Solutions in footer for now */
.footer-hide-products,
.footer-hide-solutions {
    display: none;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Contact Page */
.contact-page {
    padding-top: 80px;
    min-height: 100vh;
}

.contact-section {
    padding: 80px 0 120px;
}

.contact-cta-note {
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.contact-cta-note a {
    color: var(--accent-primary);
    text-decoration: none;
}

.contact-cta-note a:hover {
    text-decoration: underline;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: var(--accent-primary);
}

.contact-info-icon {
    font-size: 32px;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.contact-info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    font-size: 20px;
}

/* Inner pages (About, Products, Use Cases, product sub-pages) */
.page-main {
    padding-top: 80px;
    min-height: 100vh;
}

.page-hero {
    padding: 60px 0 40px;
}

.page-hero .section-title {
    margin-bottom: 0.5rem;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-content {
    padding: 40px 0 80px;
}

.container.narrow {
    max-width: 680px;
}

.page-content .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.page-content .kit-features {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.page-content .kit-features li {
    margin-bottom: 0.5rem;
}

.content-heading {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-heading:first-child {
    margin-top: 0;
}

.page-content .muted {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.about-testimonials-section.hide-for-now,
section.features.hide-for-now,
section.audience.hide-for-now,
section.value-proposition.hide-for-now,
section.nexe-scroll-stack-section.hide-for-now,
section.first-customer-section.features-section.hide-for-now {
    display: none;
}

.about-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.team-grid.hide-for-now {
    display: none;
}

.team-external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.team-external-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.team-external-link .material-symbols-rounded {
    font-size: 1.125rem;
}

/* About page — mission & team layout */
.about-page section.about-mission,
.about-page section.about-team-block {
    padding: 0;
}

.about-hero-intro {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 960px;
    margin: 0 auto 2.5rem;
    text-align: left;
}

.about-hero-intro p {
    margin: 0 0 1rem;
}

.about-hero-intro p:last-child {
    margin-bottom: 0;
}

.about-hero-intro-signature {
    margin: 0.75rem 0 0;
    padding-left: 2.25rem;
    text-align: left;
    color: var(--text-secondary);
}

.about-external-team-cta {
    max-width: 960px;
    margin: 0 auto 2.5rem;
}

.about-page .about-mission,
.about-page .about-team-block {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.about-section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    margin: 0 0 0.75rem;
}

.about-mission-title {
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.18;
    margin: 0 0 1.25rem;
    color: var(--text-primary);
    max-width: 18em;
}

.about-mission-lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 2rem;
    max-width: 42rem;
}

.about-pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.about-pillar-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.about-pillar-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px var(--shadow);
}

.about-pillar-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.75rem;
}

.about-pillar-title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.about-pillar-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.about-intent-banner {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
}

.about-intent-icon {
    font-size: 2.25rem;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.about-intent-copy {
    min-width: 0;
}

.about-intent-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-primary);
    margin: 0 0 0.35rem;
}

.about-intent-headline {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.about-intent-body {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.about-team-block {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.about-team-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--text-primary);
    max-width: 20em;
}

.about-team-intro {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
    max-width: 42rem;
}

.about-team-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.35rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 18px var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.about-team-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-lg);
    opacity: 0.95;
}

.about-team-cta-icon {
    font-size: 1.125rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-card {
    text-align: center;
}

.team-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.team-card-link:hover {
    transform: translateY(-2px);
}

.team-card-link:hover .team-photo {
    border-color: var(--accent-primary);
    filter: grayscale(0%);
}

.team-photo {
    width: 96px;
    height: 96px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    display: block;
    transition: border-color 0.2s ease, filter 0.2s ease;
    filter: grayscale(100%);
}

.team-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.team-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.team-linkedin {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 1rem;
    color: var(--text-tertiary);
}

.team-card-link:hover .team-linkedin {
    color: var(--accent-primary);
}

/* Products overview grid */
.products-overview {
    padding: 40px 0 80px;
}

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

.product-card {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--shadow);
}

.product-card-icon {
    font-size: 48px;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.product-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-card-link {
    font-weight: 600;
    color: var(--accent-primary);
}

/* Testimonials Section */
.testimonials {
    display: none; /* Hidden for now */
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.testimonial-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--shadow);
}

.testimonial-quote {
    margin-bottom: 1.5rem;
    position: relative;
}

.quote-icon {
    font-size: 32px;
    color: var(--accent-primary);
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.testimonial-quote p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Waitlist section */
.waitlist-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.waitlist-form {
    max-width: 520px;
    margin: 0 auto;
}

.waitlist-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.waitlist-fields input {
    flex: 1;
    min-width: 140px;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.waitlist-fields input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.waitlist-fields .btn {
    flex-shrink: 0;
}

/* Use cases page - icon in card without wrapper */
.audience-icon-inline {
    font-size: 48px;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .dropdown-menu {
        left: auto;
        right: 0;
    }

    .capabilities-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .capabilities-visual {
        order: -1;
    }

    .capabilities-features {
        grid-template-columns: 1fr;
    }

    .kit-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .platform-duo-text-title {
        font-size: 1.3rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    section {
        padding: 60px 0;
    }

    .features-grid,
    .audience-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Responsive */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-info-card {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .waitlist-fields {
        flex-direction: column;
    }

    .waitlist-fields input {
        min-width: 100%;
    }
}

/* NEXE Preview Page */
.first-customer-page .page-hero .capabilities-label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.first-customer-section {
    padding: 4rem 0;
}

.first-customer-section .section-title {
    margin-bottom: 0.75rem;
}

.first-customer-section .section-subtitle {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
}

.capability-ladder {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ladder-stage {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stage-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
}

/* Capability ladder: stage title (h3) uses unlock typography; quote uses headline typography */
.ladder-stage .stage-content h3 {
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.ladder-stage .stage-content .stage-unlock {
    font-size: 1.125rem;
    font-weight: 700;
    font-style: normal;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stage-detail {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.journey-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.journey-features-simple {
    list-style: none;
    max-width: 640px;
    margin: 0 auto;
}

.journey-features-simple li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.journey-features-simple li:last-child {
    border-bottom: none;
}

.journey-features-simple .material-symbols-rounded {
    flex-shrink: 0;
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.journey-feature-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.journey-feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.journey-icon {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.journey-feature-card > p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.journey-feature-card .feature-list {
    list-style: none;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.journey-feature-card .feature-list li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.journey-feature-card .feature-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.valueprops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.valueprop-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.valueprop-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.valueprop-icon {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.valueprop-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.first-customer-cta {
    padding: 4rem 0;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin: 0 20px 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    padding-left: 20px;
    padding-right: 20px;
}

.first-customer-cta .section-subtitle {
    margin-bottom: 1.5rem;
}

.first-customer-cta .btn {
    margin: 0 0.5rem 0.5rem;
}

@media (max-width: 768px) {
    .ladder-stage {
        flex-direction: column;
        gap: 1rem;
    }

    .journey-features {
        grid-template-columns: 1fr;
    }

    .valueprops-grid {
        grid-template-columns: 1fr;
    }
}

/* Hardware page — module lineup below scroll story */
.hardware-modules {
    padding: 4.5rem 0 5.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.hardware-modules .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hardware-modules .section-title {
    margin-bottom: 0.5rem;
}

.hardware-modules-intro {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 40rem;
    text-align: center;
}

.hardware-modules-group-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
    margin: 2.25rem 0 0.85rem;
    width: 100%;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.hardware-modules-group-heading:first-of-type {
    margin-top: 2rem;
}

.hardware-modules-ordered {
    list-style: none;
    margin: 0 auto 0.25rem;
    padding: 0;
    max-width: 28rem;
    width: 100%;
    color: var(--text-primary);
}

.hardware-modules-ordered li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
}

.hardware-modules-ordered .hardware-module-icon {
    font-size: 1.35rem;
    color: var(--accent-primary);
    flex-shrink: 0;
    line-height: 1;
}

.hardware-module-name {
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .hardware-modules-ordered {
        max-width: 52rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, auto);
        grid-auto-flow: column;
        column-gap: 2.5rem;
        row-gap: 0;
    }
}
