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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #06b6d4;
    --background: #ffffff;
    --background-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.98);
    --code-bg: #f8fafc;
    --code-header-bg: #e2e8f0;
    --code-border: #cbd5e1;
    --code-text: #1e293b;
    --code-keyword: #0369a1;
    --code-string: #059669;
    --code-comment: #64748b;
    --hero-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --footer-bg: #0f172a;
    --footer-text: #ffffff;
    --footer-text-secondary: rgba(255, 255, 255, 0.7);
    --footer-border: rgba(255, 255, 255, 0.1);
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #94a3b8;
    --accent: #22d3ee;
    --background: #0f172a;
    --background-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: #334155;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --navbar-bg-scrolled: rgba(15, 23, 42, 0.98);
    --code-bg: #0d1117;
    --code-header-bg: #161b22;
    --code-border: #21262d;
    --code-text: #d4d4d4;
    --code-keyword: #569cd6;
    --code-string: #ce9178;
    --code-comment: #6a9955;
    --hero-bg: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --footer-bg: #f8fafc;
    --footer-text: #0f172a;
    --footer-text-secondary: rgba(15, 23, 42, 0.7);
    --footer-border: rgba(15, 23, 42, 0.1);
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-image {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

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

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

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

.github-star-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.github-star-link:hover {
    transform: translateY(-1px);
}

.github-star-link .github-icon {
    width: 1rem;
    height: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

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

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

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

.btn-secondary:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.github-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.star-text {
    color: #ffc32b;
    font-weight: 700;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--background-secondary);
    border-color: var(--primary);
}

.theme-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: absolute;
}

.theme-toggle:hover .theme-icon {
    color: var(--primary);
}

/* Show sun icon in light mode, hide moon */
.theme-icon.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon.moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

/* Show moon icon in dark mode, hide sun */
[data-theme="dark"] .theme-icon.sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

[data-theme="dark"] .theme-icon.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Hero Section */
.hero {
    margin-top: 5rem;
    padding: 4rem 0;
    background: var(--hero-bg);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Code Preview */
.hero-visual {
    display: flex;
    justify-content: center;
}

.code-preview {
    background: var(--code-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
}

.code-preview-centered {
    background: var(--code-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--code-header-bg);
    border-bottom: 1px solid var(--code-border);
}

.code-content {
    padding: 1.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--code-text);
    text-align: left;
    position: relative;
}

.code-copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.code-copy-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.code-copy-btn.copied {
    color: #10b981;
}

.code-copy-btn svg {
    width: 1rem;
    height: 1rem;
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
}

.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #28ca42; }

.code-title {
    color: var(--code-comment);
    font-size: 0.875rem;
}

/* Removed duplicate - merged with earlier definition */

.code-content .keyword { color: var(--code-keyword); }
.code-content .string { color: var(--code-string); }
.code-content .comment { color: var(--code-comment); }

/* Integration Section */
.integration {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.integration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.integration-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.integration-text p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.integration-features {
    margin-bottom: 2rem;
}

.integration-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-check {
    color: #10b981;
    font-weight: 700;
    font-size: 1.125rem;
}

.integration-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.integration-visual {
    display: flex;
    justify-content: center;
}

.integration-image {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 6rem 0;
}

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

/* Persona Section */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.persona-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.persona-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.persona-card:hover::before {
    left: 100%;
}

.persona-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.persona-card.active {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.persona-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.persona-card:hover .persona-icon {
    transform: scale(1.1);
}

.persona-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.persona-card:hover h3 {
    color: var(--primary);
}

.persona-card.active h3 {
    color: var(--primary);
}

.persona-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Workflows Display */
.workflows-display {
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease;
}

/* Removed workflows-title styles */

.workflows-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.workflows-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.workflow-item {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.workflow-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.workflow-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.workflow-item .workflow-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.workflow-item .workflow-features {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.workflow-item .workflow-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.workflow-item .workflow-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.workflow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.75rem;
    transition: color 0.3s ease;
}

.workflow-link:hover {
    color: var(--primary-dark);
}

.workflow-link svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Workflow CLI Examples */
.workflow-example {
    margin: 1rem 0;
}

.example-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.code-example {
    position: relative;
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 0.5rem;
    padding: 0.75rem 3rem 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow-x: auto;
}

.code-example:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.code-example code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    color: var(--code-text);
    white-space: pre-wrap;
    display: block;
    line-height: 1.4;
}

.copy-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.copy-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.copy-btn.copied {
    color: #10b981;
}

.copy-btn svg {
    width: 1rem;
    height: 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Enhanced styling for linked feature cards */
.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.feature-card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card-link:hover::before {
    left: 100%;
}

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

.feature-card-link:hover h3 {
    color: var(--primary);
    transition: color 0.3s ease;
}

.feature-card-link h3 {
    transition: color 0.3s ease;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Integrations Section */
.integrations {
    padding: 6rem 0;
}

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

.integration-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.integration-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.integration-logo {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.integration-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--primary);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

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

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

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

.cta .btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--footer-text);
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--footer-text-secondary);
}

/* Responsive Design */
@media (max-width: 905px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .persona-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .workflows-stack {
        max-width: 100%;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .integrations-grid {
        grid-template-columns: 1fr;
    }
    
    .integration-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .integration-buttons {
        justify-content: center;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
} 