/* 
================================================================
AUREX ERP - PREMIUM SAAS DESIGN SYSTEM
================================================================
Author: Antigravity
Version: 2.0 (Restored)
Architecture: Modern CSS (Variables, Grid, Flexbox)
================================================================
*/

:root {
    /* Colors - Deep Slate / Indigo Palette */
    --brand-primary: #6366f1;
    --brand-primary-light: #818cf8;
    --brand-secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --primary-soft: rgba(0, 186, 124, 0.1);
    --primary: #00BA7C;

    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: rgba(30, 41, 59, 0.5);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);

    --grad-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --grad-surface: linear-gradient(to bottom right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));

    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);

    --nav-height: 80px;
}

/* 1. Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ambient Background Elements */
.site-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #020617 70%);
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.3;
}

.hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* 2. Components & Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 60px 0;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--brand-primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

.btn-accent {
    background: var(--accent);
    color: #000;
    border: none;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: var(--glass-bg);
    border-color: var(--brand-primary);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* 3. Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* 4. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-bottom: 5rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-visual {
    position: relative;
}

.hero-img-main {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}

.hero-float-card {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: var(--shadow-soft);
    z-index: 20;
    white-space: nowrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
}

.hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4.5 Trust Strip */
.trust-strip {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem 0;
}

.trust-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.trust-metric {
    text-align: center;
}

.trust-metric-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.trust-metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-sep {
    height: 40px;
    width: 1px;
    background: var(--glass-border);
}

/* 5. Feature Sections */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    background: var(--grad-surface);
    border-color: var(--brand-primary);
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--brand-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.feature-icon.green {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.feature-icon.amber {
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
}

.feature-icon.cyan {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Bento Layout */
.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(2, 350px);
    gap: 2rem;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    opacity: 0.4;
    transition: 0.5s;
}

.bento-item:hover .bento-img {
    transform: translate(-50%, -52%) scale(1.05);
    opacity: 0.6;
}

/* Showcase Grid (Features.html) */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-grid.reverse {
    direction: rtl;
}

.showcase-grid.reverse>* {
    direction: ltr;
}

.showcase-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
}

.showcase-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.showcase-list {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.showcase-list li {
    display: flex;
    align-items: start;
    gap: 1rem;
    color: var(--text-secondary);
}

.showcase-list li i {
    color: var(--brand-primary);
    margin-top: 0.25rem;
}

/* 6. Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-span-2 {
    grid-column: span 2;
}

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

    .form-span-2 {
        grid-column: span 1 !important;
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 1px solid var(--brand-primary);
    background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.1), rgba(0, 0, 0, 0));
    transform: scale(1.02);
    z-index: 5;
}

.pricing-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--grad-primary);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-plan {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin: 2.5rem 0;
    display: grid;
    gap: 1rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features .check {
    color: var(--success);
}

.pricing-features .cross {
    color: var(--text-muted);
    opacity: 0.5;
}

.pricing-features .muted {
    color: var(--text-muted);
}

/* 7. Footer */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding: 100px 0 50px;
}

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

/* Stats Section */
.stats-container {
    padding: 1rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-primary);
}

.stat-card .stat-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.stat-card:hover .stat-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.stat-card-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
}

.stat-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-primary);
}

.stat-card .stat-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.stat-card:hover .stat-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.stat-card-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 991.98px) {
    .stats-container {
        margin: 0 -1.5rem;
        /* Break out of container padding */
        padding: 1rem 1.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .stats-container::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .stats-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 1.5rem !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 2rem;
    }

    .stat-card {
        flex: 0 0 calc(85% - 1.5rem);
        min-width: 280px;
        scroll-snap-align: center;
    }
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (max-width: 576px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
}

.footer-brand img {
    height: 28px;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-muted);
    max-width: 300px;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: 0.3s;
}

.footer-social-link:hover {
    color: white;
    border-color: var(--brand-primary);
    background: var(--glass-bg);
}

.footer-col-title {
    font-size: 1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 8. Animation States (AOS) */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* 9. Mobile Responsiveness */
@media (max-width: 991.98px) {
    .hero {
        padding-top: 60px;
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 2.75rem !important;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
        margin: 0 auto 2rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

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

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        margin-top: 3rem;
    }

    .hero-visual {
        margin-top: 3rem;
        padding: 0 10px;
    }

    .showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center;
    }

    .showcase-grid.reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .showcase-list {
        text-align: left;
        display: inline-block;
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-grid,
    .feature-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-brand,
    .footer-socials {
        justify-content: center;
        align-items: center;
    }
}

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

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

    .pricing-card.featured {
        transform: scale(1);
    }

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

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-desc {
        margin: 0 auto 2rem;
    }

    .footer-socials {
        justify-content: center;
    }

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

    /* Fix potential overflow issues from large objects */
    img {
        max-width: 100%;
        height: auto;
    }

    .container {
        padding: 0 1rem;
        overflow: hidden;
    }

    .hero-visual {
        max-width: 100%;
        overflow: hidden;
    }
}