/* Intent Design System — Shared Stylesheet
   Matches inline styles from signals.html and roadmap.html.
   Palette from CLAUDE.md design system specification. */

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

:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --border: #334155;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent-blue: #3b82f6;
    --accent-amber: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --green-bright: #22c55e;
    --red: #ef4444;
    --gap: 1rem;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    font-size: 15px;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--text);
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
nav.site-nav {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

nav.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

nav.site-nav a:hover {
    color: var(--text);
}

nav.site-nav a.logo {
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 1rem;
    letter-spacing: -0.5px;
}

nav.site-nav a.logo span {
    color: var(--accent-blue);
}

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

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero .subtitle {
    color: var(--accent-blue);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero .description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 700px;
}

/* Sections */
section {
    padding: 3rem 0;
}

section + section {
    border-top: 1px solid var(--border);
}

section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

section p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

section p:last-child {
    margin-bottom: 0;
}

/* Card Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

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

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

/* Persona-colored cards */
.card.notice, .card[data-phase="notice"] {
    border-left: 3px solid var(--accent-amber);
}
.card.notice h3, .card[data-phase="notice"] h3 {
    color: var(--accent-amber);
}

.card.spec, .card[data-phase="spec"] {
    border-left: 3px solid var(--accent-blue);
}
.card.spec h3, .card[data-phase="spec"] h3 {
    color: var(--accent-blue);
}

.card.execute, .card[data-phase="execute"] {
    border-left: 3px solid var(--accent-green);
}
.card.execute h3, .card[data-phase="execute"] h3 {
    color: var(--accent-green);
}

.card.observe, .card[data-phase="observe"] {
    border-left: 3px solid var(--accent-purple);
}
.card.observe h3, .card[data-phase="observe"] h3 {
    color: var(--accent-purple);
}

/* Shift cards (from → to) */
.shift-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.shift-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.shift-card .from {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.shift-card .to {
    color: var(--accent-amber);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Getting Started / Links */
.getting-started p {
    margin-bottom: 0.75rem;
}

.getting-started strong {
    color: var(--text);
}

.getting-started a {
    color: var(--accent-blue);
}

.getting-started a:hover {
    text-decoration: underline;
}

/* Why section */
.why-intent p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Page header (for inner pages) */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Content sections for methodology/concept-brief */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content ul, .content ol {
    color: var(--text-muted);
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content blockquote {
    border-left: 3px solid var(--accent-blue);
    padding-left: 1rem;
    color: var(--text-dim);
    margin: 1.5rem 0;
    font-style: italic;
}

.content code {
    background: var(--surface);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--accent-blue);
}

.content pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.content pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

th {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

tr:hover td {
    background: rgba(30, 41, 59, 0.5);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
}

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

footer a:hover {
    color: var(--text);
}

/* Decision log entries */
.decision-entry {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.decision-entry h3 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.decision-entry .meta {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.decision-entry p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Badges and tags */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.operational { background: rgba(245,158,11,0.15); color: var(--accent-amber); }
.badge.conceptual { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.badge.defined { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.badge.schema-ready { background: rgba(139,92,246,0.15); color: var(--accent-purple); }

/* ================================================
   Scroll reveal animations
   ================================================ */
.scroll-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   Sub-navigation (technical pages)
   ================================================ */
.sub-nav {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    gap: 20px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.125);
    flex-wrap: wrap;
}
.sub-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.sub-nav a:hover,
.sub-nav a.active {
    color: var(--accent-blue);
}

/* ================================================
   Hero variants (pitch, technical pages)
   ================================================ */
.hero-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 20px;
}
.hero-page .kicker {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.hero-page h1 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 16px;
}
.hero-page h1 .accent {
    color: var(--accent-blue);
}
.hero-page .subtitle {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 640px;
    line-height: 1.6;
}

/* ================================================
   Labeled dividers
   ================================================ */
.labeled-divider {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.labeled-divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--surface);
}
.labeled-divider .label {
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* ================================================
   Section numbering (pitch, architecture, etc.)
   ================================================ */
.section-num {
    color: var(--border);
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: -8px;
    line-height: 1;
}
.section-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}
.section-title .hl { color: var(--accent-amber); }
.section-title .hl-blue { color: var(--accent-blue); }
.section-title .hl-green { color: var(--accent-green); }
.section-title .hl-purple { color: var(--accent-purple); }
.section-body {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 640px;
    margin-bottom: 24px;
}

/* ================================================
   Callout boxes
   ================================================ */
.callout {
    border-left: 3px solid var(--accent-blue);
    padding: 20px 24px;
    margin: 32px 0;
    background: var(--surface);
    border-radius: 0 8px 8px 0;
}
.callout p {
    font-size: 16px;
    font-style: italic;
    color: #cbd5e1;
}
.callout .attr {
    font-size: 13px;
    color: var(--text-dim);
    font-style: normal;
    margin-top: 8px;
}
.callout .highlight {
    font-weight: 600;
}

/* ================================================
   CTA section
   ================================================ */
.cta-section {
    text-align: center;
    padding: 80px 24px 100px;
    max-width: 900px;
    margin: 0 auto;
}
.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.cta-section p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 32px;
}
.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.cta-btn.primary {
    background: var(--accent-blue);
    color: #fff;
}
.cta-btn.primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}
.cta-btn.secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.cta-btn.secondary:hover {
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

/* ================================================
   Stat rows
   ================================================ */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.stat-box {
    text-align: center;
    padding: 24px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.stat-box .num {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--accent-amber);
}
.stat-box .unit {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ================================================
   Code blocks (deployment, architecture)
   ================================================ */
.code-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
    overflow-x: auto;
}
.code-block .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 12px;
}
.code-block pre {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
    white-space: pre;
}
.code-block pre .comment { color: var(--text-dim); }
.code-block pre .cmd { color: var(--accent-green); }
.code-block pre .string { color: #93c5fd; }
.code-block pre .key { color: #c4b5fd; }
.code-block pre .value { color: #fcd34d; }

/* ================================================
   Diagram box (ASCII art containers)
   ================================================ */
.diagram-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    overflow-x: auto;
}
.diagram-box pre {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    white-space: pre;
}
.diagram-box pre .hl-blue { color: var(--accent-blue); }
.diagram-box pre .hl-green { color: var(--accent-green); }
.diagram-box pre .hl-amber { color: var(--accent-amber); }
.diagram-box pre .hl-purple { color: var(--accent-purple); }

/* ================================================
   Monospace code inline
   ================================================ */
code {
    background: var(--surface);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--accent-blue);
    font-family: 'SF Mono', 'Fira Code', 'Monaco', 'Menlo', monospace;
}

/* ================================================
   Tool pills (agents page)
   ================================================ */
.tool-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tool-pill {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ================================================
   Workflow numbered list
   ================================================ */
.workflow-list {
    list-style: none;
    counter-reset: step;
    margin: 16px 0;
}
.workflow-list li {
    counter-increment: step;
    font-size: 14px;
    color: #cbd5e1;
    padding: 8px 0 8px 36px;
    position: relative;
    border-bottom: 1px solid rgba(51, 65, 85, 0.125);
}
.workflow-list li:last-child { border-bottom: none; }
.workflow-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 8px;
    width: 24px;
    height: 24px;
    background: rgba(59, 130, 246, 0.09);
    color: #93c5fd;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================================
   Responsive utilities
   ================================================ */
@media (max-width: 700px) {
    .scroll-section { padding: 40px 24px; }
    .stat-row { grid-template-columns: 1fr; }
    nav.site-nav { gap: 1rem; }
    .sub-nav { gap: 12px; }
}
