/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */
* {
    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;
}

.hero,
.trust-bar,
.mcp-section,
.compare-section,
.use-cases,
.explore-section,
.vin-section,
.endpoints,
.cta,
.faq {
    position: relative;
}

.trust-bar::before,
.mcp-section::before,
.compare-section::before,
.use-cases::before,
.explore-section::before,
.vin-section::before,
.endpoints::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;
}

/* shared section label */
.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
   ═══════════════════════════════════════════════════════════ */

/* button_to generates a <form>. We style the form to look like the button
   and strip the inner <button> back to transparent so it fills the form. */
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 — split asymmetric layout
   ═══════════════════════════════════════════════════════════ */
.hero {
    padding: 9.5rem 2rem 5.5rem;
    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%);
    position: relative;
    overflow: hidden;
}

/* subtle grid texture */
.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;
}

/* radial glow top-left */
.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

/* ── Left: copy ── */
.hero-left { max-width: 600px; min-width: 0; }

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

.hero-left h1 {
    font-size: clamp(3rem, 5vw, 4.25rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
}

.hero-title-line { white-space: nowrap; }

.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;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-plus {
    color: var(--primary);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Right: terminal ── */
.hero-right {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 960px) {
    .hero-right { justify-content: flex-start; }
    .hero-left h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
}

/* ═══════════════════════════════════════════════════════════
   TERMINAL WIDGET
   ═══════════════════════════════════════════════════════════ */
.terminal-widget {
    width: 100%;
    max-width: 580px;
    min-width: 0;
    background: rgba(var(--bg-rgb), 0.9);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 48px rgba(var(--bg-rgb), 0.4), 0 0 0 1px rgba(var(--primary-rgb), 0.04);
    animation: termFadeIn 0.55s ease-out both;
    container-type: inline-size;
}

@keyframes termFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0.75rem 1.25rem;
    background: rgba(var(--bg-rgb), 0.55);
    border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 5px; flex-shrink: 0; }
.tdot { width: 8px; height: 8px; border-radius: 50%; opacity: 0.8; }
.tdot.red    { background: var(--danger); }
.tdot.yellow { background: var(--warning); }
.tdot.green  { background: var(--success); }
.terminal-title {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-bright);
}
.terminal-body {
    height: 460px;
    padding: 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border-soft) transparent;
    color: var(--text-bright);
}
.terminal-body:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
.t-prompt { color: var(--success); user-select: none; }
.t-cmd    { color: var(--text-bright); }
.t-url    { color: var(--primary-light); }
.t-header { color: var(--text-muted); }
.t-status { color: var(--primary); font-weight: 600; }
.t-key    { color: var(--primary-light); }
.t-str    { color: var(--success); }
.t-num    { color: var(--accent); }
.t-punc   { color: var(--text-muted); }

/* Space for the entire answer is reserved before it is revealed. */
.terminal-body.chat-mode {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.chat-msg { min-width: 0; flex-shrink: 0; }
.chat-msg-user { display: flex; justify-content: flex-end; }
.chat-bubble {
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.chat-bubble-user {
    max-width: 90%;
    padding: 0.75rem 1rem;
    border-radius: 14px 14px 4px 14px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.1));
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    color: var(--text-bright);
}
.chat-msg-ai { display: flex; flex-direction: column; gap: 0.65rem; }
.chat-author { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 600; }
.chat-author-role { margin-left: 0.35rem; font-weight: 400; color: var(--text-muted); }
.chat-avatar-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.chat-avatar-ai img { width: 20px; height: 20px; object-fit: contain; }
.chat-bubble-ai { width: 100%; }
.chat-table-wrap {
    overflow-x: auto;
    margin: 0 0 0.75rem;
    border: 1px solid var(--border-soft);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.055), rgba(var(--bg-rgb), 0.3));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.chat-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.chat-stats {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    text-align: left;
}
.chat-stats thead th {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.chat-stats thead th:first-child { width: 43%; }
.chat-stat-row { transition: background 0.16s ease, box-shadow 0.16s ease; }
.chat-stat-row + .chat-stat-row th,
.chat-stat-row + .chat-stat-row td { border-top: 1px solid var(--border); }
.chat-stat-row:hover { background: rgba(var(--primary-rgb), 0.07); }
.chat-stat-row th,
.chat-stat-value {
    padding: 0.62rem 0.8rem;
    font-size: 0.76rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    vertical-align: middle;
}
.chat-stat-row th { color: var(--text-bright); font-weight: 600; }
.chat-stat-value { color: var(--text-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.chat-stat-row.winner { background: rgba(var(--primary-rgb), 0.045); }
.chat-stat-row.winner th,
.chat-stat-row.winner .chat-stat-value { color: var(--primary-light); }
.chat-winner-badge {
    display: inline-flex;
    align-items: center;
    margin-right: 0.35rem;
    padding: 0.14rem 0.4rem;
    border: 1px solid rgba(var(--primary-rgb), 0.26);
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-light);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
    vertical-align: 1px;
}
.chat-reply { margin: 0; color: var(--text-muted); }
.chat-reply .t-num { color: var(--text-bright); font-weight: 500; }
.chat-thinking {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 20px;
    flex-shrink: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.chat-thinking-done::before { content: '✓'; color: var(--primary-light); width: 18px; text-align: center; }
.think-dots { display: inline-flex; gap: 3px; align-items: center; width: 18px; flex-shrink: 0; }
.think-dots span { width: 4px; height: 4px; border-radius: 50%; background: var(--primary); animation: thinkPulse 1s ease-in-out infinite; }
.think-dots span:nth-child(2) { animation-delay: 0.15s; }
.think-dots span:nth-child(3) { animation-delay: 0.3s; }
.chat-thinking-done .think-dots { display: none; }
@keyframes thinkPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes chatReveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.chat-mode[data-stage="1"] .chat-thinking,
.chat-mode:not([data-stage="3"]) .chat-msg-ai { visibility: hidden; }
.chat-mode[data-stage="1"] .chat-msg-user,
.chat-mode[data-stage="2"] .chat-thinking,
.chat-mode[data-stage="3"] .chat-msg-ai { animation: chatReveal 0.3s ease-out both; }
.chat-mode.chat-compact { gap: 0.65rem; }
.chat-compact .chat-bubble-user { padding: 0.6rem 0.85rem; }
.chat-compact .chat-msg-ai { gap: 0.45rem; }
.chat-compact .chat-table-wrap { margin-bottom: 0.45rem; }
.chat-compact .chat-stats thead th { padding: 0.45rem 0.7rem; }
.chat-compact .chat-stat-row th,
.chat-compact .chat-stat-value { padding: 0.42rem 0.7rem; }
.chat-compact .chat-reply { font-size: 0.82rem; line-height: 1.45; }

.chat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border);
}
.chat-disclaimer { font-size: 0.65rem; color: var(--text-muted); }
.chat-controls { display: flex; align-items: center; gap: 0.125rem; }
.chat-controls[hidden], .chat-control[hidden] { display: none; }
.chat-examples { display: inline-flex; align-items: center; gap: 0.2rem; margin-inline: 0.1rem; }
.chat-examples[hidden] { display: none; }
.chat-example-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.61rem;
    font-variant-numeric: tabular-nums;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.chat-example-dot:hover { transform: translateY(-1px); color: var(--text-bright); border-color: var(--primary); }
.chat-example-dot.is-active { color: var(--bg); border-color: var(--primary-light); background: var(--primary-light); font-weight: 700; }
.chat-example-dot:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.chat-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.chat-control:hover { color: var(--text-bright); background: rgba(var(--primary-rgb), 0.08); }
.chat-control:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.chat-playback { min-width: 54px; margin-left: 0.25rem; border-color: var(--border); }
.chat-position { min-width: 2.25rem; text-align: center; color: var(--text-muted); font-size: 0.7rem; font-variant-numeric: tabular-nums; }

@container (max-width: 420px) {
    .terminal-header { padding-inline: 1rem; }
    .terminal-body { height: 530px; padding: 1rem; }
    .chat-bubble-user { max-width: 96%; }
    .chat-stats thead th:first-child { width: 40%; }
    .chat-stat-row th, .chat-stat-value { padding: 0.55rem 0.6rem; font-size: 0.7rem; }
    .chat-winner-badge { display: block; width: fit-content; margin: 0 0 0.2rem; }
    .chat-footer { flex-direction: column; gap: 0.25rem; padding-block: 0.75rem; }
    .chat-controls { justify-content: center; flex-wrap: wrap; }
    .chat-examples { flex-basis: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .terminal-widget, .terminal-widget *,
    .hero-eyebrow, .hero-left h1, .hero-sub, .hero-actions {
        animation: none !important;
        transition: none !important;
    }
}

.t-cursor-user {
    display: inline-block;
    width: 7px; height: 1em;
    background: var(--text-bright);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    margin-left: 1px;
    border-radius: 1px;
}
.t-cursor {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: var(--primary);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    margin-left: 1px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.term-line {
    display: block;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: pre;
}

.term-line.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════════════════ */
.trust-bar {
    background: var(--bg-deep);
    padding: 1.5rem 2rem;
}

.trust-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    row-gap: 1rem;
}

.trust-bar-global {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}

.trust-item {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0 2rem;
}

.trust-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.02em;
}

.trust-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.trust-sep {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .trust-sep { display: none; }
    .trust-item { padding: 0 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   MCP SECTION
   ═══════════════════════════════════════════════════════════ */
.mcp-section {
    padding: 7rem 2rem;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.mcp-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.mcp-text, .mcp-code-wrap { min-width: 0; }

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

.mcp-text h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-bright);
    margin-bottom: 1.25rem;
}

.mcp-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.mcp-text p strong { color: var(--text-bright); font-weight: 600; }

.mcp-tools-label {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.mcp-text p.mcp-tools-more {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}

.mcp-tool-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mcp-tool-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.875rem;
    background: rgba(var(--bg-rgb), 0.55);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s, background 0.15s;
}

.mcp-tool-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.04);
}

.mcp-tool-item code {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 0.8rem;
    color: var(--primary-subtle);
    background: rgba(var(--primary-rgb), 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    min-width: 160px;
    flex-shrink: 0;
}

.mcp-tool-item span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* code block */
.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); }

.mcp-code-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mcp-compat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.mcp-compat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.compat-chip {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════════════════════════ */
.compare-section {
    padding: 7rem 2rem;
    background: var(--bg);
}

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

.compare-inner h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-bright);
    margin-bottom: 0.875rem;
}

.compare-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.comparison-matrix-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.08), transparent 52%),
        rgba(var(--bg-rgb), 0.45);
    box-shadow:
        0 18px 45px rgba(var(--bg-rgb), 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.comparison-matrix {
    min-width: 760px;
}

.comparison-matrix-row {
    display: grid;
    grid-template-columns: 34% 36% 30%;
    border-bottom: 1px solid var(--border);
}

.comparison-matrix-row:last-child {
    border-bottom: none;
}

.comparison-matrix-cell {
    min-width: 0;
    padding: 1rem 1.25rem;
    line-height: 1.45;
}

.comparison-matrix-head .comparison-matrix-cell {
    background: rgba(var(--bg-rgb), 0.72);
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.comparison-matrix-carstat {
    background:
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.075), rgba(var(--primary-rgb), 0.035));
    box-shadow:
        inset 1px 0 0 rgba(var(--primary-rgb), 0.24),
        inset -1px 0 0 rgba(var(--primary-rgb), 0.24);
}

.comparison-matrix-head .comparison-matrix-carstat {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.2), transparent 70%),
        rgba(var(--primary-rgb), 0.09);
}

.comparison-matrix-row:not(.comparison-matrix-head):hover .comparison-matrix-cell {
    background: rgba(var(--primary-rgb), 0.025);
}

.comparison-matrix-row:not(.comparison-matrix-head):hover .comparison-matrix-carstat {
    background: rgba(var(--primary-rgb), 0.07);
}

.compare-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.08), transparent 52%),
        rgba(var(--bg-rgb), 0.45);
    box-shadow:
        0 18px 45px rgba(var(--bg-rgb), 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.compare-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
}

.compare-table th,
.compare-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.45;
}

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

.compare-table thead tr th {
    background: rgba(var(--bg-rgb), 0.72);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-soft);
}

.col-feature { width: 34%; }

.col-carstat {
    width: 36%;
    background:
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.075), rgba(var(--primary-rgb), 0.035));
    box-shadow:
        inset 1px 0 0 rgba(var(--primary-rgb), 0.24),
        inset -1px 0 0 rgba(var(--primary-rgb), 0.24);
}

.col-other { width: 30%; }

.compare-table thead .col-carstat {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.2), transparent 70%),
        rgba(var(--primary-rgb), 0.09);
}

.compare-table tbody tr:hover td {
    background: rgba(var(--primary-rgb), 0.025);
}

.compare-table tbody tr:hover .col-carstat {
    background: rgba(var(--primary-rgb), 0.07);
}

.carstat-header {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.carstat-logo-text {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary);
    letter-spacing: 0.05em;
    text-transform: none;
}

.carstat-tag {
    display: inline-flex;
    width: fit-content;
    padding: 0.26rem 0.48rem;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-name {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.feature-name span:first-child {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.feature-note {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
}

.col-carstat.check {
    font-weight: 700;
    color: var(--success);
    font-size: 0.92rem;
}

.matrix-affirmative {
    color: var(--success);
    font-weight: 700;
    font-size: 0.92rem;
}

.matrix-strong {
    color: var(--text-bright);
    font-weight: 700;
    font-size: 0.92rem;
}

.matrix-qualified {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

.matrix-muted {
    color: var(--text-subtle);
    font-weight: 600;
}

.col-other.check {
    color: var(--success);
    font-weight: 600;
    font-size: 0.92rem;
}

.col-other.cross {
    color: var(--text-subtle);
    font-weight: 600;
    font-size: 0.92rem;
}

.col-other.partial {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   USE CASES
   ═══════════════════════════════════════════════════════════ */
.use-cases {
    padding: 7rem 2rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.use-cases-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.use-cases-inner h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-bright);
    margin-bottom: 3rem;
}

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

@media (max-width: 900px) {
    .use-case-grid { grid-template-columns: 1fr; }
}

.use-case-card {
    background: rgba(var(--bg-rgb), 0.58);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
    min-width: 0;
}

.use-case-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--bg-rgb), 0.8);
    transform: translateY(-3px);
}

.use-case-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.use-case-icon svg { width: 22px; height: 22px; }

.uc-ai         { background: rgba(var(--primary-rgb), 0.1); color: var(--primary-light); }
.uc-dev        { background: rgba(var(--primary-rgb), 0.1); color: var(--primary-light); }
.uc-fleet      { background: rgba(var(--success-rgb), 0.1); color: var(--success); }
.uc-safety     { background: rgba(var(--accent-rgb), 0.1);  color: var(--warning); }
.uc-marketplace{ background: rgba(var(--accent-rgb), 0.1);  color: var(--accent); }
.uc-recall     { background: rgba(var(--danger-rgb), 0.1);  color: var(--danger); }

.use-case-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
}

.use-case-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.use-case-code {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.use-case-code code {
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.73rem;
    color: var(--primary-subtle);
    background: rgba(var(--primary-rgb), 0.07);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Data section styles moved to data_depth.css */

/* ═══════════════════════════════════════════════════════════
   EXPLORE DATA GRID
   ═══════════════════════════════════════════════════════════ */
.explore-section {
    padding: 7rem 2rem;
    background: var(--bg-deep);
}

.explore-inner {
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

.explore-card {
    background: rgba(var(--bg-rgb), 0.62);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Per-card top accent stripe — always visible, signals interactivity */
.explore-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    transition: opacity 0.25s;
    opacity: 0.5;
}

.explore-card:has(.explore-specs)::before   { background: var(--primary); }
.explore-card:has(.explore-safety)::before  { background: var(--success); }
.explore-card:has(.explore-recalls)::before { background: var(--accent); }

/* Subtle color wash per card — makes each feel distinct */
.explore-card:has(.explore-specs)   { background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.07) 0%, rgba(var(--bg-rgb), 0.72) 55%); }
.explore-card:has(.explore-safety)  { background: linear-gradient(160deg, rgba(var(--success-rgb), 0.07) 0%, rgba(var(--bg-rgb), 0.72) 55%); }
.explore-card:has(.explore-recalls) { background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.07) 0%, rgba(var(--bg-rgb), 0.72) 55%); }

.explore-card:hover {
    transform: translateY(-4px);
}

.explore-card:hover::before { opacity: 1; }

.explore-card:has(.explore-specs):hover   { border-color: rgba(var(--primary-rgb), 0.55); box-shadow: 0 16px 40px rgba(var(--bg-rgb), 0.35), 0 0 0 1px rgba(var(--primary-rgb), 0.15); }
.explore-card:has(.explore-safety):hover  { border-color: rgba(var(--success-rgb), 0.55); box-shadow: 0 16px 40px rgba(var(--bg-rgb), 0.35), 0 0 0 1px rgba(var(--success-rgb), 0.15); }
.explore-card:has(.explore-recalls):hover { border-color: rgba(var(--accent-rgb), 0.55);  box-shadow: 0 16px 40px rgba(var(--bg-rgb), 0.35), 0 0 0 1px rgba(var(--accent-rgb), 0.15); }

.explore-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.explore-card-icon svg { width: 22px; height: 22px; }

.explore-specs   { background: rgba(var(--primary-rgb), 0.1); color: var(--primary-light); }
.explore-safety  { background: rgba(var(--success-rgb), 0.1); color: var(--success); }
.explore-recalls { background: rgba(var(--accent-rgb), 0.1);  color: var(--accent); }

.explore-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
}

.explore-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 100px;
    padding: 0.35rem 0.85rem 0.35rem 0.75rem;
    transition: gap 0.15s, background 0.2s, border-color 0.2s;
    margin-top: auto;
}

.explore-card:has(.explore-safety)  .explore-link { color: var(--success); background: rgba(var(--success-rgb), 0.08); border-color: rgba(var(--success-rgb), 0.2); }
.explore-card:has(.explore-recalls) .explore-link { color: var(--accent); background: rgba(var(--accent-rgb), 0.08); border-color: rgba(var(--accent-rgb), 0.2); }

.explore-card:hover .explore-link                              { gap: 0.65rem; }
.explore-card:has(.explore-specs):hover   .explore-link { background: rgba(var(--primary-rgb), 0.18); border-color: rgba(var(--primary-rgb), 0.4); }
.explore-card:has(.explore-safety):hover  .explore-link { background: rgba(var(--success-rgb), 0.15); border-color: rgba(var(--success-rgb), 0.4); }
.explore-card:has(.explore-recalls):hover .explore-link { background: rgba(var(--accent-rgb), 0.15);  border-color: rgba(var(--accent-rgb), 0.4); }

/* ═══════════════════════════════════════════════════════════
   QUERY FLOW
   ═══════════════════════════════════════════════════════════ */
.endpoints {
    padding: 7rem 2rem;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

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

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

.endpoints-sub {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 3rem;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.flow-card {
    background: rgba(var(--bg-rgb), 0.58);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.flow-card-header {
    padding: 0.85rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.flow-card-specs   { background: rgba(var(--primary-rgb), 0.12); color: var(--primary-light); }
.flow-card-recalls { background: rgba(var(--accent-rgb), 0.12);  color: var(--accent); }
.flow-card-safety  { background: rgba(var(--success-rgb), 0.1); color: var(--success); }

.flow-card-steps {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

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

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

.flow-step-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.flow-step-path {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 0.72rem;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flow-step-method {
    color: var(--success);
    margin-right: 0.35rem;
}

.flow-step-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.flow-connector {
    width: 1px;
    height: 1.25rem;
    background: var(--border);
    margin: 0.35rem 0 0.35rem 0.74rem;
}

.endpoints-footer { margin-top: 0.5rem; }

.endpoints-docs-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.15s;
}

.endpoints-docs-link:hover { gap: 0.65rem; }

/* ═══════════════════════════════════════════════════════════
   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-mid {
    padding: 5.5rem 2rem;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(var(--primary-rgb), 0.075), transparent 52%),
        var(--bg);
}

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

.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;
}

.cta-form-wrap {
    display: contents;
}

/* ═══════════════════════════════════════════════════════════
   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;
}


/* ═══════════════════════════════════════════════════════════
   HERO ENTRY ANIMATION
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeInUp 0.5s ease-out 0.1s both; }
.hero-left h1 { animation: fadeInUp 0.5s ease-out 0.2s both; }
.hero-sub      { animation: fadeInUp 0.5s ease-out 0.3s both; }
.hero-actions  { animation: fadeInUp 0.5s ease-out 0.4s both; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero { padding: 7rem 1.25rem 4rem; }

    .mcp-section,
    .compare-section,
    .use-cases,
    .explore-section,
    .data-section,
    .endpoints,
    .cta,
    .faq { padding: 5rem 1.25rem; }

    .flow-grid { grid-template-columns: 1fr; }
    .flow-step-path { font-size: 0.68rem; }

    .trust-bar { padding: 1rem 1.25rem; }
    .trust-item { padding: 0 0.75rem; }

    .compare-table th,
    .compare-table td { padding: 0.75rem 0.875rem; }

    .comparison-matrix-cell { padding: 0.75rem 0.875rem; }

    .col-feature { font-size: 0.82rem; }

    .mcp-tool-item { flex-wrap: wrap; }
    .mcp-tool-item code { min-width: 0; flex-shrink: 1; }

    .use-case-grid { grid-template-columns: 1fr; }

}

@media (max-width: 360px) {
    .hero-left h1 { font-size: clamp(2rem, 9vw, 2.25rem); }
}

/* ═══════════════════════════════════════════════════════════
   VIN DECODING
   ═══════════════════════════════════════════════════════════ */

.vin-section {
    padding: 7rem 2rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.vin-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.vin-text, .vin-code-wrap { min-width: 0; }

@media (max-width: 960px) {
    .vin-inner { grid-template-columns: 1fr; gap: 3rem; }
    .vin-section { padding: 5rem 1.25rem; }
}

.vin-text h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-bright);
    margin-bottom: 1.25rem;
}

.vin-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.vin-text p strong { color: var(--text-bright); font-weight: 600; }

.vin-endpoint-label {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.vin-endpoint-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vin-endpoint-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.75rem 0.875rem;
    background: rgba(var(--bg-rgb), 0.55);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s, background 0.15s;
}

.vin-endpoint-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.04);
}

.vin-endpoint-item code {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 0.8rem;
    color: var(--primary-subtle);
    background: rgba(var(--primary-rgb), 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.vin-endpoint-item span {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.vin-text p.vin-note {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.01em;
}

.vin-code-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Hierarchy refinements: preserve the existing brand typography and surfaces. */
.hero-credit-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.hero-credit-note a { color: var(--primary-light); text-underline-offset: 3px; }
.hero-data-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-soft);
}
.hero-data-links a {
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.75rem;
    color: var(--text-bright);
    text-decoration: none;
}
.hero-data-links a::after { content: ' ↘'; color: var(--primary); }
.hero-data-links a:hover { color: var(--primary-light); }
.hero-data-links a:focus-visible { outline: 2px solid var(--primary); outline-offset: 5px; }
#explore, #vin-decoding, #mcp { scroll-margin-top: 6rem; }
.terminal-fallback { padding: 1.5rem; color: var(--text-bright); line-height: 1.8; }
.terminal-fallback a { color: var(--primary-light); }

/* A supporting resource within MCP, rather than another promotional banner. */
.mcp-agent-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-left: 3px solid var(--primary);
    border-radius: 10px;
    background:
        radial-gradient(ellipse at 8% 50%, rgba(var(--primary-rgb), 0.12), transparent 58%),
        rgba(var(--surface), 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.mcp-agent-copy { min-width: 0; }
.mcp-agent-kicker {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--primary-light);
    font: 500 0.62rem/1.5 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.mcp-agent-guide h3 {
    color: var(--text-bright);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}
.mcp-agent-guide p {
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
}
.mcp-agent-guide .mcp-copy-prompt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(var(--primary-rgb), 0.46);
    border-radius: 8px;
    background: rgba(var(--primary-rgb), 0.12);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-bright);
    cursor: pointer;
}
.mcp-agent-guide .mcp-copy-prompt svg { color: var(--primary-light); }
.mcp-agent-guide .mcp-copy-prompt:hover {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary-light);
}
.mcp-agent-guide .mcp-copy-prompt:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}
.mcp-agent-guide .mcp-copy-prompt.is-copied {
    border-color: rgba(var(--success-rgb), 0.55);
    color: var(--success);
}
.mcp-agent-guide .mcp-copy-prompt.is-copied svg { color: var(--success); }
@media (max-width: 520px) {
    .mcp-agent-guide { align-items: flex-start; flex-direction: column; }
    .mcp-agent-guide .mcp-copy-prompt { align-self: flex-start; }
}

/* Give the landing-page spec sample the same focused orange highlight as the MCP callout. */
.data-section-landing .data-preview-shell-unified {
    padding: 0;
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-left: 2px solid var(--primary);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 22px 56px rgba(var(--bg-rgb), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.data-section-landing .data-preview-main {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: transparent;
    backdrop-filter: none;
}
.data-section-landing .data-preview-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-soft);
}
.data-section-landing .data-preview-sample,
.data-section-landing .data-preview-schema {
    font: 500 0.66rem/1.5 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.data-section-landing .data-preview-sample {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
}
.data-section-landing .data-preview-sample::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    content: '';
}
.data-section-landing .data-preview-schema { color: var(--text-muted); }
.data-section-landing .data-preview-title-row h3 { font-weight: 800; }
.data-section-landing .data-field-count {
    min-width: 92px;
    border-color: rgba(var(--primary-rgb), 0.2);
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.05);
}
.data-section-landing .data-field-count strong { color: var(--text-bright); }
.data-section-landing .data-metric-grid-unified { gap: 0.7rem; }
.data-section-landing .data-metric-card {
    min-height: 116px;
    padding: 1rem 1.05rem;
    border-color: var(--border-soft);
    border-radius: 10px;
    background: rgba(var(--bg-rgb), 0.38);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.data-section-landing .data-metric-card::before,
.data-section-landing .data-metric-battery::before,
.data-section-landing .data-metric-charging::before,
.data-section-landing .data-metric-range::before,
.data-section-landing .data-metric-dimensions::before,
.data-section-landing .data-metric-performance::before,
.data-section-landing .data-metric-towing::before { display: none; }
.data-section-landing .data-metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), 0.28);
    background: rgba(var(--primary-rgb), 0.025);
}
.data-section-landing .data-metric-label {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.65rem;
    font-weight: 500;
}
.data-section-landing .data-metric-card strong { margin-top: 0.9rem; }
.data-section-landing .data-metric-detail { font-size: 0.7rem; }
.data-section-landing .data-preview-note {
    margin: 0.95rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}
.data-section-landing .data-category-grid { gap: 0.65rem; margin-top: 0.85rem; }
.data-section-landing .data-category-card {
    padding: 0.9rem;
    border-radius: 10px;
    background: var(--surface);
    transition: border-color 0.18s ease, background 0.18s ease;
}
.data-section-landing .data-category-card:hover {
    border-color: rgba(var(--primary-rgb), 0.34);
    background: rgba(var(--primary-rgb), 0.045);
}
.data-section-landing .data-category-card h4 { font-size: 0.82rem; }
.data-section-landing .data-category-card p { font-size: 0.73rem; }

/* ═══════════════════════════════════════════════════════════
   MOBILE & ADAPTIVE
   Tiers: touch input at any width · ≤900 tablet · ≤640 phone ·
   short landscape phones. Kept last: it overrides the desktop rules
   above and data_depth.css, which loads after this file, so data-section
   selectors carry an extra class.
   ═══════════════════════════════════════════════════════════ */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

main a,
main button,
main summary,
.mobile-cta-bar a,
.mobile-cta-bar button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Side gutters clear the notch and rounded corners in landscape. */
.hero,
.trust-bar,
.explore-section,
.vin-section,
.data-section.data-section-landing,
.mcp-section,
.use-cases,
.faq,
.cta {
    --landing-gutter: 2rem;
    --landing-gutter-left: max(var(--landing-gutter), env(safe-area-inset-left));
    --landing-gutter-right: max(var(--landing-gutter), env(safe-area-inset-right));
    padding-left: var(--landing-gutter-left);
    padding-right: var(--landing-gutter-right);
}

.use-case-grid:focus-visible,
.data-section-landing .data-metric-grid-unified:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 16px;
}

.mobile-cta-bar { display: none; }

/* ── Touch input: no sticky hover lifts, visible press feedback, 44px targets ── */
@media (hover: none) {
    .btn-primary:hover,
    form.btn-form:hover,
    .explore-card:hover,
    .use-case-card:hover,
    .data-section-landing .data-metric-card:hover,
    .data-section-landing .data-depth-link:hover,
    .chat-example-dot:hover { transform: none; }

    .btn:active,
    .data-section-landing .data-depth-link:active,
    .mcp-agent-guide .mcp-copy-prompt:active,
    .hero-data-links a:active { transform: scale(0.97); }
    .explore-card:active { transform: scale(0.985); background: rgba(var(--primary-rgb), 0.06); }
    .faq-item summary:active { opacity: 0.7; }
}

@media (pointer: coarse) {
    .hero-data-links a,
    .endpoints-docs-link,
    .faq-item p a,
    .data-section-landing .data-depth-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    /* Inline padding enlarges the hit area without moving the line box. */
    .hero-credit-note a { padding-block: 0.75rem; }
    .chat-example-dot { width: 40px; height: 40px; font-size: 0.72rem; }
    .use-case-grid,
    .data-section-landing .data-metric-grid-unified { scrollbar-width: none; }
    .use-case-grid::-webkit-scrollbar,
    .data-section-landing .data-metric-grid-unified::-webkit-scrollbar { display: none; }
}

/* ── Tablet and below ── */
@media (max-width: 900px) {
    /* Explore cards become navigation list rows. */
    .explore-grid { gap: 0.75rem; }
    .explore-grid .explore-card {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) 20px;
        grid-template-areas: "icon title link" "icon text link";
        column-gap: 1rem;
        row-gap: 0.3rem;
        align-items: start;
        padding: 1.1rem 1rem 1.15rem 1.15rem;
        border-radius: 14px;
    }
    .explore-grid .explore-card::before {
        top: 0;
        bottom: 0;
        right: auto;
        width: 3px;
        height: auto;
        border-radius: 14px 0 0 14px;
    }
    .explore-grid .explore-card-icon { grid-area: icon; width: 40px; height: 40px; }
    .explore-grid .explore-card h3 { grid-area: title; font-size: 1rem; line-height: 1.35; }
    .explore-grid .explore-card p { grid-area: text; font-size: 0.84rem; line-height: 1.55; }
    /* The whole row is the link; keep the label for assistive tech, show only the chevron. */
    .explore-grid .explore-card .explore-link,
    .explore-grid .explore-card:hover .explore-link {
        grid-area: link;
        align-self: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
        font-size: 0;
    }
    .explore-grid .explore-card .explore-link svg { width: 18px; height: 18px; }

    /* Use cases become a full-bleed swipeable shelf with the next card peeking. */
    .use-case-grid {
        display: flex;
        gap: 0.875rem;
        margin-inline: calc(-1 * var(--landing-gutter-left)) calc(-1 * var(--landing-gutter-right));
        padding: 0.25rem var(--landing-gutter-right) 1rem var(--landing-gutter-left);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--landing-gutter-left) var(--landing-gutter-right);
        scrollbar-width: thin;
    }
    .use-case-card {
        flex: 0 0 min(84%, 22rem);
        scroll-snap-align: start;
        padding: 1.5rem;
    }
}

/* ── Tablet portrait and phones ── */
@media (max-width: 768px) {
    .hero,
    .trust-bar,
    .explore-section,
    .vin-section,
    .data-section.data-section-landing,
    .mcp-section,
    .use-cases,
    .faq,
    .cta { --landing-gutter: 1.25rem; }

    .data-section.data-section-landing { padding-top: 5rem; padding-bottom: 5rem; }
    #explore, #vin-decoding, #mcp { scroll-margin-top: calc(5.25rem + env(safe-area-inset-top)); }
}

/* ── Phones ── */
@media (max-width: 640px) {
    .hero { padding-top: calc(6rem + env(safe-area-inset-top)); padding-bottom: 3rem; }
    .explore-section,
    .vin-section,
    .data-section.data-section-landing,
    .mcp-section,
    .use-cases,
    .faq { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .cta { padding-top: 4rem; padding-bottom: 4.5rem; }

    .hero-inner { gap: 2.25rem; }
    .vin-inner,
    .mcp-inner { gap: 2rem; }

    .explore-inner h2,
    .vin-text h2,
    .mcp-text h2,
    .use-cases-inner h2,
    .data-section-landing .data-inner h2,
    .faq h2,
    .cta h2 {
        font-size: clamp(1.75rem, 8vw, 2.125rem);
        line-height: 1.15;
        text-wrap: balance;
    }
    .explore-inner h2,
    .use-cases-inner h2,
    .faq h2 { margin-bottom: 1.75rem; }
    .vin-text p,
    .mcp-text p { font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }

    /* Hero: stacked full-width actions in the thumb zone, chips for section jumps. */
    .hero-sub { font-size: 1.0625rem; margin-bottom: 1.75rem; }
    .hero-actions,
    .cta-actions { flex-direction: column; align-items: stretch; gap: 0.625rem; }
    .cta-actions { max-width: 22rem; margin-inline: auto; }
    .hero-actions > *,
    .cta-actions > * { width: 100%; }
    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
        min-height: 52px;
        justify-content: center;
    }
    .hero-data-links { gap: 0.5rem; margin-top: 1.5rem; padding-top: 1.25rem; }
    .hero-data-links a {
        padding: 0 0.95rem;
        border: 1px solid var(--border-soft);
        border-radius: 999px;
        background: rgba(var(--bg-rgb), 0.55);
    }

    /* Stats: three per row, figure over label. */
    .trust-bar { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .trust-bar-inner { row-gap: 1.1rem; }
    .trust-item {
        flex: 0 0 33.333%;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
        min-width: 0;
        padding: 0 0.25rem;
        text-align: center;
    }
    .trust-label { font-size: 0.72rem; white-space: normal; }
    .trust-bar-global .trust-item { flex-basis: 100%; }
    .trust-bar-global .trust-num { font-size: 1rem; }

    /* Code samples: denser type, single-line headers, horizontal scroll stays inside. */
    .code-header { padding: 0.75rem 1rem; }
    .code-dot { width: 10px; height: 10px; flex-shrink: 0; }
    .code-title {
        min-width: 0;
        margin-left: 0.5rem;
        overflow: hidden;
        font-size: 0.72rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .code-body { padding: 1rem; overscroll-behavior-x: contain; }
    .code-body pre { font-size: 0.72rem; line-height: 1.7; }

    .mcp-tool-item { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
    .mcp-agent-guide .mcp-copy-prompt { align-self: stretch; width: 100%; }

    /* Data sample: compact title row, metric cards as a swipeable strip. */
    .data-section-landing .data-landing-header { gap: 1rem; margin-bottom: 1.5rem; }
    .data-section-landing .data-sub { font-size: 1rem; }
    .data-section-landing .data-preview-main { padding: 1.25rem; }
    .data-section-landing .data-preview-title-row {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 1.1rem;
    }
    .data-section-landing .data-preview-title-row p { font-size: 0.85rem; }
    .data-section-landing .data-field-count { min-width: 76px; padding: 0.6rem; }
    .data-section-landing .data-field-count strong { font-size: 1.3rem; }
    .data-section-landing .data-metric-grid-unified {
        display: flex;
        gap: 0.6rem;
        margin-inline: -1.25rem;
        padding: 0 1.25rem 0.25rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1.25rem;
    }
    .data-section-landing .data-metric-card {
        flex: 0 0 min(72%, 15rem);
        min-height: 0;
        scroll-snap-align: start;
    }
    .data-section-landing .data-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
    .data-section-landing .data-category-card { padding: 0.8rem; }

    .faq-item summary { min-height: 56px; padding: 1rem 0; font-size: 0.975rem; }
    .cta p { font-size: 1rem; margin-bottom: 1.75rem; }

    /* Bottom action bar, revealed by the sticky-cta controller. It floats like the
       navbar: iOS toolbars overlay the page below the viewport, where fixed
       elements can't paint, so an edge-to-edge bar showed page content beneath it. */
    .mobile-cta-bar {
        position: fixed;
        right: max(1rem, env(safe-area-inset-right));
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        left: max(1rem, env(safe-area-inset-left));
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.5rem 0.5rem 0.5rem 1.25rem;
        border: 1px solid var(--border-soft);
        border-radius: 9999px;
        background: rgba(var(--bg-rgb), 0.92);
        backdrop-filter: saturate(150%) blur(20px);
        -webkit-backdrop-filter: saturate(150%) blur(20px);
        box-shadow: 0 12px 32px rgba(var(--bg-rgb), 0.6);
        transform: translateY(calc(100% + 3rem));
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
    }
    .mobile-cta-bar.is-visible {
        transform: none;
        visibility: visible;
        transition: transform 0.25s ease;
    }
    .mobile-cta-copy {
        display: flex;
        flex-direction: column;
        min-width: 0;
        margin: 0;
        line-height: 1.3;
    }
    .mobile-cta-copy strong,
    .mobile-cta-copy > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mobile-cta-copy strong { color: var(--text-bright); font-size: 0.875rem; font-weight: 700; }
    .mobile-cta-copy > span { color: var(--text-muted); font-size: 0.72rem; }
    .mobile-cta-num { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
    .mobile-cta-bar form { flex-shrink: 0; }
    .mobile-cta-bar .btn {
        min-height: 48px;
        padding: 0.7rem 1.1rem;
        border-radius: 9999px;
        box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
    }
}

@media (max-width: 340px) {
    .mobile-cta-copy > span { display: none; }
    .mobile-cta-bar .btn { padding-inline: 0.9rem; }
}

/* ── Short landscape phones: the viewport is ~350px tall ── */
@media (orientation: landscape) and (max-height: 500px) {
    .hero { padding-top: calc(5.5rem + env(safe-area-inset-top)); padding-bottom: 3rem; }
    .hero-left h1 { font-size: clamp(2.25rem, 6vw, 3rem); }
    .explore-section,
    .vin-section,
    .data-section.data-section-landing,
    .mcp-section,
    .use-cases,
    .faq,
    .cta { padding-top: 4rem; padding-bottom: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-cta-bar,
    .mobile-cta-bar.is-visible { transition: none; }
}
