:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1e1e2a;
    --accent: #7c3aed;
    --accent-light: #a855f7;
    --accent-glow: rgba(124, 58, 237, 0.35);
    --accent-cyan: #00e5ff;
    --accent-cyan-glow: rgba(0, 229, 255, 0.2);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #555;
    --border: #1f1f2e;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --warning-border: rgba(245, 158, 11, 0.3);
    --warning-text: #fbbf24;
    --danger-bg: rgba(239, 68, 68, 0.08);
    --danger-border: rgba(239, 68, 68, 0.35);
    --green-bg: rgba(34, 197, 94, 0.08);
    --green-border: rgba(34, 197, 94, 0.3);
    --green-text: #4ade80;
}

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

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-primary);
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.045) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Top Nav ── */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13,13,13,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.top-nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.top-nav-brand {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.top-nav-brand span {
    color: var(--accent-light);
}
.top-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: #1e1e1e;
    border: 1px solid var(--border);
    padding: 5px 13px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.top-nav-link:hover {
    color: var(--text-primary);
    border-color: rgba(168,85,247,0.4);
    background: rgba(124,58,237,0.12);
}
.top-nav-link svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* ── Header ── */
header {
    position: relative;
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 350px;
    background: radial-gradient(
        ellipse at center,
        var(--accent-glow) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.header-logo {
    width: 200px;
    height: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 0 24px var(--accent-glow));
}

header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #c084fc 55%, #a855f7 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    animation: h1Shimmer 4s ease-in-out infinite, h1Glitch 8s infinite;
}

@keyframes h1Shimmer {
    0%, 100% { background-position: 0% center; }
    50%       { background-position: 100% center; }
}

@keyframes h1Glitch {
    0%, 87%, 100% {
        filter: drop-shadow(0 0 10px rgba(168,85,247,0.85))
                drop-shadow(0 0 35px rgba(168,85,247,0.3));
        transform: translate(0);
    }
    88% {
        filter: drop-shadow(-4px 0 rgba(255,0,60,0.9))
                drop-shadow(4px 0 rgba(0,245,255,0.9));
        transform: translate(-3px, 0);
    }
    89% {
        filter: drop-shadow(4px 0 rgba(255,0,60,0.9))
                drop-shadow(-4px 0 rgba(0,245,255,0.9));
        transform: translate(3px, 0);
    }
    90% {
        filter: drop-shadow(0 0 10px rgba(168,85,247,0.85));
        transform: translate(0);
    }
    91% {
        filter: drop-shadow(-2px 0 rgba(255,0,60,0.6))
                drop-shadow(2px 0 rgba(0,245,255,0.6));
        transform: translate(-1px, 0);
    }
    92% {
        filter: drop-shadow(0 0 10px rgba(168,85,247,0.85))
                drop-shadow(0 0 35px rgba(168,85,247,0.3));
        transform: translate(0);
    }
}

header p {
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    color: var(--accent-light);
    opacity: 0.85;
    min-height: 1.5em;
}

.header-typewriter {
    display: inline;
    border-right: 2px solid var(--accent-light);
    animation: cursorBlink 0.75s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { border-color: var(--accent-light); }
    50%      { border-color: transparent; }
}

/* Scanlines over header */
header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 3px,
        rgba(0,0,0,0.10) 3px,
        rgba(0,0,0,0.10) 4px
    );
    pointer-events: none;
    z-index: 0;
}

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

@media (max-width: 600px) {
    .header-typewriter {
        border-right: none;
        animation: none;
    }
}

/* ── Layout ── */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.section-eyebrow::before {
    content: '> ';
    color: var(--accent-light);
    opacity: 0.7;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    background: linear-gradient(90deg, #ffffff 0%, var(--accent-light) 55%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.55));
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding-left: 0.85rem;
    border-left: 2px solid rgba(0, 229, 255, 0.3);
}

/* ── Facts ── */
.facts-section {
    padding: 4rem 0 2rem;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.2rem;
    margin-bottom: 4rem;
}

.fact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.fact-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
    opacity: 0.35;
    transition: opacity 0.25s;
}

.fact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 8px 32px var(--accent-glow), 0 0 60px rgba(0, 229, 255, 0.06);
}

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

.fact-icon {
    font-size: 1.7rem;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
}

.fact-card h3 {
    font-size: 1rem;
    font-weight: 650;
    margin-bottom: 0.4rem;
}

.fact-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ── Steps ── */
.steps-section {
    padding: 2rem 0 5rem;
}

.step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 54px;
    bottom: -2.5rem;
    width: 2px;
    background: linear-gradient(
        180deg,
        var(--accent-cyan) 0%,
        var(--accent) 40%,
        transparent 100%
    );
    box-shadow: 0 0 8px var(--accent-cyan-glow);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.3), 0 0 20px var(--accent-glow);
    animation: stepPulse 3s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.25),
                    0 0 20px var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.5),
                    0 0 35px var(--accent-glow),
                    0 0 60px rgba(0, 229, 255, 0.12);
    }
}

.step-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.step-content:hover {
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.12),
                0 0 80px rgba(0, 229, 255, 0.04),
                inset 0 0 40px rgba(0, 0, 0, 0.2);
}

.step-content > h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 18px rgba(168, 85, 247, 0.55);
}

/* Scroll reveal */
.step.step-reveal {
    opacity: 0;
    transform: translateY(28px);
}

.step.step-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.step-content > .lead {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 1.25rem;
}

/* ── Warning / Info box ── */
.callout {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
}

.callout i {
    margin-top: 2px;
    flex-shrink: 0;
}

.callout p {
    margin: 0;
    line-height: 1.5;
}

.callout-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-text);
}

.callout-info {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.callout-green {
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    color: var(--green-text);
}

/* ── Link cards ── */
.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.22s ease;
    margin-bottom: 0.7rem;
}

.link-card:hover {
    border-color: rgba(0, 229, 255, 0.35);
    background: var(--bg-card-hover);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.07),
                0 0 40px rgba(124, 58, 237, 0.08);
}

.link-card:last-child {
    margin-bottom: 0;
}

.link-card-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.link-card-left > i {
    color: var(--accent-light);
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
}

.lc-title {
    font-weight: 600;
    font-size: 0.93rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.lc-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.link-card-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.link-card:hover .link-card-arrow {
    color: var(--accent-light);
}

/* important variant */
.link-card-important {
    border-color: var(--danger-border);
    background: var(--danger-bg);
}

/* GitHub CTA variant */
.link-card-github {
    background: linear-gradient(
        135deg,
        rgba(124, 58, 237, 0.12) 0%,
        rgba(168, 85, 247, 0.06) 100%
    );
    border-color: rgba(124, 58, 237, 0.4);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.link-card-github:hover {
    border-color: var(--accent-light);
    box-shadow: 0 6px 24px var(--accent-glow);
}

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
}

.badge-important {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ── Tabs ── */
.tabs {
    display: flex;
    gap: 0.4rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.3rem;
    margin-bottom: 1.25rem;
}

.tab-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: "Inter", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 14px var(--accent-glow);
}

.tab-panel {
    display: none;
}

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

/* ── SNAC sub-label ── */
.sub-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin: 1.1rem 0 0.65rem;
}

/* ── SNAC Grid ── */
.snac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 0.7rem;
}

.snac-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.22s ease;
}

.snac-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    box-shadow: 0 4px 18px var(--accent-glow);
}

.snac-icon {
    width: 36px;
    height: 36px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.snac-name {
    font-size: 0.88rem;
    font-weight: 600;
}

/* ── Setup CTA card ── */
.setup-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(
        135deg,
        rgba(124, 58, 237, 0.18) 0%,
        rgba(168, 85, 247, 0.1) 100%
    );
    border: 1px solid rgba(124, 58, 237, 0.45);
    border-radius: 14px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.28s ease;
}

.setup-cta:hover {
    border-color: var(--accent-light);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-2px);
}

.setup-cta-left {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.setup-cta-icon {
    width: 54px;
    height: 54px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.setup-cta h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.setup-cta p {
    font-size: 0.83rem;
    color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════════════════
   MISTER COMPANION – Accordion
══════════════════════════════════════════════════════════════════ */

.companion-intro {
    font-size: 0.93rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.companion-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.companion-stat {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.companion-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.companion-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.accordion-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.accordion-item.is-open {
    border-color: rgba(124, 58, 237, 0.4);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    gap: 1rem;
}

.accordion-header:hover {
    background: var(--bg-card-hover);
}

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.accordion-icon {
    width: 34px;
    height: 34px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background 0.2s;
}

.accordion-item.is-open .accordion-icon {
    background: rgba(124, 58, 237, 0.3);
}

.accordion-title {
    font-weight: 600;
    font-size: 0.92rem;
}

.accordion-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.accordion-chevron {
    color: var(--text-muted);
    transition: transform 0.28s ease, color 0.2s;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.accordion-item.is-open .accordion-chevron {
    transform: rotate(180deg);
    color: var(--accent-light);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-body-inner {
    padding: 0.1rem 1.1rem 1.1rem 1.1rem;
    border-top: 1px solid var(--border);
}

.accordion-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.85rem;
}

.accordion-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.accordion-list li i {
    color: var(--accent-light);
    font-size: 0.75rem;
    margin-top: 0.32rem;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

/* Companion feature grid (2 columns for wider screens) */
.accordion-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
}

/* ── Badge variants ── */
.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-blue {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ── Alternative Product Cards ── */
.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: border-color 0.25s;
}

.product-card:last-of-type {
    margin-bottom: 0;
}

.product-card:hover {
    border-color: rgba(124, 58, 237, 0.45);
}

.product-card-header {
    padding: 0.9rem 1.2rem;
    background: rgba(124, 58, 237, 0.07);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-card-title {
    font-weight: 700;
    font-size: 0.96rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.product-card-title i {
    color: var(--accent-light);
}

.product-card-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.product-card-body {
    padding: 1.1rem 1.2rem;
}

.product-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.38rem 1.5rem;
    margin-bottom: 1rem;
    padding: 0;
}

.product-features li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.45;
}

.product-features li i {
    color: var(--green-text);
    font-size: 0.68rem;
    margin-top: 0.32rem;
    flex-shrink: 0;
}

.product-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.product-variant-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.77rem;
    font-weight: 600;
    padding: 0.28rem 0.72rem;
    border-radius: 20px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: var(--accent-light);
}

.product-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.22s ease;
}

.product-cta:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.product-cta i.fa-arrow-up-right-from-square {
    color: var(--text-muted);
    font-size: 0.78rem;
    transition: color 0.2s;
}

.product-cta:hover i.fa-arrow-up-right-from-square {
    color: var(--accent-light);
}

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

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.84rem;
    color: var(--text-muted);
}

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

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

/* ── Responsive ── */
@media (max-width: 700px) {
    .step {
        grid-template-columns: 1fr;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .step-number {
        margin-bottom: -0.5rem;
    }

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

    .setup-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .tabs {
        flex-direction: column;
    }

    .accordion-cols {
        grid-template-columns: 1fr;
    }

    .companion-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Back to Top Button ── */
#backToTop {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(0, 229, 255, 0.1);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
    pointer-events: none;
    z-index: 998;
}

#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#backToTop:hover {
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(0, 229, 255, 0.25);
    transform: translateY(-3px);
}
