/*
 * AxonFlow Landing Page Styles
 *
 * IMPORTANT: After modifying this file, update the version parameter in index.html
 * Example: <link rel="stylesheet" href="styles.css?v=20251015">
 * Increment the version number (e.g., ?v=20251016) to bust Cloudflare cache
 */

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

:root {
    --primary: #0F766E;
    --primary-dark: #134E4A;
    --primary-light: #14B8A6;
    --secondary: #0EA5E9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-light: #94A3B8;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;
    --border: #E2E8F0;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --gradient-primary: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
    --gradient-secondary: linear-gradient(135deg, #0EA5E9 0%, #3B82F6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.badge-icon {
    font-size: 16px;
}

h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 15px;
}

.hero-feature svg {
    color: var(--success);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 16px;
}

.primary-button {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.secondary-button {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.secondary-button:hover {
    background: var(--bg-light);
    border-color: var(--primary);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Problem Section */
.problem {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.problem-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.problem-stat {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

.problem-quote {
    background: var(--bg-gray);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.problem-quote blockquote {
    font-size: 20px;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.problem-quote cite {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Solution Section */
.solution {
    padding: 80px 0;
    background: var(--bg-light);
}

.solution-architecture {
    background: var(--bg-white);
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.arch-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.arch-layer {
    flex: 1;
    min-width: 200px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.arch-layer.axonflow {
    background: linear-gradient(135deg, #E0F2FE 0%, #DBEAFE 100%);
    border-color: var(--primary);
    flex: 2;
}

.arch-layer h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.arch-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.arch-items span {
    background: var(--bg-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.arch-components {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.component {
    background: var(--bg-white);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.component-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.component strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.component p {
    font-size: 12px;
    color: var(--text-secondary);
}

.arch-arrow {
    font-size: 24px;
    color: var(--primary);
    font-weight: bold;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.feature-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-card ul {
    list-style: none;
}

.feature-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
    padding-left: 24px;
    position: relative;
}

.feature-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Deployment Section */
.deployment {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.deployment-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: 16px;
    border: 2px solid var(--border);
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.deployment-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.deployment-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.deployment-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.deployment-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.deployment-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.deployment-card ul {
    list-style: none;
    margin-bottom: 32px;
}

.deployment-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

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

.deployment-cta {
    display: inline-block;
    padding: 12px 24px;
    background: var(--bg-light);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.deployment-cta:hover {
    background: var(--gradient-primary);
    color: white;
}

.deployment-cta.primary {
    background: var(--gradient-primary);
    color: white;
}

/* Market Section */
.market {
    padding: 80px 0;
    background: var(--bg-white);
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.market-stat {
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.traction {
    background: var(--bg-light);
    padding: 48px;
    border-radius: 20px;
}

.traction h3 {
    font-size: 28px;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
}

.traction-items {
    display: grid;
    gap: 24px;
}

.traction-item {
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.traction-icon {
    font-size: 32px;
}

.traction-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.traction-item p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
    color: white;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 20px;
    margin-bottom: 48px;
    opacity: 0.95;
}

.cta-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.cta-option {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-option h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.cta-option p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-option ul {
    list-style: none;
    margin-bottom: 24px;
}

.cta-option li {
    padding: 6px 0;
    opacity: 0.9;
}

.cta-option li:before {
    content: "→ ";
    margin-right: 8px;
}

.cta-option .primary-button,
.cta-option .secondary-button {
    width: 100%;
    justify-content: center;
}

.cta-option .primary-button {
    background: white;
    color: var(--primary);
}

.cta-option .secondary-button {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-contact {
    margin-top: 32px;
}

.cta-contact p {
    margin-bottom: 8px;
    opacity: 0.9;
}

.cta-contact a {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background: var(--text-primary);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer-column a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 6px 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -280px !important;
        width: 280px !important;
        height: 100vh !important;
        background: white !important;
        flex-direction: column !important;
        padding: 80px 20px 40px !important;
        transition: right 0.3s ease !important;
        box-shadow: -4px 0 6px rgba(0,0,0,0.1) !important;
        z-index: 1000 !important;
        display: flex !important;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid #e5e7eb;
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 999;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    h1 {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .solution-architecture {
        padding: 0;
        margin: 0 -20px;
        border-radius: 0;
    }

    .arch-diagram {
        flex-direction: column;
        padding: 20px;
    }

    .arch-layer {
        min-width: 0;
        flex: none;
        width: 100%;
        box-sizing: border-box;
    }

    .arch-components {
        grid-template-columns: 1fr;
    }

    .arch-arrow {
        transform: rotate(90deg);
    }
    
    .features-grid,
    .deployment-options {
        grid-template-columns: 1fr;
    }
    
    .deployment-card.featured {
        transform: none;
    }
    
    .cta-options {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

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

.hero-content,
.section-header,
.problem-card,
.feature-card,
.deployment-card,
.traction-item {
    animation: fadeIn 0.6s ease-out;
}

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