:root {
    /* Backgrounds */
    --bg-main: #000000;
    --bg-alt: #000000;
    --bg-darker: #000000;
    --bg-footer: #000000;
    --bg-nav: rgba(0, 0, 0, 0.95);

    /* Text */
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --text-light: #cbd5e1;
    --text-very-light: #e2e8f0;

    /* Brand Accent */
    --brand-primary: #6366f1;
    --brand-secondary: #818cf8;

    /* Transparent Overlays (White-based in dark mode) */
    --glass-02: rgba(255, 255, 255, 0.02);
    --glass-03: rgba(255, 255, 255, 0.03);
    --glass-04: rgba(255, 255, 255, 0.04);
    --glass-05: rgba(255, 255, 255, 0.05);
    --glass-06: rgba(255, 255, 255, 0.06);
    --glass-08: rgba(255, 255, 255, 0.08);
    --glass-10: rgba(255, 255, 255, 0.1);
    --glass-12: rgba(255, 255, 255, 0.12);
    --glass-15: rgba(255, 255, 255, 0.15);
    --glass-18: rgba(255, 255, 255, 0.18);
    --glass-20: rgba(255, 255, 255, 0.2);
    --glass-25: rgba(255, 255, 255, 0.25);
    --glass-30: rgba(255, 255, 255, 0.3);
    --glass-90: rgba(255, 255, 255, 0.9);

    /* Transparent Black Overlays (Shadows) */
    --shadow-95: rgba(0, 0, 0, 0.95);
    --shadow-80: rgba(0, 0, 0, 0.8);
    --shadow-70: rgba(0, 0, 0, 0.7);
    --shadow-60: rgba(0, 0, 0, 0.6);
    --shadow-50: rgba(0, 0, 0, 0.5);
    --shadow-40: rgba(0, 0, 0, 0.4);

    /* Specific Gradient Base Colors */
    --grad-blue-90: rgba(56, 189, 248, 0.9);
    --grad-blue-60: rgba(59, 130, 246, 0.6);

    /* Brand Glows */
    --glow-indigo-80: rgba(99, 102, 241, 0.8);
    --glow-indigo-60: rgba(99, 102, 241, 0.6);
    --glow-indigo-50: rgba(99, 102, 241, 0.5);
    --glow-indigo-40: rgba(99, 102, 241, 0.4);
    --glow-indigo-30: rgba(99, 102, 241, 0.3);
    --glow-indigo-20: rgba(99, 102, 241, 0.2);
    --glow-indigo-15: rgba(99, 102, 241, 0.15);
    --glow-indigo-10: rgba(99, 102, 241, 0.1);
    --glow-indigo-08: rgba(99, 102, 241, 0.08);
    --glow-indigo-06: rgba(99, 102, 241, 0.06);
    --glow-indigo-05: rgba(99, 102, 241, 0.05);
    --glow-indigo-03: rgba(99, 102, 241, 0.03);
    --glow-indigo-02: rgba(99, 102, 241, 0.02);
}

body.light-mode {
    /* Backgrounds */
    --bg-main: #f8fafc;
    --bg-alt: #ffffff;
    --bg-darker: #f1f5f9;
    --bg-footer: #e2e8f0;
    --bg-nav: rgba(255, 255, 255, 0.95);

    /* Text */
    --text-main: #0f172a;
    --text-muted: #334155;
    --text-dim: #94a3b8;
    --text-light: #334155;
    --text-very-light: #1e293b;

    /* Brand Accent */
    --brand-primary: #4f46e5;
    --brand-secondary: #6366f1;

    /* Transparent Overlays (Invert to black for light mode) */
    --glass-02: rgba(0, 0, 0, 0.02);
    --glass-03: rgba(0, 0, 0, 0.03);
    --glass-04: rgba(0, 0, 0, 0.04);
    --glass-05: rgba(0, 0, 0, 0.05);
    --glass-06: rgba(0, 0, 0, 0.06);
    --glass-08: rgba(0, 0, 0, 0.08);
    --glass-10: rgba(0, 0, 0, 0.1);
    --glass-12: rgba(0, 0, 0, 0.12);
    --glass-15: rgba(0, 0, 0, 0.15);
    --glass-18: rgba(0, 0, 0, 0.18);
    --glass-20: rgba(0, 0, 0, 0.2);
    --glass-25: rgba(0, 0, 0, 0.25);
    --glass-30: rgba(0, 0, 0, 0.3);
    --glass-90: rgba(0, 0, 0, 0.9);
    /* Exception depending on use, maybe keep white for light mode if it's text? Wait, glass-90 was used for text? Let's assume inverted. */

    /* Shadows (Soften significantly for light mode) */
    --shadow-95: rgba(0, 0, 0, 0.15);
    --shadow-80: rgba(0, 0, 0, 0.1);
    --shadow-70: rgba(0, 0, 0, 0.08);
    --shadow-60: rgba(0, 0, 0, 0.06);
    --shadow-50: rgba(0, 0, 0, 0.05);
    --shadow-40: rgba(0, 0, 0, 0.04);

    /* Specific Gradient Base Colors */
    --grad-blue-90: rgba(56, 189, 248, 0.9);
    --grad-blue-60: rgba(59, 130, 246, 0.6);

    /* Brand Glows (Reduce intensity for light backgrounds) */
    --glow-indigo-80: rgba(99, 102, 241, 0.4);
    --glow-indigo-60: rgba(99, 102, 241, 0.3);
    --glow-indigo-50: rgba(99, 102, 241, 0.25);
    --glow-indigo-40: rgba(99, 102, 241, 0.2);
    --glow-indigo-30: rgba(99, 102, 241, 0.15);
    --glow-indigo-20: rgba(99, 102, 241, 0.1);
    --glow-indigo-15: rgba(99, 102, 241, 0.08);
    --glow-indigo-10: rgba(99, 102, 241, 0.05);
    --glow-indigo-08: rgba(99, 102, 241, 0.04);
    --glow-indigo-06: rgba(99, 102, 241, 0.03);
    --glow-indigo-05: rgba(99, 102, 241, 0.02);
    --glow-indigo-03: rgba(99, 102, 241, 0.01);
    --glow-indigo-02: rgba(99, 102, 241, 0.01);
}

/* ==================== CREAM MODE OVERRIDES ==================== */
.cream-mode {
    --bg-main: #efe9d8;
    /* Warm cream background */
    --bg-sec: #e4dece;
    --bg-tertiary: #d9d2c1;

    --text-very-light: #1C1917;
    /* Dark slate for high contrast reading */
    --text-main: #1C1917;
    --text-dim: #44403C;

    --glass-02: rgba(0, 0, 0, 0.02);
    --glass-03: rgba(0, 0, 0, 0.03);
    --glass-05: rgba(0, 0, 0, 0.05);
    --glass-08: rgba(0, 0, 0, 0.08);
    --glass-10: rgba(0, 0, 0, 0.1);
    --glass-15: rgba(0, 0, 0, 0.15);
    --glass-20: rgba(0, 0, 0, 0.2);
    --glass-30: rgba(0, 0, 0, 0.3);

    --border-color: rgba(0, 0, 0, 0.1);

    background-color: var(--bg-main);
    color: var(--text-main);
}

.cream-mode .navbar {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.cream-mode .nav-wrapper.scrolled .navbar {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cream-mode .resources-title {
    background: linear-gradient(to right, #1C1917, #44403C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text-very-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

body.page-transitioning {
    opacity: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background: var(--glow-indigo-30);
}

/* ==================== LENIS SMOOTH SCROLL ==================== */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ==================== NAVBAR (Glassmorphic Floating Capsule) ==================== */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, 16px);
    z-index: 100;
    width: calc(100% - 48px);
    max-width: 1290px;
    /* Hardware acceleration for 60fps */
    will-change: width, max-width, transform, opacity;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        max-width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.35s ease;
}

.nav-wrapper.scrolled {
    width: calc(100% - 120px);
    max-width: 900px;
    transform: translate(-50%, 12px);
}

.nav-wrapper.nav-hidden {
    transform: translate(-50%, -10px) scale(0.96);
    opacity: 0;
    pointer-events: none;
}

.navbar {
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 20, 30, 0.15);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.6);
    position: relative;

    will-change: height, padding, background-color, box-shadow, backdrop-filter;
    transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        padding 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        background-color 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease;
}

.nav-wrapper.scrolled .navbar {
    height: 56px;
    padding: 0 20px;
    background: rgba(15, 20, 30, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
}

.navbar-dark-glass {
    background: rgba(10, 10, 10, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

.nav-wrapper.scrolled .navbar-dark-glass {
    background: rgba(5, 5, 5, 0.9) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 40px rgba(0, 0, 0, 0.2) !important;
}

/* True Meteor Animation from Automation Project */
.meteor-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 100px;
    z-index: 1;
}

.meteor {
    position: absolute;
    height: 2px;
    width: 2px;
    background: #38bdf8;
    border-radius: 9999px;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
    opacity: 0;
}

.meteor::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, var(--grad-blue-90), var(--grad-blue-60), transparent);
    z-index: -1;
}

.meteor-silver {
    position: absolute;
    height: 2px;
    width: 2px;
    background: #f8fafc;
    border-radius: 9999px;
    box-shadow: 0 0 0 1px var(--glass-20);
    opacity: 0;
}

.meteor-silver::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-90), rgba(148, 163, 184, 0.6), transparent);
    z-index: -1;
}

@keyframes meteor {
    0% {
        transform: rotate(215deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        transform: rotate(215deg) translateX(-1000px);
        opacity: 0;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-brand-name {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-main);
    letter-spacing: 0.01em;
}

.nav-brand-sub {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}

.nav-brand-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
}

.nav-brand-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.35em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
    height: 100%;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: #F7F2E8;
    /* Lightest cream color */
    padding: 8px 16px;
    border-radius: 100px;
    transition: color 0.2s;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /* Ultra-smooth sliding transition */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.25s ease-in-out;
    will-change: transform, width, opacity;
}

.nav-item:has(.mega-menu) .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-item:has(.mega-menu) .nav-link::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.6;
}

.nav-item:hover .nav-link::after {
    transform: rotate(225deg);
    margin-bottom: -2px;
    opacity: 1;
}

/* ==================== MEGA MENU ==================== */
.mega-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    border-radius: 16px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 10px);
    background: var(--bg-alt, #0a0a0a);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-08);
    /* Ultra-smooth close cross-fade */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.morphing-dropdown-bg {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: var(--bg-alt);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid var(--glass-08);
    border-radius: 16px;
    box-shadow: 0 20px 40px var(--shadow-80), 0 0 0 1px var(--glass-02) inset;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.25s ease-in-out;
    will-change: transform, width, height, opacity;
}

/* Invisible bridge to prevent hover loss when moving mouse from nav link to mega menu */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    /* Ultra-smooth open cross-fade */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.mega-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 8px;
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mega-card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-04);
    background: #0d0d0d;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    z-index: 101;
}



.cap-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--glass-05);
    border: 1px solid var(--glass-10);
    border-radius: 100px;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.cap-tag:hover {
    background: var(--glow-indigo-15);
    border-color: var(--glow-indigo-40);
    color: var(--text-main);
    transform: translateY(-2px);
}

.mega-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mega-card-title {
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
}

.mega-card-badge {
    font-size: 0.55rem;
    background: var(--glass-10);
    color: var(--text-light);
    padding: 3px 8px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-transform: uppercase;
}

.mega-card-desc {
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.mega-card-link {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mega-card:hover .mega-card-link {
    color: var(--text-main);
}

.mega-footer-link {
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 600;
    transition: opacity 0.2s;
    display: inline-block;
}

.mega-footer-link:hover {
    opacity: 0.7;
}

.nav-cta {
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(18, 20, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.nav-cta:hover {
    background: rgba(18, 20, 28, 0.95);
    border-color: rgba(236, 72, 153, 0.7);
    box-shadow: inset 0 0 25px rgba(236, 72, 153, 0.35), 0 0 20px rgba(236, 72, 153, 0.3);
}

/* ==================== SCROLL EXPLORE BUTTON ==================== */
.scroll-explore-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 16px;
    border-radius: 100px;
    border: 1px solid var(--glass-20);
    background: var(--glass-10);
    backdrop-filter: blur(12px) saturate(150%);
    color: var(--glass-90);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    box-shadow: 0 10px 30px var(--shadow-50);
}

.scroll-explore-btn:hover {
    background: var(--glass-20);
    border-color: var(--glass-30);
    transform: translateX(-50%) scale(1.05);
}

.scroll-explore-icon {
    color: #f472b6;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

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

    50% {
        transform: translateY(5px);
    }
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 2rem 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-indigo-06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 4px;
    background: var(--glass-05);
    border: 1px solid var(--glass-15);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: pulse 2s ease-in-out infinite;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    margin-left: 4px;
    background-color: var(--text-dim);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes pulse {

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

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.hero h1 em {
    font-style: italic;
    color: var(--text-muted);
}

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

/* Tagline */
.hero-tagline {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-tagline span {
    color: #fbbf24;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 14px 28px;
    border-radius: 12px;
    background: var(--text-main);
    color: var(--bg-alt);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 0 30px var(--glass-06);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glass-12);
}

.btn-secondary {
    padding: 14px 28px;
    border-radius: 12px;
    background: transparent;
    color: var(--text-very-light);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--glass-15);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
}

.btn-secondary:hover {
    background: var(--glass-05);
    border-color: var(--glass-30);
}

/* ==================== AUTONOMOUS ECOSYSTEM VISUAL ==================== */
.eco-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 1.5rem;
    margin-top: 2rem;
    transform: translate(5%, 5%);
}

.eco-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 200px;
    z-index: 20;
    position: relative;
}

.eco-col-left::after {
    content: '';
    position: absolute;
    top: 2.5rem;
    bottom: 1rem;
    right: -1rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0), var(--glass-30) 15%, var(--glass-30) 85%, rgba(99, 102, 241, 0));
}

.eco-col-right::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    bottom: 1rem;
    left: -1rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0), var(--glass-30) 15%, var(--glass-30) 85%, rgba(99, 102, 241, 0));
}

.eco-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-secondary);
    margin-bottom: 8px;
}

.eco-col-left .eco-label {
    text-align: right;
}

.eco-col-right .eco-label {
    text-align: left;
}

.eco-node {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid var(--glass-08);
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 4px 20px var(--shadow-40);
}

.eco-node:hover {
    border-color: var(--glass-25);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-60);
}

.eco-dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 10px currentColor;
}

.eco-dot-blue {
    color: #3b82f6;
    background: #3b82f6;
}

.eco-dot-orange {
    color: #f97316;
    background: #f97316;
}

.eco-dot-green {
    color: #22c55e;
    background: #22c55e;
}

.eco-dot-purple {
    color: #a855f7;
    background: #a855f7;
}

.eco-node-text {
    display: flex;
    flex-direction: column;
}

.eco-node-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.eco-node-sub {
    font-size: 0.61rem;
    color: var(--text-dim);
}

.what-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.5));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 187px;
    box-sizing: border-box;
    animation: float-card 6s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes float-card {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}

.what-card:nth-child(2) {
    animation-delay: 0s;
}

.what-card:nth-child(3) {
    animation-delay: -1.5s;
}

.what-card:nth-child(4) {
    animation-delay: -3.0s;
}

.what-card:nth-child(5) {
    animation-delay: -4.5s;
}

.what-card:hover {
    transform: scale(1.06);
    border-color: rgba(6, 182, 212, 0.6);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(0, 0, 0, 0.6));
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(6, 182, 212, 0.25), inset 0 1px 0 rgba(6, 182, 212, 0.4);
}

.what-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.what-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #312e81);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    flex-shrink: 0;
}

.what-card-text {
    display: flex;
    flex-direction: column;
}

.what-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.what-card-sub {
    font-size: 0.65rem;
    color: var(--text-dim);
}

.what-logos {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.what-logo-img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.eco-center-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 240px;
    height: 240px;
}

.eco-center {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.eco-core {
    position: relative;
    z-index: 10;
    background: var(--bg-nav);
    border: 1px solid var(--glass-30);
    width: 100px;
    height: 100px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--glass-10);
    backdrop-filter: blur(8px);
}

.eco-core-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.05em;
}

.eco-core-sub {
    font-size: 0.5rem;
    color: var(--brand-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.eco-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.eco-ring-1 {
    width: 170px;
    height: 170px;
    border: 1px dashed var(--glass-20);
    animation: spin 20s linear infinite;
}

.eco-ring-2 {
    width: 230px;
    height: 230px;
    border: 1px solid var(--glass-05);
    animation: spin 30s linear infinite reverse;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.eco-line {
    position: absolute;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: var(--glass-30);
    z-index: 1;
}

.eco-line-l {
    right: 100%;
    transform: translateY(-50%);
}

.eco-line-r {
    left: 100%;
    transform: translateY(-50%);
}

@media (max-width: 900px) {
    .eco-visual {
        flex-direction: column;
        gap: 4rem;
    }

    .eco-col-left .eco-label,
    .eco-col-right .eco-label {
        text-align: center;
    }

    .eco-line-l {
        right: auto;
        bottom: 100%;
        top: auto;
        width: 1px;
        height: 100px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(0deg, transparent, var(--glass-40), transparent);
    }

    .eco-line-r {
        left: auto;
        top: 100%;
        width: 1px;
        height: 100px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(0deg, transparent, var(--glass-40), transparent);
    }
}

/* ==================== STATEMENT BAR ==================== */
.statement-bar {
    padding: 4rem 2rem;
    background-color: #efe9d8;
}

.statement-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 6.5em;
}

.statement-text {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    color: #000000;
    line-height: 1.4;
}

.statement-highlight {
    color: #000000;
}

.word-flip-container {
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
    height: 1.4em;
    color: #6366f1;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.word-flip-text {
    display: inline-block;
    will-change: transform, opacity, filter;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
}

/* ==================== STATS ==================== */
.stats-bar {
    padding: 3.5rem 2rem 4rem 2rem;
    background: #efe9d8;
}

.stats-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.stat-card {
    display: grid;
    grid-template-areas:
        "icon number"
        "icon label";
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;
    padding: 1rem 1.25rem;
    gap: 0.1rem 1rem;
    border-radius: 0;
    background: #efe9d8;
    border: none;
}

.stat-icon {
    grid-area: icon;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1.1rem;
}

.stat-number {
    grid-area: number;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin: 0;
    align-self: end;
}

.stat-label {
    grid-area: label;
    font-size: 0.8rem;
    color: #1e293b;
    font-weight: 600;
    align-self: start;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-secondary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* ==================== PRODUCTS ==================== */
.products-section {
    padding: 5rem 0;
    width: 100%;
    position: relative;
    background-color: #080808;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 80px 80px;
    background-position: -1px -1px, -1px -1px, 39px 39px;
}

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

.product-card {
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--glass-30);
    background: var(--glass-05);
    transform: translateY(-4px);
}

.product-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    flex: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 1rem;
}

.product-features li {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features li::before {
    content: '✓';
    color: #c9c2a9;
    font-weight: 700;
    font-size: 0.65rem;
}

.product-link {
    font-size: 0.775rem;
    font-weight: 600;
    color: #fde047;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
    margin-top: auto;
}

.product-link:hover {
    gap: 8px;
    color: #fef08a;
}

/* ==================== SOLUTIONS ==================== */
.solutions-section {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--glass-05);
    /* 1px borders */
    border: 1px solid var(--glass-05);
    margin: 0 auto;
}

.solution-card {
    background: var(--bg-footer);
    /* matches body background */
    padding: 2.5rem;
    text-align: left;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.solution-card:hover {
    background: var(--glass-02);
}

.sol-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.sol-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.sol-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    filter: invert(1);
}

.solution-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.solution-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    flex: 1;
}

.sol-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--glass-10);
    background: var(--glass-03);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sol-badge-dot {
    width: 6px;
    height: 6px;
    background: #eab308;
    border-radius: 1px;
}

/* ==================== INTEGRATIONS ==================== */
.integrations-section {
    padding: 4rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.integrations-card {
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
}

.integrations-title {
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2rem;
    /* increased bottom margin slightly for better centered spacing */
    letter-spacing: 0.02em;
    text-align: center;
}

.integrations-marquee {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    padding: 1rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.integrations-grid {
    display: flex;
    width: max-content;
    gap: 4rem;
    animation: scroll-marquee 40s linear infinite;
}

.integrations-grid:hover {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    transition: transform 0.2s, opacity 0.2s;
    background: transparent;
    border: none;
}

.integration-item:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.integration-icon-img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
    object-fit: contain;
}

.tally-text-logo {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-style: italic;
    font-size: 2.2rem;
    color: #f43f5e;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin-bottom: 0.75rem;
    letter-spacing: -0.05em;
}

.integration-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-very-light);
    text-align: center;
}

/* ==================== CASE STUDY ==================== */
.casestudy-section {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.casestudy-card {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 5, 5, 0.45);
    backdrop-filter: blur(32px) saturate(120%);
    -webkit-backdrop-filter: blur(32px) saturate(120%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 16px 40px rgba(0, 0, 0, 0.4);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#casestudy-shader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.cs-tag {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-secondary);
    margin-bottom: 0.6rem;
}

.cs-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.cs-desc {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.cs-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fde047;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
}

.cs-link:hover {
    gap: 8px;
    color: #fef08a;
}

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

.cs-metric {
    padding: 1.1rem;
    border-radius: 14px;
    background: var(--glass-03);
    border: 1px solid var(--glass-06);
}

.cs-metric-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.cs-metric-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* ==================== TESTIMONIAL ==================== */
.testimonial-section {
    padding: 5rem 2rem;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-very-light);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--brand-secondary);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.85rem;
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--glass-05);
    border: 1px solid var(--glass-10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px var(--glass-08);
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.contact-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-desc strong {
    color: var(--text-main);
    font-weight: 600;
}

.contact-coords {
    padding-top: 1.25rem;
    border-top: 1px solid var(--glass-10);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-coord {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-coord:hover {
    color: var(--text-main);
}

.contact-form-card {
    border-radius: 24px;
    background: var(--shadow-50);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-10);
    padding: 2.5rem;
    box-shadow: 0 25px 60px var(--shadow-70);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: repeating-linear-gradient(to right, var(--glass-03) 0, var(--glass-03) 1px, transparent 1px, transparent 24px),
        repeating-linear-gradient(to bottom, var(--glass-03) 0, var(--glass-03) 1px, transparent 1px, transparent 24px);
    mask-image: radial-gradient(ellipse 60% 50% at top right, var(--text-main) 70%, transparent 100%);
    pointer-events: none;
}

.form-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-subtitle {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1.75rem;
}

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

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

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--glass-04);
    border: 1px solid var(--glass-10);
    color: var(--text-main);
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--glow-indigo-50);
}

.form-input::placeholder {
    color: #475569;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--glass-08);
    border: 1px solid var(--glass-15);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
}

.form-submit:hover {
    background: var(--glass-15);
}

/* ==================== TELEMETRY MAP ==================== */
.telemetry-container {
    position: relative;
    width: 100%;
    height: 320px;
    background: var(--bg-darker);
    border-radius: 16px;
    border: 1px solid var(--glass-10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 2rem;
    box-shadow: 0 10px 30px var(--shadow-80);
    user-select: none;
}

.telemetry-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--bg-footer) 1px, transparent 1px),
        linear-gradient(to bottom, var(--bg-footer) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.4;
    pointer-events: none;
}

.telemetry-bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--shadow-50) 50%, var(--bg-darker) 100%);
    pointer-events: none;
}

.telemetry-svg-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

.telemetry-svg {
    width: 100%;
    height: 100%;
    opacity: 0.65;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.15));
}

.telemetry-beacon {
    position: absolute;
    top: 25%;
    left: 67%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 20;
}

.telemetry-badge {
    background: var(--bg-nav);
    border: 1px solid rgba(34, 211, 238, 0.8);
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 4px 14px;
    border-radius: 9999px;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
}

.telemetry-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 8px #22d3ee;
    animation: pulse-op 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.telemetry-plasma {
    width: 2px;
    height: 64px;
    background: linear-gradient(to bottom, #22d3ee, rgba(6, 182, 212, 0.8), transparent);
    margin: 4px 0;
    box-shadow: 0 0 10px rgba(6, 182, 212, 1);
}

.telemetry-radar {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -8px;
}

.telemetry-radar-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 15px rgba(6, 182, 212, 1);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-10%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes map-pulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.3;
    }
}


/* ==================== SECTION WRAPPERS ==================== */
.solutions-wrapper {
    background-color: #080808;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 80px 80px;
    background-position: -1px -1px, -1px -1px, 39px 39px;
}

.integrations-wrapper {
    background-color: #080808;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 80px 80px;
    background-position: -1px -1px, -1px -1px, 39px 39px;
}

.casestudy-wrapper {
    background: #050a08;
    position: relative;
    overflow: hidden;
}

.casestudy-section {
    position: relative;
    z-index: 1;
}



.casestudy-wrapper .cs-tag {
    color: #818cf8;
}

.casestudy-wrapper .cs-title {
    color: #ffffff;
}

.casestudy-wrapper .cs-desc {
    color: #94a3b8;
}

.casestudy-wrapper .cs-link {
    color: #fde047;
}

.casestudy-wrapper .cs-link:hover {
    color: #fef08a;
}

.casestudy-wrapper .cs-metric {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.casestudy-wrapper .cs-metric-val {
    color: #ffffff;
}

.casestudy-wrapper .cs-metric-label {
    color: #94a3b8;
}

.casestudy-wrapper .section-cta {
    color: #0f172a;
    border-color: #0f172a;
}

.casestudy-wrapper .section-cta:hover {
    background: #0f172a;
    color: #ffffff;
}

.testimonial-wrapper {
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.04) 0%, #000000 70%);
}

.contact-wrapper {
    background-color: #0d0d0d;
    background-image: repeating-linear-gradient(-45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.012) 10px,
            rgba(255, 255, 255, 0.012) 11px);
}

/* ==================== CTA ==================== */
.cta-section {
    width: 95%;
    max-width: 1400px;
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-15);
    border-radius: 8px;
    padding: 6rem 0;
    background: #050a08;
}

#cta-shader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.cta-card {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.cta-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 500px;
}

.noise-btn-wrapper {
    position: relative;
    width: fit-content;
    padding: 6px;
    border-radius: 9999px;
    background: linear-gradient(to right, rgb(255, 100, 150), rgb(100, 150, 255), rgb(255, 200, 100));
}

.noise-btn-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.7;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.noise-btn {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    cursor: pointer;
    border-radius: 9999px;
    background: linear-gradient(to right, #000, #000, #171717);
    padding: 12px 24px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(0, 0, 0, 0.8);
    transition: all 0.1s;
    white-space: nowrap;
}

.noise-btn:active {
    transform: scale(0.98);
}

/* ==================== FOOTER (5-Column Grid) ==================== */
.footer-section {
    padding: 4rem 2rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid var(--glass-08);
}

.footer-section-outer {
    background: #050505;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--text-main) 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bg-main);
}

.footer-logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    letter-spacing: 0.04em;
}

.footer-copyright {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #475569;
    line-height: 1.6;
}

.footer-col-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.footer-col a {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-main);
}

/* Grand HYPERFLOW.AI watermark */
.footer-watermark {
    text-align: center;
    padding: 3rem 0 1.5rem;
    position: relative;
}

.watermark-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--glass-25);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.text-hover-svg {
    width: 100%;
    height: auto;
    font-weight: 800;
    font-size: 8rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    cursor: pointer;
    margin: 1rem 0;
}

.text-hover-outline {
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5px;
    transition: all 0.4s ease-in-out;
}

.text-hover-svg:hover .text-hover-outline {
    stroke: url(#text-gradient);
    fill: rgba(255, 255, 255, 0.04);
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.watermark-line {
    width: 60%;
    max-width: 500px;
    height: 1px;
    margin: 1.5rem auto 0;
    background: linear-gradient(90deg, transparent, var(--glow-indigo-30), transparent);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero h1 {
        white-space: normal;
        font-size: 2.75rem;
    }

    .workflow-visual {
        display: none;
    }

    .workflow-visual {
        display: none;
    }

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

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

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

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

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

    .cta-card {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.25rem;
    }

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

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

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

    .nav-links {
        display: none;
    }

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

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

/* Two Paths Section */
.paths-section {
    background: #efe9d8;
    text-align: center;
    padding: 3.5rem 2rem 4.5rem 2rem;
    position: relative;
}

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

.paths-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.paths-header p {
    color: #4b5563;
    font-size: 1.1rem;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

.paths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.path-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 2.5rem 2rem;
    text-align: left;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.path-card:hover {
    transform: translateY(-5px);
    border-color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.path-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.path-title-indicator {
    width: 6px;
    height: 6px;
}

.path-title-indicator-1 {
    background: var(--text-muted);
}

.path-title-indicator-2 {
    background: #f97316;
}

.path-title-indicator-3 {
    background: #84cc16;
}

.path-card h3 {
    color: #000000;
    font-size: 1.35rem;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.path-card p {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    min-height: 70px;
}

.path-explore-link {
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
    padding-top: 3.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding-bottom: 2px;
}

.path-explore-link:hover {
    color: #7c6d59;
    border-bottom-color: #7c6d59;
}

/* Terminal flow layout */
.term-flow {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.term-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.term-tag {
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.02);
    color: #111827;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 2px;
}

.term-line {
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    width: 16px;
}

.term-line-orange {
    background: #f97316;
}

.term-line-green {
    background: #84cc16;
}

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

@keyframes movePacket {
    0% {
        left: 15%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        left: 85%;
        opacity: 0;
    }
}

/* Light Mode Overrides for Case Study Card to keep it dark */
body.light-mode .casestudy-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .casestudy-card .cs-title,
body.light-mode .casestudy-card .cs-metric-val {
    color: #ffffff;
}

body.light-mode .casestudy-card .cs-desc,
body.light-mode .casestudy-card .cs-metric-label {
    color: #94a3b8;
}

body.light-mode .casestudy-card .cs-metric {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Light mode: Reset special dark-mode section backgrounds */
body.light-mode .stats-bar {
    background: var(--bg-darker);
}

body.light-mode .stat-card {
    background: var(--bg-alt);
}

body.light-mode .stat-number {
    color: var(--text-main);
}

body.light-mode .stat-label {
    color: var(--text-dim);
}

body.light-mode .stat-icon {
    background: var(--glass-05);
}

body.light-mode .stats-inner {
    background: var(--glass-06);
    border-color: var(--glass-06);
}

body.light-mode .statement-bar {
    background-color: var(--bg-alt);
    background-image: none;
}

body.light-mode .solutions-wrapper {
    background-color: transparent;
    background-image: none;
    border: none;
}

body.light-mode .integrations-wrapper {
    background-color: transparent;
    background-image: none;
    border: none;
}

body.light-mode .casestudy-wrapper {
    background: transparent;
    border: none;
}

body.light-mode .casestudy-wrapper .section-tag {
    color: var(--brand-secondary);
}

body.light-mode .casestudy-wrapper .section-title {
    color: var(--text-main);
}

body.light-mode .casestudy-wrapper .section-cta {
    color: var(--text-main);
    border-color: var(--glass-20);
}

body.light-mode .testimonial-wrapper {
    background: transparent;
}

body.light-mode .contact-wrapper {
    background-color: transparent;
    background-image: none;
    border: none;
}

/* ==================== BLOG / RESOURCES SECTION ==================== */
.resources-hero {
    padding: 180px 20px 80px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.resources-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.resources-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 0 20px;
}

.blog-card {
    background: var(--glass-5);
    border: 1px solid var(--glass-10);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    background: var(--glass-10);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 12px;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1;
}

.blog-read-more {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-read-more {
    color: var(--accent);
}

/* ==================== BLOG POST TEMPLATE ==================== */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 160px 20px 80px;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 48px;
    transition: color 0.3s ease;
}

.article-back-link:hover {
    color: var(--text-main);
}

.article-header {
    margin-bottom: 64px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.article-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 24px;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-content p {
    margin-bottom: 32px;
    color: var(--text-dim);
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 64px 0 24px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 48px 0 16px;
    color: var(--text-main);
}

.article-content ul,
.article-content ol {
    margin-bottom: 32px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 12px;
    color: var(--text-dim);
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 24px;
    margin: 40px 0;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-main);
}

.article-image {
    width: 100%;
    border-radius: 24px;
    margin: 48px 0;
    border: 1px solid var(--glass-10);
}

body.cream-mode .resources-title {
    background: linear-gradient(to right, #1C1917, #44403C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   INTERACTIVE SPLIT LAYOUT (PRODUCTS)
   ========================================= */
.products-interactive-split {
    display: grid;
    grid-template-columns: 32% 68%;
    gap: 2rem;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    height: 480px;
    /* Reduced from 540px for a more compact layout */
}

/* LEFT SIDEBAR: TABS */
.products-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Reduced gap between tabs */
    height: 100%;
}

.product-tab {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    /* Slightly reduced vertical padding */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-tab:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.15);
}

.product-tab.active {
    border-color: #f5f0e6;
}

.product-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #f5f0e6;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.product-tab.active::before {
    transform: scaleY(1);
}

.tab-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.tab-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* RIGHT SIDE: DISPLAY CONTENT */
.products-display {
    perspective: 1000px;
}

.product-hero-card {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transform-style: preserve-3d;
    transition: transform 0.1s;
    height: 100%;
    /* Match container height */
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-inner-content {
    transform: translateZ(30px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.tech-badges {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.7rem;
    color: #cbd5e1;
    font-weight: 500;
}

.flowchart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.flow-node {
    font-size: 0.75rem;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    flex: 1;
    text-align: center;
    font-family: monospace;
}

.flow-arrow {
    color: #64748b;
    font-size: 0.9rem;
}

.hero-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-title {
    font-size: 0.85rem;
    color: #f8fafc;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-title::before {
    content: "✓";
    color: #fde047;
}

.feature-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
    padding-left: 1.25rem;
}

.hero-link {
    background: #efe9d8;
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    margin-top: auto;
    transition: background 0.2s;
}

.hero-link:hover {
    background: #ffffff;
}

.fade-out {
    opacity: 0;
    transform: translateZ(30px) translateY(10px);
}

.fade-in {
    opacity: 1;
    transform: translateZ(30px) translateY(0);
}

@media (max-width: 900px) {
    .products-interactive-split {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* ==================== FAQ SECTION ==================== */
.faq-split-container {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: start;
}

.faq-left {
    position: sticky;
    top: 8rem;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-subtitle {
    font-size: 1.15rem;
    color: #a3a3a3;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .faq-split-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-left .faq-title,
    .faq-left .faq-subtitle {
        text-align: center !important;
    }

    .faq-left {
        position: relative;
        top: 0;
    }
}

.faq-opt2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.faq-opt2 details {

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
}

.faq-opt2 details:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.faq-opt2 details[open] {
    border-color: #06b6d4;
}

.faq-opt2 summary {
    padding: 0.875rem 1rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-opt2 summary::-webkit-details-marker {
    display: none;
}

.faq-opt2 summary .icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.faq-opt2 summary .icon::before,
.faq-opt2 summary .icon::after {
    content: '';
    position: absolute;
    background: #06b6d4;
    transition: transform 0.3s ease;
}

.faq-opt2 summary .icon::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.faq-opt2 summary .icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
}

.faq-opt2 details[open] summary .icon::after {
    transform: rotate(90deg) scale(0);
}

.faq-opt2 .answer {
    padding: 0 1rem 1rem 1rem;
    color: #a3a3a3;
    line-height: 1.5;
    font-size: 0.9rem;
    animation: fadeInOpt2 0.5s ease forwards;
}

@keyframes fadeInOpt2 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==================== MOBILE FIXES ==================== */
body {
    overflow-x: hidden;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

.mobile-overlay.active {
    transform: translateX(0);
}

.mobile-overlay .nav-link {
    font-size: 1.5rem;
    margin: 15px 0;
    color: var(--text-main);
    font-weight: 600;
}

@media (max-width: 1024px) {
    /* 1. Prevent overlapping sticky header and raise z-index so hamburger acts as close button */
    .nav-wrapper {
        z-index: 1001 !important;
    }
    .navbar {
        background: var(--bg-main) !important;
        border-bottom: 1px solid var(--glass-10);
    }
    
    /* 2. Hide desktop nav and squished CTA, show hamburger */
    .nav-links {
        display: none !important;
    }
    
    .navbar .nav-cta {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    /* Center the hero tagline and buttons on mobile */
    .hero-tagline, .hero-buttons {
        justify-content: center !important;
    }

    /* 3. Hide the complex 3-column ecosystem animation on mobile as it stacks poorly */
    .eco-container, .eco-container-wrap, .eco-col-left, .eco-center-wrap, .eco-col-right {
        display: none !important;
    }
    
    /* 4. Fix Integrations Marquee overlapping issues */
    .integrations-wrapper {
        position: relative !important;
        z-index: 50 !important;
        margin-top: 40px !important;
        padding-top: 20px !important;
        background-color: var(--bg-main) !important;
    }

    /* 5. Fix horizontal cutoff issues caused by large paddings and scaling */
    .hero-inner > div:first-child {
        transform: none !important;
    }
    .path-card {
        padding: 1.5rem 1rem !important;
    }
    .products-section > div, .services-section > div, .faq-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .faq-title span {
        white-space: normal !important;
    }
}

@media (max-width: 640px) {
    /* Reduce massive paddings on mobile */
    .hero {
        padding: 120px 20px 40px !important;
    }
}
