:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #22c55e;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #0ea5e9 100%);
    --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: clip;
}

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

.redirect-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 32px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.redirect-page h1 {
    font-size: 2rem;
    line-height: 1.2;
}

.redirect-page p {
    color: var(--gray);
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    color: var(--gray);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-symbol {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: white;
    background: var(--gradient);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.24);
}

.brand-logo-mark {
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.05;
}

.brand-name {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-en {
    color: var(--gray);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.logo-white .brand-symbol {
    color: var(--primary-dark);
    background: white;
    box-shadow: none;
}

.logo-white .brand-name,
.logo-white .brand-en {
    color: white;
}

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

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

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

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid #e2e8f0;
}

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

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

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

.btn-dark:hover {
    background: var(--dark-light);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.mobile-panel.open {
    display: block;
}

.mobile-panel a {
    display: block;
    padding: 14px 24px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding-top: 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 0.75rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

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

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

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

.hero-visual {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 10%;
    left: -40px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 20%;
    right: -30px;
    animation-delay: 1.5s;
}

.floating-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.floating-card .icon.green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.floating-card .icon.blue {
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
}

.floating-card .text {
    font-weight: 600;
    font-size: 0.9375rem;
}

.floating-card .subtext {
    font-size: 0.75rem;
    color: var(--gray);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==================== Section Common ==================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--gray);
}

/* ==================== Features ==================== */
.features {
    background: var(--light);
}

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

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-icon.purple { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.feature-icon.blue { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; }
.feature-icon.green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.feature-icon.orange { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.feature-icon.pink { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ==================== Plugin Platform ==================== */
.plugin-platform {
    background: white;
}

.plugin-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}

.plugin-copy h2 {
    margin: 16px 0 20px;
    font-size: 2.5rem;
    line-height: 1.2;
}

.plugin-copy > p {
    color: var(--gray);
    font-size: 1.08rem;
    line-height: 1.8;
}

.plugin-points {
    display: grid;
    gap: 14px;
    margin: 28px 0;
    list-style: none;
}

.plugin-points li {
    display: flex;
    gap: 12px;
    color: var(--dark-light);
}

.plugin-points i {
    margin-top: 5px;
    color: var(--success);
}

.plugin-terminal {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #312e81;
    border-radius: 20px;
    background: #0f172a;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: #cbd5e1;
    background: #1e293b;
    font-size: 0.78rem;
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #475569;
}

.terminal-dots span:first-child { background: #fb7185; }
.terminal-dots span:nth-child(2) { background: #fbbf24; }
.terminal-dots span:last-child { background: #34d399; }

.plugin-terminal pre {
    margin: 0;
    padding: 28px;
    overflow-x: auto;
    color: #bae6fd;
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
    font-size: 0.9rem;
    line-height: 1.9;
}

.plugin-terminal .comment { color: #64748b; }
.plugin-terminal .command { color: #c4b5fd; }
.plugin-terminal .success { color: #86efac; }

.plugin-capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 28px 28px;
}

.plugin-capability {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    text-align: center;
}

/* ==================== Get Started ==================== */
.getstarted {
    background: var(--gradient-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.getstarted::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.03'%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");
}

.getstarted .section-header {
    position: relative;
    z-index: 1;
}

.getstarted .section-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.getstarted .section-title {
    color: white;
}

.getstarted .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.install-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 24px 32px;
    max-width: 700px;
    margin: 0 auto 48px;
    position: relative;
    z-index: 1;
}

.install-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.install-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.install-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.install-code {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 20px;
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
    font-size: 0.9375rem;
    color: #a5f3fc;
    overflow-x: auto;
    position: relative;
}

.install-code .comment {
    color: #94a3b8;
}

.install-code strong {
    color: white;
    font-family: inherit;
}

.install-code a {
    color: #bfdbfe;
    text-decoration: none;
}

.install-code a:hover {
    color: white;
    text-decoration: underline;
}

.install-note {
    color: #dbeafe;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    padding-right: 88px;
}

.install-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.install-action:hover {
    background: rgba(255, 255, 255, 0.24);
    text-decoration: none;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.requirements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.requirement {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.requirement i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

.requirement h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.requirement p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== Demo ==================== */
.demo {
    background: white;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.demo-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.demo-content p {
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.7;
}

.demo-features {
    list-style: none;
    margin-bottom: 32px;
}

.demo-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9375rem;
}

.demo-features li i {
    color: #22c55e;
}

.demo-credentials {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.demo-credentials h4 {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credential-row {
    display: flex;
    gap: 24px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.credential-item span:first-child {
    color: var(--gray);
    font-size: 0.875rem;
}

.credential-item code {
    background: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 600;
    color: var(--primary);
}

.demo-visual {
    position: relative;
}

.demo-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.demo-badge {
    position: absolute;
    top: -20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ==================== Community ==================== */
.community {
    background: var(--light);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.community-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.community-card i {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.community-card i.fa-github { color: #333; }
.community-card i.fa-discord { color: #5865f2; }
.community-card i.fa-book { color: var(--primary); }
.community-card i.fa-code-pull-request { color: #22c55e; }

.community-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.community-card p {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ==================== Showcase ==================== */
.showcase {
    background: white;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.showcase-item {
    background: var(--light);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: all 0.2s;
}

.showcase-item:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.showcase-item img {
    max-height: 40px;
    max-width: 140px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.2s;
}

.showcase-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.showcase-cta {
    text-align: center;
}

.showcase-cta p {
    color: var(--gray);
    margin-bottom: 16px;
}

/* ==================== About ==================== */
.about {
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-content > *,
.plugin-layout > * {
    min-width: 0;
}

.about-text p {
    overflow-wrap: anywhere;
}

.about-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-team {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.team-avatars {
    display: flex;
}

.team-avatars .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.team-avatars .avatar:first-child {
    margin-left: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.about-stat {
    background: white;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

.about-stat i {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.about-stat .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 4px;
}

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

/* ==================== CTA Section ==================== */
.cta-section {
    background: var(--gradient);
    padding: 80px 0;
    text-align: center;
    color: white;
}

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

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--dark);
    color: white;
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin: 16px 0 24px;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-col h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .nav-links,
    .nav-buttons {
        display: none;
    }

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

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .floating-card {
        display: none;
    }

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

    .plugin-layout {
        grid-template-columns: 1fr;
    }

    .demo-container {
        grid-template-columns: 1fr;
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
    }

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

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

    .nav-buttons {
        display: none;
    }

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

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

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

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

    .plugin-copy h2 {
        font-size: 2rem;
    }

    .plugin-capabilities {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

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

    .about-stat {
        min-width: 0;
        padding: 20px 12px;
    }

    .about-stat .value {
        font-size: 1.75rem;
        overflow-wrap: anywhere;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Shared Assets ==================== */
a {
    color: inherit;
}

.logo-image {
    display: block;
    width: 160px;
    height: auto;
}

.logo-white {
    color: white;
}

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

.team-caption {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

.heart-red {
    color: #ef4444;
}

.footer-bottom span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}


/* ==================== Documentation Pages ==================== */
.doc-hero {
    padding: 152px 0 88px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.doc-hero::before {
    content: "";
    position: absolute;
    top: -220px;
    right: -180px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}

.doc-hero::after {
    content: "";
    position: absolute;
    bottom: -260px;
    left: -180px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
}

.doc-hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.doc-hero h1 {
    font-size: 3.15rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doc-hero p {
    font-size: 1.18rem;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-panel {
    background: white;
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.panel-title i {
    color: var(--primary);
}

.quick-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.quick-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    color: var(--gray);
    font-size: 0.95rem;
}

.quick-list i {
    color: var(--success);
    margin-top: 4px;
}

.doc-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 44px;
    padding: 80px 24px 100px;
}

.toc {
    position: sticky;
    top: 96px;
    align-self: start;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.toc h2 {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.toc a {
    display: block;
    color: var(--dark);
    text-decoration: none;
    padding: 9px 0;
    font-size: 0.95rem;
    border-top: 1px solid #e8eef7;
}

.toc a:hover {
    color: var(--primary);
}

.doc-content {
    min-width: 0;
}

.doc-content > p {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.doc-section {
    scroll-margin-top: 100px;
    margin-bottom: 64px;
}

.doc-section h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.doc-content h3 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 28px 0 12px;
}

.doc-content h4 {
    font-size: 1.08rem;
    margin: 22px 0 10px;
}

.doc-content p,
.doc-content li {
    color: var(--gray);
}

.doc-content p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.doc-content ul,
.doc-content ol {
    padding-left: 22px;
    margin: 16px 0 22px;
}

.doc-content li {
    margin: 8px 0;
}

.doc-content a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.doc-content a:hover {
    color: var(--primary-dark);
}

.doc-intro-grid,
.doc-card-grid,
.doc-metric-grid,
.doc-step-grid {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.doc-intro-grid,
.doc-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doc-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.doc-step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doc-card,
.doc-metric,
.doc-step {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.doc-card h3,
.doc-step h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.doc-card p,
.doc-step p {
    margin: 0;
    color: var(--gray);
}

.doc-metric strong {
    display: block;
    color: var(--primary);
    font-size: 1.8rem;
    line-height: 1.1;
}

.doc-metric span {
    display: block;
    margin-top: 8px;
    color: var(--gray);
    font-size: 0.92rem;
}

.info-grid,
.step-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.info-card,
.step-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    min-width: 0;
}

.info-card h3,
.step-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.08rem;
    margin-bottom: 12px;
}

.info-card h3 i,
.step-card h3 i {
    color: var(--primary);
}

.info-card p,
.step-card p,
.info-card li,
.step-card li {
    color: var(--gray);
    font-size: 0.95rem;
}

.info-card ul,
.step-card ul {
    padding-left: 18px;
}

.info-card li,
.step-card li {
    margin: 8px 0;
}

.callout {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 16px;
    padding: 22px 24px;
    margin: 24px 0;
    color: var(--dark);
}

.callout strong {
    color: var(--primary-dark);
}

.callout p {
    margin: 10px 0 0;
}

.callout-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.08));
    border-color: rgba(245, 158, 11, 0.28);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    background: var(--light);
    font-size: 0.88rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

tr:last-child td {
    border-bottom: none;
}

code {
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
    background: #eef2ff;
    color: var(--primary-dark);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.9em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

pre {
    background: #0f172a;
    color: #a5f3fc;
    border-radius: 16px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 0.92rem;
    line-height: 1.7;
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    overflow-wrap: normal;
    word-break: normal;
}

.code-block {
    margin: 20px 0;
}

.code-block figcaption {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 10px 10px 0 0;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
}

.code-block figcaption + pre {
    margin-top: 0;
    border-top-left-radius: 0;
}

.checklist {
    display: grid;
    gap: 12px;
    margin: 18px 0 24px;
}

.check-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--gray);
}

.check-item i {
    color: var(--success);
    margin-top: 3px;
}

/* ==================== Docs Responsive ==================== */
@media (max-width: 1024px) {
    .hero-grid,
    .doc-shell {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
    }
}

@media (max-width: 720px) {
    .doc-hero {
        padding: 120px 0 64px;
    }

    .doc-hero h1 {
        font-size: 2.3rem;
    }

    .doc-hero p {
        font-size: 1.02rem;
    }

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

    .info-grid,
    .step-grid,
    .doc-intro-grid,
    .doc-card-grid,
    .doc-metric-grid,
    .doc-step-grid {
        grid-template-columns: 1fr;
    }

    .doc-shell {
        padding: 56px 20px 80px;
    }

    pre code {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* ==================== Open-source project redesign ==================== */
.oss-home,
.project-page {
    --oss-ink: #0b1020;
    --oss-panel: #11182b;
    --oss-muted: #667085;
    --oss-purple: #7667f7;
    --oss-cyan: #38bdf8;
    --oss-green: #4ade80;
    --oss-line: #e7e9f0;
    background: #ffffff;
}

.navbar {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.navbar .nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}

.oss-hero {
    position: relative;
    overflow: hidden;
    padding: 156px 0 104px;
    color: #fff;
    background:
        radial-gradient(circle at 75% 18%, rgba(118, 103, 247, 0.26), transparent 30%),
        radial-gradient(circle at 18% 76%, rgba(56, 189, 248, 0.13), transparent 27%),
        linear-gradient(145deg, #080b16 0%, #0d1325 55%, #101937 100%);
}

.oss-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black 20%, transparent 92%);
}

.oss-hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(460px, 0.97fr);
    gap: 74px;
    align-items: center;
}

.oss-kicker,
.project-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--oss-green);
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.12), 0 0 18px rgba(74, 222, 128, 0.55);
}

.oss-hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(3.35rem, 4.7vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 850;
}

.oss-hero h1 .hero-title-line {
    white-space: nowrap;
}

.oss-hero h1 .accent {
    color: transparent;
    background: linear-gradient(90deg, #a5b4fc 5%, #67e8f9 95%);
    background-clip: text;
    -webkit-background-clip: text;
}

.oss-hero-copy > p {
    max-width: 690px;
    margin: 28px 0 0;
    color: #aab6cc;
    font-size: 1.17rem;
    line-height: 1.85;
}

.oss-hero-actions,
.inline-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.oss-hero-actions {
    margin-top: 34px;
}

.oss-btn-light {
    color: #10162a;
    background: white;
    border: 1px solid white;
    box-shadow: 0 14px 32px rgba(0,0,0,0.2);
}

.oss-btn-light:hover {
    color: #10162a;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.28);
}

.oss-btn-ghost {
    color: #e7eaf3;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.2);
}

.oss-btn-ghost:hover {
    color: #fff;
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,255,255,0.34);
}

.oss-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    color: #8390a8;
    font-size: 0.84rem;
}

.oss-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.oss-trust-row i {
    color: var(--oss-green);
}

.repo-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 18px;
    background: rgba(10, 14, 27, 0.76);
    box-shadow: 0 35px 90px rgba(0,0,0,0.42), 0 0 0 1px rgba(118,103,247,0.08);
    backdrop-filter: blur(16px);
    transform: perspective(1200px) rotateY(-2.5deg) rotateX(1deg);
}

.repo-card-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    color: #cbd5e1;
    background: rgba(255,255,255,0.045);
    border-bottom: 1px solid rgba(255,255,255,0.11);
    font-size: 0.8rem;
}

.repo-dots {
    display: flex;
    gap: 6px;
}

.repo-dots span,
.app-window-bar > div span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fb7185;
}

.repo-dots span:nth-child(2),
.app-window-bar > div span:nth-child(2) { background: #fbbf24; }
.repo-dots span:nth-child(3),
.app-window-bar > div span:nth-child(3) { background: #4ade80; }

.repo-public {
    padding: 3px 8px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    font-size: 0.68rem;
}

.repo-card-body {
    padding: 20px;
}

.repo-branch,
.repo-release {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8e9ab1;
    font-size: 0.78rem;
}

.repo-branch span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.repo-file-list {
    margin: 16px 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
}

.repo-file-list div {
    display: grid;
    grid-template-columns: 18px 82px 1fr;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #d7ddea;
    font-size: 0.82rem;
}

.repo-file-list div:last-child { border-bottom: none; }
.repo-file-list i { color: #8b85ff; }
.repo-file-list small { color: #667189; }

.install-command {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 13px;
    border: 1px solid rgba(103,232,249,0.2);
    border-radius: 10px;
    background: #050811;
}

.install-command > span { color: var(--oss-green); }
.install-command code {
    overflow: hidden;
    padding: 0;
    color: #c6f6ff;
    background: transparent;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.install-command button {
    width: 30px;
    height: 30px;
    color: #9aa6bb;
    border: 0;
    border-radius: 7px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
}

.install-command button:hover,
.install-command button.copied { color: white; background: rgba(118,103,247,0.35); }

.repo-release {
    margin-top: 18px;
}

.repo-release span,
.repo-release a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.repo-release strong { color: #fff; }
.repo-release a { color: #9fa8ff; text-decoration: none; }

.project-facts {
    border-bottom: 1px solid var(--oss-line);
    background: #fbfbfd;
}

.project-facts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.project-facts-grid > * {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 28px;
    color: inherit;
    text-decoration: none;
    border-right: 1px solid var(--oss-line);
}

.project-facts-grid > *:first-child { border-left: 1px solid var(--oss-line); }
.project-facts-grid span { color: var(--oss-muted); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; }
.project-facts-grid strong { color: var(--oss-ink); font-size: 1rem; }
.project-facts-grid a:hover strong { color: var(--primary); }

.oss-section,
.product-showcase,
.resource-section,
.release-history,
.capability-catalog {
    padding: 108px 0;
}

.oss-section-heading,
.project-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 48px;
}

.oss-section-heading.centered {
    justify-content: center;
    text-align: center;
}

.oss-section-heading.centered p { margin-left: auto; margin-right: auto; }

.oss-section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.oss-section-label.light { color: #9fa8ff; }

.oss-section-heading h2,
.showcase-copy h2,
.extension-copy h2,
.architecture-copy h2,
.open-source-cta h2,
.project-section-heading h2 {
    margin: 0;
    color: var(--oss-ink);
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.oss-section-heading p,
.showcase-copy > p,
.architecture-copy p {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--oss-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover { gap: 12px; color: var(--primary); }

.oss-capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.oss-capability-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 25px;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--oss-line);
    border-radius: 16px;
    background: #fff;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.oss-capability-card:hover,
.resource-card:hover {
    transform: translateY(-5px);
    border-color: rgba(118,103,247,.42);
    box-shadow: 0 24px 55px rgba(23,32,56,.1);
}

.oss-capability-card.featured {
    background: linear-gradient(145deg, rgba(118,103,247,.06), rgba(56,189,248,.035));
}

.oss-capability-icon,
.capability-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 25px;
    color: var(--primary);
    border: 1px solid rgba(118,103,247,.16);
    border-radius: 12px;
    background: rgba(118,103,247,.08);
}

.oss-capability-card h3 { margin: 0 0 9px; color: var(--oss-ink); font-size: 1.07rem; }
.oss-capability-card p { margin: 0; color: var(--oss-muted); font-size: .9rem; line-height: 1.65; }
.oss-capability-card div > span { display: block; margin-top: 20px; color: #98a0af; font-size: .76rem; }
.oss-capability-card .card-arrow { position: absolute; top: 24px; right: 24px; color: #c2c7d0; font-size: .8rem; }

.product-showcase { background: #f6f7fb; }
.showcase-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: center; }

.oss-check-list {
    display: grid;
    gap: 18px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.oss-check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 13px; color: var(--oss-muted); line-height: 1.65; }
.oss-check-list i { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; color: #15803d; border-radius: 50%; background: #dcfce7; font-size: .7rem; }
.oss-check-list strong { display: block; color: var(--oss-ink); }
.inline-actions { margin-top: 30px; }

.app-window {
    overflow: hidden;
    border: 1px solid #dfe3eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 32px 80px rgba(31,41,64,.16);
}

.app-window-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 16px;
    color: #778197;
    background: #fff;
    border-bottom: 1px solid #e9ebf0;
    font-size: .72rem;
}

.app-window-bar > div { display: flex; gap: 6px; }
.app-window-bar > div span { width: 7px; height: 7px; }
.app-window-bar .live-indicator { justify-self: end; color: #15803d; }
.app-window img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.extension-section {
    padding: 112px 0;
    color: #fff;
    background: #0a0e1b;
}

.extension-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 88px; align-items: center; }
.extension-copy h2 { color: #fff; }
.extension-copy > p { margin: 20px 0 0; color: #96a2b8; font-size: 1.05rem; line-height: 1.8; }

.extension-code-card {
    overflow: hidden;
    border: 1px solid #26304a;
    border-radius: 16px;
    background: #070a12;
    box-shadow: 0 25px 70px rgba(0,0,0,.4);
}

.code-card-head,
.code-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: #8490a6;
    background: #101625;
    font-size: .74rem;
}

.code-card-head { border-bottom: 1px solid #26304a; }
.code-card-foot { border-top: 1px solid #26304a; }
.code-card-foot i { color: var(--oss-green); }
.extension-code-card pre { min-height: 320px; margin: 0; padding: 28px; border-radius: 0; background: transparent; color: #b8e7f5; font-size: .9rem; }

.extension-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin: 32px 0;
}

.extension-points > div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: #8895ab; font-size: .86rem; line-height: 1.6; }
.extension-points > div > i { color: #8b85ff; font-size: 1rem; }
.extension-points strong { display: block; color: #e8ebf3; margin-bottom: 3px; }

.architecture-section { background: #fff; }
.architecture-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.architecture-copy .text-link { margin-top: 24px; }

.architecture-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 13px;
}

.architecture-flow > div {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 170px;
    padding: 24px;
    border: 1px solid var(--oss-line);
    border-radius: 15px;
    background: #fafbfc;
}

.architecture-flow > div span { position: absolute; top: 16px; right: 17px; color: #c8ccd5; font: 700 .7rem monospace; }
.architecture-flow > div i { margin: 18px 0 26px; color: var(--primary); font-size: 1.35rem; }
.architecture-flow > div strong { color: var(--oss-ink); }
.architecture-flow > div small { margin-top: 6px; color: var(--oss-muted); }
.architecture-flow > i { color: #c2c7d0; }

.resource-section { background: #f6f7fb; }
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.resource-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 26px;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--oss-line);
    border-radius: 16px;
    background: #fff;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.resource-card > i:first-child { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--primary); border-radius: 12px; background: #f0efff; }
.resource-card > i:last-child { color: #b5bac5; }
.resource-card span { color: #939bab; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.resource-card h3 { margin: 4px 0 5px; color: var(--oss-ink); font-size: 1.03rem; }
.resource-card p { margin: 0; color: var(--oss-muted); font-size: .85rem; }

.open-source-cta {
    padding: 86px 0;
    color: #fff;
    background: linear-gradient(125deg, #4f46e5, #6d5dfc 52%, #0891b2);
}

.open-source-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.open-source-cta h2 { max-width: 760px; color: #fff; }
.open-source-cta p { margin: 15px 0 0; color: rgba(255,255,255,.76); }
.open-source-cta .oss-hero-actions { flex: 0 0 auto; margin: 0; }

/* Capability and release pages */
.project-hero {
    padding: 160px 0 90px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 0, rgba(118,103,247,.25), transparent 30%),
        linear-gradient(145deg, #090d19, #111a32);
}

.project-hero.compact { min-height: 560px; display: flex; align-items: center; }
.project-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: center; gap: 90px; }
.project-hero h1 { margin: 0; font-size: clamp(3rem, 5vw, 4.8rem); line-height: 1.06; letter-spacing: -.05em; }
.project-hero p { max-width: 720px; margin: 22px 0 0; color: #9da9bd; font-size: 1.08rem; line-height: 1.8; }
.project-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }

.capability-summary-card,
.release-current-card {
    padding: 30px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.055);
    box-shadow: 0 30px 70px rgba(0,0,0,.28);
}

.capability-summary-card { display: grid; grid-template-columns: auto 1fr; gap: 18px 16px; align-items: baseline; }
.capability-summary-card strong { color: #fff; font-size: 2.1rem; line-height: 1; }
.capability-summary-card span { color: #929eb3; }
.capability-catalog { display: grid; gap: 86px; }
.capability-group { scroll-margin-top: 105px; }
.capability-group-heading { display: flex; gap: 20px; align-items: flex-start; max-width: 800px; margin-bottom: 28px; }
.capability-group-icon { flex: 0 0 auto; margin: 0; }
.capability-group-heading h2 { margin: 0 0 7px; color: var(--oss-ink); font-size: 1.9rem; letter-spacing: -.025em; }
.capability-group-heading p { margin: 0; color: var(--oss-muted); }
.capability-item-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.capability-item { padding: 22px; border: 1px solid var(--oss-line); border-radius: 14px; background: #fff; }
.capability-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.capability-item h3 { margin: 0; color: var(--oss-ink); font-size: .98rem; }
.capability-item p { min-height: 68px; margin: 12px 0 18px; color: var(--oss-muted); font-size: .84rem; line-height: 1.6; }
.capability-item code { padding: 0; color: #8b93a3; background: transparent; font-size: .7rem; }
.stable-pill { padding: 3px 7px; color: #15803d; border-radius: 999px; background: #dcfce7; font-size: .58rem; font-weight: 800; text-transform: uppercase; }

.release-current-card > span { color: #8f9bb0; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.release-current-card > strong { display: block; margin: 8px 0 24px; color: #fff; font-size: 3rem; line-height: 1; }
.release-current-card dl { margin: 0; }
.release-current-card dl div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.release-current-card dt { color: #7f8aa0; }
.release-current-card dd { margin: 0; color: #d9deea; }
.release-current-card a { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; color: #a8b0ff; text-decoration: none; }
.project-section-heading span { color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-section-heading > a { color: var(--primary-dark); text-decoration: none; font-weight: 700; }
.release-list { position: relative; border-left: 1px solid #dfe2e9; }
.release-row { position: relative; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 30px; min-height: 82px; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--oss-line); }
.release-node { position: absolute; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: #b7bdc9; box-shadow: 0 0 0 6px #fff; }
.release-row:first-child .release-node { background: var(--primary); }
.release-version { display: flex; align-items: center; gap: 10px; }
.release-version strong { color: var(--oss-ink); font-size: 1.08rem; }
.release-version span { padding: 3px 8px; color: var(--primary-dark); border-radius: 999px; background: #eeecff; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.release-row time { color: var(--oss-muted); }
.release-actions { display: flex; gap: 18px; }
.release-actions a { color: var(--primary-dark); text-decoration: none; font-weight: 700; font-size: .83rem; }

@media (max-width: 1080px) {
    .oss-hero-layout { grid-template-columns: 1fr; }
    .repo-card { max-width: 720px; transform: none; }
    .oss-capability-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-layout,
    .extension-layout,
    .architecture-layout { grid-template-columns: 1fr; }
    .app-window { max-width: 820px; }
    .architecture-flow { max-width: 760px; }
    .project-hero-grid { grid-template-columns: 1fr; gap: 50px; }
    .capability-summary-card,
    .release-current-card { max-width: 520px; }
    .capability-item-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .project-facts-grid { grid-template-columns: repeat(2, 1fr); }
    .project-facts-grid > * { border-bottom: 1px solid var(--oss-line); }
    .oss-section-heading,
    .project-section-heading,
    .open-source-cta-inner { align-items: flex-start; flex-direction: column; }
    .resource-grid { grid-template-columns: 1fr; }
    .open-source-cta .oss-hero-actions { margin-top: 10px; }
    .architecture-flow { grid-template-columns: 1fr; }
    .architecture-flow > i { transform: rotate(90deg); justify-self: center; }
    .release-row { grid-template-columns: 1fr auto; gap: 7px 20px; padding-top: 18px; padding-bottom: 18px; }
    .release-row time { grid-column: 1; }
    .release-actions { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 600px) {
    .oss-hero { padding: 130px 0 76px; }
    .oss-hero h1 { font-size: 2.7rem; }
    .oss-hero-copy > p { font-size: 1rem; }
    .oss-hero-actions .btn { width: 100%; }
    .oss-trust-row { display: grid; gap: 10px; }
    .repo-card-head { grid-template-columns: auto 1fr; }
    .repo-public { display: none; }
    .repo-file-list div { grid-template-columns: 18px 70px 1fr; }
    .repo-file-list small { font-size: .66rem; }
    .install-command code { font-size: .66rem; }
    .project-facts-grid { grid-template-columns: 1fr 1fr; }
    .project-facts-grid > * { padding: 18px; }
    .oss-section,
    .product-showcase,
    .resource-section,
    .release-history,
    .capability-catalog { padding: 76px 0; }
    .oss-capability-grid,
    .capability-item-grid,
    .extension-points { grid-template-columns: 1fr; }
    .oss-capability-card { min-height: 215px; }
    .showcase-layout,
    .extension-layout { gap: 46px; }
    .extension-code-card pre { min-height: 0; padding: 20px; font-size: .7rem; }
    .resource-card { grid-template-columns: 44px 1fr; }
    .resource-card > i:last-child { display: none; }
    .project-hero { padding: 135px 0 75px; }
    .project-hero.compact { min-height: 0; }
    .project-hero h1 { font-size: 2.8rem; }
    .capability-summary-card { grid-template-columns: auto 1fr; }
    .capability-group-heading { flex-direction: column; }
    .capability-item p { min-height: 0; }
    .release-row { grid-template-columns: 1fr; padding-left: 26px; }
    .release-actions { grid-column: 1; grid-row: auto; }
}

/* ==================== Multi-page documentation ==================== */
.docs-header {
    padding: 116px 0 50px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 8%, rgba(118,103,247,.24), transparent 27%),
        linear-gradient(140deg, #0a0e1b 0%, #111a34 100%);
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: #7f8aa0;
    font-size: .78rem;
}

.docs-breadcrumb a { color: #aab3c4; text-decoration: none; }
.docs-breadcrumb a:hover { color: #fff; }
.docs-breadcrumb i { font-size: .58rem; }
.docs-breadcrumb span { color: #d9deea; }
.docs-header-copy { max-width: 830px; }
.docs-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #8fe8f3;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.docs-header h1 {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}
.docs-header p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #aab6cc;
    font-size: 1.05rem;
    line-height: 1.8;
}

.docs-shell {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr) 188px;
    gap: 42px;
    align-items: start;
    padding: 64px 24px 110px;
}
.docs-shell.docs-shell-no-toc { grid-template-columns: 238px minmax(0, 1fr); }
.docs-sidebar,
.docs-page-toc { position: sticky; top: 94px; }
.docs-sidebar {
    overflow: hidden;
    border: 1px solid var(--oss-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15,23,42,.045);
}
.docs-sidebar-title {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 18px 18px 14px;
    color: var(--oss-ink);
    font-size: .9rem;
    font-weight: 800;
    border-bottom: 1px solid var(--oss-line);
}
.docs-sidebar-title i { color: var(--primary); }
.docs-sidebar nav { padding: 9px; }
.docs-sidebar nav a {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 2px 0;
    padding: 10px 11px;
    color: #5d6677;
    border-radius: 8px;
    text-decoration: none;
    font-size: .84rem;
    line-height: 1.35;
}
.docs-sidebar nav a i { width: 15px; color: #a5acb9; text-align: center; font-size: .72rem; }
.docs-sidebar nav a:hover { color: var(--primary-dark); background: #f7f6ff; }
.docs-sidebar nav a.active { color: var(--primary-dark); background: #eeecff; font-weight: 750; }
.docs-sidebar nav a.active i { color: var(--primary); }
.docs-sidebar-switch { padding: 14px 18px 17px; border-top: 1px solid var(--oss-line); background: #fafbfc; }
.docs-sidebar-switch span { display: block; margin-bottom: 5px; color: #9aa2b0; font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; }
.docs-sidebar-switch a { display: flex; justify-content: space-between; color: var(--oss-ink); text-decoration: none; font-size: .8rem; font-weight: 750; }
.docs-sidebar-switch a:hover { color: var(--primary); }

.docs-article { min-width: 0; max-width: 860px; }
.docs-article .doc-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 34px;
    padding-bottom: 18px;
    color: #8c95a5;
    border-bottom: 1px solid var(--oss-line);
    font-size: .75rem;
}
.docs-article .doc-section:first-of-type h2 { margin-top: 0; }
.docs-article .doc-section:last-of-type { margin-bottom: 26px; }
.docs-page-toc { padding-top: 4px; border-left: 1px solid var(--oss-line); }
.docs-page-toc strong { display: block; padding: 0 0 10px 16px; color: var(--oss-ink); font-size: .76rem; }
.docs-page-toc a { display: block; padding: 6px 0 6px 16px; color: #89919f; text-decoration: none; font-size: .75rem; line-height: 1.4; }
.docs-page-toc a:hover { color: var(--primary); border-left: 1px solid var(--primary); margin-left: -1px; }

.docs-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 64px;
    padding-top: 26px;
    border-top: 1px solid var(--oss-line);
}
.docs-pagination a {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 92px;
    padding: 18px 20px;
    color: var(--oss-ink);
    border: 1px solid var(--oss-line);
    border-radius: 12px;
    text-decoration: none;
    background: #fff;
}
.docs-pagination a:hover { border-color: #b9b2ff; box-shadow: 0 12px 28px rgba(76,63,200,.08); }
.docs-pagination a.next { text-align: right; }
.docs-pagination span { color: #929aa8; font-size: .7rem; }
.docs-pagination strong { font-size: .9rem; }

.docs-overview-intro { margin-bottom: 28px; }
.docs-overview-intro h2 { margin: 0 0 9px; color: var(--oss-ink); font-size: 1.7rem; }
.docs-overview-intro p { margin: 0; color: var(--oss-muted); }
.docs-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.docs-card {
    position: relative;
    display: block;
    min-height: 226px;
    padding: 26px;
    color: var(--oss-ink) !important;
    border: 1px solid var(--oss-line);
    border-radius: 15px;
    text-decoration: none;
    background: #fff;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.docs-card:hover { transform: translateY(-3px); border-color: #c1bcff; box-shadow: 0 18px 38px rgba(35,29,82,.08); }
.docs-card > i { display: grid; place-items: center; width: 42px; height: 42px; color: var(--primary); border-radius: 10px; background: #f0eeff; }
.docs-card-index { position: absolute; top: 24px; right: 24px; color: #c7cbd3; font-family: monospace; font-size: .72rem; }
.docs-card h2 { margin: 21px 0 9px; font-size: 1.1rem; }
.docs-card p { min-height: 48px; margin: 0 0 18px; color: var(--oss-muted); font-size: .84rem; line-height: 1.6; }
.docs-card-link { color: var(--primary-dark); font-size: .76rem; font-weight: 750; }
.docs-card-link i { margin-left: 4px; font-size: .66rem; }
.docs-start-callout {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-top: 24px;
    padding: 23px 25px;
    color: #d9deea;
    border-radius: 14px;
    background: #10172a;
}
.docs-start-callout > div { display: flex; gap: 14px; align-items: center; }
.docs-start-callout > div > i { color: #8fe8f3; }
.docs-start-callout span { color: #9eabc0; font-size: .82rem; line-height: 1.5; }
.docs-start-callout strong { display: block; color: #fff; font-size: .9rem; }
.docs-start-callout a { flex: 0 0 auto; color: #aeb4ff; text-decoration: none; font-size: .8rem; font-weight: 750; }

@media (max-width: 1100px) {
    .docs-shell,
    .docs-shell.docs-shell-no-toc { grid-template-columns: 220px minmax(0,1fr); gap: 30px; }
    .docs-page-toc { display: none; }
}

@media (max-width: 760px) {
    .docs-header { padding: 100px 0 42px; }
    .docs-breadcrumb { margin-bottom: 22px; }
    .docs-header h1 { font-size: 2.35rem; }
    .docs-header p { font-size: .95rem; }
    .docs-shell,
    .docs-shell.docs-shell-no-toc { grid-template-columns: 1fr; padding: 32px 20px 80px; }
    .docs-sidebar { position: static; }
    .docs-sidebar nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .docs-sidebar nav a { align-items: flex-start; }
    .docs-card-grid { grid-template-columns: 1fr; }
    .docs-start-callout { align-items: flex-start; flex-direction: column; }
    .docs-pagination { grid-template-columns: 1fr; }
    .docs-pagination > span:empty { display: none; }
    .docs-article .doc-meta { flex-direction: column; gap: 4px; }
}

@media (max-width: 430px) {
    .docs-sidebar nav { grid-template-columns: 1fr; }
    .docs-header h1 { font-size: 2rem; }
    .docs-card { min-height: auto; }
}
