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

:root {
    /* Color palette inspired by pandas docs */
    --primary-blue: #13294B;
    --secondary-blue: #4B8BBE;
    --accent-blue: #306998;
    --light-blue: #E8F4F8;
    --success-green: #28A745;
    --warning-yellow: #FFC107;
    --danger-red: #DC3545;
    --gray-50: #F8F9FA;
    --gray-100: #E9ECEF;
    --gray-200: #DEE2E6;
    --gray-300: #CED4DA;
    --gray-700: #495057;
    --gray-900: #212529;
    --text-primary: #2C3E50;
    --text-secondary: #666;
    --border-color: #E1E4E8;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #FFFFFF;
}

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

code, pre {
    font-family: 'Roboto Mono', 'Consolas', 'Monaco', monospace;
}

/* Navigation */
.navbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

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

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

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

.btn-github {
    background: var(--primary-blue);
    color: #FFFFFF !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.btn-github:hover {
    background: var(--accent-blue);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, #FFFFFF 100%);
    padding: 4rem 0 5rem;
    text-align: center;
}

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

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-badges img {
    height: 20px;
}

.hero-install {
    margin-bottom: 2rem;
}

.install-snippet {
    background: var(--gray-900);
    color: #FFFFFF;
    padding: 1.25rem 2rem;
    border-radius: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.install-prompt {
    color: var(--success-green);
    font-weight: 600;
}

.install-snippet code {
    color: #FFFFFF;
}

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

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-blue);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 139, 190, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: #FFFFFF;
}

.platform-icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.platform-badge {
    background: #FFFFFF;
    color: var(--accent-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.subsection-title {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* Features Section */
.features {
    background: var(--gray-50);
}

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

.feature-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

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

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

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

/* Architecture Section */
.architecture {
    background: #FFFFFF;
}

.architecture-diagrams {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.diagram {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.architecture-benefits-table {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.benefits-table {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-width: 800px;
}

.benefits-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.benefits-table tbody tr:last-child {
    border-bottom: none;
}

.benefits-table tbody tr:hover {
    background: var(--light-blue);
}

.benefits-table .check-icon {
    padding: 1.5rem;
    text-align: center;
    width: 80px;
}

.benefits-table .check-icon i {
    color: var(--success-green);
    font-size: 1.8rem;
}

.benefits-table .benefit-text {
    padding: 1.5rem 2rem 1.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Installation Section */
.installation {
    background: var(--gray-50);
}

.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.install-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.install-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.install-card pre {
    background: var(--gray-900);
    color: #FFFFFF;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0;
}

.install-card code {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Quick Start Section */
.quickstart {
    background: #FFFFFF;
}

.code-example {
    background: var(--gray-900);
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.code-header {
    background: var(--primary-blue);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-lang {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-example pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 0;
}

.code-example code {
    color: #F8F8F2;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Prism.js Monokai Theme Override */
.code-example .token.comment,
.code-example .token.prolog,
.code-example .token.doctype,
.code-example .token.cdata {
    color: #75715E;
    font-style: italic;
}

.code-example .token.punctuation {
    color: #F8F8F2;
}

.code-example .token.property,
.code-example .token.tag,
.code-example .token.constant,
.code-example .token.symbol,
.code-example .token.deleted {
    color: #F92672;
}

.code-example .token.boolean,
.code-example .token.number {
    color: #AE81FF;
}

.code-example .token.selector,
.code-example .token.attr-name,
.code-example .token.string,
.code-example .token.char,
.code-example .token.builtin,
.code-example .token.inserted {
    color: #E6DB74;
}

.code-example .token.operator,
.code-example .token.entity,
.code-example .token.url,
.code-example .language-css .token.string,
.code-example .style .token.string,
.code-example .token.variable {
    color: #F8F8F2;
}

.code-example .token.atrule,
.code-example .token.attr-value,
.code-example .token.function,
.code-example .token.class-name {
    color: #A6E22E;
}

.code-example .token.keyword {
    color: #66D9EF;
    font-weight: 600;
}

.code-example .token.regex,
.code-example .token.important {
    color: #FD971F;
}

.code-example .token.important,
.code-example .token.bold {
    font-weight: bold;
}

.code-example .token.italic {
    font-style: italic;
}

/* Platform Comparison Section */
.platform-comparison {
    background: var(--gray-50);
}

.table-responsive {
    overflow-x: auto;
    margin-top: 3rem;
}

.comparison-table {
    width: 100%;
    background: #FFFFFF;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comparison-table thead {
    background: var(--primary-blue);
}

.comparison-table th {
    color: #FFFFFF;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
    background: var(--light-blue);
}

.supported {
    color: var(--success-green);
    font-weight: 600;
}

.partial {
    color: var(--warning-yellow);
    font-weight: 600;
}

.not-supported {
    color: var(--gray-300);
}

/* Documentation Section */
.documentation {
    background: #FFFFFF;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.doc-card {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-blue);
    transition: transform 0.3s ease;
}

.doc-card:hover {
    transform: translateX(5px);
}

.doc-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

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

.doc-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.doc-link:hover {
    gap: 0.75rem;
}

/* Canonical Schema Showcase */
.canonical-showcase {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--light-blue) 100%);
    padding: 5rem 0;
}

.showcase-image {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.showcase-image .diagram {
    max-width: 800px;
    width: 100%;
    height: auto;
}

/* Use Cases Section */
.use-cases {
    background: var(--gray-50);
    padding: 5rem 0;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.use-case-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.use-case-grid-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.use-case-grid-four .use-case-card-large {
    padding: 2rem;
}

@media (max-width: 1400px) {
    .use-case-grid-four {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    .use-case-grid-four .use-case-card-large {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .use-case-grid-four {
        grid-template-columns: 1fr;
    }
}

.use-case-card {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.use-case-card-large {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.use-case-icon {
    font-size: 3rem;
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
}

.use-case-card h3,
.use-case-card-large h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.use-case-card p,
.use-case-card-large p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.benefit-list i {
    color: var(--success-green);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: #FFFFFF;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .features-grid,
    .install-grid,
    .docs-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}

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

/* Selection Styling */
::selection {
    background: var(--secondary-blue);
    color: #FFFFFF;
}

/* Built For Section - Tabbed Interface */
.built-for {
    background: #FFFFFF;
    padding: 5rem 0;
}

.role-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
}

.role-tab {
    background: #FFFFFF;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
}

.role-tab i {
    font-size: 1.5rem;
}

.role-tab:hover {
    border-color: var(--secondary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 139, 190, 0.15);
}

.role-tab.active {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--accent-blue) 100%);
    color: #FFFFFF;
    border-color: var(--secondary-blue);
    box-shadow: 0 4px 16px rgba(75, 139, 190, 0.3);
}

.role-content {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.role-content.active {
    display: block;
}

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

.role-hero {
    text-align: center;
    margin: 3rem 0 2.5rem;
}

.role-icon-large {
    font-size: 5rem;
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
}

.role-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.role-desc {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.before-card,
.after-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.before-card {
    border-left: 6px solid var(--danger-red);
}

.after-card {
    border-left: 6px solid var(--success-green);
}

.before-card:hover,
.after-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.card-header i {
    font-size: 1.75rem;
}

.before-card .card-header i {
    color: var(--danger-red);
}

.after-card .card-header i {
    color: var(--success-green);
}

.card-header span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pain-points,
.benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pain-points li,
.benefits li {
    padding: 0.875rem 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
}

.pain-points li::before {
    content: "×";
    position: absolute;
    left: 0;
    color: var(--danger-red);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.benefits li {
    color: var(--text-primary);
}

.benefits li strong {
    color: var(--success-green);
    font-weight: 700;
}

/* Responsive - Built For Section */
@media (max-width: 900px) {
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .role-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .role-tab {
        justify-content: center;
    }

    .role-icon-large {
        font-size: 4rem;
    }

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