/* ==================================================================================================
   SPARCLE.LLC - ENTERPRISE-GRADE DARK THEME
   Sophisticated, polished, vibrant yet easy on the eyes
   ================================================================================================== */

@import 'variables.css';

/* ==================================================================================================
   RESET & FOUNDATION
   ================================================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ==================================================================================================
   TYPOGRAPHY
   ================================================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
}

h1 {
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-heading);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

strong {
    color: var(--text-heading);
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    transition: all var(--transition-fast);
    cursor: pointer;
    background: none;
    border: 1px solid var(--border-default);
}

.theme-toggle:hover {
    color: var(--brand-primary);
    background: var(--brand-primary-light);
    border-color: var(--brand-primary);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

/* ==================================================================================================
   LAYOUT
   ================================================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
}

.section-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-top: 1.5rem;
}

/* ==================================================================================================
   NAVIGATION
   ================================================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(24px) saturate(180%);
    border: none;
    border-bottom: 1px solid var(--border-default);
    border-radius: 0 0 8px 8px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
}

.nav-logo .logo {
    height: 36px;
    transition: opacity var(--transition-fast);
}

.nav-logo:hover .logo {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link-with-toggle {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-heading);
    background: var(--brand-primary-light);
}

/* Active page indicator (set by shared-nav.js on current page) */
.nav-link.nav-active {
    color: var(--brand-primary);
    background: var(--brand-primary-light);
}

.submenu-toggle {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: var(--text-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible {
    color: var(--text-heading);
    background: var(--brand-primary-light);
}

.submenu-caret {
    font-size: 0.75rem;
    line-height: 1;
}

.nav-item-has-submenu .submenu-toggle[aria-expanded="true"] .submenu-caret {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 220px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1200;
}

.nav-submenu .nav-link {
    display: block;
    width: 100%;
    padding: 0.65rem 0.75rem;
}

.nav-item-has-submenu:hover .nav-submenu,
.nav-item-has-submenu:focus-within .nav-submenu {
    display: block;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==================================================================================================
   BUTTONS
   ================================================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    color: var(--text-on-primary);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

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

.btn-secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--brand-primary-light);
}

.btn-sm {
    padding: 0.7rem 1.5rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1.375rem 2.75rem;
    font-size: 1.125rem;
}

/* ==================================================================================================
   HERO - Centered Layout with Full-Width Video
   ================================================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 4rem;
    position: relative;
    background: var(--bg-body-gradient);
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 20%, rgba(59, 130, 246, 0.15), transparent);
    pointer-events: none;
}

/* Animated gradient mesh orbs */
.hero-mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    will-change: transform;
}

.hero-mesh-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation: meshFloat1 8s ease-in-out infinite;
}

.hero-mesh-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.3) 0%, transparent 70%);
    top: 20%;
    right: -10%;
    animation: meshFloat2 10s ease-in-out infinite;
}

.hero-mesh-orb--3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
    bottom: 10%;
    left: 30%;
    animation: meshFloat3 12s ease-in-out infinite;
}

@keyframes meshFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, 30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, -10px) scale(0.95);
    }
}

@keyframes meshFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-30px, 20px) scale(0.9);
    }

    66% {
        transform: translate(20px, -30px) scale(1.05);
    }
}

@keyframes meshFloat3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -20px) scale(1.1);
    }
}

.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-content-centered {
    text-align: center;
    max-width: 80%;
    position: relative;
    z-index: 1;
}

.hero-content-centered h1 {
    text-align: center;
}

.hero-content-centered .hero-description {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--brand-primary-light);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-full);
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-body);
    margin: 0 auto 2.5rem;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.metric {
    flex: 0 1 auto;
    min-width: 140px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Full-Width Video */
.hero-video-full {
    width: 100%;
    max-width: 1200px;
}

.video-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    cursor: pointer;
    transition: all var(--transition-base);
}

.video-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow-strong);
}

.video-wrapper video {
    width: 100%;
    display: block;
}

.video-controls-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.video-wrapper:hover .video-controls-overlay {
    opacity: 1;
}

.video-expand-btn {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.video-expand-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}


.video-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==================================================================================================
   PROBLEM SECTION
   ================================================================================================== */
.section-problem {
    background: var(--bg-surface-solid);
    border-top: 1px solid var(--border-default);
}

.problem-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    transition: all var(--transition-base);
    transform-style: preserve-3d;
    perspective: 800px;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-primary-light);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--brand-primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 0.75rem;
}

.stat-impact {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.problem-conclusion {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.problem-conclusion p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ==================================================================================================
   SOLUTION SECTION
   ================================================================================================== */
.section-solution {
    background: var(--bg-body);
}

.solution-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pillar {
    position: relative;
    padding-top: 3rem;
}

.pillar-number {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(59, 130, 246, 0.08);
    line-height: 1;
}

.pillar-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.pillar h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.pillar p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ==================================================================================================
   PRODUCTS SECTION
   ================================================================================================== */
.section-products {
    background: var(--bg-surface-solid);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

.products-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.product-main,
.product-secondary {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    position: relative;
    transition: all var(--transition-base);
}

.product-main:hover,
.product-secondary:hover {
    border-color: var(--brand-primary-light);
    box-shadow: var(--shadow-xl);
}

.product-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: var(--brand-primary-light);
    color: var(--brand-primary);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-logo-img {
    width: 56px;
    height: 56px;
}

.sparcle-app-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.product-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.product-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 2rem;
}

.product-features-list {
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-body);
}

.feature-item svg {
    color: var(--brand-primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.product-features-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.compact-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-body);
}

.compact-feature svg {
    color: var(--brand-primary);
    flex-shrink: 0;
}

/* ==================================================================================================
   PROOF SECTION
   ================================================================================================== */
.section-proof {
    background: var(--bg-body);
}

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

.proof-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    transition: all var(--transition-base);
    transform-style: preserve-3d;
    perspective: 800px;
}

.proof-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-primary-light);
    box-shadow: var(--shadow-lg);
}

.proof-metric {
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.proof-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.proof-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* ==================================================================================================
   CTA SECTION
   ================================================================================================== */
.section-cta {
    background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, var(--bg-surface-glass) 0%, var(--bg-body) 70%);
}

.cta-box {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.cta-actions {
    margin-bottom: 2rem;
}

.section-cta .btn-primary {
    background: white;
    color: var(--blue-600);
    box-shadow: var(--shadow-lg);
}

.section-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-resources {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.cta-resources a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

.cta-resources a:hover {
    color: white;
    text-decoration: underline;
}

/* ==================================================================================================
   FOOTER
   ================================================================================================== */
.footer {
    background: var(--bg-surface-solid);
    border-top: 1px solid var(--border-default);
    padding: 5rem 0 2.5rem;
}

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

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 320px;
}

.footer-col h5 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-default);
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    opacity: 0.7;
    font-size: 0.8125rem;
}

.footer-sources {
    font-size: 12px;
}

/* ==================================================================================================
   VIDEO MODAL
   ================================================================================================== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    transform: scale(0.92);
    transition: transform var(--transition-base);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-content video {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.video-modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 48px;
    height: 48px;
    font-size: 2.5rem;
    color: white;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.video-modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ==================================================================================================
   ANIMATIONS
   ================================================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================================================================================
   HAMBURGER TOGGLE (always in DOM, shown ≤768px)
   ================================================================================================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 100;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================================================================================================
   RESPONSIVE TYPOGRAPHY (clamp)
   ================================================================================================== */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

.stat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.proof-metric {
    font-size: clamp(2rem, 5vw, 3rem);
}

.hero-description {
    font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
}

.metric-value {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ==================================================================================================
   GLASSMORPHISM ENHANCEMENT
   ================================================================================================== */
.stat-card,
.proof-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card:hover,
.proof-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
}

.product-main,
.product-secondary {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ─── PRODUCT TAB SWITCH (shared pill) ─── */
.product-tab-switch {
    display: inline-flex;
    gap: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    padding: 3px;
    margin: 0 auto 1.2rem;
}

.product-tab-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.product-tab-link:hover {
    color: var(--text-heading);
}

.product-tab-link.active {
    color: var(--text-heading);
    background: var(--bg-muted);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

#product-bolt,
#product-bolt-data,
#bolt,
#bolt-data {
    scroll-margin-top: 108px;
}

#product-bolt:target,
#product-bolt-data:target,
#bolt:target,
#bolt-data:target {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* ==================================================================================================
   SCROLL-TRIGGERED NUMBER COUNTER
   ================================================================================================== */
.stat-number[data-target],
.proof-metric[data-target] {
    transition: none;
}

/* ==================================================================================================
   TOUCH-FRIENDLY VIDEO PLAY OVERLAY
   ================================================================================================== */
.product-video {
    position: relative;
}

.product-video .video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.product-video .video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.15);
}

.product-video .video-play-overlay svg {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.product-video .video-play-overlay:hover svg {
    transform: scale(1.1);
}

.product-video .video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ==================================================================================================
   PILLAR ICON HOVER ANIMATIONS
   ================================================================================================== */
.pillar:nth-child(1) .pillar-icon:hover {
    animation: iconPulse 0.6s ease;
}

.pillar:nth-child(2) .pillar-icon:hover {
    animation: iconRotateY 0.6s ease;
}

.pillar:nth-child(3) .pillar-icon:hover {
    animation: iconSpin 0.8s ease;
}

.pillar:nth-child(4) .pillar-icon:hover {
    animation: iconBounce 0.5s ease;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes iconRotateY {
    0% {
        transform: perspective(200px) rotateY(0);
    }

    100% {
        transform: perspective(200px) rotateY(360deg);
    }
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ==================================================================================================
   CARD 3D TILT (driven by JS)
   ================================================================================================== */
.tilt-card {
    transition: transform 0.15s ease-out;
}

/* ==================================================================================================
   RESPONSIVE
   ================================================================================================== */
@media (max-width: 1200px) {
    .solution-pillars {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 1024px) {
    .hero-centered {
        gap: 3rem;
    }

    .hero-content-centered {
        max-width: 100%;
        padding: 0 1rem;
    }

    .problem-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-showcase {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .navbar {
        top: 0;
        width: 100%;
        padding: 0 1rem;
        justify-content: flex-start;
        gap: 0.5rem;
        border-radius: 0;
    }

    .nav-logo {
        flex: 1;
        min-width: 0;
    }

    /* Show hamburger, hide desktop menu */
    .nav-toggle {
        display: flex;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .nav-controls .btn {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-surface-solid);
        border: 1px solid var(--border-default);
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-xl);
        z-index: 100;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }

    .nav-item {
        width: 100%;
    }

    .nav-link-with-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-link-with-toggle .nav-link {
        width: 100%;
    }

    .submenu-toggle {
        flex-shrink: 0;
    }

    .nav-submenu {
        position: static;
        min-width: 100%;
        margin: 0.15rem 0 0.35rem;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 10px;
        padding: 0.35rem;
        box-shadow: none;
        border: 1px solid var(--border-default);
    }

    .nav-item-has-submenu:hover .nav-submenu,
    .nav-item-has-submenu:focus-within .nav-submenu {
        display: none;
    }

    .nav-item-has-submenu.submenu-open .nav-submenu {
        display: block;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 4rem);
    }

    .hero-metrics {
        gap: 1.5rem;
    }

    .problem-stats-grid {
        grid-template-columns: 1fr;
    }

    .solution-pillars {
        grid-template-columns: 1fr;
    }

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

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

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

    .product-main,
    .product-secondary {
        padding: 2rem 1.5rem;
    }

    .products-focus-switch {
        justify-content: stretch;
        border-radius: 14px;
        padding: 0.5rem;
        top: calc(var(--nav-height) + 6px);
    }

    .section-pill-switch {
        justify-content: stretch;
        border-radius: 14px;
        padding: 0.5rem;
        top: calc(var(--nav-height) + 6px);
    }

    .focus-chip {
        width: 100%;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-mesh-orb {
        display: none;
    }
}

.hero-citation {
    font-size: 0.75rem;
    opacity: 0.4;
    font-style: italic;
    line-height: 1.5;
}

/* ==================================================================================================
   HELPER CLASSES (no inline styles)
   ================================================================================================== */



/* Homepage blockquote */
.home-blockquote {
    border-left: 3px solid var(--brand-primary);
    padding: 1.25rem 1.5rem;
    margin: 0 auto 2rem;
    max-width: 680px;
    background: var(--brand-primary-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.home-blockquote p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

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

.home-blockquote footer a {
    color: var(--brand-primary);
    text-decoration: none;
}

/* Compact proof grid (3 columns on homepage) */
.proof-grid--compact {
    grid-template-columns: repeat(3, 1fr);
}

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

/* Platform section product grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Video play button — top-right corner */
.video-play-btn {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.video-wrapper:hover .video-play-btn {
    transform: scale(1.3);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.4);
}

/* Video overlay — top-right corner, always visible */
#heroPlayOverlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.video-wrapper:hover #heroPlayOverlay {
    opacity: 1;
}

/* Video modal (replaces inline styles) */
.hero-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
}

.hero-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.hero-modal-video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

/* Dedicated page sections — extra top padding for nav clearance */
.section-problem--page,
.section-solution--page,
.section-proof--page {
    padding-top: 8rem;
}

/* Problem conclusion (dedicated crisis page) */
.problem-conclusion {
    max-width: 720px;
    margin: 3rem auto 0;
    text-align: center;
}

.problem-conclusion .section-cta-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Page prose (replaces inline max-width/font-size on dedicated pages) */
.page-prose {
    margin: 0 auto 2rem;
}

.page-prose p {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
}

.page-prose p+p {
    margin-top: 1rem;
}

/* Spaced section header (sub-section within a page) */
.section-header--spaced {
    margin-top: 4rem;
}

/* Solution CTA row (flex layout for multiple buttons) */
.section-cta-row {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==================================================================
   FLOATING PRODUCT TAB PILLS (shared: products + pricing)
   ================================================================== */
.product-tab-float {
    position: sticky;
    top: var(--nav-height, 80px);
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    margin-bottom: -42px;
    pointer-events: none;
}

.product-tab-switch {
    pointer-events: auto;
    display: inline-flex;
    gap: 0;
    background: rgba(var(--bg-elevated-rgb, 22, 27, 40), 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    padding: 3px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.product-tab {
    padding: 7px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tab-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
}

.product-tab+.product-tab {
    position: relative;
}

.product-tab+.product-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--text-muted, #6b7280);
    opacity: 0.4;
}

.product-tab:hover {
    color: var(--text-heading);
}

.product-tab.active {
    color: var(--text-heading);
    background: var(--bg-muted);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.product-section {
    display: none;
}

.product-section.active {
    display: block;
}

/* ==================================================================
   PRODUCT PAGE STYLES
   ================================================================== */
.offering-page {
    padding-top: var(--nav-height, 80px);
}

/* ── Hero ── */
.offering-hero {
    padding: 5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.offering-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 900px;
    background: radial-gradient(ellipse at center,
            rgba(59, 130, 246, 0.18) 0%,
            rgba(34, 211, 238, 0.08) 35%,
            transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.offering-hero .container {
    position: relative;
    z-index: 1;
}

.offering-hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.product-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--brand-accent);
    margin-bottom: 0;
}

.offering-hero h1 {
    max-width: 780px;
    margin: 0 auto 1.25rem;
    font-size: clamp(1.9rem, 4.2vw, 2.8rem);
    line-height: 1.18;
}

.offering-intro {
    max-width: 640px;
    margin: 0 auto 2.25rem;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-body);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
}

/* ── Highlights Grid ── */
.offering-highlights {
    padding: 4rem 0 3rem;
}

.section-title-wrap {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-title-wrap h2 {
    margin-bottom: 0.5rem;
    font-size: 1.65rem;
}

.section-title-wrap p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 540px;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.75rem;
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--brand-primary);
}

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

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
    stroke: currentColor;
    fill: none;
}

.feature-card h3 {
    font-size: 1.08rem;
    margin: 0;
    color: var(--text-heading);
    font-weight: 700;
}

.feature-card p {
    margin: 0;
    color: var(--text-body);
    font-size: 0.94rem;
    line-height: 1.65;
}

/* ── FAQ Accordion ── */
.offering-faq {
    padding: 3rem 0 5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.faq-card {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    overflow: hidden;
    transition: border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.faq-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-md);
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.15rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 0.75rem;
    font-family: var(--font-sans);
}

.faq-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.faq-card.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-card.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.25rem 1.15rem;
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--text-body);
}

/* ── Product page responsive ── */
@media (min-width: 1100px) {
    .card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .card-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .offering-hero {
        padding-top: 3.5rem;
    }

    .offering-intro {
        font-size: 0.97rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .product-logo {
        width: 44px;
        height: 44px;
    }
}

/* ── Product Video Section (below hero) ── */
.offering-video-section {
    padding: 0 0 3rem;
}

/* ── Product Card (Bolt-style card with video) ── */
.product-card {
    background: var(--bg-surface, rgba(15, 18, 30, 0.95));
    border: 1px solid var(--border-default, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-xl, 16px);
    padding: 2.5rem;
    text-align: left;
    max-width: 960px;
    margin: 0 auto;
}

.product-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-card-identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.product-card-identity .product-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md, 8px);
}

.product-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading, #f3f4f6);
    margin: 0;
    line-height: 1.3;
}

.product-card-kicker {
    font-size: 0.82rem;
    color: var(--brand-accent, #22d3ee);
    margin: 0;
    letter-spacing: 0.02em;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary, #3b82f6);
    border: 1px solid var(--brand-primary, #3b82f6);
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.08);
    white-space: nowrap;
    flex-shrink: 0;
}

.product-card-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body, #9ca3af);
    margin: 0 0 1.75rem;
}

/* Checklist highlights */
.product-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.product-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-body, #9ca3af);
}

.product-checklist li strong {
    color: var(--text-heading, #f3f4f6);
}

.check-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Slides embed wrapper */
.product-slides-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(20, 184, 166, .2);
    box-shadow: 0 8px 32px rgba(20, 184, 166, .15);
    margin-bottom: 0.5rem;
}

.product-slides-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.product-slides-link {
    display: block;
    text-align: right;
    font-size: 0.82rem;
    color: var(--brand-accent, #22d3ee);
    text-decoration: none;
    margin-bottom: 2rem;
    opacity: 0.75;
    transition: opacity var(--transition-fast);
}

.product-slides-link:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .product-slides-wrap {
        aspect-ratio: 3 / 4;
        border-radius: 10px;
    }

    .product-slides-link {
        text-align: center;
        font-size: 0.9rem;
        opacity: 1;
        padding: 0.6rem 0;
    }
}

/* Video wrapper */
.product-video-wrap {
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    border: 1px solid var(--border-default, rgba(255, 255, 255, 0.08));
    margin-bottom: 2rem;
}

.product-video-wrap video {
    display: block;
    width: 100%;
    height: auto;
}

/* Card actions */
.product-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .product-card {
        padding: 1.5rem;
    }

    .product-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-card-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ── Contact Modal ─────────────────────────────── */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 24px;
}

.contact-modal-overlay.open {
    display: flex;
}

.contact-modal {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    padding: 36px 32px 28px;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    font-size: 1.3rem;
    transition: color 0.15s;
}

.contact-modal-close:hover {
    color: var(--text-heading);
}

.contact-modal h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 4px;
}

.contact-modal .modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 24px;
}

.contact-form-group {
    margin-bottom: 16px;
}

.contact-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.contact-form-group input,
.contact-form-group select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-default);
    background: var(--bg-muted, rgba(0,0,0,0.15));
    color: var(--text-body);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.contact-form-group input:focus,
.contact-form-group select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-light);
}

.contact-form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.contact-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
    color: var(--text-on-primary, #fff);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.contact-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-form-status {
    text-align: center;
    padding: 24px 0;
    display: none;
}

.contact-form-status.show {
    display: block;
}

.contact-form-status .status-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.contact-form-status h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 6px;
}

.contact-form-status p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 500px) {
    .contact-modal {
        padding: 28px 20px 20px;
    }
}