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

:root {
    --bg:             #f8f8fa;
    --bg-card:        #ffffff;
    --bg-input:       #f3f4f6;
    --bg-code:        #f8f9fc;
    --bg-nav:         rgba(255,255,255,0.92);

    --border:         #e2e5ea;
    --border-focus:   #2563eb;

    --text:           #1a1a2e;
    --text-muted:     #4a5568;
    --text-dim:       #9ca3af;

    --accent:         #2563eb;
    --accent-light:   #eff4ff;
    --accent-hover:   #1d4ed8;

    --green:          #16a34a;
    --green-bg:       #f0fdf4;
    --green-border:   #bbf7d0;
    --yellow:         #b45309;
    --yellow-bg:      #fffbeb;
    --yellow-border:  #fde68a;
    --red:            #dc2626;
    --red-bg:         #fef2f2;
    --red-border:     #fecaca;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden { display: none !important; }

/* ── Navigation ────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
}

.nav-logo svg { flex-shrink: 0; }

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--bg-input); }

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    padding: 0.3rem 0.65rem;
    background: var(--bg-input);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: background 0.3s;
}
.status-dot.online { background: var(--green); box-shadow: 0 0 6px rgba(22,163,74,0.4); }
.status-dot.offline { background: var(--red); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}
.hero-cta:hover { background: var(--accent-hover); }
.hero-cta:active { transform: scale(0.98); }
.hero-cta svg { flex-shrink: 0; }

/* ── Value Proposition ─────────────────────────────────── */
.value-section {
    padding-bottom: 3rem;
}

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

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.value-card:hover {
    border-color: #c7d2e0;
    box-shadow: var(--shadow);
}

.value-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.value-icon.screen { background: var(--accent-light); color: var(--accent); }
.value-icon.score { background: var(--yellow-bg); color: var(--yellow); }
.value-icon.route { background: var(--green-bg); color: var(--green); }

.value-card h3 {
    font-size: 1rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Traffic-light zones */
.zone-strip {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.zone-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}
.zone-pill.zp-green { background: var(--green-bg); color: var(--green); }
.zone-pill.zp-yellow { background: var(--yellow-bg); color: var(--yellow); }
.zone-pill.zp-red { background: var(--red-bg); color: var(--red); }

.zone-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.zone-pill.zp-green .zone-dot { background: var(--green); }
.zone-pill.zp-yellow .zone-dot { background: var(--yellow); }
.zone-pill.zp-red .zone-dot { background: var(--red); }

/* ── Pipeline ──────────────────────────────────────────── */
.pipeline-section {
    padding-bottom: 3.5rem;
}

.section-label {
    font-size: 0.78rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 560px;
}

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

.pipeline-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.pipeline-step.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light), var(--shadow);
}

.pipeline-step.done {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-bg);
}

.pipeline-step.failed {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-bg);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.pipeline-step.active .step-number { background: var(--accent); color: white; }
.pipeline-step.done .step-number { background: var(--green); color: white; }
.pipeline-step.failed .step-number { background: var(--red); color: white; }

.step-label {
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--text);
}

.step-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Connector arrows between pipeline steps */
.pipeline-step:not(:nth-child(3n))::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid var(--border);
    z-index: 1;
}
.pipeline-step:nth-child(3)::after { display: none; }

/* ── Demo Section ──────────────────────────────────────── */
.demo-section {
    padding-bottom: 3rem;
}

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.examples-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.examples-label {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 600;
}

.example-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
    font-weight: 500;
}
.example-btn:hover { border-color: #b0b8c8; color: var(--text); }

.example-btn.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }

.example-green:hover, .example-green.active { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.example-yellow:hover, .example-yellow.active { border-color: var(--yellow); color: var(--yellow); background: var(--yellow-bg); }
.example-red:hover, .example-red.active { border-color: var(--red); color: var(--red); background: var(--red-bg); }

/* Form */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

input[type="url"], textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    resize: vertical;
}

input[type="url"]:focus, textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

input::placeholder, textarea::placeholder {
    color: var(--text-dim);
}

button#analyzeBtn {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
}
button#analyzeBtn:hover { background: var(--accent-hover); }
button#analyzeBtn:disabled { opacity: 0.55; cursor: not-allowed; }

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Progress ──────────────────────────────────────────── */
.progress-section {
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}

/* ── Error Box ─────────────────────────────────────────── */
.error-box {
    padding: 0.85rem 1rem;
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    border-radius: var(--radius-sm);
    color: var(--red);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* ── Result Cards ──────────────────────────────────────── */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.4s ease;
}

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

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.15); }
    50% { box-shadow: 0 0 0 6px transparent; border-color: var(--accent); }
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 650;
    color: var(--text);
}

.phase-subtitle {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 400;
}

.card-explainer {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.card-explainer strong { color: var(--text); }
.card-explainer em { color: var(--accent); font-style: normal; font-weight: 600; }

.phase-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Zone Badge */
.zone-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.zone-badge.auto_apply { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.zone-badge.human_review { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.zone-badge.defer_to_human, .zone-badge.deferred { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.zone-badge.intent_passed { background: var(--accent-light); color: var(--accent); border: 1px solid #bfdbfe; }

/* Overview Card */
.overview-card { border-left: 4px solid var(--accent); }
.overview-card.zone-auto-apply { border-left-color: var(--green); }
.overview-card.zone-human-review { border-left-color: var(--yellow); }
.overview-card.zone-defer { border-left-color: var(--red); }

.overview-message {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}
.overview-message strong { color: var(--text); }

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.stat-box {
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--text);
}

/* ── Intent Grid ───────────────────────────────────────── */
.intent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
}

.intent-metric {
    padding: 0.85rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.metric-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.metric-value {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--text);
}

.metric-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 0.4rem;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
}

.metric-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.4rem;
    line-height: 1.45;
}

.metric-tooltip {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
    line-height: 1.4;
    opacity: 0.7;
}

.bar-green { background: var(--green); }
.bar-yellow { background: var(--yellow); }
.bar-red { background: var(--red); }
.bar-accent { background: var(--accent); }

.zone-auto { color: var(--green); font-weight: 700; }
.zone-review { color: var(--yellow); font-weight: 700; }
.zone-defer { color: var(--red); font-weight: 700; }

/* ── Clarification Box ─────────────────────────────────── */
.clarification-box {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    border-radius: var(--radius-sm);
}

.clarification-box h4 {
    font-size: 0.85rem;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.clarification-box ul {
    padding-left: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.clarification-box li { margin-bottom: 0.3rem; }

.clar-note {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 0.75rem;
    font-style: italic;
}

/* ── Trust Signal Cards ────────────────────────────────── */
.trust-signals-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trust-signal-card {
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.sig-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.sig-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.sig-good { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.sig-bad { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.sig-warn { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }

.sig-key {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--text);
}

.sig-full {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sig-val {
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--text);
    margin-left: auto;
}

.sig-weight {
    font-size: 0.72rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

.sig-verdict {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.sig-verdict.good { background: var(--green-bg); color: var(--green); }
.sig-verdict.bad { background: var(--red-bg); color: var(--red); }
.sig-verdict.warn { background: var(--yellow-bg); color: var(--yellow); }

.trust-signal-card .signal-bar-container {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.sig-desc {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-top: 0.5rem;
}
.sig-desc strong { color: var(--text-muted); }

/* ── Signal Bars ───────────────────────────────────────── */
.signal-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.signal-name {
    width: 120px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.signal-bar-container {
    flex: 1;
    height: 20px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.signal-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
    min-width: 2px;
}

.signal-value {
    width: 55px;
    text-align: right;
    font-size: 0.82rem;
    font-family: var(--mono);
    font-weight: 600;
    flex-shrink: 0;
    color: var(--text);
}

.signal-weight {
    width: 60px;
    text-align: right;
    font-size: 0.72rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* ── CTS Gauge ─────────────────────────────────────────── */
.cts-gauge {
    position: relative;
    height: 52px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.cts-zone-segment {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cts-marker {
    position: absolute;
    top: -2px;
    width: 3px;
    height: 56px;
    background: var(--text);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
    transition: left 1s ease;
}

.cts-score-label {
    text-align: center;
    font-family: var(--mono);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cts-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: var(--mono);
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
}

.subsection-title {
    font-size: 0.92rem;
    font-weight: 650;
    margin: 1.25rem 0 0.5rem;
    color: var(--text);
}

.override-box {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--red);
    font-weight: 500;
}

/* ── Code block ────────────────────────────────────────── */
.code-block {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 0.75rem;
}

.code-block pre {
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-lang-tag {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* ── Flags ─────────────────────────────────────────────── */
.flag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.flag-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    background: var(--yellow-bg);
    color: var(--yellow);
    border: 1px solid var(--yellow-border);
    border-radius: 4px;
}

/* ── Generation meta ───────────────────────────────────── */
.gen-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* ── How It Works: Accordion ───────────────────────────── */
.howto-section {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
}

.accordion-panel {
    border-bottom: 1px solid var(--border);
}

.accordion-panel summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.accordion-panel summary::-webkit-details-marker { display: none; }

.accordion-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.accordion-title {
    font-size: 1rem;
    font-weight: 650;
    color: var(--text);
}

.accordion-subtitle {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-left: auto;
}

.accordion-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--text-dim);
    margin-left: 0.5rem;
}

.accordion-panel[open] .accordion-chevron { transform: rotate(180deg); }

.accordion-body {
    padding: 0 0 1.5rem 0;
}

.accordion-plain {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 680px;
}

.accordion-details {
    display: grid;
    gap: 0.5rem;
}

.detail-item {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.detail-item strong {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.78rem;
}

.detail-item .detail-name {
    color: var(--text);
    font-weight: 600;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.65;
}

.footer strong { color: var(--text-muted); }

.footer a {
    color: var(--accent);
    text-decoration: none;
}
.footer a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 3rem 0.5rem 2rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero-subtitle { font-size: 1rem; }

    .value-grid { grid-template-columns: 1fr; gap: 1rem; }

    .pipeline-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .pipeline-step::after { display: none !important; }

    .nav-links { display: none; }

    .examples-bar { justify-content: center; }

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

    .signal-name { width: 85px; font-size: 0.75rem; }
    .signal-weight { display: none; }
    .sig-full { display: none; }

    .accordion-subtitle { display: none; }

    .demo-card { padding: 1.25rem; }

    .zone-strip { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero h1 { font-size: 1.5rem; }
    .intent-grid { grid-template-columns: 1fr; }
    .overview-stats { grid-template-columns: 1fr; }
    .examples-bar { gap: 0.35rem; }
    .example-btn { font-size: 0.75rem; padding: 0.35rem 0.65rem; }
}
