/* ================================================================
   Agent VCR Docs – Minimal Black & White
   ================================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #000;
    --bg-elevated: #0a0a0a;
    --bg-card: #111;
    --border: #222;
    --border-light: #1a1a1a;
    --text: #e5e5e5;
    --text-muted: #888;
    --text-dim: #555;
    --white: #fff;
    --accent: #fff;
    --red: #ff4444;
    --green: #00cc66;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --max-w: 1120px;
    --radius: 10px;
    --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--white); text-decoration: none; }
code { font-family: var(--mono); font-size: 0.88em; }
h1, h2, h3, h4 { font-weight: 600; color: var(--white); letter-spacing: -0.02em; line-height: 1.2; }

.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2rem; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto; }


/* ================================================================
   NAV
   ================================================================ */

.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 60px;
}

.nav-logo { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
    font-size: 0.85rem; color: var(--text-muted);
    transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-actions { display: flex; gap: 10px; align-items: center; }


/* ================================================================
   BUTTONS
   ================================================================ */

.btn-solid {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--white); color: #000;
    font-size: 0.85rem; font-weight: 600;
    padding: 10px 22px; border-radius: 8px;
    transition: opacity .2s;
}
.btn-solid:hover { opacity: .85; }
.btn-solid.large { padding: 14px 32px; font-size: 0.95rem; }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    font-size: 0.85rem; font-weight: 500;
    padding: 10px 22px; border-radius: 8px;
    color: var(--text-muted);
    transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--white); }
.btn-ghost.large { padding: 14px 32px; font-size: 0.95rem; }


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

.hero {
    padding: 160px 24px 100px;
    text-align: center;
}

.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-pill {
    display: inline-block;
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 6px 16px; border-radius: 999px;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.hero-title-accent { color: var(--text-muted); }

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.hero-sub strong { color: var(--white); }

.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 64px; flex-wrap: wrap; }

.hero-metrics {
    display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
}
.metric {
    padding: 24px 36px;
    text-align: center;
    flex: 1; min-width: 140px;
}
.metric-val { display: block; font-size: 1.5rem; font-weight: 700; color: var(--white); font-family: var(--mono); letter-spacing: -0.03em; }
.metric-label { display: block; font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.metric-divider { width: 1px; background: var(--border); }


/* ================================================================
   TWO COL – PROBLEM / SOLUTION
   ================================================================ */

.two-col-section { padding: 100px 0; }

.two-col {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.col-block {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
}

.block-tag {
    display: inline-block;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
    padding: 4px 12px; border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    margin-bottom: 20px;
}
.block-tag.red { color: var(--red); border-color: rgba(255,68,68,0.3); }

.col-block h2 { font-size: 1.5rem; margin-bottom: 16px; }
.col-block p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; }

.pain-list, .solution-list { list-style: none; margin-top: 8px; }
.pain-list li, .solution-list li {
    padding: 6px 0; font-size: 0.9rem; color: var(--text-muted);
    padding-left: 20px; position: relative;
}
.pain-list li::before { content: '✗'; position: absolute; left: 0; color: var(--red); font-weight: 600; }
.solution-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 600; }


/* ================================================================
   QUICK START
   ================================================================ */

.quickstart-section { padding: 100px 0; }

.steps { display: flex; flex-direction: column; gap: 48px; }

.step { display: flex; gap: 32px; align-items: flex-start; }

.step-num {
    font-family: var(--mono);
    font-size: 1.1rem; font-weight: 700;
    color: var(--text-dim);
    min-width: 48px; padding-top: 2px;
}

.step-content { flex: 1; }
.step-content h3 { font-size: 1.15rem; margin-bottom: 16px; }


/* ================================================================
   CODE BLOCKS
   ================================================================ */

.code-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated);
}
.code-block.compact { border-radius: var(--radius-sm); }

.code-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.dots { display: flex; gap: 6px; }
.dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--border);
}

.code-label { font-size: 0.72rem; color: var(--text-dim); font-family: var(--mono); }

.code-block pre {
    padding: 20px;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.7;
}
.code-block.compact pre { padding: 16px; font-size: 0.78rem; }

.code-block code {
    font-family: var(--mono);
    color: var(--text);
}

/* Syntax colors — subtle B&W palette */
.kw { color: #aaa; }
.str { color: #9a9; }
.num { color: #b9b; }
.cm { color: #555; font-style: italic; }
.dec { color: #999; }


/* ================================================================
   FEATURES
   ================================================================ */

.features-section { padding: 100px 0; }

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

.feature-item {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    transition: border-color .25s;
}
.feature-item:hover { border-color: #333; }

.feature-icon-wrap {
    font-size: 1.4rem;
    margin-bottom: 16px;
    filter: grayscale(100%);
    opacity: 0.8;
}

.feature-item h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-item p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }
.feature-item code { background: var(--bg-card); padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; }


/* ================================================================
   INTEGRATIONS – TABS
   ================================================================ */

.integrations-section { padding: 100px 0; }

.tab-bar {
    display: flex; gap: 4px; margin-bottom: 24px;
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 4px; background: var(--bg-elevated);
    width: fit-content; margin-left: auto; margin-right: auto;
}

.tab {
    font-family: var(--font);
    font-size: 0.82rem; font-weight: 500;
    padding: 10px 24px; border-radius: 7px;
    background: transparent; border: none;
    color: var(--text-muted); cursor: pointer;
    transition: all .2s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--white); color: #000; }

.tab-panel { display: none; max-width: 640px; margin: 0 auto; }
.tab-panel.active { display: block; }


/* ================================================================
   COMPARISON TABLE
   ================================================================ */

.compare-section { padding: 100px 0; }

.compare-table-wrap { overflow-x: auto; }

.compare-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.88rem;
}

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

.compare-table th {
    font-weight: 600; color: var(--text-muted);
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
}

.compare-table .highlight-col {
    background: rgba(255,255,255,0.03);
}

.compare-table thead .highlight-col {
    color: var(--white);
}

.yes { color: var(--white); font-weight: 600; }
.no { color: var(--text-dim); }

.compare-table tbody tr:hover { background: rgba(255,255,255,0.02); }


/* ================================================================
   API REFERENCE
   ================================================================ */

.api-section { padding: 100px 0; }

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.api-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated);
}

.api-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.api-class { font-family: var(--mono); font-weight: 600; font-size: 0.95rem; }
.api-tag {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-dim);
    border: 1px solid var(--border); border-radius: 999px;
    padding: 3px 10px;
}


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

.cta-section { padding: 100px 0; }

.cta-inner {
    text-align: center;
    padding: 64px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
}

.cta-inner h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-inner > p { color: var(--text-muted); margin-bottom: 32px; }

.inline-install {
    display: inline-block;
    margin-bottom: 32px;
    border-radius: 8px;
}
.inline-install pre { padding: 14px 32px !important; }

.cta-links { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.cta-note { font-size: 0.75rem; color: var(--text-dim); }


/* ================================================================
   FOOTER
   ================================================================ */

.footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
}

.footer-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}

.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-logo { font-weight: 700; font-size: 0.9rem; }
.footer-tagline { font-size: 0.78rem; color: var(--text-dim); }

.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--white); }


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

@media (max-width: 900px) {
    .nav-links { display: none; }
    .two-col { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-metrics { flex-direction: column; }
    .metric-divider { width: 100%; height: 1px; }
}

@media (max-width: 600px) {
    .hero { padding: 120px 16px 60px; }
    .hero-title { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .step { flex-direction: column; gap: 12px; }
    .tab-bar { flex-wrap: wrap; }
    .api-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
