@import url('variables.css');

/* Base Styles */
body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .headline {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Background Art Logic */
.bg-art-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.12), transparent 70%);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.12), transparent 70%);
}

/* Glassmorphism Components */
.glass-nav {
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

/* Buttons */
.btn-primary-glow {
    background: var(--grad-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.btn-primary-glow:hover {
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
    transform: scale(1.02);
    color: white;
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Text Gradients */
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section Spacing */
section {
    padding: 100px 0;
}

.hero-section {
    padding: 160px 0 100px;
    text-align: center;
}

/* Responsive Spacing & Mobile Optimizations */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }

    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .glass-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Ultra-Small Mobile Devices (<= 444px) */
@media (max-width: 444px) {
    section {
        padding: 40px 0;
    }
    
    .hero-section {
        padding: 100px 0 40px;
    }

    /* Recover horizontal space by reducing absolute gutters */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Maximize content width inside cards */
    .glass-card {
        padding: 1.25rem;
    }

    /* Fluid scaling for section headers on tiny screens */
    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    /* Scale down body copy slightly to prevent awkward wrapping */
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    p {
        font-size: 0.95rem;
    }

    /* Reduce button footprint to prevent overflow clipping */
    .btn-lg {
        padding: 0.6rem 0.75rem !important; /* Overriding px-5 utilities */
        font-size: 0.85rem;
        min-width: 130px;
    }

    .btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem;
    }

    /* Ensure flex containers don't force overflow on tiny screens */
    .d-flex.gap-3 {
        gap: 0.5rem !important;
    }
}




/* UI Mockups */
.mockup-frame {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

.mockup-header {
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.dot { height: 8px; width: 8px; border-radius: 50%; margin-right: 6px; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }


/* --- Sales Page: Light Mode --- */
.sales-page-light {
    --bg-base: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-muted: #EDF2F7;
    --text-primary: #0F1115;
    --text-secondary: #4A5568;
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-blur: blur(8px);
}

.sales-page-light body {
    background-color: var(--bg-base);
    color: var(--text-primary);
}

.sales-page-light .glass-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.sales-page-light .glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.sales-page-light .bg-surface {
    background-color: var(--bg-surface) !important;
}

.sales-page-light h1, .sales-page-light h2, .sales-page-light h3, .sales-page-light h4 {
    color: var(--text-primary);
}

.sales-page-light .text-secondary {
    color: var(--text-secondary) !important;
}

.sales-page-light .hero-section {
    padding-top: 80px;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.sales-page-light .agitation-text {
    border-left: 2px solid var(--secondary-accent);
    color: var(--text-secondary);
}

.sales-page-light .btn-secondary-glass {
    background: #F8FAFC;
    color: #0F1115;
}

.sales-page-light .btn-secondary-glass:hover {
    background: #EDF2F7;
    color: #000000;
}

.sales-page-light .navbar {
    display: none !important; /* Remove nav for focused sales page */
}

.sales-page-light footer {
    background: var(--bg-surface);
    color: var(--text-secondary);
}
