/* The Content Matrix — Shared Stylesheet
   v1.0 — 2026-04-18
   All pages load this file. Edit once, applies everywhere. */

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

:root {
    --bg: #0A0A0A;
    --slate: #1A1A1A;
    --line: #2A2A2A;
    --text: #FFFFFF;
    --ash: #6B7280;
    --green: #00FF41;
    --green-dim: #00CC33;
    --green-glow: rgba(0, 255, 65, 0.15);
    --violet: #5B21B6;
    --max-width: 1280px;
    --read-width: 780px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.container-narrow {
    max-width: var(--read-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
h3 { font-size: clamp(20px, 2vw, 24px); margin-bottom: 12px; }

p { margin-bottom: 16px; color: var(--text); }

.mono { font-family: 'JetBrains Mono', monospace; }
.ash { color: var(--ash); }
.green { color: var(--green); }
.small { font-size: 14px; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navigation (shared across all pages) */
nav {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    position: relative;
}

nav .logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

nav .logo .logo-mark {
    width: 64px;
    height: 64px;
    display: block;
}

nav .nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav .nav-links a {
    color: var(--ash);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav .nav-links a:hover {
    color: var(--green);
    text-decoration: none;
}

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

nav .nav-cta {
    padding: 10px 20px;
    font-size: 14px;
    background: var(--green);
    color: var(--bg);
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
}

nav .nav-cta:hover {
    background: var(--green-dim);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Hamburger toggle button — hidden on desktop, shown < 900px via JS-injected element */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    line-height: 0;
    margin-left: 12px;
    transition: border-color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--green); }
.nav-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
nav.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: inline-block; }

    /* Hide all nav links by default at mobile width — hamburger reveals them */
    nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
        padding: 12px 32px 20px;
    }
    nav.nav-open .nav-links { display: flex; }
    nav .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--line);
    }
    nav .nav-links a:last-child { border-bottom: none; }
    nav .nav-links a.nav-cta {
        margin-top: 12px;
        text-align: center;
        border-bottom: none;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--green-dim);
    text-decoration: none;
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    border-color: var(--text);
    text-decoration: none;
}

/* Sections */
section {
    padding: 120px 0;
    border-bottom: 1px solid var(--line);
}

section:last-child { border-bottom: none; }

.section-header {
    margin-bottom: 64px;
}

.section-header p {
    color: var(--ash);
    font-size: 19px;
    max-width: 720px;
}

/* Hero */
.hero {
    padding: 160px 0 140px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero .container {
    max-width: 1100px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 32px;
    max-width: 960px;
}

.hero .subhead {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--ash);
    max-width: 720px;
    margin-bottom: 48px;
}

.hero .cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.hero .trust-signal {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    max-width: 720px;
    color: var(--ash);
    font-size: 15px;
}

.hero .trust-signal strong {
    color: var(--green);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

/* Hero variants for inner pages (smaller) */
.hero-compact {
    padding: 100px 0 60px;
}

.hero-compact h1 {
    font-size: clamp(36px, 5vw, 56px);
}

/* Matrix Rain */
#matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: 1;
    pointer-events: none;
}

/* Case study stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin: 48px 0;
}

.stat {
    padding: 32px;
    background: var(--slate);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stat .number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
    color: var(--green);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.stat .label {
    font-size: 14px;
    color: var(--ash);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.closing {
    margin-top: 48px;
    font-size: 19px;
    max-width: 720px;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px;
    background: var(--slate);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 0.2s ease;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.service-card:hover {
    border-color: var(--green);
    text-decoration: none;
}

.service-card h3 {
    color: var(--green);
    font-size: 20px;
}

.service-card p {
    color: var(--ash);
    margin-bottom: 16px;
    font-size: 15px;
}

.service-card .price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--text);
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 48px;
}

.step .step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--green);
    margin-bottom: 12px;
}

.step h3 { margin-bottom: 16px; }
.step p { color: var(--ash); font-size: 15px; }

/* Who for */
.who-for-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-top: 48px;
}

.who-for-column h3 {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.who-for-column ul { list-style: none; padding: 0; }

.who-for-column li {
    padding: 12px 0;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    font-size: 16px;
}

.who-for-column li:last-child { border-bottom: none; }
.who-for-column.negative li { color: var(--ash); }

/* Pricing table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 48px;
    font-size: 15px;
}

.pricing-table th, .pricing-table td {
    padding: 20px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.pricing-table th {
    color: var(--ash);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.pricing-table td { color: var(--text); }

.pricing-table td.price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.pricing-table tr:hover { background: var(--slate); }

.pricing-footnote {
    margin-top: 32px;
    padding: 20px;
    background: var(--slate);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ash);
}

/* FAQ */
.faq-list { margin-top: 48px; }

.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
}

.faq-item p {
    color: var(--ash);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Contact */
.contact { text-align: center; }

.contact h2 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.contact p {
    color: var(--ash);
    font-size: 17px;
    max-width: 560px;
    margin: 16px auto 32px;
}

.contact-email {
    margin-top: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--ash);
}

/* Service detail block (for /services page) */
.service-detail {
    padding: 48px 0;
    border-top: 1px solid var(--line);
}

.service-detail:first-of-type { border-top: none; padding-top: 0; }

.service-detail h3 {
    color: var(--green);
    font-size: 28px;
    margin-bottom: 16px;
}

.service-detail .tagline {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 32px;
}

.service-detail .tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.service-detail .tier-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.service-detail .tier-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.tier-card {
    padding: 24px;
    background: var(--slate);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.tier-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.tier-card .tier-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--green);
    margin-bottom: 16px;
}

.tier-card ul {
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: var(--ash);
}

.tier-card li {
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}

.tier-card li::before {
    content: '›';
    color: var(--green);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.tier-card .outcome {
    background: rgba(0, 255, 102, 0.08);
    border-left: 3px solid var(--green);
    padding: 10px 12px;
    margin: 0 0 16px 0;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    border-radius: 4px;
}

.tier-card .outcome strong {
    color: var(--green);
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-card .roi {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--green);
    font-weight: 700;
}

.service-detail .addons {
    margin-top: 24px;
    padding: 24px;
    background: var(--slate);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.service-detail .addons h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.service-detail .addons ul {
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: var(--ash);
}

.service-detail .addons li {
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}

.service-detail .addons li::before {
    content: '›';
    color: var(--green);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.service-detail .source-callout {
    margin-top: 24px;
    padding: 24px;
    background: rgba(0, 255, 102, 0.05);
    border-left: 3px solid var(--green);
    border-radius: 4px;
}

.service-detail .source-callout h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}

.service-detail .source-callout p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.service-detail .faq {
    margin-top: 24px;
    padding: 24px;
    background: var(--slate);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.service-detail .faq h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
}

.service-detail .faq-item {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.service-detail .faq-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.service-detail .faq-item h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 8px;
}

.service-detail .faq-item p {
    font-size: 14px;
    color: var(--ash);
    line-height: 1.6;
    margin: 0;
}

/* Resource card */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.resource-card {
    padding: 32px;
    background: var(--slate);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s ease;
    display: block;
}

.resource-card:hover {
    border-color: var(--green);
    text-decoration: none;
}

.resource-card .tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--green);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.resource-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.resource-card p {
    color: var(--ash);
    font-size: 14px;
    margin-bottom: 0;
}

/* Footer */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--line);
    background: var(--bg);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

footer .legal {
    color: var(--ash);
    font-size: 13px;
}

footer .footer-links {
    display: flex;
    gap: 24px;
}

footer .footer-links a {
    color: var(--ash);
    font-size: 13px;
}

/* Coming soon card */
.coming-soon {
    text-align: center;
    padding: 80px 32px;
    background: var(--slate);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 48px 0;
}

.coming-soon h3 { margin-bottom: 16px; }
.coming-soon p { color: var(--ash); max-width: 480px; margin: 0 auto 24px; }

/* Utility */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

/* Mobile */
@media (max-width: 768px) {
    section { padding: 72px 0; }
    .hero { padding: 88px 0 72px; }
    .hero-compact { padding: 60px 0 32px; }

    .container, .container-narrow { padding: 0 20px; }

    .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat { padding: 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 32px; }
    .who-for-grid { grid-template-columns: 1fr; gap: 32px; }
    .service-detail .tier-grid { grid-template-columns: 1fr; }
    .resource-grid { grid-template-columns: 1fr; }

    .pricing-table { font-size: 13px; }
    .pricing-table th, .pricing-table td { padding: 12px 8px; }

    nav .container { padding-top: 16px; padding-bottom: 16px; }
    nav .logo { font-size: 15px; }
    .btn { padding: 10px 18px; font-size: 13px; }

    footer .container { flex-direction: column; text-align: center; }
}
