/* Modern Professional Design - Vercel/Supabase Inspired */

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

:root {
    /* Modern Color Palette */
    --primary: #0070f3;
    --primary-dark: #0051cc;
    --accent: #7928ca;
    --success: #0070f3;
    --bg-dark: #000000;
    --bg-darker: #0a0a0a;
    --bg-gray: #111111;
    --bg-elevated: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-tertiary: #666666;
    --border: #333333;
    --border-light: #222222;
    --gradient-primary: linear-gradient(135deg, #0070f3 0%, #7928ca 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, #0070f3 0px, transparent 50%),
                     radial-gradient(at 80% 0%, #7928ca 0px, transparent 50%),
                     radial-gradient(at 0% 50%, #00dfd8 0px, transparent 50%);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.3;
}

/* Gradient Mesh Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: var(--gradient-mesh);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 0.875rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

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

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

.btn-github {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-github:hover {
    background: var(--bg-gray);
    border-color: var(--text-tertiary);
}

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

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    position: relative;
}

.hero .container {
    max-width: 960px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 112, 243, 0.4);
}

.btn-secondary {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-gray);
    border-color: var(--text-tertiary);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Sections */
section {
    padding: 4.5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* AI Agents Section */
.ai-agents {
    background: var(--bg-darker);
}

.agent-flow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 3.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.flow-step {
    padding: 2rem 1.5rem;
    text-align: center;
    border-right: 1px solid var(--border-light);
    transition: all 0.2s;
}

.flow-step:last-child {
    border-right: none;
}

.flow-step:hover {
    background: var(--bg-gray);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.flow-step h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.flow-step p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-tertiary);
}

/* Agent Types Grid */
.agent-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.agent-type-card {
    background: var(--bg-elevated);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.agent-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.agent-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.agent-type-card:hover::before {
    transform: scaleX(1);
}

.agent-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.agent-type-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.agent-type-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.agent-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 112, 243, 0.1);
    border: 1px solid rgba(0, 112, 243, 0.3);
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Integration Highlight */
.integration-highlight {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.integration-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.1;
}

.highlight-content {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.highlight-content h3 {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.highlight-content p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.highlight-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

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

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 112, 243, 0.1);
    border: 1px solid rgba(0, 112, 243, 0.3);
    border-radius: 8px;
}

.highlight-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Features */
.features {
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-elevated);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

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

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

/* Problem/Solution */
.problem-solution {
    background: var(--bg-darker);
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comparison-side {
    background: var(--bg-elevated);
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.comparison-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.comparison-side h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.comparison-side ul {
    list-style: none;
}

.comparison-side li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-light);
}

.comparison-side li:last-child {
    border-bottom: none;
}

/* Installation */
.installation {
    background: var(--bg-dark);
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.875rem;
}

.tab-btn:hover {
    border-color: var(--text-tertiary);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.code-block {
    position: relative;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.code-block pre {
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: #e6e6e6;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
    font-weight: 500;
}

.copy-btn:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

/* Real World */
.real-world {
    background: var(--bg-darker);
}

.cluster-nodes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.node-card {
    background: var(--bg-elevated);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s;
}

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

.node-image {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.node-card h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.node-card p {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.node-model {
    display: block;
    background: rgba(0, 112, 243, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
    color: var(--primary);
    font-weight: 500;
}

/* Architecture Diagram */
.arch-diagram {
    min-height: 500px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA */
.cta {
    background: var(--bg-dark);
    padding: 5rem 0;
}

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

.cta-content h2 {
    font-size: 2.125rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-light);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .agent-flow {
        grid-template-columns: 1fr;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .agent-types-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .comparison {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.875rem;
    }

    .cluster-nodes {
        grid-template-columns: 1fr;
    }
}

/* Focus */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
