/* ═══════════════════════════════════════════════════════════
   MCP DOCS PAGE
   ═══════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.quickstart-section,
.tools-section,
.resources-section,
.clients-section,
.cta,
.faq {
    position: relative;
}

.quickstart-section::before,
.tools-section::before,
.resources-section::before,
.clients-section::before,
.cta::before,
.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
    pointer-events: none;
}

.section-eyebrow {
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
form.btn-form {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
    transition: all 0.18s ease;
    cursor: pointer;
}
form.btn-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.5);
}
form.btn-form button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: none;
    border: none;
    color: var(--text-bright);
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}
form.btn-form.btn-large button {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.18s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-bright);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border-soft);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.feature-hero {
    padding: 9rem 2rem 4rem;
    background:
        radial-gradient(ellipse at 18% 20%, rgba(var(--primary-rgb), 0.08), transparent 42%),
        radial-gradient(ellipse at 82% 18%, rgba(var(--accent-rgb), 0.05), transparent 40%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.feature-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.feature-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-bright);
    margin-bottom: 1.25rem;
}

.hero-accent {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.feature-hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   QUICK START
   ═══════════════════════════════════════════════════════════ */
.quickstart-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.quickstart-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.quickstart-header {
    max-width: 640px;
    margin-bottom: 3rem;
}

.quickstart-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-bright);
    margin-bottom: 1rem;
}

.quickstart-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.quickstart-header p strong { color: var(--text-bright); }

.quickstart-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
}

.quickstart-steps {
    flex: 0 0 auto;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quickstart-code {
    flex: 1 1 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (max-width: 900px) {
    .quickstart-body { flex-direction: column; }
    .quickstart-steps { min-width: unset; }
}

.quickstart-step {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.qs-num {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.15rem;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

.qs-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.qs-body strong { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   CODE BLOCK (shared)
   ═══════════════════════════════════════════════════════════ */
.code-block {
    background: rgba(var(--bg-rgb), 0.72);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: 0 20px 50px rgba(var(--bg-rgb), 0.38);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 1.25rem;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: rgba(var(--bg-rgb), 0.55);
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.code-dot.red    { background: var(--danger); }
.code-dot.yellow { background: var(--warning); }
.code-dot.green  { background: var(--success); }

.code-title {
    margin-left: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', 'Monaco', monospace;
}

.code-body {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-body pre {
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.82rem;
    line-height: 1.75;
    text-align: left;
    color: var(--text-bright);
}

.code-comment { color: var(--text-subtle); }
.code-string  { color: var(--success); }
.code-key     { color: var(--primary-light); }
.code-number  { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   TOOLS SECTION
   ═══════════════════════════════════════════════════════════ */
.tools-section {
    padding: 5rem 2rem;
    background: var(--bg);
}

.tools-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.tools-inner h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.tools-sub {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    max-width: 560px;
}

.tools-badges {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (max-width: 700px) {
    .tools-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tool-badge {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: rgba(var(--bg-rgb), 0.58);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s, background 0.15s;
}

.tool-badge:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
}

.tool-badge-name {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 0.78rem;
    color: var(--primary-subtle);
}

.tool-badge-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.plan-badge-all {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success);
    border: 1px solid rgba(var(--success-rgb), 0.25);
}

.plan-badge-specs {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
}

.plan-badge-recalls {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
}

.plan-badge-safety {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--warning);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
}

/* ═══════════════════════════════════════════════════════════
   RESOURCES & PROMPTS
   ═══════════════════════════════════════════════════════════ */
.resources-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.resources-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 800px) {
    .resources-inner { grid-template-columns: 1fr; gap: 3rem; }
}

.resources-col h2,
.prompts-col h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-bright);
    margin-bottom: 0.6rem;
}

.resources-col,
.prompts-col {
    display: flex;
    flex-direction: column;
}

.resources-col > p,
.prompts-col > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.resource-list,
.prompt-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.resource-item,
.prompt-item {
    flex: 1;
    background: rgba(var(--bg-rgb), 0.55);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    transition: border-color 0.15s, background 0.15s;
}

.resource-item:hover,
.prompt-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
}

.resource-uri {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 0.75rem;
    color: var(--primary-subtle);
    background: rgba(var(--primary-rgb), 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.35rem;
    word-break: break-all;
}

.prompt-name {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 0.78rem;
    color: var(--primary-subtle);
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.resource-desc,
.prompt-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   CLIENTS SECTION
   ═══════════════════════════════════════════════════════════ */
.clients-section {
    padding: 5rem 2rem;
    background: var(--bg-deep);
}

.clients-inner {
    max-width: 860px;
    margin: 0 auto;
}

.clients-inner h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-bright);
    margin-bottom: 0.75rem;
}

.clients-sub {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

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

@media (max-width: 700px) {
    .client-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.client-card {
    background: rgba(var(--bg-rgb), 0.58);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.15s, transform 0.15s, background 0.15s;
    min-width: 0;
    overflow: hidden;
}

.client-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-2px);
}

.client-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.3rem;
}

.client-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    overflow-wrap: break-word;
}


/* ═══════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════ */
.cta {
    padding: 8rem 2rem;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(var(--primary-rgb), 0.08), transparent 48%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    text-align: center;
}

.cta-inner {
    max-width: 560px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.85;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-bright);
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.faq-inner {
    max-width: 720px;
    margin: 0 auto;
}

.faq h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-bright);
    margin-bottom: 3rem;
    line-height: 1.1;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-item summary {
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--text-bright); }

.faq-item p {
    padding: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
}

.faq-item p code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

.faq-item p a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS & RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.feature-hero .section-eyebrow { animation: fadeInUp 0.4s ease-out 0.1s both; }
.feature-hero h1               { animation: fadeInUp 0.4s ease-out 0.2s both; }
.feature-hero p                { animation: fadeInUp 0.4s ease-out 0.3s both; }
.feature-hero-actions          { animation: fadeInUp 0.4s ease-out 0.4s both; }

@media (max-width: 768px) {
    .feature-hero { padding: 7rem 1.25rem 3rem; }
    .quickstart-section,
    .tools-section,
    .resources-section,
    .clients-section,
    .cta,
    .faq { padding: 5rem 1.25rem; }

}
