:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    --secondary-50: #fff7ed;
    --secondary-100: #ffedd5;
    --secondary-200: #fed7aa;
    --secondary-300: #fdba74;
    --secondary-400: #fb923c;
    --secondary-500: #f97316;
    --secondary-600: #ea580c;
    --secondary-700: #c2410c;

    --dark-bg: #0b1120;
    --dark-surface: #1a1f36;
    --dark-border: #2a3050;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-400);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Page Header */
.page-header {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--primary-900), var(--dark-bg));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.1), transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
.section {
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.section-header p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-700);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.card p {
    color: #94a3b8;
    line-height: 1.7;
}

.card ul {
    list-style: none;
    margin-top: 1rem;
}

.card li {
    padding: 0.5rem 0;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card li::before {
    content: "✓";
    color: var(--primary-400);
    font-weight: bold;
}

/* Pricing Cards */
.pricing-card {
    background: var(--dark-surface);
    border: 2px solid var(--dark-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary-500);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-400);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 400;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.button-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-600);
    color: white;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Mobile Responsive */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Responsiveness - Complete Overhaul */
@media (max-width: 768px) {
    /* Navigation Mobile Fix */
    nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid var(--dark-border);
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem;
        text-align: center;
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* Typography Mobile Fixes */
    h1, .page-hero h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        text-align: center;
        padding: 0 1rem;
    }

    h2 {
        font-size: 1.75rem !important;
        text-align: center;
        padding: 0 1rem;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
    }

    /* Container and Padding Fixes */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .section {
        padding: 3rem 1rem;
    }

    .page-hero {
        padding: 6rem 1rem 3rem;
        text-align: center;
    }

    /* Grid Layouts Mobile */
    .grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Trust Badges Mobile */
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .badge {
        width: 90%;
        max-width: 300px;
    }

    /* Social Proof Bar Mobile */
    .social-proof-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .proof-item {
        text-align: center;
    }

    /* Differentiators Mobile */
    .diff-grid {
        grid-template-columns: 1fr !important;
    }

    .diff-card {
        padding: 1.5rem;
    }

    /* CTA Buttons Mobile */
    .cta-button,
    .cta-button-large,
    .primary-button,
    .secondary-button {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    /* Hero Buttons Mobile */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Pricing Cards Mobile */
    .pricing-card {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }

    .price {
        font-size: 2.5rem !important;
    }

    /* Tables Mobile */
    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem 0.5rem !important;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .footer-section ul {
        text-align: center;
    }

    .footer-trust {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-trust span {
        margin: 0.25rem 0 !important;
    }

    /* Forms Mobile */
    .form-row {
        grid-template-columns: 1fr !important;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    input, textarea, select {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    /* FAQ Mobile */
    .faq-categories {
        flex-direction: column;
        gap: 0.5rem;
    }

    .faq-category {
        width: 100%;
        padding: 0.75rem;
    }

    .faq-item {
        padding: 0;
    }

    .faq-question {
        padding: 1rem;
    }

    /* Case Studies Mobile */
    .case-card {
        margin-bottom: 1.5rem;
    }

    .stats-banner {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 2rem 1rem;
    }

    /* Resources Mobile */
    .resource-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .category-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Demo Page Mobile */
    .demo-grid {
        grid-template-columns: 1fr !important;
    }

    /* About Page Mobile */
    .team-grid {
        grid-template-columns: 1fr;
    }

    .mission-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    /* Urgency Banner Mobile */
    .urgency-banner {
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
        text-align: center;
        margin: 1rem auto !important;
        max-width: 90%;
    }

    /* Page Hero Mobile */
    .page-hero .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        margin-top: 1rem;
    }

    /* Center All Content */
    .section-header,
    .section-title {
        text-align: center;
    }

    /* Card Components Mobile */
    .card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Timeline Mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }

    /* Awards Grid Mobile */
    .awards-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Newsletter Form Mobile */
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    /* Contact Options Mobile */
    .contact-options {
        grid-template-columns: 1fr;
    }

    /* Competitive Comparison Table Mobile */
    .comparison-table {
        overflow-x: auto;
    }

    /* Fix Font Weights Mobile */
    h1, h2, h3, h4, h5, h6 {
        font-weight: 700 !important;
    }

    .gradient-text {
        font-weight: 900 !important;
    }

    strong {
        font-weight: 700 !important;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    h1, .page-hero h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .badge {
        min-width: auto;
        padding: 0.5rem 0.75rem;
    }

    .badge-number {
        font-size: 1.25rem;
    }

    .badge-text {
        font-size: 0.7rem;
    }

    .stats-banner {
        grid-template-columns: 1fr;
    }

    .price {
        font-size: 2rem !important;
    }

    .cta-button,
    .primary-button,
    .secondary-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    nav {
        padding: 0.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        font-size: 1.25rem;
    }
}