/* ============================
   1. Root Variables & Reset
   ============================ */
:root {
    --primary-color: #2563eb; /* Royal Blue */
    --primary-glow: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --bg-color: #050505; /* Pitch Black */
    --bg-secondary: #0f0f0f; /* Slightly Lighter for cards */
    --bg-tertiary: #18181b; /* Another dark shade for footers/inputs */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: #1f2937;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.highlight {
    color: var(--primary-glow);
}

.bg-darker {
    background-color: var(--bg-secondary);
}

/* ============================
   CORE ANIMATION: The Fast White Border
   ============================ */
.animated-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    padding: 2px;
    z-index: 1;
    background-color: var(--border-color);
    transition: transform 0.3s ease;
    height: 100%;
}

.animated-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, #ffffff); 
    animation: spin-border 1.5s linear infinite;
    transform-origin: center;
}

.animated-card:hover {
    transform: translateY(-5px);
}

.card-inner {
    background: var(--bg-secondary);
    border-radius: 16px;
    height: 100%;
    width: 100%;
    z-index: 2;
    position: relative;
}

@keyframes spin-border {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* ============================
   2. Navbar
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.mobile-only-btn { display: none; }
.desktop-only-btn { display: inline-block; }

.mobile-menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ============================
   3. Hero Section
   ============================ */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
}

.badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--primary-glow);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 50px;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    border-color: var(--primary-glow);
    background: rgba(255, 255, 255, 0.05);
}

/* ============================
   4. Brand Strip
   ============================ */
.brand-strip {
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 40px 0;
    text-align: center;
    background: var(--bg-color);
}

.brand-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.brand-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: var(--transition);
}
.brand-logos:hover { opacity: 0.8; }

.brand-item {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

/* ============================
   5. Cards (Pain Points)
   ============================ */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); 
    gap: 40px;
}

#pain-points .card-inner {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-glow);
    margin-bottom: 25px;
}

.card-inner h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card-inner p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ============================
   6. Video Section (Demo) - FOR IFRAME
   ============================ */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================
   7. Feature Split & Steps
   ============================ */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-list li {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.feature-list i {
    font-size: 1.8rem;
    color: var(--primary-glow);
    margin-top: 5px;
}
.feature-list strong { font-size: 1.2rem; display: block; margin-bottom: 5px;}
.feature-list p { color: var(--text-muted); }

.ui-mockup {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mockup-header {
    font-size: 0.9rem;
    color: #4ade80;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    font-family: monospace;
}

.msg-bubble {
    padding: 15px 20px;
    border-radius: 14px;
    margin-bottom: 15px;
    font-size: 1rem;
    max-width: 85%;
}

.msg-bubble.ai {
    background: var(--bg-tertiary);
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

.msg-bubble.user {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card-inner {
    text-align: center;
    padding: 50px 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.08); 
    line-height: 1;
    position: absolute;
    top: 20px;
    z-index: 0;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-glow);
    margin-bottom: 20px;
    z-index: 1; 
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

.step-card-inner h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    z-index: 1;
}
.step-card-inner p { 
    color: var(--text-muted); 
    z-index: 1;
}


/* ============================
   8. Testimonials & FAQ
   ============================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); 
    gap: 40px;
}

.review-card-inner {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(37,99,235,0.03) 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.review-text {
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1.7;
}

.reviewer strong {
    display: block;
    color: var(--primary-glow);
    font-size: 1.1rem;
}

.reviewer span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-main);
    padding: 25px 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.faq-answer p {
    padding-bottom: 25px;
}

.faq-question.active i {
    transform: rotate(45deg);
    color: var(--primary-glow);
}

/* ============================
   9. Contact Form (UPDATED)
   ============================ */
.contact-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, #0a1020 100%);
    padding-bottom: 150px;
}

.contact-wrapper-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    padding: 60px;
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.contact-text p { margin-bottom: 30px; color: var(--text-muted); font-size: 1.1rem;}

.contact-perks li {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.contact-perks i {
    color: var(--primary-glow);
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Generic Input Styling */
.contact-form input, 
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus, 
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Split Phone Input Styling */
.phone-input-group {
    display: flex;
    gap: 15px;
}

.phone-input-group input.country-code {
    width: 90px;
    text-align: center;
    flex-shrink: 0;
}

.phone-input-group input.mobile-number {
    flex: 1;
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* ============================
   10. Footer
   ============================ */
.footer-pro {
    background: var(--bg-tertiary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand-col p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: white;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary-glow);
}

.footer-newsletter p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: white;
}

.newsletter-form button {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.newsletter-form button:hover { background: var(--primary-glow); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.social-links-pro a {
    color: var(--text-muted);
    margin-left: 20px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links-pro a:hover {
    color: var(--primary-glow);
}


/* ============================
   11. Modals (Success & Newsletter)
   ============================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-secondary);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.modal-icon {
    font-size: 5rem;
    color: #4ade80;
    margin-bottom: 25px;
}
.modal-content h2 { font-size: 2rem; margin-bottom: 15px; }
.modal-content p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.1rem;}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}
.close-modal:hover { color: white; }

/* ============================
   12. Legal Modal Styling (Premium & Scrollable)
   ============================ */
#legalModal {
    align-items: center; /* Center vertically */
    padding: 20px;
}

.legal-modal-content {
    background: #0f0f0f;
    width: 800px;
    max-width: 100%;
    max-height: 85vh; /* 85% of screen height */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.legal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #141414;
}

.legal-header h2 {
    font-size: 1.5rem;
    color: var(--primary-glow);
    margin: 0;
}

.close-legal {
    position: static;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    padding: 5px;
}
.close-legal:hover { color: #fff; }

.legal-body-text {
    padding: 30px;
    overflow-y: auto; /* Scrollable area */
    text-align: left;
    font-size: 1rem;
    color: #ccc;
    line-height: 1.7;
    flex: 1; /* Takes remaining height */
}

.legal-body-text h3 {
    color: white;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.legal-body-text p { margin-bottom: 15px; }
.legal-body-text ul { margin-bottom: 20px; padding-left: 20px; }
.legal-body-text li { margin-bottom: 8px; list-style: disc;}

.legal-footer {
    padding: 15px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #141414;
    text-align: right;
}

/* Custom Scrollbar for Legal Modal */
.legal-body-text::-webkit-scrollbar { width: 8px; }
.legal-body-text::-webkit-scrollbar-track { background: #0f0f0f; }
.legal-body-text::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.legal-body-text::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }


/* ============================
   13. Mobile Responsive
   ============================ */
@media (max-width: 968px) {
    .hero-content h1 { font-size: 3rem; }
    .split-layout { gap: 40px; }
    .contact-wrapper { gap: 40px; padding: 40px; }
    .steps-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section-padding { padding: 70px 0; }
    .hero-content h1 { font-size: 2.5rem; }
    
    /* Navbar */
    .mobile-menu-icon { display: block; }
    .desktop-only-btn { display: none; }
    .mobile-only-btn { display: block; margin-top: 20px; }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 25px;
        clip-path: circle(0% at 100% 0);
        transition: all 0.5s ease-in-out;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }
    
    .nav-links a { font-size: 1.2rem; }
    .mobile-only-btn .btn-primary { width: 100%; padding: 15px 50px; }

    /* Hero Buttons */
    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .cta-group .btn-primary, .cta-group .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Pain Points */
    .icon-box { margin: 0 auto 25px auto; }
    #pain-points .card-inner { text-align: center; }

    /* Layout shifts */
    .video-grid, .split-layout, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper { padding: 30px; }
    
    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 30px; text-align: center;}
    .footer-brand-col p { margin: 20px auto; }
    .newsletter-form { max-width: 400px; margin: 0 auto; }
    .footer-bottom { flex-direction: column; gap: 20px; }
    .social-links-pro a { margin: 0 10px; }

    /* Legal Modal Mobile */
    #legalModal { padding: 10px; }
    .legal-modal-content { max-height: 90vh; }
    .legal-header { padding: 15px 20px; }
    .legal-header h2 { font-size: 1.2rem; }
    .legal-body-text { padding: 20px; font-size: 0.95rem; }
    .legal-footer { text-align: center; }
    .legal-footer button { width: 100%; }
}