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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #6b7280;
    --secondary-light: #9ca3af;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #111827;
    --dark-lighter: #1f2937;
    --light: #ffffff;
    --light-gray: #f9fafb;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Monaco', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--dark);
    background: var(--light);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar {
    padding: 1.25rem 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

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

.brand-logo {
    margin-right: 0.75rem;
    font-size: 2rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
}

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

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

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

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 0.5rem;
    display: inline-block;
    transition: all 0.3s ease;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }

p {
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* Code blocks */
code {
    font-family: var(--font-mono);
    background: var(--border);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

pre {
    background: var(--dark);
    color: var(--light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    background: none;
    padding: 0;
}

/* Main Content Layout */
main {
    background: var(--light);
}

section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background: var(--light-gray);
}

.container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

.container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

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

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

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .container h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Homepage specific */
.homepage {
    padding: 2rem 0;
}

.homepage h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.homepage h2 {
    text-align: center;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 3rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        #1e293b 0%, 
        #334155 30%, 
        #475569 60%, 
        #64748b 100%);
    opacity: 0.95;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

@media (max-width: 1200px) {
    .hero-container {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
        text-align: center;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 0.95rem;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.badge-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.title-main {
    display: block;
    margin-bottom: 0.5rem;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1em;
    font-weight: 700;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    justify-content: center;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-primary.btn-hero {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border: 2px solid transparent;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.25);
}

.btn-primary.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.35);
    background: white;
}

.btn-secondary.btn-hero {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.btn-secondary.btn-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-hero:hover .btn-icon {
    transform: translateX(4px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.8s ease-out 1s both;
}

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

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

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .code-preview {
        max-width: 100%;
    }
    
    .code-content {
        font-size: 0.7rem;
    }
}

/* Animations */
.hero-visual {
    position: absolute;
    bottom: -5%;
    right: 5%;
    z-index: 5;
    animation: fadeInRight 1s ease-out 1.2s both;
}

.code-preview {
    background: var(--dark);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.code-title {
    color: var(--light-gray);
    font-size: 0.8rem;
    font-family: 'Monaco', 'Menlo', monospace;
}

.code-content {
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--light-gray);
}

.code-content .comment { color: #565f89; }
.code-content .keyword { color: #f7768e; }
.code-content .variable { color: #e0af68; }
.code-content .string { color: #9ece6a; }
.code-content .function { color: #7dcfff; }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px) rotate(5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(5deg);
    }
}

@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    animation: fadeInUp 0.8s ease-out 1s both;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Install Buttons */
.install-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.install-option {
    background: white;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.install-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.install-option h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.install-option pre {
    background: var(--light);
    border: 1px solid var(--border);
    color: var(--dark);
    font-size: 0.9rem;
    padding: 1rem;
    margin: 1rem 0;
}

.install-option pre code {
    color: var(--primary);
    font-weight: 600;
}

/* Featured Install Option */
.install-option.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.02));
    position: relative;
}

.install-option.featured::before {
    content: "Recommended";
    position: absolute;
    top: -10px;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.install-details {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--secondary);
    line-height: 1.4;
}

.install-details br {
    margin-bottom: 0.25rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

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

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

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

/* Use Cases */
.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.use-case {
    background: var(--light-gray);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
}

.use-case h3 {
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.use-case p {
    color: var(--secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Pricing Table */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--secondary);
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
}

.period {
    font-size: 1rem;
    color: var(--secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--secondary);
    font-size: 0.95rem;
}

.pricing-features li:first-child {
    padding-top: 0;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 1.5rem;
    text-align: center;
}

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

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.cta-note {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .pricing-table {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .use-cases {
        grid-template-columns: 1fr;
    }
}

/* Architecture Overview */
.architecture-overview {
    background: white;
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.architecture-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.arch-box {
    background: var(--light-gray);
    border: 2px solid var(--primary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
}

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

.arch-box.server {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light), rgba(99, 102, 241, 0.1));
}

.arch-box.client {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.05));
}

.arch-box h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.arch-box p {
    margin: 0;
    color: var(--secondary);
    font-size: 0.9rem;
}

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

/* How It Works Section */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

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

.step-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    color: var(--secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .architecture-flow {
        flex-direction: column;
        gap: 1rem;
    }
    
    .arch-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }
    
    .how-it-works {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* How It Works Page Specific Styles */
.architecture-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

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

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

.component h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.component-features {
    margin-top: 1rem;
}

.component-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.component-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
    color: var(--secondary);
    position: relative;
    padding-left: 1.5rem;
}

.component-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.component-features li:last-child {
    border-bottom: none;
}

/* Content Page Styling */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.7;
}

.content-page h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.content-page h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin: 2rem 0 1rem 0;
    padding-left: 0.5rem;
    border-left: 4px solid var(--accent);
}

.content-page h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 1.5rem 0 0.75rem 0;
}

.content-page p {
    margin-bottom: 1.2rem;
    color: var(--secondary);
}

.content-page strong {
    color: var(--dark);
    font-weight: 600;
}

.content-page em {
    color: var(--primary);
    font-style: italic;
}

/* Code blocks and inline code */
.content-page pre {
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.content-page code {
    background: var(--light-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.content-page pre code {
    background: none;
    padding: 0;
    color: var(--dark);
}

/* Lists */
.content-page ul, .content-page ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-page li {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

/* Blockquotes */
.content-page blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}

/* Special sections for the how-it-works page */
.magic-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.magic-step {
    background: white;
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.magic-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.magic-step h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Personal page styling for about */
.about-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.about-section:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.about-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
    border: 2px solid var(--primary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.highlight-box p {
    margin-bottom: 0.5rem;
}

/* Tech tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tag {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Performance stats */
.perf-stat {
    background: var(--light-gray);
    border-left: 4px solid var(--accent);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    font-family: 'Fira Code', monospace;
}

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

.perf-stat .stat-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Section and Single Page Layouts */
.section-page, .single-page {
    min-height: 80vh;
    padding: 2rem 0;
}

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

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.2rem;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content h2 {
    color: var(--dark);
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.content h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.content p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.content code {
    background: var(--light-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

.content pre {
    background: var(--dark);
    color: var(--light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.content ul, .content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--light-gray);
    font-style: italic;
}

/* Featured install button */
.featured-install {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin: 2rem 0;
}

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

.featured-install h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.featured-install pre {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0;
}

.featured-install code {
    color: white;
    background: none;
    font-weight: 500;
}

/* Comparison Table Styles */
.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.approach {
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

.approach.traditional {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.approach.mcp {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.approach h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.mcp-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.ai-box, .tool-box, .protocol-box, .server-box {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

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

.tool-box {
    background: var(--light-gray);
    color: var(--secondary);
    border: 1px solid var(--border);
}

.protocol-box {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

.server-box {
    background: var(--dark);
    color: white;
}

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

.ai-examples {
    font-size: 0.7rem;
    color: var(--secondary);
    text-align: center;
}

.arrow {
    font-size: 1.2rem;
    color: var(--secondary);
}

.arrow.big {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.result {
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .comparison-table {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .mcp-diagram {
        flex-direction: column;
        gap: 1rem;
    }
    
    .arrow.big {
        transform: rotate(90deg);
    }
}