/* Panglot Sales - Modern Commercial Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --background: #ffffff;
    --surface: #f8fafc;
    --surface-alt: #f1f5f9;
    --text: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    --gradient-cta: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 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 25px 50px -12px rgba(0,0,0,0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    background: var(--background);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-cta);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-alt);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    background: var(--gradient-hero);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero .highlight {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero p.sox-full-name {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.hero p.sox-full-name strong {
    color: var(--accent);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: white;
    color: var(--primary-dark);
}

.hero .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* Stats Bar */
.stats-bar {
    background: var(--secondary);
    padding: 2rem 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sections */
section {
    padding: 5rem 0;
}

section.alt {
    background: var(--surface);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--background);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--secondary);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: var(--surface);
}

.price-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--success);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.price-tag.competitor {
    background: var(--text-secondary);
}

.savings {
    color: var(--success);
    font-weight: 700;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: var(--background);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--primary);
    position: relative;
    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(--gradient-cta);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card li::before {
    content: '\2713';
    color: var(--success);
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--background);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.testimonial-card p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-cta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.testimonial-info h4 {
    font-weight: 600;
    color: var(--secondary);
}

.testimonial-info span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-hero);
    padding: 5rem 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-dark);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.5);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Code Demo Section */
.code-demo {
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    margin: 0 auto;
}

.code-tabs {
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.code-tab {
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-block {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #e2e8f0;
    background: transparent;
}

.code-block code {
    color: inherit;
    background: none;
}

.inline-code {
    background: var(--surface-alt);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Inheritance Tree Visual */
.inheritance-example {
    max-width: 1000px;
    margin: 0 auto;
}

.example-context {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: 12px;
}

.example-context h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.example-context p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.inheritance-principle {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.principle-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
}

.principle-text {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.principle-text strong {
    color: var(--primary);
}

.principle-text em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.inheritance-tree-visual {
    background: var(--secondary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.inheritance-tree-visual.light {
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.inheritance-tree-visual.light .tree-connectors::before,
.inheritance-tree-visual.light .tree-connectors::after {
    background: var(--border);
}

.inheritance-tree-visual.light .tree-branch.emea::before,
.inheritance-tree-visual.light .tree-branch.apac::before {
    background: var(--border);
}

.inheritance-tree-visual.light .branch-placeholder {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-secondary);
}

.tree-level {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tree-level.level-2 {
    gap: 2rem;
    align-items: flex-start;
}

.tree-node {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s;
}

.tree-node:hover {
    transform: translateY(-2px);
}

.tree-node.root {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
    min-width: 200px;
}

.tree-node.parent {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.tree-node.parent.leaf {
    opacity: 0.7;
}

.tree-node.child {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    min-width: 110px;
    padding: 0.75rem 1rem;
}

.node-sku {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.node-desc {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.node-detail {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.node-children {
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.node-size {
    color: rgba(255,255,255,0.6);
    font-size: 0.65rem;
    margin-top: 0.5rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: rgba(0,0,0,0.15);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    display: inline-block;
}

.tree-connectors {
    display: flex;
    justify-content: center;
    height: 30px;
    position: relative;
}

.tree-connectors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 15px;
    background: rgba(255,255,255,0.3);
}

.tree-connectors::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: rgba(255,255,255,0.3);
}

.tree-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tree-branch .tree-node {
    margin-top: 0.5rem;
}

.tree-branch.emea,
.tree-branch.apac {
    position: relative;
}

.tree-branch.emea::before,
.tree-branch.apac::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    width: 2px;
    height: 15px;
    background: rgba(255,255,255,0.3);
}

.tree-branch.empty {
    min-width: 140px;
}

.branch-placeholder {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 1.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.5rem;
}

.example-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.example-stat {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.example-code {
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
}

.example-code h4 {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 0.75rem 1.5rem;
    margin: 0;
    font-size: 0.875rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.example-code .code-block {
    margin: 0;
    padding: 1.5rem;
}

@media (max-width: 900px) {
    .tree-level.level-1,
    .tree-level.level-2 {
        flex-direction: column;
        align-items: center;
    }
    
    .example-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Multi-Parent Inheritance V2 Styles */
.multi-parent-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.multi-parent-visual {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 2rem;
    min-height: 400px;
}

.mp-graph {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.mp-level {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mp-level.mp-parents {
    gap: 0.75rem;
}

.mp-node {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    min-width: 140px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.mp-node.whitebox {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.mp-node.blackbox {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.mp-node.child-service {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
    min-width: 300px;
}

.mp-node-header {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.25rem;
}

.mp-node.whitebox .mp-node-header {
    color: #4ade80;
}

.mp-node.blackbox .mp-node-header {
    color: #f97316;
}

.mp-node-sku {
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.mp-node-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
}

.mp-connectors {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}

.mp-connector {
    width: 140px;
    height: 50px;
    position: relative;
}

.mp-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.mp-connector.chain::before {
    background: #4ade80;
}

.mp-connector.direct::before {
    background: #f97316;
    background: repeating-linear-gradient(
        to bottom,
        #f97316 0px,
        #f97316 5px,
        transparent 5px,
        transparent 10px
    );
}

.connector-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a2e;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
}

.mp-connector.chain .connector-label {
    color: #4ade80;
}

.mp-connector.direct .connector-label {
    color: #f97316;
}

.multi-parent-explanation {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.multi-parent-explanation h3 {
    margin: 0;
    color: var(--text);
}

.mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mode-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.25rem;
    border: 2px solid transparent;
}

.mode-card.chain-mode {
    border-color: #4ade80;
}

.mode-card.direct-mode {
    border-color: #f97316;
}

.mode-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.mode-card.chain-mode h4 {
    color: #4ade80;
}

.mode-card.direct-mode h4 {
    color: #f97316;
}

.mode-card p {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.mode-card ul {
    margin: 0 0 0.75rem 0;
    padding-left: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mode-card li {
    margin-bottom: 0.25rem;
}

.mode-card code {
    display: block;
    background: var(--secondary);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.parent-types h3 {
    margin-bottom: 0.75rem;
}

.comparison-table.compact {
    font-size: 0.875rem;
}

.comparison-table.compact th,
.comparison-table.compact td {
    padding: 0.5rem 0.75rem;
}

.multi-parent-code {
    margin-top: 2rem;
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
}

.multi-parent-code h4 {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 0.75rem 1.5rem;
    margin: 0;
    font-size: 0.875rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.multi-parent-code .code-block {
    margin: 0;
    padding: 1.5rem;
}

@media (max-width: 1000px) {
    .multi-parent-demo {
        grid-template-columns: 1fr;
    }
    
    .mode-cards {
        grid-template-columns: 1fr;
    }
    
    .mp-level.mp-parents {
        flex-wrap: wrap;
    }
    
    .mp-connectors {
        flex-wrap: wrap;
    }
}

/* Circular Call Protection Styles */
.circular-protection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.circular-visual {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cycle-diagram {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cycle-node {
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 80px;
}

.cycle-node .node-label {
    font-weight: 700;
    color: white;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
}

.cycle-node.node-blocked {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    position: relative;
}

.cycle-node .status-badge {
    display: block;
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: 700;
    margin-top: 0.25rem;
}

.cycle-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
}

.cycle-arrow .arrow-line {
    width: 40px;
    height: 2px;
    background: #4ade80;
    position: relative;
}

.cycle-arrow .arrow-line::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -4px;
    border: 5px solid transparent;
    border-left-color: #4ade80;
}

.cycle-arrow.arrow-blocked .arrow-line {
    background: #ef4444;
}

.cycle-arrow.arrow-blocked .arrow-line::after {
    border-left-color: #ef4444;
}

.cycle-arrow .arrow-method {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-top: 0.25rem;
}

.cycle-arrow .blocked-badge {
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.circular-explanation h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text);
}

.protection-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--text);
}

.step-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.step-content code.inline-code {
    background: var(--surface);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.error-response-demo {
    margin-top: 2rem;
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
}

.error-response-demo h4 {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.75rem 1.5rem;
    margin: 0;
    font-size: 0.875rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.error-response-demo .code-block {
    margin: 0;
    padding: 1.5rem;
}

@media (max-width: 900px) {
    .circular-protection {
        grid-template-columns: 1fr;
    }
    
    .cycle-diagram {
        flex-direction: column;
    }
    
    .cycle-arrow {
        transform: rotate(90deg);
    }
}

/* Language Agnostic Example Section */
.example-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    margin: 3rem 0;
    align-items: start;
}

.example-description {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.example-description h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.example-description p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.language-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.language-benefits li {
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.language-benefits li strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.25rem;
}

.code-example {
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-lang {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.code-file {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-example code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.code-example .keyword {
    color: #c084fc;
}

.code-example .function {
    color: #60a5fa;
}

.code-example .string {
    color: #a5f3fc;
}

.code-example .comment {
    color: #6b7280;
    font-style: italic;
}

.code-example .type {
    color: #fbbf24;
}

/* Service Hierarchy Section */
.hierarchy-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.hierarchy-section > h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.hierarchy-section > p {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.mermaid-container {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.mermaid-container .mermaid {
    display: flex;
    justify-content: center;
}

.hierarchy-explanation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hierarchy-card {
    background: var(--background);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hierarchy-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hierarchy-level {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hierarchy-level.parent {
    background: #e9d5ff;
    color: #7c3aed;
}

.hierarchy-level.child {
    background: #dbeafe;
    color: #2563eb;
}

.hierarchy-level.grandchild {
    background: #d1fae5;
    color: #059669;
}

.hierarchy-card h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.hierarchy-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* Resource Allocation Table */
.resource-allocation {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--background);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.resource-allocation h4 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.resource-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.resource-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.resource-table th {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: none;
}

.resource-table th:first-child {
    border-top-left-radius: 11px;
}

.resource-table th:last-child {
    border-top-right-radius: 11px;
}

.resource-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.resource-table tbody tr:hover {
    background: var(--surface);
}

.resource-table .level-parent {
    background: #faf5ff;
}

.resource-table .level-child {
    background: #eff6ff;
}

.resource-table .level-grandchild {
    background: #f0fdf4;
}

.resource-table .indent-1 {
    padding-left: 2rem;
}

.resource-table .indent-1::before {
    content: "L ";
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.resource-table .indent-2 {
    padding-left: 3.5rem;
}

.resource-table .indent-2::before {
    content: "L ";
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.resource-table .delta {
    color: var(--success);
    font-weight: 500;
}

.resource-table .total-row {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    font-weight: 600;
}

.resource-table .total-row td {
    border-bottom: 1px solid var(--border);
    border-top: 2px solid var(--primary);
}

.resource-table .standalone-row {
    background: #fef2f2;
    color: var(--text-secondary);
}

.resource-table .standalone-row td {
    border-bottom: 1px solid var(--border);
}

.resource-table .savings-row {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    font-weight: 600;
}

.resource-table .savings-row td {
    border-bottom: none;
}

.resource-table .savings-row td:first-child {
    border-bottom-left-radius: 11px;
}

.resource-table .savings-row td:last-child {
    border-bottom-right-radius: 11px;
}

.resource-table .savings-value {
    color: #059669;
    font-weight: 700;
    font-size: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-parent {
    background: #e9d5ff;
    color: #7c3aed;
}

.badge-child {
    background: #dbeafe;
    color: #2563eb;
}

.badge-grandchild {
    background: #d1fae5;
    color: #059669;
}

.resource-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.summary-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.summary-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-content h5 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.summary-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .example-container {
        grid-template-columns: 1fr;
    }
    
    .hierarchy-explanation {
        grid-template-columns: 1fr;
    }
    
    .resource-summary {
        grid-template-columns: 1fr;
    }
    
    .resource-table {
        font-size: 0.75rem;
    }
    
    .resource-table th,
    .resource-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .example-description {
        padding: 1.5rem;
    }
    
    .code-example pre {
        padding: 1rem;
    }
    
    .code-example code {
        font-size: 0.75rem;
    }
}
