/* CSS Variables & Reset */
:root {
    /* Colors - Supabase Neon Green Palette (Soma137 V2) */
    --accent-color: #99BF00;
    /* Primary Green */
    --accent-hover: #B8E500;
    /* Mustard/Bright Green */
    --accent-highlight: #CDFF00;
    /* Neon Yellow/Green */
    --bg-color: #050505;
    /* Deepest Black */
    --bg-secondary: #0a0a0a;
    /* Secondary Dark */
    --bg-tertiary: #334000;
    /* Military Green (Dark) */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --border-color: rgba(153, 191, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Spacing */
    --container-width: 1400px;
    /* Wider container for modern look */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'Fira Code', 'Monaco', monospace;
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-highlight);
    color: #000;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.btn-primary,
.btn-secondary,
.section-title,
.hero h1,
.bento-card h3 {
    font-family: var(--font-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 48px;
    /* Desktop default padding */
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

.text-gradient {
    background: linear-gradient(90deg, #fff 0%, #86868b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .btn-primary {
    color: #334000;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    color: #334000;
    padding: 0.6rem 1.2rem;
    border-radius: 980px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.6s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(153, 191, 0, 0.4);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-secondary:hover {
    text-decoration: underline;
}





/* Supabase Style Utilities */

/* Glass Panel */
.glass-panel {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

/* Gradient Text */
.text-gradient-primary {
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(205, 255, 0, 0.9) 50%, rgba(153, 191, 0, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Supabase Primary Button */
.btn-supabase-primary {
    background: var(--accent-color);
    color: #000;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
}

.btn-supabase-primary:hover {
    background: var(--accent-highlight);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(153, 191, 0, 0.4);
    color: #000;
}

/* Supabase Secondary/Ghost Button */
.btn-supabase-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-supabase-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.btn-pill {
    border-radius: 99px !important;
}

/* Enhanced Glass/Glow CTA (Moved from Cortex) */
.btn-glow-glass {
    background: rgba(205, 255, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 1rem 2.5rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(205, 255, 0, 0.1);
    display: inline-block;
    text-decoration: none;
}

.btn-glow-glass:hover {
    background: var(--accent-color);
    color: #0f1205;
    /* Dark text on hover */
    box-shadow: 0 0 40px rgba(205, 255, 0, 0.6);
    transform: translateY(-2px);
}

.btn-glow-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-glow-glass:hover::after {
    left: 100%;
}

/* Grid Background Pattern */
/* Grid Background Pattern */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(153, 191, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(153, 191, 0, 0.03) 1px, transparent 1px);
}

/* Global Neon Glass CTA */
.btn-gold-card,
.btn-demo-header {
    background: rgba(204, 255, 0, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--accent-highlight) !important;
    color: var(--accent-highlight) !important;
    padding: 10px 24px !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;

    /* Layout */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;

    /* Initial Glow */
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.1) !important;
}

.btn-gold-card:hover,
.btn-demo-header:hover {
    background: var(--accent-highlight) !important;
    color: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.5), 0 0 60px rgba(204, 255, 0, 0.2) !important;
    border-color: var(--accent-highlight) !important;
}

.github-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

/* Supabase Header Styles */
.navbar-supabase {
    height: 80px;
    background: rgba(5, 5, 5, 0.85);
    /* Darker, stronger bg */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container-xl {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    /* Nuvemshop style spacing */
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-links-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-right: 40px;
    white-space: nowrap;
}

.nav-item {
    font-size: 15px;
    font-weight: 500;
    color: #E0E0E0;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item:hover {
    color: var(--accent-highlight);
}

/* Add chevron for dropdown feel */
.nav-item::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.5;
    margin-left: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.github-badge:hover {
    background: rgba(205, 255, 0, 0.1);
    border-color: var(--accent-color);
}

.github-badge i {
    color: var(--text-secondary);
}

.github-badge span {
    color: var(--accent-highlight);
}

/* Announcement Banner */
.announcement-banner {
    margin-top: 72px;
    /* Push below fixed header */
    height: 48px;
    background: linear-gradient(90deg, #334000 0%, #667F00 100%);
    border-bottom: 1px solid rgba(153, 191, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    z-index: 999;
}

.announcement-banner i {
    margin-left: 8px;
    color: var(--accent-highlight);
    font-size: 12px;
    transition: transform 0.2s;
}

.announcement-banner:hover i {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .nav-links-center {
        display: none;
        /* Hide menu on tablet/mobile for now */
    }

    .nav-container-xl {
        padding: 0 24px;
    }
}

/* Product Components (Bento Grid) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.product-card {
    background: linear-gradient(180deg, rgba(153, 191, 0, 0.03) 0%, rgba(51, 64, 0, 0.5) 100%);
    border: 1px solid rgba(153, 191, 0, 0.15);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Golden Card Shine Effect */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(205, 255, 0, 0.2), transparent);
    transition: 0.6s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-highlight);
    box-shadow: 0 15px 40px rgba(153, 191, 0, 0.15);
    background: linear-gradient(180deg, rgba(153, 191, 0, 0.08) 0%, rgba(51, 64, 0, 0.6) 100%);
}

.product-card:hover::after {
    left: 100%;
}

.product-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(153, 191, 0, 0.1);
    border-radius: 12px;
    color: var(--accent-highlight);
    font-size: 28px;
    /* Animation removed as requested */
}

/* Removed hover effects on icon */
.product-card:hover .product-card-icon {
    /* Keeping it static */
    background: rgba(153, 191, 0, 0.1);
    color: var(--accent-highlight);
}

.product-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.product-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 24px;
}

.product-card-link {
    color: var(--accent-highlight);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.product-card-link:hover {
    gap: 12px;
    /* Move arrow */
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Trusted By Carousel */
.trusted-section {
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(153, 191, 0, 0.1);
}

.trusted-label {
    font-size: 14px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    font-weight: 500;
}

.carousel-container {
    width: 100%;
    position: relative;
    display: flex;
    overflow: hidden;
    padding: 20px 0;
    /* Added padding to prevent hover clip */
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.logo-track {
    display: flex;
    gap: 60px;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.logo-item {
    height: 40px;
    opacity: 0.4;
    transition: all 0.3s;
    filter: grayscale(100%);
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1.2);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Supabase Footer Styles */
.footer-supabase {
    background: linear-gradient(180deg, #000 0%, #334000 100%);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(153, 191, 0, 0.15);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-highlight);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 2.4;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-col a:hover {
    color: #FFFFFF;
    transform: translateX(4px);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.social-icons a:hover {
    background: rgba(153, 191, 0, 0.2);
    color: var(--accent-highlight);
    transform: translateY(-4px);
}

.legal-text {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations (Consolidated) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Title Card Shine Effect */
.title-shine {
    position: relative;
    display: inline-block;
    /* Wrap text tightly */
    padding: 10px 20px;
    border-radius: 16px;
    border: 1px solid transparent;
    /* Hidden by default or user said "defined", we'll make it subtle */
    transition: all 0.4s ease;
    overflow: hidden;
}

/* If user wants borders already defined, we can give a very faint one */
.title-shine {
    border-color: rgba(153, 191, 0, 0.1);
}

.title-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(205, 255, 0, 0.2), transparent);
    transition: 0.6s ease;
    pointer-events: none;
}

.title-shine:hover {
    border-color: var(--accent-highlight);
    background: linear-gradient(180deg, rgba(153, 191, 0, 0.05) 0%, rgba(51, 64, 0, 0.3) 100%);
    box-shadow: 0 0 30px rgba(153, 191, 0, 0.1);
    transform: scale(1.02);
    /* Subtle pop */
}

.title-shine:hover::after {
    left: 100%;
}

/* --- NEW SECTIONS STYLES (HOMEPAGE OVERHAUL) --- */

/* Hero Typewriter */
.hero-typewriter span.cursor {
    display: inline-block;
    background-color: var(--accent-highlight);
    width: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Problem Section (Grid 2x2) */
.section-problem {
    background-color: var(--bg-tertiary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.problem-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.problem-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(153, 191, 0, 0.2);
    /* Subtle Brand/Gold border */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Gold/Brand Shine Effect */
.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(205, 255, 0, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-highlight);
    box-shadow: 0 10px 40px rgba(153, 191, 0, 0.1);
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-icon {
    font-size: 32px;
    margin-bottom: 24px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(205, 255, 0, 0.1) 0%, rgba(153, 191, 0, 0.05) 100%);
    border: 1px solid rgba(205, 255, 0, 0.2);
    border-radius: 16px;
    color: var(--accent-highlight);
    box-shadow: 0 0 20px rgba(153, 191, 0, 0.1);
    transition: all 0.4s ease;
}

.problem-card:hover .problem-icon {
    background: var(--accent-highlight);
    color: #000;
    box-shadow: 0 0 30px rgba(205, 255, 0, 0.4);
    transform: scale(1.1) rotate(-5deg);
}

/* Solution Steps */
.solution-steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
    position: relative;
}

.solution-step {
    text-align: left;
    position: relative;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    color: rgba(153, 191, 0, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 80px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--accent-highlight);
    font-weight: 800;
    margin-bottom: 8px;
}

/* Differentiators Grid 2x3 */
.differentiators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Default 3 cols for desktop */
    gap: 24px;
    margin-top: 60px;
}

.diff-card {
    padding: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.diff-card:hover {
    border-color: var(--accent-color);
}

/* Pricing Section */
.pricing-comparison {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 40px;
    border-radius: 24px;
}

.pricing-card.bad {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.1);
    opacity: 0.7;
}

.pricing-card.good {
    background: linear-gradient(180deg, rgba(153, 191, 0, 0.1) 0%, rgba(51, 64, 0, 0.4) 100%);
    border: 1px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(153, 191, 0, 0.1);
}

/* FAQ Accordion */
.accordion {
    max-width: 800px;
    margin: 60px auto 0;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--accent-color);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    color: var(--text-secondary);
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    /* Reasonable limit for smooth animation */
    padding-bottom: 24px;
    opacity: 1;
}

/* Inline Form */
.cta-form-inline {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 99px;
    max-width: 700px;
    /* Wider to avoid squeezing */
    margin: 40px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.cta-form-inline input,
.cta-form-inline select {
    background: transparent;
    border: none;
    padding: 0 16px;
    color: #fff;
    flex: 1;
    outline: none;
    font-size: 14px;
    min-width: 100px;
    /* Ensure basic width */
}

/* Custom Select Styling */
.cta-form-inline select {
    appearance: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
}

.cta-form-inline button {
    border-radius: 90px;
    white-space: nowrap;
    padding: 12px 24px;
    font-size: 14px;
}

/* --- Final Fixes --- */

/* Fix: Step Number Overlap */
.solution-step {
    position: relative;
    /* isolation: isolate; - ensuring local stack */
}

.solution-step .step-number {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 100px;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

.solution-step h3,
.solution-step p {
    position: relative;
    z-index: 2;
    /* Text above number */
}

/* Fix: Problem Section Background (Grey) */
.section-problem {
    background-color: #1a1a1a !important;
    background-image: radial-gradient(circle at 50% 0%, #2a2a2a 0%, #1a1a1a 70%);
}

.problem-card {
    background: rgba(255, 255, 255, 0.03);
}

.problem-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsiveness adjustments */
@media (max-width: 768px) {

    .problem-grid-container,
    .solution-steps-container,
    .stats-grid,
    .differentiators-grid {
        grid-template-columns: 1fr;
    }

    .pricing-comparison {
        flex-direction: column;
    }

    .cta-form-inline {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        border-radius: 0;
    }

    .cta-form-inline input,
    .cta-form-inline select,
    .cta-form-inline button {
        width: 100%;
        padding: 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        margin-bottom: 12px;
    }

    /* Mobile Horizontal Scroll (Carousel feel) */
    .features-grid,
    .problem-grid-container,
    .differentiators-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        gap: 16px;
        grid-template-columns: none;
        /* Override grid */
    }

    .features-grid>*,
    .problem-grid-container>*,
    .differentiators-grid>* {
        min-width: 85vw;
        /* Show mostly one card */
        scroll-snap-align: center;
        flex-shrink: 0;
    }
}

/* Header Adjustments */
.navbar-supabase .nav-logo img {
    height: 48px !important;
    /* Increased from 28px */
    transition: transform 0.3s;
}

.navbar-supabase .nav-logo:hover img {
    transform: scale(1.05);
}

/* Problem Section - Dark Grey Background */
.section-problem {
    background-color: #1a1a1a !important;
    /* Charcoal Grey */
    background-image: radial-gradient(circle at 50% 0%, #2a2a2a 0%, #1a1a1a 70%);
    /* Subtle gradient */
}

/* Step 3 Z-Index Fix */
.solution-step {
    z-index: 1;
    /* Ensure text is above watermark */
}

.step-number {
    z-index: 0;
    opacity: 0.05;
    /* Make it more subtle if overlapping text */
    font-size: 80px;
    /* Make it bigger background element */
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
}

/* Brand Green CTA (Replacing Gold) */
.btn-brand-gradient {
    background: linear-gradient(135deg, #99BF00 0%, #CDFF00 100%);
    color: #050505;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid #B8E500;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(153, 191, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-brand-gradient:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(205, 255, 0, 0.4);
    border-color: #fff;
}

.btn-brand-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.btn-brand-gradient:hover::after {
    left: 150%;
    transition: 0.7s;
}

/* Dark Mode Blueprint Background for Sections */
.section-problem,
.section-dark-blueprint {
    background-color: #050505 !important;
    /* Pure Dark */
    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);
    background-size: 40px 40px;
    /* Blueprint Grid */
    position: relative;
}

/* Vignette overlay for depth */
.section-problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #050505 90%);
    pointer-events: none;
}

/* Card adjustments for dark bg */
.problem-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.problem-card:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: var(--accent-color);
}

/* Updated Simulator Styles (Graph Structure) */
.impact-simulator {
    margin-top: 60px;
    background: rgba(10, 10, 10, 0.8);
    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);
    background-size: 20px 20px;
    /* Detailed Grid */
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(153, 191, 0, 0.1);
    /* Subtle Green Border */
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.simulator-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

/* Graph Container */
.graph-container {
    display: flex;
    height: 300px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
    /* Space for Y-axis */
    padding-bottom: 30px;
    /* Space for X-axis */
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grid Lines */
.grid-lines {
    position: absolute;
    top: 0;
    left: 40px;
    right: 0;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.grid-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.grid-line::before {
    content: attr(data-value);
    position: absolute;
    left: -35px;
    top: -6px;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Bars Area */
.graph-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 80px;
    position: relative;
}

.bar {
    width: 50px;
    background: #333;
    border-radius: 6px 6px 0 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 20%;
    /* Initial Low State */
    position: relative;
    display: flex;
    justify-content: center;
}

.bar-label {
    margin-top: 15px;
    /* Moved down */
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    position: absolute;
    bottom: -30px;
    width: 100px;
}

/* Custom Switch - Top Right */
.simulator-controls {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* No transform needed anymore */
}

/* ... existing switch styles ... */

.bar-value {
    position: absolute;
    top: -30px;
    font-size: 16px;
    font-weight: 700;
    color: #444;
    /* Dimmed for OFF state */
    opacity: 1;
    /* Always visible as requested */
    transform: translateY(0);
    transition: all 0.5s ease;
}

/* Update values dynamically via JS or use pseudo-elements? 
   JS is changing height, but text content needs JS or clever CSS. 
   Since we only have one set of spans in HTML, we need to update text via JS 
   OR use ::after with attr() but that's complex for transitions.
   Let's update the JS to change the text content on toggle.
*/

/* Active State Colors */
.impact-simulator.active .bar-value {
    color: #fff;
    transform: scale(1.1);
}

/* Simulator Stars */
.simulator-stars {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    height: 30px;
    /* Preserve space */
}

.simulator-stars .star {
    font-size: 24px;
    color: #333;
    /* Default dim */
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0);
}

/* Active State Styles */
.impact-simulator.active .stat-bar {
    /* Legacy class cleanup if any */
    background: var(--accent-color);
}

.impact-simulator.active .bar {
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(153, 191, 0, 0.4);
}

/* Specific Bar Heights on Active */
.impact-simulator.active .bar-efficiency {
    height: 90% !important;
    transition-delay: 0.1s;
}

.impact-simulator.active .bar-time {
    height: 70% !important;
    background: var(--accent-highlight) !important;
    transition-delay: 0.2s;
}

.impact-simulator.active .bar-velocity {
    height: 80% !important;
    transition-delay: 0.3s;
}

/* Active Values */
.impact-simulator.active .bar-value {
    opacity: 1;
    transform: translateY(0);
}

/* Active Stars Animation */
.impact-simulator.active .star {
    color: var(--accent-highlight);
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 15px rgba(205, 255, 0, 0.6);
}

/* Staggered Stars */
.impact-simulator.active .star:nth-child(1) {
    transition-delay: 0.6s;
}

.impact-simulator.active .star:nth-child(2) {
    transition-delay: 0.7s;
}

.impact-simulator.active .star:nth-child(3) {
    transition-delay: 0.8s;
}

.impact-simulator.active .star:nth-child(4) {
    transition-delay: 0.9s;
}

.impact-simulator.active .star:nth-child(5) {
    transition-delay: 1.0s;
}

/* Remove old stats stuff if still present */
.impact-display,
.stat-column,
.stat-bar,
.stat-value {
    display: none;
}

/* Switch Button Customization */
.switch-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.switch {
    width: 80px;
    /* Larger */
    height: 44px;
    margin: 0;
}

.slider {
    background-color: #2a2a2a;
    /* Dark Grey OFF */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}

.slider:before {
    height: 36px;
    width: 36px;
    left: 4px;
    bottom: 3px;
    background-color: #666;
    /* Grey Knob OFF */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Active Switch State */
input:checked+.slider {
    background-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(153, 191, 0, 0.4);
    border-color: var(--accent-highlight);
}

input:checked+.slider:before {
    background-color: #fff;
    transform: translateX(36px);
}

/* Label Styles Logic */
.label-off,
.label-on {
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
    opacity: 0.3;
    /* Default inactive look */
}

/* Logic: When checkbox is NOT checked (OFF) */
.switch-container:not(:has(input:checked)) .label-off {
    color: #888;
    /* Grey/Dull */
    opacity: 1;
    /* Highlights "CAOS" */
}

/* Logic: When checkbox IS checked (ON) */
.switch-container:has(input:checked) .label-on {
    color: var(--accent-highlight);
    opacity: 1;
    text-shadow: 0 0 10px rgba(153, 191, 0, 0.5);
}

.switch-container:has(input:checked) .label-off {
    opacity: 0.3;
}

/* Ensure bars are grey/dim in OFF state */
.bar {
    background: #222 !important;
    /* Force dark grey OFF */
    box-shadow: none !important;
}

/* Only color them in ACTIVE state */
.impact-simulator.active .bar-efficiency {
    background: var(--accent-color) !important;
}

.impact-simulator.active .bar-time {
    background: var(--accent-highlight) !important;
}

.impact-simulator.active .bar-velocity {
    background: var(--accent-color) !important;
}

/* Custom Switch - Top Right */
.simulator-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.switch-labels {
    display: flex;
    gap: 40px;
    /* Spacing between OFF and ON */
    font-size: 14px;
    font-family: var(--font-code);
}

.switch-custom {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 36px;
    /* Remove default checkbox look */
}

.switch-custom input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-custom {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #222;
    /* Dark OFF background */
    border: 1px solid #444;
    border-radius: 99px;
    /* Pill shape */
    transition: .4s;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Knob */
.slider-custom:before {
    position: absolute;
    content: "";
    /* We could put O or I here but using span approach */
    height: 28px;
    width: 36px;
    left: 4px;
    /* Start position */
    bottom: 3px;
    background-color: #666;
    /* Grey Knob OFF */
    border-radius: 99px;
    /* Pill knob */
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Text inside Slider Track (0 and I) */
.knob-text-off,
.knob-text-on {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    color: #555;
    pointer-events: none;
    transition: 0.3s;
}

.knob-text-off {
    left: 16px;
}

.knob-text-on {
    right: 16px;
    opacity: 0;
}

/* CHECKED STATE (ON) */
input:checked+.slider-custom {
    background-color: #1a1a1a;
    border-color: var(--accent-highlight);
    box-shadow: 0 0 15px rgba(153, 191, 0, 0.2);
}

input:checked+.slider-custom:before {
    transform: translateX(34px);
    /* Move knob right */
    background-color: var(--accent-highlight);
    box-shadow: 0 0 15px var(--accent-highlight);
}

/* Update Text Opacity/Color on Check */
input:checked~.switch-labels .label-on {
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-highlight);
}

input:checked~.switch-labels .label-off {
    opacity: 0.3;
}

/* Show/Hide O / I inside track */
/* Actually simpler: Put the text ON the knob or background? User sketch: [ 0  I ] with knob moving between. */
/* Let's keep the text static on background: 0 on left, I on right. Knob covers one. */

.slider-custom .knob-text-off {
    opacity: 1;
}

.slider-custom .knob-text-on {
    opacity: 0.3;
}

input:checked+.slider-custom .knob-text-off {
    opacity: 0.3;
}

input:checked+.slider-custom .knob-text-on {
    opacity: 1;
    color: var(--accent-highlight);
}