/* ============================================
   Arcoa — The Agent Marketplace
   ============================================ */

/* ---- Fonts & Theme ---- */
:root {
    --bg: #F4EFE4;
    --bg-surface: #E8DFCC;
    --text: #2A2118;
    --text-muted: #5C4F3D;
    --text-heading: #2A2118;
    --text-dim: #8A7D6B;
    --accent: #3D6B8E;
    --accent-ochre: #A07830;
    --border: #C8BBA8;
    --code-bg: #1C1610;
    --code-text: #DDD0B8;
    --code-inline-bg: #E4DCCC;
    --success: #4A7A3A;
    --error: #8B3A3A;
    --logo-fill: #1a1612;
    --logo-stroke: #c9a962;
    --svg-agent-fill: #EDE5D4;
    --svg-agent-stroke: #C8BBA8;
    --svg-agent-text: #2A2118;
    --svg-agent-sub: #5C4F3D;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --radius: 6px;
    --max-prose: 860px;
    --max-wide: 1400px;
}

/* Dark mode */
[data-theme="dark"] {
    --bg: #141210;
    --bg-surface: #1C1916;
    --text: #D8CFBC;
    --text-muted: #A89C88;
    --text-heading: #E8E0D0;
    --text-dim: #706858;
    --accent: #6BA3CC;
    --accent-ochre: #C8982E;
    --border: #3A352C;
    --code-bg: #0E0C0A;
    --code-text: #DDD0B8;
    --code-inline-bg: #2A2520;
    --success: #6AAF58;
    --error: #C05050;
    --logo-fill: #141210;
    --logo-stroke: #c9a962;
    --svg-agent-fill: #2A2520;
    --svg-agent-stroke: #3A352C;
    --svg-agent-text: #E8E0D0;
    --svg-agent-sub: #A89C88;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #141210;
        --bg-surface: #1C1916;
        --text: #D8CFBC;
        --text-muted: #A89C88;
        --text-heading: #E8E0D0;
        --text-dim: #706858;
        --accent: #6BA3CC;
        --accent-ochre: #C8982E;
        --border: #3A352C;
        --code-bg: #0E0C0A;
        --code-text: #DDD0B8;
        --code-inline-bg: #2A2520;
        --success: #6AAF58;
        --error: #C05050;
        --logo-fill: #141210;
        --logo-stroke: #c9a962;
        --svg-agent-fill: #2A2520;
        --svg-agent-stroke: #3A352C;
        --svg-agent-text: #E8E0D0;
        --svg-agent-sub: #A89C88;
    }
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Hide default scrollbar, use thin overlay-style scrollbar */
@supports (scrollbar-width: thin) {
    html {
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
    }
}

::-webkit-scrollbar {
    width: 0;
    background: transparent;
}


body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
}

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

a:hover {
    color: var(--accent-ochre);
}

/* Link underline slide-in */
.nav-links a,
.footer-links a,
.topic a,
.step-content a {
    position: relative;
}

.nav-links a::after,
.topic a::after,
.step-content a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.topic a:hover::after,
.step-content a:hover::after {
    transform: scaleX(1);
}

code {
    font-family: var(--font-mono);
    font-size: 0.84em;
    padding: 0.1em 0.35em;
    background: var(--code-inline-bg);
    border-radius: 3px;
    color: var(--text);
}

pre {
    margin: 0;
}

pre code {
    padding: 1.4rem 1.5rem;
    background: transparent;
    overflow-x: auto;
    display: block;
    color: var(--code-text);
}

ul {
    list-style: none;
    padding-left: 1.25rem;
}

ul li::before {
    content: '·';
    color: var(--accent-ochre);
    font-weight: 700;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Container */
.container {
    max-width: var(--max-prose);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Wide container for tables */
.api-sections .table,
.info-box .table {
    max-width: var(--max-wide);
}

/* ---- Section dividers ---- */
.section+.section::before {
    content: '·';
    display: block;
    text-align: center;
    color: var(--border);
    font-size: 1.25rem;
    letter-spacing: 1em;
    padding: 0;
    line-height: 0;
    position: relative;
    top: 0;
}

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

.nav .container {
    max-width: var(--max-wide);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-heading);
    text-decoration: none;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

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

.nav-links {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
    white-space: nowrap;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-variant: small-caps;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-ochre);
}

.nav-links a.active::after {
    transform: scaleX(1);
    background: var(--accent-ochre);
}

.nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    transition: border-color 0.2s, color 0.2s;
    margin-right: 0.5rem;
}

.theme-toggle:hover {
    border-color: var(--accent-ochre);
    color: var(--accent-ochre);
}

/* Show appropriate icon */
.theme-toggle .theme-icon-sun { display: none; }
.theme-toggle .theme-icon-moon { display: inline; }
[data-theme="dark"] .theme-toggle .theme-icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .theme-icon-sun { display: inline; }
    :root:not([data-theme="light"]) .theme-toggle .theme-icon-moon { display: none; }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-muted);
    transition: all 0.2s;
}

/* ---- Hero ---- */
.hero {
    background: var(--bg);
    color: var(--text);
    padding: 7rem 0 6rem;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 4fr auto 3fr;
    gap: 3rem;
    max-width: var(--max-wide);
    margin: 0 auto;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 0.5rem;
    color: var(--text-heading);
    letter-spacing: 0.01em;
    animation: hero-rise 0.4s ease-out both;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-muted);
    /* margin-bottom: 2.25rem; */
    margin: 0 0;
    line-height: 1.7;
    max-width: 540px;
    /* background-color: purple; */
    animation: hero-rise 0.4s ease-out 0.15s both;
}

.gradient-text {
    color: var(--accent-ochre);
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signup-form {
    animation: hero-rise 0.4s ease-out 0.3s both;
}

.signup-form .input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 440px;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: var(--bg-surface);
    color: var(--text);
    font-size: 0.9375rem;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.2s;
}

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

.signup-form input[type="email"]::placeholder {
    color: var(--text-dim);
}

.signup-hint {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-dim);
}

.signup-status {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    min-height: 1.25em;
}

.signup-status.success {
    color: var(--success);
}

.signup-status.error {
    color: var(--error);
}

.hero-shortcuts {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    animation: hero-rise 0.4s ease-out 0.3s both;
}

.hero-divider {
    width: 1px;
    background: var(--border);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.hero-technical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: hero-rise 0.4s ease-out 0.3s both;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent-ochre);
    color: var(--bg);
}

.btn-primary:hover {
    background: #8C6828;
    color: var(--bg);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(61, 107, 142, 0.08);
    color: var(--accent);
}

/* ---- Hero Diagram SVG ---- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-diagram-label {
    font-family: var(--font-body);
    /* font-size: 0.85rem; */
    color: var(--text-muted);
    /* letter-spacing: 0.04em; */
    margin: 0 0 0.5rem;
    /* text-transform: uppercase; */
}

.hero-diagram-svg {
    width: 100%;
    max-width: 780px;
    aspect-ratio: 360 / 420;
}

/* Invert hero diagram in dark mode */
[data-theme="dark"] .hero-diagram-svg {
    filter: invert(0.88) hue-rotate(180deg);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero-diagram-svg {
        filter: invert(0.88) hue-rotate(180deg);
    }
}

/* ---- Sections ---- */
.section {
    padding: 5.5rem 0;
}

.section-alt {
    background: var(--bg-surface);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
    letter-spacing: 0.01em;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 0 3rem;
    line-height: 1.7;
}

/* ---- Features Grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: var(--accent-ochre);
}

.feature-icon {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--accent-ochre);
}

.feature-icon-svg {
    width: 36px;
    height: 36px;
    margin-bottom: 0.75rem;
}

/* Adjust feature icon colors in dark mode */
[data-theme="dark"] .feature-icon-svg {
    filter: brightness(1.4);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .feature-icon-svg {
        filter: brightness(1.4);
    }
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    color: var(--text-heading);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ---- Info Box ---- */
.info-box {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    background: var(--bg-surface);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}

.info-box.warning {
    border-left-color: var(--accent-ochre);
}

.info-box h3 {
    margin: 0 0 0.75rem;
    color: var(--text-heading);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.info-box p {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.info-box li {
    margin-bottom: 0.35rem;
    font-size: 0.9375rem;
}

.info-box li:last-child {
    margin-bottom: 0;
}

/* ---- Steps ---- */
.steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--accent-ochre);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin: 0 0 0.4rem;
    color: var(--text-heading);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}

.step-content>p {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
}

/* ---- Code Block ---- */
.code-block {
    position: relative;
    margin: 0.75rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--code-bg);
    border-top: 3px solid var(--accent-ochre);
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.6rem;
    background: rgba(221, 208, 184, 0.15);
    color: var(--code-text);
    border: 1px solid rgba(221, 208, 184, 0.2);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.copy-btn:hover {
    background: rgba(221, 208, 184, 0.25);
}

.copy-btn.copied {
    background: rgba(74, 122, 58, 0.4);
}

.code-block pre {
    margin: 0;
    padding: 1.4rem 1.5rem;
    background: transparent;
    color: var(--code-text);
    overflow-x: auto;
    font-size: 0.8125rem;
    line-height: 1.65;
}

.code-block code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

/* ---- Note ---- */
.note {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border-left: 3px solid var(--accent-ochre);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.note code {
    background: var(--code-inline-bg);
}

/* ---- Auth Diagram ---- */
.auth-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 3rem 0;
    flex-wrap: wrap;
}

.auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    max-width: 200px;
}

.auth-icon {
    font-size: 1.25rem;
    color: var(--accent-ochre);
}

.auth-step h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.auth-arrow {
    font-size: 1rem;
    color: var(--text-dim);
}

.inline-code {
    font-size: 0.72rem;
    word-break: break-all;
}

/* ---- Two Column ---- */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.column h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
}

/* ---- Table ---- */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th,
.table td {
    padding: 0.65rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--bg-surface);
    color: var(--text-heading);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--accent-ochre);
}

.table tbody tr:nth-child(even) {
    background: rgba(200, 187, 168, 0.15);
}

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

.table code {
    font-size: 0.8125rem;
}

/* ---- API Section ---- */
.api-sections {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.api-section {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
}

.section-alt .api-section {
    background: var(--bg);
}

.api-section>h3 {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
}

.api-endpoint {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(200, 187, 168, 0.4);
}

.api-endpoint:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}

/* Method badges — ink stamps */
.method {
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.method.get {
    background: var(--accent);
    color: var(--bg);
}

.method.post {
    background: var(--accent-ochre);
    color: var(--bg);
}

.method.patch {
    background: var(--text-dim);
    color: var(--bg);
}

.method.delete {
    background: var(--text-dim);
    color: var(--bg);
}

.auth-badge {
    padding: 0.15rem 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.endpoint-details {
    margin-top: 0.5rem;
}

.endpoint-details summary {
    cursor: pointer;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 500;
}

.endpoint-details pre {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.api-endpoint>p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ---- Integration Topics ---- */
.integration-topics {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.topic h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-heading);
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.topic h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-heading);
    margin: 1.5rem 0 0.5rem;
    font-weight: 700;
}

.topic h4:first-of-type {
    margin-top: 1rem;
}

.topic>p {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.text-sm {
    font-size: 0.8125rem;
    color: var(--text-dim);
}

/* ---- State Diagram ---- */
.state-diagram {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.state {
    padding: 0.4rem 0.75rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    font-family: var(--font-mono);
}

.state.active {
    border-color: var(--accent);
    color: var(--accent);
}

.state.success {
    border-color: var(--success);
    color: var(--success);
}

.state.error {
    border-color: var(--error);
    color: var(--error);
}

.state-diagram .arrow {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ---- Network Cards ---- */
.network-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.network-card {
    padding: 1.5rem;
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.network-card h4 {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    color: var(--text-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.network-details div {
    margin-top: 0.65rem;
}

.network-details small {
    display: block;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-variant: small-caps;
    margin-bottom: 0.1rem;
}

.network-details code {
    display: block;
    font-size: 0.75rem;
    word-break: break-all;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg);
    color: var(--text-dim);
    padding: 3.5rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    max-width: var(--max-prose);
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

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

.footer-brand p {
    margin: 0.75rem 0 0;
}

.footer .nav-logo {
    color: var(--text-heading);
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-links h4 {
    color: var(--text-heading);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.footer-links a {
    display: block;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--accent-ochre);
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    max-width: var(--max-prose);
    margin: 0 auto;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* ---- Fade-in on scroll ---- */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title,
.section-subtitle {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.section-title.visible,
.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
/* Single breakpoint: above 860px = two-column hero + full nav.
   Below 860px = stacked hero, hamburger nav, single-column grids. */

@media (max-width: 860px) {

    /* Nav → hamburger */
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 1.25rem 2rem;
        border-bottom: 1px solid var(--border);
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero → stacked */
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
        align-content: center;
        gap: 0rem;
    }

    .hero-divider {
        height: 1px;
        width: 85%;
        justify-self: center;
        padding: 0;
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
        /* background: var(--border); */
        /* padding: 0 0 5rem 0; */
        /* align-self: stretch; */
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-text {
        gap: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .signup-form .input-group {
        margin: 0 auto;
    }

    .hero-diagram-svg {
        max-width: 380px;
    }

    /* Grids → single column */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    /* Steps stay horizontal (number + content) */
    .section {
        padding: 3.5rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .auth-diagram {
        gap: 1rem;
    }
}
/* Quick Start Tabs */
.qs-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.qs-tab {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.qs-tab:hover { color: var(--text); }
.qs-tab.active {
    color: var(--accent-ochre);
    border-bottom-color: var(--accent-ochre);
}
.qs-panel { display: none; }
.qs-panel.active { display: block; }
