:root {
    /* Futuristic Premium Palette */
    --bg-dark: #030712;
    /* Deepest Blue/Black */
    --bg-card: rgba(17, 24, 39, 0.7);
    /* Glassy Dark Blue */
    --primary: #39e75f;
    /* Neon Green (Logo Match) */
    --primary-glow: rgba(57, 231, 95, 0.6);
    --accent: #0ea5e9;
    /* Sky Blue for depth */
    --accent-glow: rgba(14, 165, 233, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.15);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(57, 231, 95, 0.1);
}

.btn-outline:hover {
    background: rgba(57, 231, 95, 0.1);
    box-shadow: 0 0 20px rgba(57, 231, 95, 0.3);
}

.glow-btn {
    position: relative;
}

.glow-border {
    border: 1px solid var(--primary);
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-speed);
}

.glass-nav {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px var(--primary-glow);
    /* Make logo pop */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
    /* Account for fixed header */
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #111827 0%, #030712 100%);
    /* Deep Space Gradient */
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero-lead {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.hero-subheading {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.hero-features i {
    color: var(--primary);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Features Section (Bento Grid) */
.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: white;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s, border-color 0.3s;
    height: 100%;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.bento-card.span-2 {
    grid-column: span 2;
}

.bento-card.span-2-col {
    grid-column: span 2;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.5rem;
}

.bento-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: white;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* AI Engine Section */
.ai-section {
    position: relative;
}

.ai-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.ai-description {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.ai-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.ai-card .icon {
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ai-card h4 {
    color: white;
    margin-bottom: 5px;
}

.ai-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Flow Diagram */
.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.flow-step {
    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.step-icon {
    color: var(--primary);
}

.ai-pulse {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
    border: none;
    animation: pulse 2s infinite;
}

.ai-pulse .step-icon {
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.flow-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Use Cases */
.use-cases-section {
    background: rgba(255, 255, 255, 0.02);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.use-case-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s;
}

.use-case-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.uc-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.use-case-card h3 {
    color: white;
    margin-bottom: 10px;
}

.use-case-card p {
    color: var(--text-muted);
}

/* Dashboard Section */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.dashboard-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
}

.dashboard-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.dashboard-features i {
    color: var(--accent);
}

.analytics-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 600;
    color: white;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-item .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.value.success {
    color: var(--accent);
}

.value.danger {
    color: #ef4444;
}

.chart-area {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), #60a5fa);
    border-radius: 4px 4px 0 0;
    opacity: 0.7;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    color: white;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0 10px;
    color: white;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.pricing-features i {
    color: var(--accent);
    margin-right: 10px;
}

/* Customers */
.logo-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    opacity: 0.6;
}

.logo-item {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.quote {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-muted);
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 50%;
}

.author-info h4 {
    color: white;
    font-size: 1rem;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: white;
}

.faq-question h3 {
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-text h2 {
    color: white;
    margin-bottom: 20px;
}

.contact-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-info {
    margin: 30px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: white;
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    color: white;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: #0f172a;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {

    .hero-container,
    .dashboard-container,
    .ai-container,
    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.span-2,
    .bento-card.span-2-col {
        grid-column: span 1;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}