/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0f172a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --success: #22c55e;
    --mpesa: #22c55e;
    --emola: #f97316;
    --text-gray: #94a3b8;
    --border-gray: #374151;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

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

.btn-ghost:hover {
    color: white;
    background: var(--navy-light);
}

.btn-hero {
    background: var(--accent);
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

.btn-hero:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.4);
}

.btn-trial {
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
}

.btn-trial:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid var(--border-gray);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-full {
    width: 100%;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--navy-light);
    z-index: 1000;
    padding: 16px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #fb7c16);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.desktop-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: var(--navy-light);
    border-top: 1px solid var(--border-gray);
    padding: 20px;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link {
    color: var(--text-gray);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: white;
}

.mobile-btn {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2332 50%, var(--navy-light) 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-trial {
    margin-top: 32px;
}

/* Demo Mockup */
.demo-mockup {
    margin-top: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mockup-container {
    background: #1f2937;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.chat-header {
    background: #22c55e;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.chat-info .chat-name {
    font-weight: 600;
    color: white;
}

.chat-info .chat-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.chat-messages {
    padding: 20px;
    background: #374151;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 70%;
    font-size: 14px;
    line-height: 1.4;
}

.bot-message {
    background: #22c55e;
    color: white;
    align-self: flex-start;
}

.user-message {
    background: #4b5563;
    color: white;
    align-self: flex-end;
}

.mockup-caption {
    text-align: center;
    padding: 16px;
    font-size: 14px;
    color: var(--text-gray);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--navy-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: white;
}

.step h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.step p {
    color: var(--text-gray);
    font-size: 16px;
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--navy);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--navy-light);
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-card i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Dashboard Preview */
.dashboard-preview {
    padding: 100px 0;
    background: var(--navy-light);
}

.dashboard-mockup {
    background: #1f2937;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    min-height: 400px;
}

.dashboard-sidebar {
    width: 250px;
    background: var(--navy);
    padding: 20px;
    border-right: 1px solid var(--border-gray);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    color: var(--text-gray);
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-item.active {
    background: var(--accent);
    color: white;
}

.sidebar-item:hover:not(.active) {
    background: var(--navy-light);
    color: white;
}

.dashboard-main {
    flex: 1;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-gray);
}

.dashboard-header h3 {
    font-size: 24px;
    font-weight: 600;
}

.funnel-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.funnel-card {
    background: var(--navy-light);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
}

.funnel-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6b7280;
    margin-bottom: 12px;
}

.funnel-status.active {
    background: var(--success);
}

.funnel-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.funnel-card p {
    font-size: 14px;
    color: var(--text-gray);
}

/* Pricing */
.pricing {
    padding: 100px 0;
    background: var(--navy-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--navy);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 32px 24px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border-color: var(--accent);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.pricing-card:first-child .price {
    color: var(--success);
}

.period {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.pricing-header p {
    color: var(--text-gray);
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
    margin-top: 32px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 14px;
}

.features-list i {
    color: var(--success);
}

.pricing-card.popular .features-list i {
    color: var(--accent);
}

/* FAQ */
.faq {
    padding: 100px 0;
    background: var(--navy);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-gray);
    margin-bottom: 16px;
}

.faq-question {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.show {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--navy-light);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-section p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Payment Methods */
.payment-methods {
    border-top: 1px solid var(--border-gray);
    padding-top: 32px;
    margin-bottom: 32px;
}

.payment-methods h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--navy);
    border-radius: 8px;
    min-width: 100px;
    transition: transform 0.3s ease;
}

.payment-item:hover {
    transform: translateY(-2px);
}

.payment-item i {
    font-size: 24px;
    color: #4f46e5;
}

.payment-item.mpesa i {
    color: var(--mpesa);
}

.payment-item.emola i {
    color: var(--emola);
}

.payment-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-gray);
}

.footer-bottom {
    border-top: 1px solid var(--border-gray);
    padding-top: 32px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

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

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

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--navy-light);
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 0 24px 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: white;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--navy);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
}

.modal-footer p {
    color: var(--text-gray);
    font-size: 14px;
}

.modal-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.show {
        display: block;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .btn-hero {
        padding: 14px 24px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 18px;
    }

    .steps-grid,
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pricing-card.popular {
        transform: none;
    }

    .dashboard-mockup {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 16px;
    }

    .sidebar-item {
        min-width: 120px;
        margin-right: 8px;
        margin-bottom: 0;
        justify-content: center;
        font-size: 12px;
    }

    .payment-icons {
        gap: 16px;
    }

    .payment-item {
        min-width: 80px;
        padding: 12px 16px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .modal-content {
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-hero {
        padding: 12px 20px;
        font-size: 13px;
    }

    .feature-card,
    .pricing-card {
        padding: 24px 20px;
    }

    .payment-icons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Utilities */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.show {
    display: block;
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Touch-friendly for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .sidebar-item,
    .nav-link,
    .mobile-nav-link {
        min-height: 44px;
    }
}