:root {
    /* Dark Mode (Default) */
    --bg-main: #1c1c1e;
    --bg-secondary: #2b2b2b;
    --bg-card: #2b2b2b;
    --bg-glass: rgba(43, 43, 43, 0.8);

    --primary: #8b7bc4;
    --primary-glow: #9b8dd4;
    --accent: #9b8dd4;

    --text-main: #ffffff;
    --text-muted: #aeaeb2;

    --font-main: 'Inter', sans-serif;

    --gradient-main: linear-gradient(135deg, #8b7bc4 0%, #9b8dd4 100%);
    --gradient-text: linear-gradient(to right, #8b7bc4, #9b8dd4);
    --gradient-hero-text: linear-gradient(to bottom, #ffffff, #94a3b8);

    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] {
    /* Light Mode */
    --bg-main: #f2f2f7;
    --bg-secondary: #e5e5ea;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.6);

    --text-main: #1c1c1e;
    --text-muted: #636366;

    --gradient-hero-text: linear-gradient(to bottom, #000000, #52525b);

    --border-light: rgba(0, 0, 0, 0.1);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Ensure background color is explicitly set on body to prevent black screen */
body {
    background-color: var(--bg-main);
}

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

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

/* Ambient Background */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjAzIi8+PC9zdmc+');
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.4;
    transition: transform 0.2s ease-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -50px;
    right: -50px;
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0 20px;
}

.glass-nav {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.main-nav {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 100px;
    padding: 4px;
    border: 1px solid var(--border-light);
}

/* Light Mode Nav - iOS Segmented Control Style */
:root[data-theme="light"] .main-nav {
    background: rgba(118, 118, 128, 0.12);
    border-color: transparent;
}

.main-nav ul {
    display: flex;
    gap: 0;
    list-style: none;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 24px;
    border-radius: 100px;
    transition: all 0.3s ease;
    display: block;
}

.main-nav a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] .main-nav a:hover {
    background: rgba(255, 255, 255, 0.5);
}

.main-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Light Mode Active State - Crisp White */
:root[data-theme="light"] .main-nav a.active {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
}

/* Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.btn-icon:hover {
    background: rgba(139, 123, 196, 0.1);
}

.btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-glow {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-glow:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
}

.btn-primary .btn-icon {
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-soft {
    background: rgba(139, 123, 196, 0.15);
    color: #9b8dd4;
    border: 1px solid rgba(139, 123, 196, 0.3);
    backdrop-filter: blur(10px);
}

.btn-soft:hover {
    background: rgba(139, 123, 196, 0.25);
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(139, 123, 196, 0.5);
}

:root[data-theme="light"] .btn-soft {
    color: #6d5ba5;
    border-color: rgba(109, 91, 165, 0.3);
    background: rgba(109, 91, 165, 0.1);
}

:root[data-theme="light"] .btn-soft:hover {
    background: rgba(109, 91, 165, 0.2);
    color: #5b4a8f;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.btn-white {
    background: #ffffff;
    color: #000000;
    border: none;
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .btn-white {
    background: #1c1c1e;
    color: #ffffff;
}

:root[data-theme="light"] .btn-white:hover {
    background: #2c2c2e;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-neutral {
    background: var(--text-main);
    color: var(--bg-main);
    border: none;
}

.btn-neutral .btn-icon {
    color: var(--bg-main) !important;
}

.btn-neutral:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Hero Section */
.hero {
    padding: 160px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #d8b4fe;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 32px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    background: var(--gradient-hero-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 80px;
}

/* Hero Visual (Tablet) */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 800px;
    /* Increased for tablet */
    perspective: 1000px;
    margin-top: 60px;
}

.tablet-frame {
    background: #1d1d1f;
    border-radius: 24px;
    padding: 12px;
    border: 1px solid #333;
    box-shadow:
        0 0 0 1px #000,
        0 30px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 120px -30px rgba(139, 92, 246, 0.4);
    transform: rotateX(10deg) rotateY(-5deg) rotateZ(1deg);
    transition: transform 0.5s ease;
    position: relative;
    z-index: 10;
    aspect-ratio: 4/3;
}

.tablet-frame:hover {
    transform: rotateX(0) rotateY(0) rotateZ(0);
}

.phone-frame {
    background: #1d1d1f;
    border-radius: 44px;
    padding: 10px;
    border: 1px solid #333;
    box-shadow:
        0 0 0 1px #000,
        0 30px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 120px -30px rgba(139, 92, 246, 0.4);
    transform: rotateX(5deg) rotateY(-5deg);
    transition: transform 0.5s ease;
    position: relative;
    z-index: 10;
    aspect-ratio: 9/19.5;
    width: 300px;
    margin: 0 auto;
}

.phone-frame:hover {
    transform: rotateX(0) rotateY(0);
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 20;
}

.phone-screen {
    background: #0f0f12;
    border-radius: 32px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}



.laptop-frame {
    background: #1d1d1f;
    border-radius: 24px;
    padding: 12px;
    border: 1px solid #333;
    box-shadow:
        0 0 0 1px #000,
        0 30px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 120px -30px rgba(139, 92, 246, 0.4);
    position: relative;
    z-index: 10;
    aspect-ratio: 16/10;
    margin-bottom: 40px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transform: rotateX(5deg) rotateY(-5deg);
    transition: transform 0.5s ease;
}

/* Remove Monitor Stand Neck */
.laptop-frame::before {
    display: none;
}

/* Remove Monitor Stand Base */
.laptop-frame::after {
    display: none;
}

.laptop-screen {
    background: #000;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.laptop-frame:hover {
    transform: rotateX(0) rotateY(0);
}

.laptop-camera {
    display: none;
    /* Remove camera for cleaner monitor look */
}

.tablet-screen,
.laptop-screen {
    background: #0f0f12;
    border-radius: 12px;
    /* Corrected inner radius (24px frame - 12px padding) */
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.mode-dark {
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.mode-light {
    z-index: 1;
}

/* Dark Theme (Default): Hover reveals Light Mode */
.tablet-frame:hover .mode-dark {
    opacity: 0;
}

/* Light Theme: Default shows Light Mode (Dark opacity 0), Hover reveals Dark Mode */
[data-theme="light"] .mode-dark {
    opacity: 0;
}

[data-theme="light"] .tablet-frame:hover .mode-dark {
    opacity: 1;
}

.tablet-camera {
    position: absolute;
    left: -8px;
    /* Side camera for landscape */
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    z-index: 20;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-card);
    animation: float-card 6s infinite ease-in-out;
    z-index: 20;
    min-width: 150px;
}

/* Card Positions - Orbiting the Tablet */
.card-1 {
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

/* GPS - Top Left */
/* DB - Top Right */
.card-2 {
    top: -5%;
    right: 10%;
    animation-delay: 1.5s;
}

/* DB - Top Right */
.card-3 {
    top: 40%;
    left: -18%;
    animation-delay: 0.5s;
}

/* Sign - Mid Left */
.card-4 {
    top: 30%;
    right: -15%;
    animation-delay: 2s;
}

/* Logic - Mid Right */
.card-5 {
    bottom: -5%;
    left: -5%;
    animation-delay: 1s;
}

/* Cloud - Bot Left */
.card-6 {
    bottom: -10%;
    right: 5%;
    animation-delay: 2.5s;
}

/* Design - Bot Right */

@keyframes float-card {

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

    50% {
        transform: translateY(-12px);
    }
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.dot {
    color: var(--primary);
}

.card-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.card-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Marquee */
.marquee-section {
    padding: 40px 0;
    background: linear-gradient(to right, var(--bg-dark), transparent 20%, transparent 80%, var(--bg-dark));
    overflow: hidden;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

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

/* App Screenshot (Restored) */
.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Ensure full image is visible without cropping */
    object-position: top center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

/* Features Grid (New) */
.bento-section {
    padding: 120px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 123, 196, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Steps Section (Horizontal) */
.steps-section {
    padding: 100px 0;
    position: relative;
}

.steps-section .section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
}

.steps-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 80px;
    gap: 20px;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.step-visual {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--border-light);
    border-radius: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.step-visual:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

.step-visual i {
    font-size: 4rem;
    color: var(--text-main);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.step-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.step-item h3 {
    font-size: 1.5rem;
    color: var(--text-main);
}

.step-item p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
}

.step-arrow {
    padding-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.step-arrow.arrow-down svg {
    transform: scaleY(-1);
}

@media (max-width: 768px) {
    .steps-row {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
}

/* CTA */
.cta-section {
    padding: 120px 0;
    text-align: center;
}

.cta-container {
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    padding: 80px 20px;
    border-radius: 40px;
    border: 1px solid var(--border-light);
}

.cta-container h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-container p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Footer */
.site-footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand .logo {
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .item-large {
        grid-column: span 2;
    }

    .item-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .item-wide {
        grid-column: span 2;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

/* Mobile Menu Toggle Button - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Dropdown - Hidden by default */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    padding: 0 20px;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.3s ease;
    text-align: center;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav .mobile-cta {
    margin-top: 8px;
    background: var(--text-main);
    color: var(--bg-main);
    font-weight: 600;
    border-radius: 50px;
}

.mobile-nav .mobile-cta:hover {
    background: var(--text-main);
    opacity: 0.9;
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 8px;
}

.mobile-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-theme-toggle i {
    font-size: 1.2rem;
}

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

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

    .item-large,
    .item-tall,
    .item-wide,
    .item-medium {
        grid-column: span 1;
    }

    .steps-timeline {
        flex-direction: column;
        gap: 40px;
    }

    .step-line {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }

    /* Hide desktop nav elements on mobile */
    .main-nav {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    /* Show hamburger button on mobile */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Keep glass-nav as a single row on mobile */
    .glass-nav {
        padding: 12px 20px;
    }

    .site-header {
        top: 10px;
        padding: 0 10px;
    }

    .hero {
        padding-top: 120px;
    }

    /* Footer stacked on mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links a {
        padding: 10px 16px;
    }
}

/* Features Page Styles */
.features-hero,
.pricing-hero,
.faq-hero {
    padding: 180px 20px 40px;
}

/* Feature Rows (Zig-Zag Layout) */
.feature-row {
    padding: 60px 0;
    position: relative;
}

.feature-row:nth-child(even) {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
}

.row-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.row-layout.reverse {
    direction: rtl;
    /* Trick to reverse grid order visually */
}

.row-layout.reverse .row-content {
    direction: ltr;
    /* Reset text direction */
}

.row-layout.reverse .row-visual {
    direction: ltr;
    /* Reset visual direction */
}

.row-content {
    max-width: 500px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--primary-glow);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.row-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.row-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.feature-list li i {
    color: var(--accent);
    font-size: 1.2rem;
}

.row-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating Card Positioning for Feature Rows */
.row-visual .floating-card {
    position: absolute;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

.card-right-top {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.card-left-bottom {
    bottom: 10%;
    left: -20px;
    animation-delay: 2s;
}

.card-left-top {
    top: 10%;
    left: -20px;
    animation-delay: 1s;
}

.card-right-bottom {
    bottom: 10%;
    right: -20px;
    animation-delay: 3s;
}

@media (max-width: 992px) {
    .row-layout {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .row-layout.reverse {
        direction: ltr;
    }

    .row-content {
        margin: 0 auto;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    .row-visual {
        order: -1;
        /* Visual first on mobile */
    }
}

.small-frame {
    max-width: 600px;
    width: 100%;
    transform: rotateX(5deg);
}

/* FAQ Section */
.faq-section {
    padding: 0 0 100px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .showcase-layout {
        grid-template-columns: 1fr;
    }

    .showcase-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 20px;
    }

    .tab-btn {
        min-width: 200px;
    }
}

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

/* Pricing Page Styles */
.pricing-hero {
    padding: 180px 20px 60px;
}

.pricing-section {
    padding: 60px 0 100px;
    display: flex;
    justify-content: center;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 50px;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, var(--bg-card) 100%);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.plan-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    color: #d8b4fe;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

:root[data-theme="light"] .plan-badge {
    background: rgba(139, 92, 246, 0.1);
    color: #6d5ba5;
    border-color: rgba(139, 92, 246, 0.2);
}

.plan-name {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.plan-price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-price span {
    font-size: 1.2rem;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
    font-weight: 500;
}

.plan-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.plan-features {
    text-align: left;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
    font-size: 1rem;
}

.feature-item i {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.plan-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);

}

/* Generic Content Page Styles */
.content-section {
    padding: 0 0 100px;
}

.text-container {
    max-width: 1000px;
    margin: 0 auto;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    color: var(--text-muted);
    line-height: 1.8;
}

.glass-card h2 {
    color: var(--text-main);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.glass-card h2:first-child {
    margin-top: 0;
}

.glass-card p {
    margin-bottom: 20px;
}

.glass-card ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.glass-card li {
    margin-bottom: 10px;
}

.glass-card strong {
    color: var(--text-main);
}

/* Contact Form Styles */
.form-card {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

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

.contact-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.contact-divider span {
    padding: 0 15px;
}

.direct-contact {
    text-align: center;
    color: var(--text-muted);
}

.direct-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

.form-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
    display: block;
}

/* Video Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    display: block;
}

/* Marquee Banner */
.marquee-container {
    background: transparent;
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    will-change: transform;
    /* Optimize for GPU */
}

.marquee-content span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 20px;
    opacity: 0.7;
}

.marquee-content .dot {
    color: var(--primary);
    font-size: 1.5rem;
    vertical-align: middle;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

/* Shared Stat Number Styles */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

:root[data-theme="light"] .stat-number {
    background: none;
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
}

.stat-number i {
    -webkit-text-fill-color: #fbbf24;
    /* Star color */
    font-size: 0.8em;
}

/* Stats Marquee Specifics */
.stats-marquee {
    background: transparent;
    border-top: 1px solid var(--border-light);
    border-bottom: none;
    padding: 30px 0;
}

.stat-item-marquee {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
    margin: 0 40px;
}

.stat-item-marquee .stat-number {
    font-size: 2.5rem;
    /* Slightly smaller for marquee */
    margin-bottom: 5px;
}

.stat-item-marquee .stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Light Mode Overrides for Marquees - Using body class for specificity */
body.light-theme .marquee-container,
:root[data-theme="light"] .marquee-container,
body.light-theme .stats-marquee,
:root[data-theme="light"] .stats-marquee {
    background: transparent !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    /* Very subtle border */
}

body.light-theme .marquee-content span,
:root[data-theme="light"] .marquee-content span {
    color: #000000 !important;
    font-weight: 700;
    opacity: 0.8;
}

body.light-theme .stat-item-marquee .stat-label,
:root[data-theme="light"] .stat-item-marquee .stat-label {
    color: #000000 !important;
    opacity: 1;
    font-weight: 600;
}

body.light-theme .stat-number,
:root[data-theme="light"] .stat-number {
    -webkit-text-fill-color: #6366f1 !important;
    /* Indigo for light mode */
    color: #6366f1 !important;
    background: none !important;
}

/* Mobile Responsiveness for Marquees */
@media (max-width: 768px) {
    .marquee-content span {
        font-size: 1rem;
        margin: 0 15px;
    }

    .stat-item-marquee .stat-number {
        font-size: 2rem;
    }

    .stat-item-marquee .stat-label {
        font-size: 0.9rem;
    }

    .stat-item-marquee {
        margin: 0 20px;
    }
}