* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
    --bg: #f5f5f4;
    --bg-surface: #fafaf9;
    --bg-elevated: #ffffff;
    --bg-hover: #f0efee;
    --border: #d6d3d1;
    --text: #292524;
    --text-strong: #1c1917;
    --text-muted: #78716c;
    --text-dim: #a8a29e;
    --accent: #c17856;
    --accent-hover: #a8603e;
    --accent-dark: #8b4c32;
    --shadow: rgba(0, 0, 0, 0.1);

    --bg-sunken:     #ebe9e6;
    --border-soft:   #e3e0dc;
    --border-strong: #b8b3ac;
    --accent-soft:   rgba(193, 120, 86, 0.10);
    --accent-ring:   rgba(193, 120, 86, 0.22);

    --shadow-xs: 0 1px 0 rgba(28, 25, 23, 0.04);
    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
    --shadow-md: 0 4px 12px -2px rgba(28, 25, 23, 0.08);
    --shadow-lg: 0 12px 32px -8px rgba(28, 25, 23, 0.18);

    --r-sm: 5px;
    --r-md: 7px;
    --r-lg: 9px;
    --r-xl: 12px;

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --danger:        #dc2626;
    --danger-hover:  #b91c1c;
    --success:       #16a34a;
    --warning:       #a16207;
    --signal-red:    #dc2626;
    --signal-green:  #16a34a;
    --signal-amber:  #a16207;
    --signal-blue:   #2563eb;

    --canvas-edge: rgba(0, 0, 0, 0.1);
    --canvas-edge-highlight: rgba(193, 120, 86, 0.6);
    --canvas-edge-dim: rgba(0, 0, 0, 0.03);
    --canvas-edge-label: rgba(0, 0, 0, 0.25);
    --canvas-edge-label-highlight: rgba(193, 120, 86, 0.8);
    --canvas-edge-label-dim: rgba(0, 0, 0, 0.06);
    --canvas-arrow: rgba(0, 0, 0, 0.15);
    --canvas-arrow-highlight: rgba(193, 120, 86, 0.6);
    --canvas-node-label: #57534e;
    --canvas-node-label-dim: rgba(87, 83, 78, 0.2);
    --canvas-type-badge: rgba(87, 83, 78, 0.5);
    --canvas-type-badge-dim: rgba(87, 83, 78, 0.15);
    --canvas-selection-border: #292524;
    --canvas-node-border: rgba(0, 0, 0, 0.1);
    --canvas-walk-edge: #1a1a1a;
}

/* Dark theme available via [data-theme="dark"] if we add a toggle later */
[data-theme="dark"] {
    --bg: #0f0f0f;
    --bg-surface: #1a1a1a;
    --bg-elevated: #1e1e1e;
    --bg-hover: #222222;
    --border: #2a2a2a;
    --text: #d4d4d4;
    --text-strong: #e5e5e5;
    --text-muted: #737373;
    --text-dim: #525252;
    --accent: #d4a27f;
    --accent-hover: #e8b898;
    --accent-dark: #b07a5e;
    --shadow: rgba(0, 0, 0, 0.4);

    --bg-sunken:     #101010;
    --border-soft:   #1f1f1f;
    --border-strong: #3a3a3a;
    --accent-soft:   rgba(212, 162, 127, 0.12);
    --accent-ring:   rgba(212, 162, 127, 0.28);

    --shadow-xs: 0 1px 0 rgba(0,0,0,0.3);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
    --shadow-md: 0 4px 14px -2px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-lg: 0 16px 40px -12px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.4);

    --danger:        #ef4444;
    --danger-hover:  #dc2626;
    --success:       #22c55e;
    --warning:       #eab308;
    --signal-red:    #ef4444;
    --signal-green:  #22c55e;
    --signal-amber:  #eab308;
    --signal-blue:   #5a9fd4;

    --canvas-edge: rgba(255, 255, 255, 0.08);
    --canvas-edge-highlight: rgba(212, 162, 127, 0.5);
    --canvas-edge-dim: rgba(255, 255, 255, 0.03);
    --canvas-edge-label: rgba(255, 255, 255, 0.2);
    --canvas-edge-label-highlight: rgba(212, 162, 127, 0.7);
    --canvas-edge-label-dim: rgba(255, 255, 255, 0.05);
    --canvas-arrow: rgba(255, 255, 255, 0.12);
    --canvas-arrow-highlight: rgba(212, 162, 127, 0.5);
    --canvas-node-label: #a3a3a3;
    --canvas-node-label-dim: rgba(212, 212, 212, 0.2);
    --canvas-type-badge: rgba(115, 115, 115, 0.5);
    --canvas-type-badge-dim: rgba(115, 115, 115, 0.15);
    --canvas-selection-border: #d4d4d4;
    --canvas-node-border: rgba(255, 255, 255, 0.15);
    --canvas-walk-edge: #e8d5c4;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.005em;
}

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

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.nav-brand {
    flex: 1;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.15s;
}

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

.nav-cta { flex: 1; display: flex; justify-content: flex-end; gap: 8px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
    border: 1px solid transparent;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-strong);
    background: var(--bg-hover);
    color: var(--text);
}

.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-disabled { opacity: 0.5; cursor: default; pointer-events: none; }

.pricing-action .waitlist-form {
    margin-top: 10px;
}

.waitlist-form {
    display: flex;
    gap: 6px;
}

.waitlist-form input[type="email"] {
    flex: 1;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    min-width: 0;
}

.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.waitlist-thanks {
    font-size: 13px;
    color: var(--accent);
    margin-top: 8px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 100px 24px 80px;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

#hero-graph {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    opacity: 0.10;
    z-index: 0;
    pointer-events: none;
    clip-path: inset(0 0 0 0);
}

#hero-graph canvas {
    width: 100%;
    height: 100%;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Sections */
.section {
    padding: 80px 24px;
    width: 100%;
}

.section-dark {
    background: var(--bg-sunken);
}

[data-theme="dark"] .section-dark {
    background: var(--bg-surface);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-strong);
    text-align: center;
    margin-bottom: 48px;
}

.section-cta {
    text-align: center;
    padding: 80px 24px;
}

.section-cta h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 12px;
}

.section-cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 16px;
}

/* Demo viewer */
.section-demo .section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.demo-viewer {
    position: relative;
    width: 100%;
    height: 500px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-surface);
}

#demo-graph {
    width: 100%;
    height: 100%;
}

#demo-graph canvas {
    width: 100%;
    height: 100%;
}

.demo-info {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 260px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    font-size: 14px;
    box-shadow: var(--shadow-md);
}

.demo-info.hidden { display: none; }

.demo-info-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 4px;
}

.demo-info-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 8px;
}

.demo-info-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Tool grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
}

.tool-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s;
}

.tool-item:hover {
    border-color: var(--accent);
}

.tool-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-strong);
}

/* Setup tabs */
.setup-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.setup-tab {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.setup-tab:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.setup-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.setup-panel {
    display: none;
}

.setup-panel.active {
    display: block;
}

.setup-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-num {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 18px;
    color: var(--text-strong);
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Modes / Integrations */
.modes, .integrations {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mode-card {
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    flex: 1;
    min-width: 280px;
    max-width: 500px;
}

.mode-featured {
    border-color: var(--accent);
}

.mode-card h3 {
    font-size: 20px;
    color: var(--text-strong);
    margin-bottom: 4px;
}

.mode-badge {
    font-size: 12px;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.mode-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.mode-card code {
    display: block;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text);
    overflow-x: auto;
}

.mode-full {
    flex: none;
    width: 100%;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
    padding: 36px 40px;
}

.integration-columns {
    display: flex;
    gap: 48px;
    margin-top: 8px;
}

.integration-columns .integration-steps {
    flex: 1;
}

.mode-note {
    font-size: 12px !important;
    color: var(--text-dim) !important;
    margin-bottom: 0 !important;
    margin-top: 4px;
}

.modes .code-snippet code {
    font-size: 11.5px;
    white-space: pre-wrap;
    word-break: break-all;
}

.integration-steps {
    margin-bottom: 16px;
}

.integration-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.integration-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-step strong {
    color: var(--text);
}

.integration-steps .code-snippet {
    margin-left: 40px;
    margin-bottom: 12px;
}

/* Use cases */
.use-cases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

.use-case {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.use-case h3 {
    font-size: 16px;
    color: var(--text-strong);
    margin-bottom: 6px;
}

.use-case p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Page headers */
.page-header {
    text-align: center;
    padding: 60px 24px 40px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 8px;
}

.page-header p {
    font-size: 16px;
    color: var(--text-muted);
}

/* Pricing */
.billing-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.toggle-option {
    background: none;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.toggle-option.active {
    background: var(--bg-hover);
    color: var(--text-strong);
}

.save-pill {
    font-size: 11px;
    background: rgba(22, 163, 74, 0.10);
    color: var(--success);
    padding: 2px 6px;
    border-radius: 4px;
}

[data-theme="dark"] .save-pill {
    background: rgba(34, 197, 94, 0.15);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.pricing-card {
    padding: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 480px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.pricing-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.pricing-action {
    margin-top: auto;
    padding-top: 16px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.pricing-featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-ring);
}

.pricing-featured:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), 0 0 0 3px var(--accent-ring);
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-strong);
    margin-bottom: 8px;
}

.pricing-amount {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}

.pricing-features li {
    font-size: 14px;
    color: var(--text);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Docs */
.docs-layout {
    display: flex;
    gap: 48px;
}

.docs-nav {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    align-self: flex-start;
}

.docs-nav h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-top: 20px;
    margin-bottom: 8px;
}

.docs-nav h4:first-child { margin-top: 0; }

.docs-link {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.15s;
}

.docs-link:hover, .docs-link.active {
    color: var(--text);
}

.docs-content {
    flex: 1;
    min-width: 0;
}

.docs-content article {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.docs-content article:last-child {
    border-bottom: none;
}

.docs-content h2 {
    font-size: 24px;
    color: var(--text-strong);
    margin-bottom: 16px;
}

.docs-content h3 {
    font-size: 16px;
    color: var(--text-strong);
    margin-top: 20px;
    margin-bottom: 8px;
}

.docs-content p {
    font-size: 14px;
    margin-bottom: 12px;
}

.docs-content pre {
    background: var(--bg-elevated);
    padding: 14px 18px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.docs-content code {
    font-size: 13px;
    color: var(--accent);
}

.docs-content pre code {
    color: var(--text);
}

.docs-content blockquote {
    border-left: 3px solid var(--accent-dark);
    padding: 8px 16px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
}

.docs-content ul {
    margin-bottom: 12px;
    padding-left: 20px;
}

.docs-content li {
    font-size: 14px;
    margin-bottom: 4px;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.docs-table th, .docs-table td {
    text-align: left;
    padding: 8px 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.docs-table th {
    color: var(--text-muted);
    font-weight: 600;
}

/* Legal pages */
.legal {
    max-width: 720px;
}

.legal h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 4px;
}

.legal-updated {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.legal h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-strong);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.legal li {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 4px;
}

.legal code {
    font-size: 13px;
    color: var(--accent);
}

/* Code snippets with copy button */
.code-snippet {
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

[data-theme="dark"] .code-snippet {
    background: var(--bg-hover);
}

.code-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 4px 8px;
    background: var(--accent);
    border-bottom: 1px solid var(--border);
}

.code-snippet code {
    display: block;
    padding: 12px 16px;
    font-family: monospace;
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow-x: auto;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    background: none;
    border: none;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    border-radius: 4px;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.15);
}

.copy-btn.copied {
    color: #fff;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: var(--text-dim);
    font-size: 16px;
    padding: 60px 0;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 32px 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto;
    margin-bottom: 32px;
}

.footer-brand {
    max-width: 240px;
}

.footer-logo {
    font-weight: 700;
    font-size: 16px;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    padding: 3px 0;
    transition: color 0.15s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-dim);
}

/* Subscribe form */
.section-subscribe {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-sunken);
}

[data-theme="dark"] .section-subscribe {
    background: var(--bg-surface);
}

.section-subscribe h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 8px;
}

.section-subscribe p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 24px;
}

.subscribe-form {
    max-width: 480px;
    margin: 0 auto;
}

.subscribe-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.subscribe-input {
    flex: 1;
    min-width: 220px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-surface);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}

.subscribe-input:focus {
    border-color: var(--accent);
}

.subscribe-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.subscribe-msg {
    font-size: 14px;
    margin-top: 12px;
    min-height: 20px;
}

.subscribe-msg.success { color: var(--success); }
.subscribe-msg.error { color: var(--danger); }

.subscribe-fine {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav { padding: 12px 16px; }
    .nav-brand { font-size: 16px; }
    .nav-links { display: none; }
    .nav-cta .btn { padding: 6px 14px; font-size: 13px; }

    .hero { padding: 60px 16px 48px; }
    .hero h1 { font-size: 28px; }
    .hero-sub { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: center; }

    .section { padding: 48px 16px; }
    .section-title { font-size: 24px; margin-bottom: 32px; }
    .section-cta { padding: 48px 16px; }
    .section-cta h2 { font-size: 24px; }

    #hero-graph { width: 350px; height: 350px; }
    .tool-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-viewer { height: 350px; }
    .demo-info { position: static; width: 100%; margin-top: 12px; }

    .steps { grid-template-columns: 1fr; gap: 24px; }
    .modes { flex-direction: column; align-items: stretch; }
    .mode-card { width: 100%; }
    .integration-columns { flex-direction: column; gap: 16px; }
    .use-cases { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }

    .page-header { padding: 40px 16px 24px; }
    .page-header h1 { font-size: 28px; }

    .docs-layout { flex-direction: column; }
    .docs-nav { width: 100%; position: static; }
    .docs-table { font-size: 12px; }

    .code-snippet code { font-size: 12px; }

    .legal { padding: 0 8px; }

    .footer { padding: 32px 16px 16px; }
    .footer-inner { flex-direction: column; gap: 24px; }
    .footer-links { flex-wrap: wrap; gap: 24px; }

    .subscribe-input-group { flex-direction: column; }
    .subscribe-input { min-width: 0; width: 100%; }
}

/* Commons */
.commons-search {
    margin-bottom: 32px;
}

.commons-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}

.commons-search-input:focus {
    border-color: var(--accent);
}

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

.commons-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.15s;
}

.commons-card:hover {
    border-color: var(--accent);
    color: var(--text);
}

.commons-card-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.commons-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-strong);
}

.commons-card-author {
    font-size: 13px;
    color: var(--text-muted);
}

.commons-card-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.commons-card-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.commons-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-hover);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

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

.u-mt-12 { margin-top: 12px; }
.u-mb-12 { margin-bottom: 12px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===========================================================
 * Dynamic redesign: motion, aurora, bento, marquee, reveals.
 * Keeps the existing terracotta + cream palette. No new hues,
 * just warm-tone gradients and motion layered over it.
 * =========================================================== */

:root {
    --aurora-1: rgba(193, 120, 86, 0.30);
    --aurora-2: rgba(212, 162, 127, 0.25);
    --aurora-3: rgba(232, 184, 152, 0.22);
    --aurora-bg: linear-gradient(180deg, #fbf6f1 0%, var(--bg) 70%);

    --gradient-warm: linear-gradient(135deg, #c17856 0%, #d4a27f 100%);
    --gradient-warm-soft: linear-gradient(135deg, rgba(193,120,86,0.10) 0%, rgba(212,162,127,0.06) 100%);
    --gradient-cream: linear-gradient(180deg, #faf6f0 0%, #f0eae2 100%);

    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast: 220ms;
    --dur-mid:  380ms;
    --dur-slow: 700ms;

    --ring: 0 0 0 1px rgba(193,120,86,0.18);
    --halo:  0 30px 80px -30px rgba(193, 120, 86, 0.45);
}

[data-theme="dark"] {
    --aurora-1: rgba(212, 162, 127, 0.22);
    --aurora-2: rgba(184, 132, 102, 0.20);
    --aurora-3: rgba(150, 110, 90, 0.20);
    --aurora-bg: linear-gradient(180deg, #1a1311 0%, var(--bg) 70%);
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Reveal-on-scroll system --------------------------------
 * Progressive enhancement: content is visible by default. JS
 * adds .is-revealing as soon as it boots, which switches the
 * element into "hidden, awaiting reveal" state. Then the
 * observer adds .is-visible to fade it in. Crawlers, no-JS
 * browsers, and full-page screenshots all see the content.
 * ----------------------------------------------------------- */

[data-reveal].is-revealing {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity var(--dur-slow) var(--ease-out-quart),
        transform var(--dur-slow) var(--ease-out-quart);
    will-change: opacity, transform;
}

[data-reveal="fade"].is-revealing { transform: none; }
[data-reveal="scale"].is-revealing { transform: scale(0.96); }
[data-reveal="left"].is-revealing  { transform: translate3d(-32px, 0, 0); }
[data-reveal="right"].is-revealing { transform: translate3d(32px, 0, 0); }

[data-reveal].is-revealing.is-visible {
    opacity: 1;
    transform: none;
}

[data-reveal-stagger].is-revealing > * {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity var(--dur-slow) var(--ease-out-quart),
        transform var(--dur-slow) var(--ease-out-quart);
}

[data-reveal-stagger].is-revealing.is-visible > * {
    opacity: 1;
    transform: none;
}

[data-reveal-stagger].is-revealing.is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger].is-revealing.is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-stagger].is-revealing.is-visible > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-stagger].is-revealing.is-visible > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-stagger].is-revealing.is-visible > *:nth-child(6) { transition-delay: 400ms; }

/* --- Hero v2 ------------------------------------------------ */

.hero-v2 {
    position: relative;
    text-align: center;
    padding: 120px 0 96px;
    overflow: hidden;
    isolation: isolate;
    max-width: none;
    margin: 0;
    width: 100%;
}

.hero-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.aurora-stage {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.aurora-blob {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.85;
    animation: aurora-drift 26s var(--ease-out-quart) infinite alternate;
    will-change: transform;
}

.aurora-blob-1 {
    top: -15%;
    left: -10%;
    width: clamp(540px, 55vw, 900px);
    height: clamp(540px, 55vw, 900px);
    background: radial-gradient(circle at 35% 35%, var(--aurora-1) 0%, transparent 70%);
}

.aurora-blob-2 {
    top: 15%;
    right: -10%;
    width: clamp(480px, 50vw, 820px);
    height: clamp(480px, 50vw, 820px);
    background: radial-gradient(circle at 60% 40%, var(--aurora-2) 0%, transparent 70%);
    animation-duration: 32s;
    animation-delay: -8s;
}

.aurora-blob-3 {
    bottom: -20%;
    left: 25%;
    width: clamp(420px, 45vw, 760px);
    height: clamp(420px, 45vw, 760px);
    background: radial-gradient(circle at 50% 50%, var(--aurora-3) 0%, transparent 70%);
    animation-duration: 38s;
    animation-delay: -14s;
}

@keyframes aurora-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(40px, -30px, 0) scale(1.08); }
    100% { transform: translate3d(-30px, 20px, 0) scale(0.96); }
}

.hero-v2 #hero-graph {
    opacity: 0.06;
}

.hero-v2 .hero-kicker {
    margin-bottom: 20px;
}

.hero-h1 {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-h1 .word-rotator {
    background-image: var(--gradient-warm);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    text-align: left;
    white-space: nowrap;
}

.hero-h1 .word-rotator::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.05em;
    width: 100%;
    height: 0.06em;
    background: var(--gradient-warm);
    border-radius: 999px;
    opacity: 0.4;
    transform: scaleX(0);
    transform-origin: left;
    animation: word-underline 3.4s var(--ease-out-quart) infinite;
}

@keyframes word-underline {
    0%, 8%   { transform: scaleX(0); transform-origin: left; }
    40%, 60% { transform: scaleX(1); transform-origin: left; }
    92%,100% { transform: scaleX(0); transform-origin: right; }
}

.word-rotator {
    transition:
        opacity var(--dur-mid) var(--ease-out-quart),
        transform var(--dur-mid) var(--ease-out-quart);
}

.word-rotator.is-leaving {
    opacity: 0;
    transform: translateY(-12px);
}

.word-rotator.is-entering {
    opacity: 0;
    transform: translateY(12px);
}

.hero-v2 .hero-sub {
    font-size: 19px;
    line-height: 1.55;
    max-width: 620px;
    color: var(--text-muted);
    margin: 0 auto 36px;
}

.hero-v2 .hero-actions { margin-bottom: 40px; }

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-stats span::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.65;
}

.hero-stats strong {
    color: var(--text-strong);
    font-weight: 600;
}

/* Primary button glow on hover */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform var(--dur-slow) var(--ease-out-quart);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary > * { position: relative; z-index: 1; }

/* --- Crossed-out problems strip ----------------------------- */

.problems-strip {
    background: var(--gradient-cream);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 28px 24px;
    overflow: hidden;
}

[data-theme="dark"] .problems-strip {
    background: var(--bg-sunken);
}

.problems-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 14px;
    font-family: var(--font-sans);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    flex-wrap: wrap;
    text-align: center;
}

.problems-prefix { color: var(--text); }

.problems-rotator {
    display: inline-grid;
    grid-template-columns: max-content;
    grid-template-rows: auto;
    text-align: left;
    overflow: hidden;
}

.problems-rotator > span {
    grid-column: 1;
    grid-row: 1;
    color: var(--accent-dark);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--accent);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(100%);
    transition:
        opacity var(--dur-mid) var(--ease-out-quart),
        transform var(--dur-mid) var(--ease-out-quart);
}

.problems-rotator > span[data-active] {
    opacity: 1;
    transform: translateY(0);
}

.problems-rotator > span.is-leaving {
    opacity: 0;
    transform: translateY(-100%);
}

/* --- Bento value section ------------------------------------ */

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px;
    overflow: hidden;
    transition:
        transform var(--dur-mid) var(--ease-out-quart),
        border-color var(--dur-mid) var(--ease-out-quart),
        box-shadow var(--dur-mid) var(--ease-out-quart);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    border-color: var(--accent-ring);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.bento-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient-warm-soft);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--dur-mid) var(--ease-out-quart);
    pointer-events: none;
}

.bento-card:hover::after { opacity: 1; }

.bento-wide { grid-column: span 4; }
.bento-narrow { grid-column: span 2; }
.bento-half  { grid-column: span 3; }
.bento-third { grid-column: span 2; }

.bento-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bento-eyebrow::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.bento-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-strong);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.bento-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.bento-visual {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bento-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-sunken);
    color: var(--text-muted);
    border: 1px solid var(--border-soft);
}

.bento-chip-accent {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-ring);
}

/* Tiny inline "graph" illustration for hero bento cards */
.bento-mini-graph {
    display: block;
    margin-top: auto;
    width: 100%;
    height: 90px;
    color: var(--accent);
    opacity: 0.85;
}

/* Coming-soon badge used on roadmap-preview bundle cards */
.coming-soon {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
}

.bento-card-placeholder {
    border-style: dashed;
    background: transparent;
}

.bento-card-placeholder h3,
.bento-card-placeholder p {
    color: var(--text-muted);
}

/* Footer line beneath the public-signals grid */
.signals-footer {
    margin-top: 32px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* --- Camping section ---------------------------------------- */

.section-camping {
    padding: 80px 24px;
    background: var(--gradient-cream);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

[data-theme="dark"] .section-camping {
    background: var(--bg-sunken);
}

.camping-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.camping-grid::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 16%;
    right: 16%;
    height: 2px;
    background-image: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
    background-size: 12px 2px;
    background-repeat: repeat-x;
    opacity: 0.35;
    z-index: 0;
}

@media (max-width: 768px) {
    .camping-grid::before { display: none; }
}

.camping-step {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px;
    text-align: center;
    z-index: 1;
}

.camping-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--gradient-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--halo);
}

.camping-icon svg {
    width: 26px;
    height: 26px;
}

.camping-step h3 {
    font-size: 18px;
    color: var(--text-strong);
    margin-bottom: 8px;
}

.camping-step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.camping-tag {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

/* --- MCP marquee -------------------------------------------- */

.section-marquee {
    padding: 64px 0;
    overflow: hidden;
}

.marquee-eyebrow {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.marquee-track {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-belt {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    animation: marquee-scroll 38s linear infinite;
}

.marquee-row {
    display: flex;
    flex-shrink: 0;
    gap: 14px;
    padding-right: 14px;
}

.marquee-track:hover .marquee-belt {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-elevated);
    font-size: 14px;
    color: var(--text-strong);
    font-weight: 500;
    white-space: nowrap;
    transition: border-color var(--dur-fast) ease;
}

.marquee-pill:hover {
    border-color: var(--accent);
}

.marquee-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.55;
}

/* --- Citizen-data band (dark) ------------------------------- */

.section-band {
    background: #1c1714;
    color: #f4ede4;
    padding: 96px 24px;
    position: relative;
    overflow: hidden;
}

.section-band::before,
.section-band::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
}

.section-band::before {
    background: radial-gradient(circle, rgba(212,162,127,0.55) 0%, transparent 70%);
    top: -160px;
    left: -120px;
}

.section-band::after {
    background: radial-gradient(circle, rgba(193,120,86,0.45) 0%, transparent 70%);
    bottom: -160px;
    right: -120px;
}

.band-inner {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.band-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #d4a27f;
    margin-bottom: 20px;
}

.band-headline {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    color: #fbf6f0;
}

.band-headline em {
    font-style: normal;
    background: linear-gradient(120deg, #e8b898, #d4a27f);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.band-sub {
    font-size: 18px;
    line-height: 1.55;
    color: rgba(244, 237, 228, 0.75);
    max-width: 620px;
    margin: 0 auto 36px;
}

.band-personas {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.band-persona {
    padding: 10px 18px;
    border: 1px solid rgba(244, 237, 228, 0.18);
    border-radius: 999px;
    font-size: 13px;
    color: #f4ede4;
    background: rgba(244, 237, 228, 0.04);
    backdrop-filter: blur(8px);
    transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.band-persona:hover {
    border-color: #d4a27f;
    background: rgba(212, 162, 127, 0.08);
}

/* --- App-first comparison ----------------------------------- */

.compare {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    align-items: stretch;
}

.compare.compare-single {
    grid-template-columns: 1fr;
    max-width: 640px;
}

.compare.compare-single .compare-card-app::before { display: none; }

.compare-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 36px;
    display: flex;
    flex-direction: column;
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.compare-card:hover {
    box-shadow: var(--shadow-md);
}

.compare-card-app {
    border-color: var(--accent);
    box-shadow: var(--halo), 0 0 0 1px var(--accent-ring);
    background:
        radial-gradient(ellipse at top right, rgba(193,120,86,0.08), transparent 60%),
        var(--bg-elevated);
}

.compare-card-app::before {
    content: "Recommended";
    position: absolute;
    top: -12px;
    left: 36px;
    background: var(--gradient-warm);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.compare-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.compare-card-app .compare-eyebrow { color: var(--accent); }

.compare-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text-strong);
    margin-bottom: 6px;
}

.compare-tag {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.compare-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.compare-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border-soft);
}

.compare-features li:last-child { border-bottom: none; }

.compare-features li::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background-color: var(--accent-soft);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23c17856' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='4.5 9.5 7.5 12.5 13.5 6'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.compare-cta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compare-fine {
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
}

/* --- Final CTA banner --------------------------------------- */

.section-final-cta {
    padding: 96px 24px 120px;
    text-align: center;
    position: relative;
    isolation: isolate;
}

.final-cta-aurora {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.final-cta-aurora::before,
.final-cta-aurora::after {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.7;
}

.final-cta-aurora::before {
    background: radial-gradient(circle, var(--aurora-1), transparent 65%);
    top: -240px;
    left: 5%;
    animation: aurora-drift 32s var(--ease-out-quart) infinite alternate;
}

.final-cta-aurora::after {
    background: radial-gradient(circle, var(--aurora-2), transparent 65%);
    bottom: -240px;
    right: 5%;
    animation: aurora-drift 36s var(--ease-out-quart) infinite alternate-reverse;
}

.final-cta-h2 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text-strong);
    margin-bottom: 16px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-h2 em {
    font-style: normal;
    background: var(--gradient-warm);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.final-cta-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.55;
}

/* --- Section title v2 (dynamic redesign) -------------------- */

.section-title-v2 {
    text-align: center;
    margin-bottom: 14px;
}

.section-title-v2 .section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-ring);
}

.section-title-v2 h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0;
}

.section-title-v2 h2 em {
    font-style: normal;
    background: var(--gradient-warm);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.section-sub-v2 {
    text-align: center;
    color: var(--text-muted);
    font-size: 17px;
    max-width: 620px;
    margin: 0 auto 56px;
    line-height: 1.55;
}

/* --- Nav scroll-state -------------------------------------- */

.nav.is-scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border-soft);
}

[data-theme="dark"] .nav.is-scrolled {
    background: rgba(26, 26, 26, 0.75);
}

/* --- Demo section refinement ------------------------------- */

.section-demo .demo-viewer {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-soft);
}

.demo-frame {
    position: relative;
    padding: 6px;
    border-radius: 16px;
    background: var(--gradient-warm-soft);
    max-width: 1060px;
    margin: 0 auto;
}

.demo-frame .demo-viewer {
    border-radius: 12px;
    background: var(--bg-elevated);
}

.demo-tip {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.demo-tip kbd {
    display: inline-block;
    padding: 2px 6px;
    margin: 0 2px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text);
}

/* --- Use cases v2 ------------------------------------------ */

.use-cases-v2 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1080px;
    gap: 16px;
}

.use-cases-v2 .use-case {
    padding: 24px 22px;
    background: var(--bg-elevated);
    transition:
        border-color var(--dur-fast) ease,
        transform var(--dur-fast) ease,
        box-shadow var(--dur-fast) ease;
}

.use-cases-v2 .use-case:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.use-case-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
}

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

/* --- Responsive --------------------------------------------- */

/* --- Sub-page hero variants -------------------------------- */

.hero-pricing { padding: 88px 24px 48px; }

.hero-h1-sm {
    font-size: 48px;
    margin-bottom: 16px;
}

.grad-word {
    background-image: var(--gradient-warm);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* --- Pricing page enhancements ----------------------------- */

.section-pricing { padding-top: 24px; }

.pricing-card {
    position: relative;
}

.pricing-pill {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-warm);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.pricing-fine {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-muted);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.billing-toggle {
    box-shadow: var(--shadow-sm);
}

.toggle-option.active {
    background: var(--gradient-warm);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.toggle-option.active .save-pill {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* --- FAQ accordion ----------------------------------------- */

.section-faq { padding-top: 48px; padding-bottom: 80px; }

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--bg-elevated);
    overflow: hidden;
    transition: border-color var(--dur-fast) ease;
}

.faq-item[open] {
    border-color: var(--accent-ring);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color var(--dur-fast) ease;
}

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

.faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23c17856' stroke-width='2' stroke-linecap='round'><line x1='7' y1='2' x2='7' y2='12'/><line x1='2' y1='7' x2='12' y2='7'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform var(--dur-fast) ease;
}

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

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item p {
    padding: 0 22px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 1024px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-wide, .bento-narrow, .bento-half, .bento-third { grid-column: span 1; }

    .compare { grid-template-columns: 1fr; }

    .use-cases-v2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-v2 { padding: 80px 16px 64px; }
    .hero-h1 { font-size: 38px; }
    .hero-v2 .hero-sub { font-size: 16px; }
    .hero-stats { gap: 12px; font-size: 12px; }

    .problems-row { font-size: 18px; gap: 8px; }

    .bento-card { min-height: auto; padding: 22px; }
    .bento-card h3 { font-size: 18px; }

    .camping-grid { grid-template-columns: 1fr; gap: 16px; }

    .section-title-v2 h2 { font-size: 28px; }
    .section-sub-v2 { font-size: 15px; margin-bottom: 32px; }

    .section-band { padding: 64px 16px; }
    .band-headline { font-size: 30px; }
    .band-sub { font-size: 15px; }

    .compare-card { padding: 24px; }

    .final-cta-h2 { font-size: 30px; }
    .final-cta-sub { font-size: 15px; }
    .section-final-cta { padding: 64px 16px 80px; }

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

    .marquee-pill { padding: 10px 16px; font-size: 13px; }

    .hero-h1-sm { font-size: 30px; }
    .hero-pricing { padding: 56px 16px 24px; }
    .pricing-pill { font-size: 10px; padding: 4px 10px; }
}

/* Open-source project site */
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px; background: var(--bg-elevated); }
.skip-link:focus { top: 8px; }
.oss-label { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.reading-page { max-width: 840px; padding-top: 32px; padding-bottom: 80px; min-height: 60vh; }
.reading-page .page-header { padding: 36px 0 48px; }
.reading-page .docs-content { max-width: none; }
.reading-page .docs-content p, .reading-page .docs-content li, .reading-page.legal p, .reading-page.legal li { font-size: 16px; }
.reading-page .docs-content ol { padding-left: 22px; margin: 16px 0; }
.reading-page .docs-content li { margin-bottom: 8px; }
.reading-page .code-snippet { margin: 20px 0; }
.reading-page .code-snippet pre { margin: 0; padding: 22px 80px 22px 18px; overflow-x: auto; }
.reading-page .code-snippet code { white-space: pre; }
.reading-page .copy-btn { width: auto; min-width: 54px; height: auto; padding: 7px; top: 10px; right: 10px; font-size: 12px; }
.center { text-align: center; }
.retirement-note, .small-note { margin-top: 24px; font-size: 13px !important; color: var(--text-muted); }
.hero-stats { justify-content: center; }
.demo-info { pointer-events: none; }
.demo-error { position: absolute; inset: 20px; display: grid; place-items: center; background: var(--bg-surface); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }
@media (max-width: 768px) {
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-links { display: flex; order: 3; width: 100%; justify-content: center; gap: 28px; }
  .hero-v2 { padding-top: 56px; }
  .hero-stats { flex-wrap: wrap; }
  .hero h1 { font-size: 40px; }
  .reading-page { padding: 16px 24px 56px; }
  .demo-info { position: absolute; top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; max-height: 140px; overflow-y: auto; margin: 0; }
  .demo-info-desc { display: none; }
  .docs-content .btn { margin: 4px 0; }
}
