/* =========================================
   VARIABLES & GLOBALS
========================================= */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --brand-primary: #10b981; /* Emerald */
    --brand-secondary: #3b82f6; /* Blue */
    --brand-accent: #0bf4a5;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --radius-lg: 24px;
    --radius-md: 12px;
    
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.2);
    --shadow-card: 0 20px 40px rgba(0,0,0,0.4);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   BACKGROUND BLOBS (DYNAMIC)
========================================= */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    /* left: -10%;
    width: 600px; */
    height: 600px;
    background: radial-gradient(circle, var(--brand-secondary) 0%, transparent 70%);
    animation: drift 20s infinite alternate linear;
}

.shape-2 {
    bottom: 10%;
    /* right: -5%;
    width: 500px; */
    height: 500px;
    background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
    animation: drift 15s infinite alternate-reverse linear;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

/* =========================================
   NAVIGATION
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(15, 23, 42, 0.6);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--brand-primary);
}

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

.nav-links a:hover {
    color: var(--brand-primary);
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

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

.btn-glass {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: white;
    backdrop-filter: blur(10px);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    max-width: 1200px;
    margin: auto;
    padding: 12rem 2rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand-accent);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    animation: slideUp 0.8s ease-out forwards;
}

.gradient-text {
    background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 90%;
    animation: slideUp 1s ease-out forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: slideUp 1.2s ease-out forwards;
}

/* =========================================
   MOCKUP WIDGET (GLASSMORPHISM)
========================================= */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2px;
}

.mockup-card {
    height: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    display: flex;
    gap: 8px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
}
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #10b981; }

.mockup-body {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}

.chart-line {
    height: 100px;
    width: 100%;
    border-bottom: 2px dashed var(--brand-secondary);
    position: relative;
}

.chart-line::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-accent);
    box-shadow: 0 0 20px var(--brand-accent);
}

.stats-row {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.stat-box {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: var(--radius-md);
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-box i {
    font-style: normal;
    font-size: 1.2rem;
}

/* =========================================
   FEATURES SECTION
========================================= */
.features {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
    text-align: center;
}

.features h2 {
    font-size: 2.8rem;
    margin-bottom: 4rem;
    font-weight: 700;
}

.features h2 span {
    color: var(--brand-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.feature-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-glass);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--bg-glass);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: var(--shadow-card);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
}

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

.feature-card p {
    color: var(--text-muted);
}

/* =========================================
   FOOTER
========================================= */
footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS UTILS
========================================= */
@keyframes slideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}



/* =========================================
   AI HIGHLIGHT SECTION
========================================= */
.ai-highlight {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.ai-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-list li::first-letter {
    color: var(--brand-accent);
    font-weight: bold;
}

.chatbot-mockup {
    height: 350px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-glass);
    font-weight: 600;
    text-align: center;
    background: rgba(16, 185, 129, 0.1);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.chat-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: hidden;
}

.msg {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    max-width: 85%;
    font-size: 0.95rem;
    animation: fadeIn 0.5s ease;
}

.msg.bot {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-glass);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.msg.user {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.msg.typing {
    background: transparent;
    border: none;
    color: var(--brand-accent);
    font-style: italic;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* New Mockup styles (moved from inline) */
.portal-body {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}
.portal-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}
.portal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}
.portal-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.portal-card {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    color: var(--brand-accent);
    width: 85%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.portal-card strong {
    color: white;
    font-size: 1.15rem;
}

/* RESPONSIVE (At the end to ensure override) */
@media (max-width: 908px) {
    .nav-links {
        display: none;
    }
    .nav-container {
        flex-direction: column;
    }
    .nav-actions {
        margin-top: 0.5rem;
    }
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        margin: 0 auto 2rem;
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
    .ai-highlight {
        grid-template-columns: 1fr !important; /* Force single column */
        padding: 2.5rem 1rem;
        margin: 3rem 1rem;
        gap: 2rem;
        text-align: center;
    }
    .ai-content h2 {
        font-size: 1.8rem;
    }
    .check-list li {
        text-align: left;
        font-size: 0.95rem;
    }
    .chatbot-mockup {
        height: auto;
        min-height: 280px;
    }
    .portal-card {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================
   TESTIMONIALS SECTION
========================================= */
.testimonials {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-glass);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    text-align: left;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-primary);
}

.user-info h4 {
    font-size: 1rem;
    margin: 0;
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   PRICING SECTION
========================================= */
.pricing {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: rgba(30, 41, 59, 0.3);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--brand-primary);
    background: rgba(16, 185, 129, 0.05);
    transform: scale(1.05);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
}

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

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    flex: 1;
}

.pricing-features li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.pricing-features li::before {
    content: "✓";
    color: var(--brand-primary);
    margin-right: 0.5rem;
    font-weight: 700;
}

/* =========================================
   FAQ SECTION
========================================= */
.faq {
    max-width: 800px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--brand-accent);
}

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

@media (max-width: 908px) {
    .pricing-card.popular {
        transform: scale(1);
    }
}

/* =========================================
   FINAL CTA SECTION
========================================= */
.cta-final {
    max-width: 100%;
    padding: 10rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.05) 100%);
    border-top: 1px solid var(--border-glass);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-final h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.cta-final p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.cta-final .hero-buttons {
    justify-content: center;
}

@media (max-width: 908px) {
    .cta-final h2 {
        font-size: 2.2rem;
    }
    .cta-final {
        padding: 6rem 1.5rem;
    }
}
