:root {
    --bg: #cff0e6;
    --bg-soft: #b8e6d8;
    --surface: rgba(255, 255, 255, 0.55);
    --surface-strong: rgba(255, 255, 255, 0.75);
    --text: #0d3328;
    --muted: #2e6357;
    --teal: #1aab8a;
    --teal-2: #3ed4ae;
    --accent: #e8792a;
    --border: rgba(15, 90, 70, 0.15);
    --shadow: 0 10px 36px rgba(10, 60, 45, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(26, 171, 138, 0.25),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 16%,
            rgba(232, 121, 42, 0.18),
            transparent 24%
        ),
        linear-gradient(160deg, #d8f5ec 0%, var(--bg) 50%, var(--bg-soft) 100%);
    font-family: "Manrope", sans-serif;
    line-height: 1.6;
    padding: 1rem;
    position: relative;
    overflow-x: hidden;
}

.bg-aurora {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(26, 171, 138, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 171, 138, 0.1) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.topbar {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0.9rem;
    z-index: 20;
    background: rgba(185, 235, 218, 0.82);
}

.brand {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.brand img {
    width: 55px;
    height: 55px;
    border-radius: 0.7rem;
}

.brand span {
    font-size: 1.5rem;
}

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

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

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

.nav-links a:focus-visible {
    color: var(--teal);
}

.menu-btn {
    display: none;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
    border-radius: 0.7rem;
    padding: 0.4rem 0.7rem;
}

.site-main {
    max-width: 1140px;
    margin: 1.2rem auto;
}

.hero {
    padding: 4.2rem 0 2rem;
}

.center-text {
    text-align: center;
}

.center-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.center-block {
    margin-left: auto;
    margin-right: auto;
}

.steps-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 1.2rem;
}

.steps a {
    font-size: 1rem;
    color: var(--teal);
    text-decoration: underline;
    font-weight: 600;
    padding: 0.45rem;
    border-radius: 1rem;
}

.eyebrow {
    color: #0f7a60;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 1.25rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.15;
}

h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.35rem, 7vw, 4.15rem);
    margin: 0.3rem 0 1rem;
}

h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.45rem, 4.2vw, 2.3rem);
}

.lead {
    max-width: 85ch;
    color: var(--muted);
    font-size: 1.15rem;
}

.hero-cta {
    gap: 0.8rem;
    margin: 1.6rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.72rem 1.2rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    box-shadow: 0 8px 24px rgba(26, 171, 138, 0.32);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.55);
}

.hero-code {
    margin-top: 1.5rem;
    max-width: 860px;
    text-align: left;
    overflow: hidden;
}

.section {
    padding: 3.2rem 0;
}

.section-head {
    margin-bottom: 1.4rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    padding: 1.2rem 1rem;
    min-height: 220px;
}

.card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.card-icon img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.example-switch {
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.example-tab {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
}

.example-tab.active {
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    color: #ffffff;
}

.example-tab:focus-visible {
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    color: #ffffff;
}

.example-panels {
    max-width: 950px;
    margin: 0 auto;
}

.example-panel {
    overflow: hidden;
}

/* ── IDE window ─────────────────────────────────────────────── */
.ide-titlebar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem;
    background: rgba(0, 0, 0, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ide-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-red {
    background: #ff5f57;
}
.dot-yellow {
    background: #febc2e;
}
.dot-green {
    background: #28c840;
}

.ide-filename {
    margin-left: 0.55rem;
    font-size: 0.95rem;
    font-family: "JetBrains Mono", "CaskaydiaCove", monospace;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.platform-label {
    font-size: 0.85rem;
    color: #ffffff;
    font-family: "JetBrains Mono", "CaskaydiaCove", monospace;
    vertical-align: middle;
}

.platform-toggle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
    gap: 0.25rem;
}

/* ── Titlebar controls wrapper (for panels with mode + platform toggles) ── */
.titlebar-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-left: auto;
    justify-content: flex-end;
}

.titlebar-controls .platform-toggle {
    margin-left: 0;
}

/* ── Mode toggle (Sync / Async) ──────────────────────────────── */
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mode-select,
.plt-select {
    display: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.2rem 1.75rem 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    line-height: 1.25;
    vertical-align: middle;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.92) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92) 50%, transparent 50%);
    background-position:
        calc(100% - 12px) 50%,
        calc(100% - 7px) 50%;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.mode-select:hover,
.plt-select:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

.mode-select:focus-visible,
.plt-select:focus-visible {
    border-color: rgba(62, 212, 174, 0.95);
    background-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 2px rgba(26, 171, 138, 0.32);
}

.mode-select option,
.plt-select option {
    color: #0d3328;
    background: #eafaf4;
}

.plt-btn {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition:
        background 0.18s ease,
        color 0.18s ease;
    line-height: 1.4;
}

.plt-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.9);
}

.plt-btn:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.9);
}

.plt-btn.active {
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    color: #ffffff;
    border-color: transparent;
}

.hero-code pre,
.example-panel pre {
    margin: 0;
    border-radius: 0 0 0.75rem 0.75rem;
}

.hero-code code.code-python,
.example-panel code.code-python {
    display: block;
    min-width: 100%;
    padding: 1.2rem;
    background: #000000;
    color: #e8fff8;
    white-space: pre;
}

.hero-code .tok-keyword,
.example-panel .tok-keyword {
    color: #e879f9;
}

.hero-code .tok-string,
.example-panel .tok-string {
    color: #a8ff78;
}

.hero-code .tok-comment,
.example-panel .tok-comment {
    color: #6b7f8a;
    font-style: italic;
}

.hero-code .tok-number,
.example-panel .tok-number {
    color: #ff9a5c;
}

.hero-code .tok-decorator,
.example-panel .tok-decorator {
    color: #60a5fa;
}

.hero-code .tok-builtin,
.example-panel .tok-builtin {
    color: #ffd93d;
}

.hero-code .tok-function,
.example-panel .tok-function {
    color: #34ffe0;
}

pre {
    margin: 0;
    padding: 0;
    overflow-x: auto;
    font-family: "JetBrains Mono", "CaskaydiaCove", monospace;
    font-size: 0.88rem;
    line-height: 1.55;
}

.quickstart-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quickstart-section .steps {
    width: 100%;
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.8rem;
    max-width: 840px;
}

.steps li {
    display: block;
    padding: 0.85rem 1rem;
    line-height: 1.6;
}

.steps li code {
    font-family: "JetBrains Mono", "CaskaydiaCove", monospace;
    font-size: 0.85em;
    background: rgba(0, 255, 180, 0.1);
    color: var(--text);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 180, 0.2);
}

.steps li span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    margin-right: 0.6rem;
    vertical-align: middle;
}

/* ── MCP section ───────────────────────────────────────────── */
.platform-toggle.dropdown-only .plt-btn {
    display: none;
}

.platform-toggle.dropdown-only .plt-select {
    display: block;
    margin-left: auto;
}

.mcp-footnote {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.mcp-footnote a {
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}

.mcp-footnote a:hover {
    text-decoration: underline;
}

.mcp-footnote a:focus-visible {
    text-decoration: underline;
}

.cta-logo {
    width: 90px;
    height: 90px;
    margin-bottom: 0.1rem;
}

.footer {
    max-width: 1140px;
    margin: 2rem auto 1.2rem;
    padding: 0 0.4rem;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin-bottom: 1.1rem;
}

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.78rem;
    font-family: "JetBrains Mono", "CaskaydiaCove", monospace;
    color: var(--muted);
    text-align: center;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.25;
    }
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-links a:focus-visible {
    color: var(--text);
}

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

.footer-credit a {
    color: var(--teal);
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

.footer-credit a:focus-visible {
    text-decoration: underline;
}

/* Keyboard-visible focus ring for all primary interactive controls */
a:focus-visible,
button:focus-visible,
.menu-btn:focus-visible,
.example-tab:focus-visible,
.plt-btn:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(26, 171, 138, 0.7);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(232, 121, 42, 0.25);
    border-radius: 0.6rem;
}

.glass {
    background: linear-gradient(145deg, var(--surface), var(--surface-strong));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .topbar {
        flex-wrap: wrap;
    }

    .menu-btn {
        display: inline-flex;
        font-size: 1rem;
    }

    .footer-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Mobile nav — animate height instead of display toggle */
    .nav-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 0;
        padding-top: 0;
        border-top: 1px solid transparent;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition:
            max-height 0.35s ease,
            opacity 0.3s ease,
            margin-top 0.35s ease,
            padding-top 0.35s ease,
            border-color 0.35s ease;
    }

    .nav-links.open {
        max-height: 300px;
        opacity: 1;
        margin-top: 0.7rem;
        padding-top: 0.7rem;
        border-top-color: rgba(130, 210, 190, 0.18);
    }

    .hero {
        padding-top: 1.5rem;
    }

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

    /* ── Code blocks ─────────────────────────────────────────── */
    .hero-code {
        max-width: 100%;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .hero-code code.code-python,
    .example-panel code.code-python {
        font-size: 0.75rem;
        padding: 1rem 0.85rem;
        white-space: pre;
        overflow-x: auto;
        display: block;
        max-width: 100%;
    }

    .hero-code pre,
    .example-panel pre {
        overflow-x: auto;
        max-width: 100%;
    }

    /* ── Example panels ──────────────────────────────────────── */
    .example-panels {
        max-width: 100%;
    }

    .example-panel {
        max-width: 100%;
        overflow-x: hidden;
    }

    .example-switch {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .example-tab {
        font-size: 0.82rem;
        padding: 0.45rem 0.75rem;
    }

    /* ── Platform Toggle Mobile ───────────────────────────────── */
    .platform-label,
    .plt-btn {
        display: none;
    }
    .plt-select {
        display: block;
        margin-left: auto;
    }

    /* ── Mode Toggle Mobile ──────────────────────────────────── */
    .mode-btn {
        display: none;
    }
    .mode-select {
        display: block;
    }
    .titlebar-controls {
        gap: 0.3rem;
    }
    .titlebar-controls .plt-select {
        margin-left: 0;
    }

    /* ── Quickstart steps ────────────────────────────────────── */
    .steps {
        max-width: 100%;
    }

    .steps li {
        font-size: 0.88rem;
        padding: 0.75rem 0.85rem;
    }

    .steps li code {
        font-size: 0.78em;
        word-break: break-word;
    }

    /* ── Buttons ─────────────────────────────────────────────── */
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
    }

    /* ── Section spacing ─────────────────────────────────────── */
    .section {
        padding: 2rem 0;
    }

    .section-head {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    .topbar {
        padding: 0.6rem 0.75rem;
        top: 0.4rem;
    }

    .hero {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    h1 {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
    }

    .lead {
        font-size: 1rem;
    }

    .hero-code code.code-python,
    .example-panel code.code-python {
        font-size: 0.7rem;
        padding: 0.85rem 0.7rem;
    }

    .ide-titlebar {
        gap: 0.3rem;
    }

    .ide-filename {
        font-size: 0.85rem;
    }

    .platform-label {
        font-size: 0.6rem;
    }

    .platform-toggle {
        justify-content: flex-end;
        row-gap: 0.3rem;
    }

    .plt-btn {
        font-size: 0.6rem;
    }

    .mode-select,
    .plt-select {
        font-size: 0.7rem;
        padding: 0.18rem 1.45rem 0.18rem 0.45rem;
        background-position:
            calc(100% - 10px) 50%,
            calc(100% - 6px) 50%;
        background-size:
            4px 4px,
            4px 4px;
    }

    .titlebar-controls {
        row-gap: 0.2rem;
    }

    .steps li {
        font-size: 0.82rem;
        padding: 0.65rem 0.7rem;
    }

    .steps li span {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}

/* ── How it works ───────────────────────────────────────────── */
.hiw-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    max-width: 980px;
    margin: 0 auto;
}

.hiw-step {
    flex: 1;
    padding: 1.8rem 1.4rem;
    position: relative;
    text-align: center;
}

.hiw-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.65rem;
}

.hiw-num {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.hiw-step h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.hiw-step p {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0;
}

.hiw-step code {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82em;
    background: rgba(0, 255, 180, 0.1);
    color: var(--teal);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 180, 0.2);
}

.hiw-arrow {
    color: var(--teal);
    flex-shrink: 0;
    opacity: 0.6;
}

/* ── CTA ────────────────────────────────────────────────────── */
.cta-section {
    padding-bottom: 1rem;
}

.cta-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.2rem 2.4rem;
    text-align: center;
    background: linear-gradient(
        145deg,
        rgba(26, 171, 138, 0.08),
        rgba(62, 212, 174, 0.12)
    );
    border-color: rgba(26, 171, 138, 0.25);
}

.cta-card h2 {
    font-size: clamp(1.75rem, 6vw, 2rem);
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
}

.cta-sub {
    color: var(--muted);
    max-width: 52ch;
    margin: 0 auto 1.8rem;
    font-size: 1rem;
}

.cta-actions {
    gap: 0.8rem;
}

.highlight {
    color: var(--teal);
    font-weight: 700;
}

/* ── How it works responsive ────────────────────────────────── */
@media (max-width: 760px) {
    .hiw-steps {
        flex-direction: column;
        gap: 0.6rem;
    }

    .hiw-arrow {
        transform: rotate(90deg);
    }

    .hiw-step {
        width: 100%;
    }

    .cta-card {
        padding: 2rem 1.4rem;
    }
}

/* ── Client Setup Section ───────────────────────────────────── */
.setup-panels {
    max-width: 950px;
    margin: 0 auto;
}

.setup-panel {
    padding: 2rem 2.2rem;
    display: none;
}

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

.setup-panel-head {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-bottom: 1.4rem;
    margin-bottom: 1.6rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.setup-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.badge-telegram {
    color: #29b6f6;
}
.badge-slack {
    color: #e01e5a;
}
.badge-teams {
    color: #7b83eb;
}
.badge-discord {
    color: #5865f2;
}

.setup-platform-desc {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
    max-width: 100%;
    padding-top: 0.15rem;
}

.setup-note {
    padding: 0.8rem 1rem;
    border-radius: 0.65rem;
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.setup-note-warn {
    background: rgba(232, 121, 42, 0.1);
    border: 1px solid rgba(232, 121, 42, 0.3);
    color: var(--text);
}

.setup-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.setup-steps li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.setup-steps li > div {
    min-width: 0;
}

.setup-steps li strong {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.setup-steps li p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0.25rem 0 0;
}

.setup-steps li a {
    font-size: 1rem;
    color: var(--teal);
    text-decoration: underline;
    font-weight: 600;
    padding: 0.45rem;
    border-radius: 1rem;
}

.setup-step-num {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.setup-token {
    display: block;
    margin-top: 0.6rem;
    padding: 0.5rem 0.9rem;
    background: rgba(0, 0, 0, 0.75);
    color: #a8ff78;
    font-family: "JetBrains Mono", "CaskaydiaCove", monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    border-radius: 0.5rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.setup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.setup-badges code {
    font-family: "JetBrains Mono", "CaskaydiaCove", monospace;
    font-size: 0.8rem;
    background: rgba(26, 171, 138, 0.12);
    color: var(--text);
    padding: 0.2em 0.55em;
    border-radius: 4px;
    border: 1px solid rgba(26, 171, 138, 0.25);
}

.setup-footer {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

.setup-article-link {
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.setup-article-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .setup-panel {
        padding: 1.4rem 1.1rem;
    }

    .setup-token {
        font-size: 0.72rem;
        padding: 0.45rem 0.7rem;
    }

    .setup-steps {
        gap: 1.1rem;
    }
}
