/* ============================================
   SUB-PAGES — BRUTALIST
   ============================================ */

/* ========== PAGE HERO ========== */

.page-hero {
    padding: 140px 0 60px;
    border-bottom: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 40px, var(--border) 40px, var(--border) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, var(--border) 40px, var(--border) 41px);
    opacity: 0.08;
    pointer-events: none;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    position: relative;
}

.page-hero p {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 600px;
    position: relative;
}

/* ========== ABOUT PAGE ========== */

.about-mission {
    border-bottom: 2px solid var(--border);
}

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

.about-mission-content h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.about-mission-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-mission-img {
    border: 2px solid var(--border-hard);
    overflow: hidden;
}

.about-mission-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: grayscale(40%) contrast(1.1);
    transition: filter 0.3s;
}

.about-mission-img:hover img {
    filter: grayscale(0%) contrast(1);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
}

.value-card {
    background: var(--bg);
    padding: 40px 28px;
    transition: all 0.2s;
}

.value-card:hover {
    background: var(--bg-card);
}

.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
    margin-bottom: 20px;
    color: var(--accent);
}

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

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.stats-section {
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    padding: 40px 24px;
    text-align: center;
    border-right: 2px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ========== PRICING PAGE ========== */

.comparison-section {
    border-top: 2px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 14px;
}

.comparison-table th {
    background: var(--bg-card);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 20px;
    text-align: left;
    border: 2px solid var(--border);
    font-size: 12px;
}

.comparison-table td {
    padding: 14px 20px;
    border: 1px solid var(--border);
    color: var(--text);
}

.comparison-table tr:hover td {
    background: var(--bg-card);
}

.comparison-table .highlight {
    color: var(--accent);
    font-weight: 600;
}

.faq-section {
    border-top: 2px solid var(--border);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
}

.faq-item {
    background: var(--bg);
    padding: 36px 32px;
}

.faq-item h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== CONTACT PAGE ========== */

.contact-section {
    border-bottom: 2px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.contact-method {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.contact-method h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.contact-method a,
.contact-method p {
    font-size: 15px;
    color: var(--text);
}

.contact-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
}

.contact-option {
    background: var(--bg);
    padding: 36px 28px;
    display: block;
    border: none;
    transition: all 0.2s;
}

.contact-option:hover {
    background: var(--bg-card);
    border: none;
}

.contact-option:hover .contact-option-title {
    color: var(--accent);
}

.contact-option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
    color: var(--accent);
    margin-bottom: 16px;
}

.contact-option-icon svg {
    width: 20px;
    height: 20px;
}

.contact-option-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.contact-option-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========== DOCS PAGE ========== */

.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
}

.docs-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    border: 2px solid var(--border);
    padding: 24px;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
}

.docs-sidebar h3 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.docs-sidebar a {
    display: block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    color: var(--accent);
}

.docs-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.docs-content h2:first-child {
    padding-top: 0;
    border-top: none;
}

.docs-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin: 24px 0 12px;
}

.docs-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.docs-notice {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-left: 6px solid var(--accent);
    padding: 20px 24px;
    margin-bottom: 32px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text);
}

.docs-notice strong {
    color: var(--accent);
    text-transform: uppercase;
}

.code-block {
    background: #050505;
    border: 2px solid var(--border);
    padding: 20px;
    margin: 16px 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}

.code-block .comment { color: #666; }
.code-block .string { color: var(--green); }
.code-block .keyword { color: var(--accent); }

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.docs-table th {
    background: var(--bg-card);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 12px 16px;
    text-align: left;
    border: 2px solid var(--border);
}

.docs-table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
}

.docs-table tr:hover td {
    background: var(--bg-card);
}

.sdk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    margin: 16px 0;
}

.sdk-card {
    background: var(--bg);
    padding: 28px 24px;
}

.sdk-card h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sdk-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.sdk-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 4px 10px;
}

/* ========== LEGAL PAGES ========== */

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

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin: 48px 0 16px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 0;
}

.legal-content ul li {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 4px 0 4px 20px;
    position: relative;
}

.legal-content ul li::before {
    content: '//';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 13px;
}

.legal-highlight {
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    margin: 20px 0;
}

.legal-highlight p {
    margin-bottom: 0;
}

/* ========== CTA SECTION ========== */

.cta-section {
    border-top: 2px solid var(--accent);
    background: var(--bg-card);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 968px) {
    .about-mission-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 2px solid var(--border);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .docs-sidebar {
        position: static;
        max-height: none;
    }

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

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

@media (max-width: 640px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

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

    .stat-item {
        border-right: none;
        border-bottom: 2px solid var(--border);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .contact-options-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 12px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
    }
}
