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

:root {
    --bg: #0a0e17;
    --bg2: #111827;
    --bg3: #1a2233;
    --border: #1e293b;
    --border-hover: #f97316;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #f97316;
    --accent2: #fb923c;
    --accent-glow: rgba(249, 115, 22, 0.15);
    --code-bg: #0f1623;
    --radius: 12px;
    --purple: #8b5cf6;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent2); }
code { font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace; }
strong { color: #fff; }

/* ─── NAV ─── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; height: 56px;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.1rem; color: var(--text);
    transition: color 0.2s;
}
.nav-brand img { filter: invert(1); }
.nav-brand:hover { color: var(--accent); }

.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
    color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
    padding: 6px 12px; border-radius: 6px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-gh {
    background: rgba(255,255,255,0.06) !important; padding: 6px 14px !important; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08); color: var(--text) !important;
}
.nav-gh:hover { border-color: var(--accent); background: rgba(249,115,22,0.08) !important; }
.nav-links a.nav-star {
    background: linear-gradient(135deg, #7c3aed, #a855f7, #c026d3);
    padding: 7px 16px; border-radius: 20px;
    border: none;
    color: #fff; font-weight: 700; font-size: 0.85rem;
    gap: 6px; display: inline-flex; align-items: center;
    box-shadow: 0 0 16px rgba(168,85,247,0.4);
    transition: all 0.3s ease;
}
.nav-links a.nav-star:hover { background: linear-gradient(135deg, #6d28d9, #9333ea, #a21caf); box-shadow: 0 0 24px rgba(168,85,247,0.6); transform: scale(1.05); color: #fff; }
.nav-docs {
    background: var(--accent) !important; padding: 6px 16px !important; border-radius: 6px;
    color: #fff !important; font-weight: 600;
}
.nav-docs:hover { background: var(--accent2) !important; color: #fff !important; }

/* ─── HERO ─── */
.hero {
    position: relative; text-align: center;
    padding: 120px 20px 72px; overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249,115,22,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 70% 60%, rgba(139,92,246,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 60%);
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.hero-logo {
    margin-bottom: 16px;
    filter: invert(1) drop-shadow(0 0 40px rgba(249,115,22,0.25));
    position: relative;
}

.hero h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 8px; position: relative; }
.accent { color: var(--accent); }

.tagline {
    font-size: 1.2rem; color: var(--accent); font-weight: 600; margin-bottom: 14px;
    position: relative;
}

.subtitle {
    color: var(--text-muted); max-width: 560px; margin: 0 auto 24px;
    font-size: 1rem; line-height: 1.7; position: relative;
}

.badges { margin-bottom: 24px; position: relative; }
.badges img { margin: 0 3px; vertical-align: middle; }

.hero-cta {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    position: relative;
}

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 24px; border-radius: 8px;
    font-weight: 600; font-size: 0.9rem; transition: all 0.25s; cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: #fff;
    box-shadow: 0 2px 12px rgba(249,115,22,0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    color: #fff; transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(249,115,22,0.35);
}
.btn-outline {
    border: 1px solid var(--border); color: var(--text);
    background: rgba(255,255,255,0.02);
}
.btn-outline:hover {
    border-color: var(--accent); color: var(--accent);
    background: rgba(249,115,22,0.05);
}

/* ─── SECTIONS ─── */
section {
    max-width: 1100px; margin: 0 auto;
    padding: 72px 24px;
}

section h2 {
    font-size: 2rem; font-weight: 800; text-align: center;
    margin-bottom: 12px; letter-spacing: -0.5px;
}

.section-lead {
    text-align: center; color: var(--text-muted); max-width: 680px;
    margin: 0 auto 40px; font-size: 0.95rem; line-height: 1.75;
}

/* ─── SECTION DIVIDER ─── */
.channels-section,
.quickstart,
.queues-section {
    position: relative;
}
.channels-section::before,
.quickstart::before,
.queues-section::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: min(400px, 60%); height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.3), transparent);
}

/* ─── WHAT IS ─── */
.what-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.what-card {
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; text-align: center; transition: all 0.3s ease;
}
.what-card:hover {
    border-color: rgba(249,115,22,0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(249,115,22,0.1);
}
.what-icon { font-size: 2rem; margin-bottom: 12px; }
.what-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.what-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.what-card code { background: var(--code-bg); padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; }

/* ─── CHANNELS ─── */
.channels-section { background: var(--bg2); padding-top: 72px; padding-bottom: 72px; max-width: 100%; }
.channels-section h2, .channels-section .section-lead { max-width: 1100px; margin-left: auto; margin-right: auto; }

.channels-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
}

.ch-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; transition: all 0.3s ease;
}
.ch-card:hover {
    border-color: rgba(249,115,22,0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.ch-icon { font-size: 1.4rem; margin-bottom: 8px; height: 28px; display: flex; align-items: center; }
.ch-icon img, .ch-icon svg { display: block; transition: transform 0.3s ease, filter 0.3s ease; }
.ch-card:hover .ch-icon img, .ch-card:hover .ch-icon svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(249,115,22,0.4));
}
a.ch-card { text-decoration: none; display: block; color: inherit; }
a.ch-card:hover { color: inherit; }
.ch-card h4 { font-size: 0.92rem; margin-bottom: 4px; color: var(--text); }
.ch-card p { color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; }
.ch-custom { border-style: dashed; opacity: 0.7; }
.ch-custom:hover { opacity: 1; }

/* ─── FEATURES ─── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.feat-card {
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; transition: all 0.3s ease;
}
.feat-card:hover {
    border-color: rgba(249,115,22,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.feat-card h4 { font-size: 0.95rem; margin-bottom: 6px; }
.feat-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.feat-card code { background: var(--code-bg); padding: 2px 5px; border-radius: 4px; font-size: 0.78rem; color: var(--accent); }

/* ─── CODE BLOCKS ─── */
.code-block {
    background: var(--code-bg); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden; margin-bottom: 16px;
    transition: border-color 0.2s;
}
.code-block:hover { border-color: rgba(255,255,255,0.08); }
.code-header {
    padding: 8px 16px; font-size: 0.78rem; font-weight: 600;
    color: var(--text-muted); background: rgba(30,41,59,0.5);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase; letter-spacing: 0.5px;
}
pre { padding: 16px; overflow-x: auto; font-size: 0.84rem; line-height: 1.6; }
pre code { color: var(--text); }

/* ─── CODE EXAMPLES ─── */
.code-examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.example h4 { font-size: 0.92rem; margin-bottom: 12px; color: var(--text-muted); }

/* ─── QUICK START ─── */
.quickstart { background: var(--bg2); max-width: 100%; padding: 72px 24px; }
.quickstart h2, .quickstart .section-lead { max-width: 1100px; margin-left: auto; margin-right: auto; }

.qs-steps { max-width: 700px; margin: 0 auto; }

.qs-step {
    position: relative; padding-left: 50px; margin-bottom: 32px;
}
.step-num {
    position: absolute; left: 0; top: 0;
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(249,115,22,0.3);
}
.qs-step h4 { font-size: 1.05rem; margin-bottom: 12px; }

/* ─── DOCKER ─── */
.docker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 36px; }

.docker-card {
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; transition: all 0.3s ease;
}
.docker-card:hover { border-color: rgba(249,115,22,0.3); }

.docker-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.docker-badge {
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: #fff; padding: 3px 12px;
    border-radius: 6px; font-size: 0.78rem; font-weight: 700;
}
.mcp-badge { background: linear-gradient(135deg, var(--purple), #6d28d9) !important; }
.docker-image { font-size: 0.82rem; color: var(--accent); }

.docker-card > p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 14px; }

.docker-links { display: flex; gap: 8px; margin-bottom: 16px; }
.docker-links a {
    padding: 5px 14px; border-radius: 6px; font-size: 0.78rem; font-weight: 600;
    border: 1px solid var(--border); color: var(--text); transition: all 0.2s;
}
.docker-links a:hover { border-color: var(--accent); color: var(--accent); background: rgba(249,115,22,0.05); }

/* ─── ENV VARS ─── */
.env-section {
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px;
}
.env-section h3 { font-size: 1.15rem; margin-bottom: 6px; }
.env-section > p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; }
.env-section > p code { background: var(--code-bg); padding: 2px 6px; border-radius: 4px; font-size: 0.82rem; color: var(--accent); }

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

.env-group h5 { color: var(--accent); font-size: 0.82rem; margin-bottom: 8px; font-weight: 600; }
.env-group ul { list-style: none; margin-bottom: 16px; }
.env-group li {
    display: flex; justify-content: space-between; gap: 8px;
    padding: 5px 0; border-bottom: 1px solid rgba(30,41,59,0.5); font-size: 0.8rem;
}
.env-group li code { font-size: 0.75rem; color: var(--text); }
.env-group li span { color: var(--text-muted); font-size: 0.75rem; text-align: right; flex-shrink: 0; }

/* ─── MCP ─── */
.mcp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.mcp-tools h4, .mcp-example h4 { font-size: 1rem; margin-bottom: 16px; }

.tool-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tool {
    background: var(--bg2); border: 1px solid var(--border); padding: 5px 12px;
    border-radius: 20px; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    transition: all 0.2s;
}
.tool:hover { border-color: var(--purple); color: var(--purple); background: rgba(139,92,246,0.08); }

.ai-prompts { display: flex; flex-direction: column; gap: 10px; }
.ai-prompt {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 16px; font-size: 0.86rem; color: var(--text-muted);
    font-style: italic; transition: all 0.2s;
}
.ai-prompt:hover { border-color: var(--purple); background: rgba(139,92,246,0.05); }

/* --- SKILL --- */
.skill-block {
    margin: 48px auto 0; background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; max-width: 1100px;
}
.skill-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.skill-header h3 { font-size: 1.15rem; color: var(--text); margin: 0; }
.skill-subtitle { color: var(--text-muted); font-size: 0.86rem; margin: 2px 0 0; }
.skill-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.skill-desc strong { color: var(--accent); }

.skill-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.skill-feature {
    display: flex; align-items: flex-start; gap: 12px; background: var(--bg);
    border: 1px solid var(--border); border-radius: 10px; padding: 14px;
    transition: border-color 0.2s;
}
.skill-feature:hover { border-color: rgba(249,115,22,0.3); }
.skill-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1; }
.skill-feature strong { display: block; font-size: 0.85rem; color: var(--text); margin-bottom: 4px; }
.skill-feature span { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

.skill-install { margin-top: 8px; }
.skill-install .code-block { margin-bottom: 12px; }
.skill-note { color: var(--text-muted); font-size: 0.82rem; font-style: italic; }

@media (max-width: 768px) {
    .skill-features { grid-template-columns: 1fr; }
    .skill-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ─── QUEUES ─── */
.queues-section { background: var(--bg2); max-width: 100%; padding: 72px 24px; }
.queues-section h2, .queues-section .section-lead { max-width: 1100px; margin-left: auto; margin-right: auto; }

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

.queue-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; transition: border-color 0.3s;
}
.queue-card:hover { border-color: rgba(249,115,22,0.3); }
.queue-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.queue-card > code { font-size: 0.82rem; color: var(--accent); display: block; margin-bottom: 14px; }

/* ─── ADMIN ─── */
.admin-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.admin-feat {
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; text-align: center; transition: all 0.3s ease;
}
.admin-feat:hover { border-color: rgba(249,115,22,0.3); transform: translateY(-1px); }
.admin-feat h4 { font-size: 0.92rem; margin-bottom: 6px; }
.admin-feat p { color: var(--text-muted); font-size: 0.8rem; }

/* ─── MODULES TABLE ─── */
.modules-table { overflow-x: auto; }
.modules-table table { width: 100%; border-collapse: collapse; }
.modules-table th {
    text-align: left; padding: 10px 16px; font-size: 0.8rem;
    color: var(--accent); border-bottom: 2px solid var(--border); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.modules-table td {
    padding: 8px 16px; font-size: 0.86rem;
    border-bottom: 1px solid var(--border); color: var(--text-muted);
    transition: color 0.15s;
}
.modules-table td code {
    font-size: 0.8rem; color: var(--text); background: var(--code-bg);
    padding: 2px 8px; border-radius: 4px;
}
.modules-table tr:hover td { color: var(--text); background: rgba(249,115,22,0.02); }

/* ─── FOOTER ─── */
footer {
    border-top: 1px solid var(--border); padding: 48px 24px 24px;
    max-width: 1100px; margin: 0 auto;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }

.footer-col h4 { font-size: 0.95rem; margin-bottom: 12px; }
.footer-col p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.footer-col a {
    display: block; color: var(--text-muted); font-size: 0.85rem;
    padding: 3px 0; transition: all 0.2s;
}
.footer-col a:hover { color: var(--accent); padding-left: 4px; }

.coffee {
    text-align: center; font-size: 0.8rem; color: var(--text-muted);
    padding: 12px 0 16px; opacity: 0.6; transition: opacity 0.2s;
}
.coffee:hover { opacity: 1; }
.coffee span { font-size: 0.9rem; }
.coffee code {
    background: var(--code-bg); padding: 2px 8px; border-radius: 4px;
    font-size: 0.75rem; color: var(--text); user-select: all; cursor: pointer;
}

.footer-bottom {
    text-align: center; color: var(--text-muted); font-size: 0.82rem;
    padding-top: 20px; border-top: 1px solid var(--border);
}

/* ── No Code Section ── */
.no-code-section { text-align: center; }
.no-code-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0; }
.step-card {
    background: var(--bg2); border-radius: 16px; padding: 28px 22px; text-align: center;
    border: 1px solid var(--border); transition: all 0.3s ease;
}
.step-card:hover {
    border-color: rgba(249,115,22,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.step-number {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: #fff; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800; margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(249,115,22,0.3);
}
.step-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.step-card code { background: rgba(249,115,22,0.12); padding: 2px 8px; border-radius: 4px; font-size: 0.82em; color: var(--accent); }
.step-card em { color: var(--accent); font-style: normal; }

.prompt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.prompt-card {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
    padding: 18px; font-style: italic; color: var(--fg, var(--text));
    font-size: 0.9rem; text-align: left; transition: all 0.2s;
}
.prompt-card:hover { border-color: var(--purple); background: rgba(139,92,246,0.05); }
.prompt-card::before { content: '\1F4AC '; }

.no-code-editors { margin-top: 40px; }
.editor-list { color: var(--text-muted); font-size: 1.05rem; }

/* ── Developer Section ── */
.dev-section { text-align: center; }
.dev-section .code-block { max-width: 650px; margin: 0 auto; text-align: left; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .what-grid { grid-template-columns: 1fr; }
    .channels-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-grid { grid-template-columns: 1fr; }
    .code-examples { grid-template-columns: 1fr; }
    .docker-grid { grid-template-columns: 1fr; }
    .mcp-grid { grid-template-columns: 1fr; }
    .queue-grid { grid-template-columns: 1fr; }
    .admin-features { grid-template-columns: repeat(2, 1fr); }
    .env-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .nav-links a:not(.nav-gh):not(.nav-docs) { display: none; }
    .no-code-steps { grid-template-columns: 1fr; }
    .prompt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 100px 16px 56px; }
    .tagline { font-size: 1rem; }
    .channels-grid { grid-template-columns: 1fr; }
    .admin-features { grid-template-columns: 1fr; }
    nav { padding: 0 16px; }
    section { padding: 48px 16px; }
}
