:root {
    --bg-color: #0f0f0f;
    --text-color: #ffffff;
    --accent-color: #00ffcc;
    --card-bg: #1a1a1a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

section {
    margin: 80px 0;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.text-muted {
    font-size: 0.9rem;
    opacity: 0.7;
}

.h2-prefix {
    color: var(--accent-color);
}

.section-spacer {
    margin-top: 100px;
}

.lead {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
    text-align: center;
}

.br-mobile {
    display: none;
}

header {
    text-align: center;
    padding: clamp(40px, 8vw, 80px) 0 clamp(30px, 5vw, 50px) 0;
}

h1 {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    margin-bottom: 10px;
}

.h1-subtitle {
    display: block;
    font-family: 'Segoe Print', 'Bradley Hand', 'Caveat', 'Comic Sans MS', cursive;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: normal;
    color: var(--accent-color);
    margin-top: 10px;
    margin-bottom: 52px;
    line-height: 1.4;
    opacity: 0.95;
    text-align: center;
}

.page-title-subtitle {
    display: block;
    font-family: 'Segoe Print', 'Bradley Hand', 'Caveat', 'Comic Sans MS', cursive;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: normal;
    color: var(--accent-color);
    margin-top: 6px;
    margin-bottom: 20px;
    line-height: 1.4;
    opacity: 0.95;
    text-align: center;
}

.motto {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.btn {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 5px;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-primary:hover {
    background: rgba(0, 255, 204, 0.12);
    color: var(--accent-color);
    border-color: var(--accent-color);
    opacity: 1;
}

.btn-outline {
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn:hover {
    opacity: 0.85;
}


.metrics {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: #111;
    padding: 20px;
    border-radius: 10px;
}

.metric-item {
    text-align: center;
    margin: 10px;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    display: block;
}

footer {
    --bch-bg: #071313;
    --bch-surface: #0b1a1a;
    --bch-surface-strong: #0c2421;
    --bch-line: rgba(126, 255, 226, .18);
    --bch-muted: #9caeab;
    --bch-mint: #70f0ce;
    --bch-yellow: #f8d767;
    --bch-lilac: #c7b5ff;
    color: #edf9f5;
    background: var(--bch-bg);
    padding: 34px 0;
    margin-top: 100px;
    border-top: 1px solid var(--bch-line);
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 10px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

/* What is BotCentralHub Workflow Visual */
.what-is-bch-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.workflow-visual {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.workflow-visual svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Responsive Hub Status */
@media (max-width: 768px) {
    .mode-toggle-container {
        position: static;
        display: flex;
        justify-content: center;
        background: rgba(15, 15, 15, 0.85);
        border: 1px solid #333;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        padding: 3px;
        margin: 0 auto 30px auto;
        width: fit-content;
        border-radius: 20px;
    }

    section {
        margin: 60px 0;
    }

    header {
        padding: 60px 0 30px 0;
    }

    .section-spacer {
        margin-top: 60px;
    }

    footer {
        margin-top: 60px;
    }

    .metrics {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .metric-item {
        margin: 5px;
    }

    .what-is-bch-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .workflow-visual {
        max-width: 360px;
    }
}

@media (max-width: 500px) {
    .metrics {
        grid-template-columns: 1fr;
    }

    .br-desktop {
        display: none;
    }

    .br-mobile {
        display: inline;
    }

    .h1-subtitle {
        font-size: clamp(1rem, 4.2vw, 1.2rem);
        margin-top: 6px;
        margin-bottom: 24px;
    }

    .page-title-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-top: 4px;
        margin-bottom: 16px;
    }

    .main-content > header {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Spacing for pages without headers */
.main-content {
    padding-top: 60px;
}

/* Brand Bar & Navigation */
.brand-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.brand-bar-controls {
    display: flex;
    align-items: center;
    gap: 45px;
    /* Increased separation between depth toggle and lang switch */
}

.logo-link {
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-link img {
    height: 33px;
    width: auto;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #888;
}

.lang-switch a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

.lang-switch a:hover {
    color: var(--accent-color);
}

.lang-switch .active {
    font-weight: bold;
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
}

/* --- CONTENT DEPTH TOGGLE (CSS-ONLY) --- */

.content-lab {
    display: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-lab li {
    list-style-type: disc;
}

.content-guide {
    display: block;
}

/* Mode Content Visibility */
html[data-mode="lab"] .content-guide {
    display: none;
}

html[data-mode="lab"] .content-lab {
    display: block;
}

html[data-mode="guide"] .content-guide {
    display: block;
}

html[data-mode="guide"] .content-lab {
    display: none;
}

.mode-toggle-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 900;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(5px);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

/* Float Softening for smaller desktops/laptops */
@media (min-width: 769px) and (max-width: 1250px) {
    .mode-toggle-container {
        opacity: 0.5;
    }

    .mode-toggle-container:hover,
    .mode-toggle-container:focus-within {
        opacity: 1;
        background: rgba(15, 15, 15, 0.95);
    }
}

.mode-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.mode-link {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #888;
    text-decoration: none;
    border-radius: 17px;
    transition: all 0.2s ease;
}

.mode-link:hover {
    color: #fff;
}

.mode-link.is-active {
    background-color: #222;
    color: var(--accent-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mode-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

/* Content Section Rhythm */
.content-section {
    padding-block: clamp(48px, 6vw, 80px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-block: 0;
}

.section-intro {
    max-width: 720px;
    font-size: clamp(1.05rem, 2.5vw, 1.15rem);
    line-height: 1.75;
    margin-top: 0;
    margin-bottom: 36px;
    color: #e0e0e0;
}

/* Grids and Cards */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
}

.info-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    height: 100%;
    box-sizing: border-box;
}

.info-card h3 {
    margin-top: 0;
    color: #00ffcc;
}

.info-card p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-label {
    margin: 0 0 12px;
    color: #888;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Process Methodology & Prerequisite Components */
.process-method-card {
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-color);
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.process-method-content {
    grid-row: 1;
}

.process-method-title {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.process-method-copy {
    margin: 0;
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.7;
}

.keyword-callout {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #e6b040;
    border-radius: 8px;
}

.callout-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e6b040;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.callout-text {
    margin: 0;
    color: #cccccc;
    font-size: 0.88rem;
    line-height: 1.5;
}

.process-flow-steps {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
    position: relative;
    list-style: none;
}

.process-flow-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 16px;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.process-flow-step {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-color);
    background: #171717;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    box-sizing: border-box;
}

.step-text {
    color: #cccccc;
    font-size: 0.95rem;
    font-weight: 500;
}

.process-method-actions {
    grid-row: 3;
    margin: 0;
}

.process-method-actions .btn {
    margin: 0;
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .process-method-card {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        grid-template-rows: auto auto;
        column-gap: 40px;
        row-gap: 24px;
        align-items: center;
    }

    .process-method-content {
        grid-column: 1;
        grid-row: 1;
    }

    .process-method-copy {
        max-width: 480px;
    }

    .keyword-callout {
        max-width: 480px;
    }

    .process-flow-steps {
        grid-column: 2;
        grid-row: 1 / span 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0;
    }

    .process-flow-steps::before {
        top: 16px;
        bottom: auto;
        left: 12.5%;
        right: 12.5%;
        width: auto;
        height: 1px;
    }

    .process-flow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
        gap: 12px;
    }

    .step-text {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .process-method-actions {
        grid-column: 1;
        grid-row: 2;
    }

    .process-method-actions .btn {
        display: inline-block;
        width: auto;
    }
}

.process-prerequisite {
    border-left: 3px solid var(--accent-color);
}

.process-prerequisite-title {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.process-prerequisite-copy {
    margin-bottom: 12px;
    color: #cccccc;
}

.process-prerequisite-link {
    margin: 0;
}

.process-prerequisite-link a {
    color: var(--accent-color);
    font-weight: 500;
}

.process-summary-card {
    border-color: var(--accent-color);
    background: rgba(0, 255, 204, 0.05);
}

.process-summary-copy {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #ffffff;
    font-weight: 500;
}

/* Section Footer Note */
.section-footer-note {
    margin: 40px auto 0 auto;
    max-width: 800px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #a0a0a0;
    text-align: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 24px;
}

/* CTA Section */
.cta-section {
    padding-block: clamp(48px, 6vw, 72px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0;
}

.cta-text {
    margin-bottom: 24px;
    font-size: 1.15rem;
    color: #e0e0e0;
}

/* Responsive Grid Rules */
@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .project-grid {
        gap: 28px;
    }
}

/* Card-based Footer Architecture */
.footer-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bch-muted);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bch-mint);
    box-shadow: 0 0 18px rgba(112, 240, 206, .75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr .9fr .9fr 1.05fr;
    gap: 16px;
    align-items: stretch;
}

.footer-grid > .footer-block {
    align-self: stretch;
    margin: 0;
}

.footer-block {
    display: flex;
    flex-direction: column;
    margin: 0;
    border: 1px solid var(--bch-line);
    border-radius: 16px;
    padding: 24px;
    background: var(--bch-surface);
    box-sizing: border-box;
}

.brief-block {
    background:
      radial-gradient(circle at 87% 15%, rgba(112, 240, 206, .15), transparent 34%),
      var(--bch-surface-strong);
    border-color: rgba(112, 240, 206, .38);
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    color: var(--bch-mint);
    background: rgba(112, 240, 206, .1);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}

.eyebrow span {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.footer-block h2,
.footer-block h3,
.footer-block p {
    margin: 0;
}

.brief-block h2 {
    max-width: 330px;
    margin-top: 20px;
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.08;
    letter-spacing: -.045em;
    color: #edf9f5;
    font-weight: 700;
}

.brief-block .brief-copy {
    max-width: 360px;
    margin-top: 20px;
    color: var(--bch-muted);
    font-size: 14px;
    line-height: 1.5;
}

.signup {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
}

.signup input {
    min-width: 0;
    width: 100%;
    padding: 11px 12px;
    color: #eefaf7;
    background: rgba(0, 0, 0, .17);
    border: 1px solid rgba(238, 250, 247, .18);
    border-radius: 9px;
    outline: none;
    font-size: 14px;
}

.signup input::placeholder {
    color: #839491;
}

.signup button {
    flex: 0 0 auto;
    padding: 11px 13px;
    border: 1px solid rgba(112, 240, 206, .35);
    border-radius: 9px;
    color: var(--bch-mint);
    background: transparent;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.signup button:hover {
    background: rgba(112, 240, 206, .12);
    border-color: rgba(112, 240, 206, .6);
    color: var(--bch-mint);
}

.signup button:focus-visible {
    outline: 2px solid var(--bch-mint);
    outline-offset: 2px;
}

.footer-block h3 {
    margin-bottom: 19px;
    font-size: 15px;
    letter-spacing: -.01em;
    color: #edf9f5;
    font-weight: 600;
}

.link-list,
.contact-list {
    display: grid;
    gap: 13px;
}

.link-list a {
    color: var(--bch-muted);
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-list a:hover {
    color: var(--bch-mint);
}

.link-list a::after {
    content: " ↗";
    color: var(--bch-mint);
    opacity: .8;
}

.contact-item {
    color: var(--bch-muted);
    font-size: 14px;
    line-height: 1.35;
}

.contact-item strong {
    display: block;
    margin-bottom: 3px;
    color: #edf9f5;
    font-size: 13px;
    font-weight: 600;
}

.contact-item a {
    color: var(--bch-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--bch-mint);
    text-decoration: underline;
}

.ecosystem-list {
    display: grid;
    gap: 10px;
}

.ecosystem-list .ecosystem-link {
    display: block;
    padding: 12px 12px 11px;
    border: 1px solid rgba(238, 250, 247, .1);
    border-radius: 10px;
    background: rgba(0, 0, 0, .12);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ecosystem-list .ecosystem-link:hover {
    border-color: rgba(112, 240, 206, .4);
    background: rgba(112, 240, 206, .05);
}

.ecosystem-list .ecosystem-link::after {
    content: " ↗";
    float: right;
    color: var(--bch-mint);
    opacity: .8;
}

.ecosystem-list .ecosystem-link small {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ecosystem-list .ecosystem-link .brand-name {
    color: #edf9f5;
    font-weight: 650;
}

.ecosystem-list .think small {
    color: var(--bch-lilac);
}

.ecosystem-list .ryp small {
    color: var(--bch-yellow);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(238, 250, 247, .1);
    color: #82938f;
    font-size: 12px;
}

@media (max-width: 880px) {
    footer {
        margin-top: 60px;
    }
    .footer-grid {
        grid-template-columns: 1.25fr 1fr;
    }
}

@media (max-width: 540px) {
    .footer-shell {
        padding: 0 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background-color: var(--card-bg, #1a1a1a);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: inherit;
    box-sizing: border-box;
}

.cookie-banner-text {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.4;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s ease;
    border: 1px solid transparent;
}

.cookie-banner-btn-accept {
    background-color: transparent;
    border: 1px solid var(--accent-color, #00ffcc);
    color: var(--accent-color, #00ffcc);
}

.cookie-banner-btn-accept:hover {
    background-color: var(--accent-color, #00ffcc);
    color: #000;
}

.cookie-banner-btn-reject {
    background-color: transparent;
    border: 1px solid var(--text-color, #ffffff);
    color: var(--text-color, #ffffff);
}

.cookie-banner-btn-reject:hover {
    background-color: var(--text-color, #ffffff);
    color: #000;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 15px;
    }

    .cookie-banner-actions {
        justify-content: flex-end;
    }
}