/* ============================================
   Homepage (/) — Dark style guide aesthetic
   Mirrors tokens from rag-showcase.css / website-style-guide.md
   Homepage-specific: product tabs + 3-variant hero panels
   ============================================ */

/* ── Base theme ─────────────────────────────── */
body.home-page {
    background: #0a0710;
    color: #e2e8f0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    scroll-behavior: smooth;
}

body.home-page * { box-sizing: border-box; }

/* ── Product folder tabs (homepage unique) ── */
.home-tabs {
    display: flex;
    width: 100%;
    background: #13101a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 50;
}

.home-tab {
    flex: 1;
    padding: 14px 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    border: none;
    background: transparent;
    color: rgba(245, 243, 255, 0.35);
    position: relative;
    border-top: 3px solid transparent;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.home-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(245, 243, 255, 0.7);
}

.home-tab.active {
    background: #0a0710;
    color: #f5f3ff;
}

.home-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0a0710;
}

.home-tab--genie.active { border-top-color: #f43f5e; }
.home-tab--kb.active    { border-top-color: #06b6d4; }
.home-tab--ds.active    { border-top-color: #10b981; }

.home-tab__logo {
    height: 100px;
    max-width: 90%;
    width: auto;
    object-fit: contain;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.home-tab__logo--ds { height: 130px; border-radius: 10px; }
.home-tab__logo--kb { height: 110px; }
.home-tab.active .home-tab__logo { opacity: 1; }
.home-tab:hover .home-tab__logo { opacity: 0.7; }

.home-tab__tagline {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.4;
    color: #94a3b8;
}
.home-tab.active .home-tab__tagline { opacity: 0.85; }
.home-tab--genie.active .home-tab__tagline { color: #c4b5fd; }
.home-tab--kb.active    .home-tab__tagline { color: #67e8f9; }
.home-tab--ds.active    .home-tab__tagline { color: #6ee7b7; }

/* ── Hero section ───────────────────────────── */
.home-hero {
    background: #0a0710;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
    color: #f5f3ff;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 700px;
    background: radial-gradient(ellipse at center,
        rgba(244, 63, 94, 0.18) 0%,
        rgba(96, 165, 250, 0.06) 40%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: background 0.6s ease;
}

body[data-home-product="kb"] .home-hero::before {
    background: radial-gradient(ellipse at center,
        rgba(6, 182, 212, 0.15) 0%,
        rgba(96, 165, 250, 0.06) 40%,
        transparent 70%);
}

body[data-home-product="ds"] .home-hero::before {
    background: radial-gradient(ellipse at center,
        rgba(16, 185, 129, 0.16) 0%,
        rgba(96, 165, 250, 0.06) 40%,
        transparent 70%);
}

.home-hero-panels {
    position: relative;
    min-height: 480px;
}

.home-hero-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    text-align: center;
    z-index: 1;
}

.home-hero-panel.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.home-hero-panel__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.home-hero-panel__logo {
    display: block;
    margin: 0 auto 24px;
    height: 84px;
    width: auto;
}
.home-hero-panel__logo--kb { height: 92px; }
.home-hero-panel__logo--ds { height: 160px; border-radius: 14px; }

.home-hero-panel__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 24px;
    padding: 8px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.home-hero-panel--genie .home-hero-panel__badge { color: #fda4af; border-color: rgba(244, 63, 94, 0.3); background: rgba(244, 63, 94, 0.08); }
.home-hero-panel--kb    .home-hero-panel__badge { color: #67e8f9; border-color: rgba(6, 182, 212, 0.3);  background: rgba(6, 182, 212, 0.08); }
.home-hero-panel--ds    .home-hero-panel__badge { color: #6ee7b7; border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.08); }

.home-hero-panel h2 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    color: #f5f3ff;
}

.home-hero-panel__desc {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.home-hero-panel__features {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.home-hero-panel__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 500;
}

.home-hero-panel__feature i {
    font-size: 1rem;
    color: #10b981;
}

.home-hero-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 63, 94, 0.65);
    color: #f5f3ff;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.home-hero-panel__cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(245, 243, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.home-hero-panel__cta:hover::before { width: 400px; height: 400px; }
.home-hero-panel__cta:hover {
    background: #f43f5e;
    color: #f5f3ff;
    transform: translateY(-2px);
}

.home-hero-panel__cta--demo {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.home-hero-panel__cta--demo i { font-size: 1.2rem; position: relative; z-index: 1; }
.home-hero-panel__cta > span,
.home-hero-panel__cta > i { position: relative; z-index: 1; }

.home-hero-panel--kb .home-hero-panel__cta { background: rgba(6, 182, 212, 0.65); }
.home-hero-panel--kb .home-hero-panel__cta:hover { background: #06b6d4; }
.home-hero-panel--ds .home-hero-panel__cta { background: rgba(16, 185, 129, 0.65); }
.home-hero-panel--ds .home-hero-panel__cta:hover { background: #10b981; }

.home-hero-panel__secondary-link {
    display: inline-block;
    margin-left: 18px;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.home-hero-panel__secondary-link:hover { color: #e2e8f0; }

/* ── MCP bar (below hero panels) ─────────────── */
.home-mcp-bar {
    max-width: 720px;
    margin: 36px auto 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease, border-color 0.2s ease;
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(8px);
}

.home-mcp-bar:hover {
    border-color: rgba(244, 63, 94, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
}

.home-mcp-bar__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-mcp-bar__icon {
    width: 40px;
    height: 40px;
    background: rgba(244, 63, 94, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.home-mcp-bar__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f5f3ff;
    margin: 0;
}

.home-mcp-bar__desc {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 2px 0 0;
}

.home-mcp-bar__cta {
    color: #a78bfa;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s;
}

.home-mcp-bar:hover .home-mcp-bar__cta { color: #c4b5fd; }

/* ── MCP intro block (What is MCP) ──────────── */
.home-mcp-intro {
    max-width: 860px;
    margin: 0 auto 48px;
    padding: 32px 36px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.10) 0%, rgba(159, 18, 57, 0.08) 100%);
    border: 1px solid rgba(244, 63, 94, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.home-mcp-intro h3 {
    color: #fda4af;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-mcp-intro h3 i { color: #f43f5e; }

.home-mcp-intro p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.home-mcp-intro strong { color: #f5f3ff; }

.home-mcp-footnote {
    max-width: 720px;
    margin: 40px auto 0;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
}

.home-mcp-footnote i { color: #f43f5e; margin-right: 6px; }
.home-mcp-footnote a {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
}
.home-mcp-footnote a:hover { color: #c4b5fd; text-decoration: underline; }

/* ── Benefit card content helpers ─────────── */
.home-benefit-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 20px;
}

.home-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.home-benefit-list li i {
    color: #f43f5e;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.home-benefit-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    background: rgba(244, 63, 94, 0.65);
    color: #f5f3ff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    margin-top: auto;
}

.home-benefit-card-cta:hover {
    background: #f43f5e;
    color: #f5f3ff;
    transform: translateY(-2px);
}

/* ── Final CTA row ─────────────────────────── */
.home-final-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.home-final-ctas .rag-btn-primary i,
.home-final-ctas .rag-btn-outline-form i { margin-right: 6px; }

/* ── Case card CTA (on rose bg) ──────────── */
.home-case-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f3ff;
    color: #9f1239;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-case-cta:hover {
    background: #ffe4e6;
    color: #881337;
    transform: translateY(-2px);
}

/* ── Homepage rose overrides for shared .rag-* components ──────────
   These overrides retint the purple-accented /rag components so the
   homepage uses rose (#f43f5e) instead. Scoped to body.home-page so
   they do not leak to /rag.
   ──────────────────────────────────────────────────────────────── */
body.home-page .rag-btn-primary { background: rgba(244, 63, 94, 0.72); }
body.home-page .rag-btn-primary:hover { background: #f43f5e; }

body.home-page .rag-benefit-card {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(159, 18, 57, 0.08) 100%);
    border-color: rgba(244, 63, 94, 0.15);
}
body.home-page .rag-benefit-card:hover { border-color: rgba(244, 63, 94, 0.3); }
body.home-page .rag-benefit-icon { color: #f43f5e; }
body.home-page .rag-benefit-card i { color: #f43f5e; }

body.home-page .rag-benefit-punchline {
    background: rgba(244, 63, 94, 0.10);
    border-left-color: #f43f5e;
    color: #fecdd3 !important;
}

body.home-page .rag-case-card { background: rgba(244, 63, 94, 0.55); }
body.home-page .rag-case-metric-value { color: #fff; }

/* Utility-bar CTA — override the /rag purple from rag-showcase.css */
body.home-page[data-ad-page="rag"] .utility-bar__cta {
    background: #f43f5e;
    color: #fff;
}
body.home-page[data-ad-page="rag"] .utility-bar__cta:hover {
    background: #e11d48;
    color: #fff;
}

/* ── Mobile responsiveness ────────────────── */
@media (max-width: 768px) {
    .home-hero { padding: 48px 0 32px; }
    .home-hero-panels { min-height: auto; }
    .home-hero-panel__features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .home-hero-panel__logo { height: 60px; }
    .home-hero-panel__logo--kb { height: 68px; }
    .home-hero-panel__logo--ds { height: 110px; }
    .home-hero-panel__secondary-link {
        display: block;
        margin: 14px 0 0;
    }

    .home-mcp-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .home-mcp-bar__left { flex-direction: column; }

    .home-mcp-intro {
        padding: 24px 20px;
    }
    .home-mcp-intro h3 { font-size: 1.25rem; }

    .home-tab { padding: 10px 6px 8px; }
    .home-tab__logo { height: 56px; }
    .home-tab__logo--ds { height: 72px; }
    .home-tab__logo--kb { height: 62px; }
    .home-tab__tagline { display: none; }
}

@media (max-width: 480px) {
    .home-tab__logo { height: 44px; }
    .home-tab__logo--ds { height: 58px; }
    .home-tab__logo--kb { height: 50px; }
}
