:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --accent: #10b981;
    --accent-dark: #059669;
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --dark-tertiary: #334155;
    --light: #f8fafc;
    --light-secondary: #f1f5f9;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --border: #e2e8f0;
    --border-dark: #334155;
    --text: #0f172a;
    --text-secondary: #475569;
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6, #10b981);
    --gradient-text: linear-gradient(135deg, #60a5fa, #34d399);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== HEADER ===== */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s;
}

.site-header:hover {
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.025em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.enterprise-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 0.2rem 0.625rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
}

.nav-menu a:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.06);
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.github-stars-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.2s;
    background: white;
}

.github-stars-btn:hover {
    border-color: var(--gray-light);
    box-shadow: var(--shadow-sm);
}

.github-stars-btn .github-icon {
    flex-shrink: 0;
}

.github-stars-btn .star-icon {
    color: #eab308;
    flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    line-height: 1.5;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.04);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
}

/* Hero-specific button styles */
.hero .btn-primary {
    background: white;
    color: var(--dark);
    font-weight: 700;
}

.hero .btn-primary:hover {
    background: var(--light);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero .btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

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

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat {
    text-align: center;
    padding: 1.5rem 2rem;
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
}

.stat + .stat {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ===== TRUSTED BY SECTION ===== */
.trusted-section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
    background: white;
}

.trusted-label {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.75rem;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trusted-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.trusted-logo:hover {
    opacity: 1;
}

.trusted-logo img {
    height: 28px;
    width: auto;
    filter: grayscale(100%);
}

.trusted-logo span {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--dark-tertiary);
    letter-spacing: -0.01em;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 6rem 0;
    background: white;
}

.section-eyebrow {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

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

.features-major-grid {
    margin-bottom: 3rem;
}

.features-subheading {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 1rem 0 1.5rem;
    position: relative;
}

.features-subheading::before,
.features-subheading::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 7rem);
    height: 1px;
    background: var(--border);
}

.features-subheading::before { left: 0; }
.features-subheading::after { right: 0; }

.feature-card.feature-major {
    padding: 2.25rem 2rem;
    background: linear-gradient(180deg, white 0%, rgba(59, 130, 246, 0.03) 100%);
    border-color: rgba(59, 130, 246, 0.18);
}

.feature-card.feature-major .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.feature-card.feature-major .feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card.feature-major h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    position: relative;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-icon.green {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent);
}

.feature-icon.purple {
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
}

.feature-icon.amber {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--dark);
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ===== HIGHLIGHT / HOW IT WORKS SECTION ===== */
.highlight-section {
    padding: 6rem 0;
    background: var(--light);
}

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

.highlight-content {
    max-width: 480px;
}

.highlight-content .section-eyebrow {
    text-align: left;
}

.highlight-content .section-title {
    text-align: left;
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.highlight-content p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.highlight-list {
    list-style: none;
    margin-bottom: 2rem;
}

.highlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: var(--text);
    font-weight: 500;
}

.highlight-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-check svg {
    width: 12px;
    height: 12px;
}

.highlight-visual {
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-dark);
}

.highlight-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.code-window {
    position: relative;
    z-index: 1;
}

.code-window-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-dark);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dark-tertiary);
}

.code-dot:nth-child(1) { background: #ef4444; }
.code-dot:nth-child(2) { background: #eab308; }
.code-dot:nth-child(3) { background: #22c55e; }

.code-content {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8125rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
}

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

.code-content .code-key {
    color: var(--primary-light);
}

.code-content .code-value {
    color: #34d399;
}

.code-content .code-flag {
    color: #fbbf24;
}

/* ===== COMPARISON SECTION ===== */
.comparison-section {
    padding: 6rem 0;
    background: white;
}

.comparison-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: var(--dark);
    color: white;
}

.comparison-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
}

.comparison-table th:first-child {
    width: 40%;
}

.comparison-table td {
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

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

.comparison-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.02);
}

.comparison-table .check {
    color: var(--accent);
    font-weight: 700;
}

.comparison-table .cross {
    color: var(--gray-light);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--dark);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 120%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 20% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

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

.cta-section .btn-primary {
    background: white;
    color: var(--dark);
    font-weight: 700;
}

.cta-section .btn-primary:hover {
    background: var(--light);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.cta-section .btn-secondary {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-section .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-dark);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin-bottom: 0.875rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.7;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 3rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    color: var(--gray);
    font-size: 0.8125rem;
}

/* ===== CONTENT PAGE ===== */
.content-page {
    padding: 4rem 0;
    max-width: 900px;
}

.content-article {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.content-article h1 {
    margin-bottom: 2rem;
    color: var(--dark);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.content-article h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.content-article h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.content-article p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.content-article ul,
.content-article ol {
    margin-bottom: 1rem;
    margin-left: 2rem;
}

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

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

.content-article a:hover {
    text-decoration: underline;
}

.content-article code {
    background: var(--light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875em;
    border: 1px solid var(--border);
}

.content-article pre {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-dark);
}

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

.content-article blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--gray);
    font-style: italic;
}

.content-article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.content-article th,
.content-article td {
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    text-align: left;
}

.content-article th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
}

/* ===== MOBILE TOGGLE ===== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .footer-top {
        flex-direction: column;
        gap: 2.5rem;
    }
}

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

    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 4rem 0 3.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0;
    }

    .stat + .stat {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

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

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

    .content-page {
        padding: 2rem 0;
    }

    .content-article {
        padding: 1.5rem;
    }

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

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

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* ===== RELATED TOC ===== */
.related-toc {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.related-toc h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.related-toc ul {
    list-style: none;
    padding: 0;
    margin: 0 !important;
}

.related-toc li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 500;
}

.related-toc li::before {
    content: "\2192";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.related-toc a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.related-toc a:hover {
    color: var(--dark);
    text-decoration: underline;
}

/* ===== PRICING ===== */
.pricing-grid {
    grid-template-columns: repeat(2, minmax(260px, 360px));
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 1rem 0;
    letter-spacing: -0.03em;
}

.pricing-period {
    font-size: 1rem;
    color: var(--gray);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.pricing-card .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.pricing-card .btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
    border: 1px solid var(--primary);
}

.pricing-card .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.save-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.process-steps {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.step h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* ===== DOCS LAYOUT (sidebar + content + TOC) ===== */
.docs-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 220px;
    column-gap: 2.5rem;
    width: 100%;
    margin: 0;
    padding: 2.5rem 32px 4rem;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: 4.5rem;
    align-self: start;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.docs-nav {
    font-size: 0.9375rem;
}

.docs-nav-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.docs-nav-group + .docs-nav-group {
    margin-top: 1.25rem;
}

.docs-nav-group-title {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--gray);
    margin: 0 0 0.5rem 0.5rem;
}

.docs-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-nav-list li {
    margin: 0;
    padding: 0;
}

.docs-nav-list li::before {
    content: none;
}

.docs-nav-list a {
    display: block;
    padding: 0.4375rem 0.75rem;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
}

.docs-nav-list a:hover {
    background: var(--light-secondary);
    color: var(--dark);
    text-decoration: none;
}

.docs-nav-list a.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-weight: 600;
}

/* ----- center column ----- */
.docs-main {
    min-width: 0;
}

.docs-layout .content-article {
    margin: 0;
}

/* ----- right on-this-page TOC ----- */
.docs-toc {
    position: sticky;
    top: 4.5rem;
    align-self: start;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
}

.docs-toc-title {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--gray);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.docs-toc #TableOfContents ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-toc #TableOfContents li {
    margin: 0;
    padding: 0;
}

.docs-toc #TableOfContents li::before {
    content: none;
}

.docs-toc #TableOfContents ul ul {
    padding-left: 0.75rem;
    border-left: 1px solid var(--border);
    margin-top: 0.125rem;
    margin-left: 0.5rem;
}

.docs-toc #TableOfContents a {
    display: block;
    padding: 0.2rem 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.45;
    border-radius: 4px;
    border-left: 2px solid transparent;
    margin-left: -2px;
}

.docs-toc #TableOfContents a:hover {
    color: var(--primary);
    text-decoration: none;
}

.docs-toc #TableOfContents a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Responsive: hide TOC on mid screens, then collapse sidebar on mobile */
@media (max-width: 1200px) {
    .docs-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        column-gap: 2rem;
    }
    .docs-toc {
        display: none;
    }
}

@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
        padding: 1.5rem 16px 3rem;
    }
    .docs-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        padding-bottom: 1.25rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid var(--border);
    }
}

/* ===== GOOGLE FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
