﻿
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --bg: #0d0720;
    --surface: #13082e;
    --surface-2: #1e1050;
    --surface-3: #2d1f6e;
    --border: rgba(124,58,237,0.18);
    --border-soft: rgba(196,181,253,0.08);
    --text: #e2d9f3;
    --text-muted: #9985cc;
    --text-dim: #6d5aba;
    --purple-bright: #7c3aed;
    --purple-mid: #4c2dba;
    --green: #4ade80;
    --white: #ffffff;
    --font-head: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --r: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --transition: .25s cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* ── PAGE SHELL ── */
.features-page {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

    /* ── STAR-FIELD BACKGROUND ── */
    .features-page::before {
        content: '';
        position: fixed;
        inset: 0;
        background-image: radial-gradient(1px 1px at 10% 20%, rgba(196,181,253,.5) 0%, transparent 100%), radial-gradient(1px 1px at 30% 70%, rgba(196,181,253,.3) 0%, transparent 100%), radial-gradient(1px 1px at 55% 15%, rgba(196,181,253,.4) 0%, transparent 100%), radial-gradient(1px 1px at 75% 55%, rgba(196,181,253,.3) 0%, transparent 100%), radial-gradient(1px 1px at 90% 30%, rgba(196,181,253,.5) 0%, transparent 100%), radial-gradient(600px 600px at 20% 10%, rgba(124,58,237,.07) 0%, transparent 70%), radial-gradient(800px 600px at 80% 80%, rgba(76,45,186,.06) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

/* ── SECTION ── */
.section {
    padding: 8rem 0 6rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── SECTION HEADER ── */
.section-header-Next {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeDown .7s var(--transition) both;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--purple-bright);
    background: rgba(124,58,237,.12);
    border: 1px solid rgba(124,58,237,.25);
    padding: .32rem .9rem;
    border-radius: 99px;
    margin-bottom: 1.1rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.9rem,4vw,3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: .85rem;
}

.text-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── DROPDOWN SELECTOR ── */
.feature-selector-wrap {
    max-width: 580px;
    margin: 0 auto 2rem;
    animation: fadeDown .7s .1s var(--transition) both;
}

.selector-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: .55rem;
}

.selector-control {
    position: relative;
}

.feature-dropdown {
    width: 100%;
    appearance: none;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: .975rem;
    padding: .875rem 3rem .875rem 1.2rem;
    border-radius: var(--r);
    cursor: pointer;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

    .feature-dropdown:hover {
        border-color: rgba(124,58,237,.4);
    }

    .feature-dropdown:focus {
        border-color: var(--purple-bright);
        box-shadow: 0 0 0 3px rgba(124,58,237,.2);
    }

    .feature-dropdown option {
        background: #1e1050;
    }

.dropdown-caret {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
    transition: transform .25s;
}

.selector-control:focus-within .dropdown-caret {
    transform: translateY(-50%) rotate(180deg);
}

/* ── DETAIL PANEL ── */
.feature-detail-panel {
    margin-bottom: 2.5rem;
    min-height: 80px;
    transition: opacity .25s;
}

    .feature-detail-panel.is-loading {
        opacity: .35;
        pointer-events: none;
    }

.detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 3.5rem 1rem;
    border: 1px dashed rgba(124,58,237,.25);
    border-radius: var(--r-xl);
    color: var(--text-dim);
    font-size: .95rem;
    text-align: center;
    animation: fadeIn .4s var(--transition) both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.detail-empty-icon {
    font-size: 2rem;
    opacity: .45;
}

/* ── DETAIL CARD ── */
.detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    animation: slideUp .4s var(--transition) both;
    position: relative;
}

    .detail-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 55% 45% at 5% 0%, color-mix(in srgb, var(--card-accent, #7c3aed) 12%, transparent), transparent 65%);
        pointer-events: none;
        z-index: 0;
    }

    .detail-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--card-accent, var(--purple-bright));
        z-index: 1;
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* detail top */
.dc-top {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem 2rem 1.5rem;
    position: relative;
    z-index: 2;
}

.dc-icon-wrap {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(124,58,237,.15);
    border: 1px solid rgba(124,58,237,.3);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
}

    .dc-icon-wrap.secondary {
        background: rgba(59,31,168,.2);
        border-color: rgba(59,31,168,.4);
    }

    .dc-icon-wrap.accent {
        background: rgba(13,148,136,.15);
        border-color: rgba(13,148,136,.35);
    }

    .dc-icon-wrap.success {
        background: rgba(5,150,105,.15);
        border-color: rgba(5,150,105,.35);
    }

    .dc-icon-wrap.warning {
        background: rgba(180,83,9,.15);
        border-color: rgba(180,83,9,.35);
    }

.dc-badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--card-accent, var(--purple-bright));
    background: color-mix(in srgb, var(--card-accent, #7c3aed) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--card-accent, #7c3aed) 28%, transparent);
    padding: .2rem .6rem;
    border-radius: 99px;
    margin-bottom: .4rem;
}

.dc-title {
    font-family: var(--font-head);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.025em;
    line-height: 1.2;
    margin-bottom: .25rem;
}

.dc-short {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.dc-rule {
    height: 1px;
    background: var(--border-soft);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* detail body */
.dc-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    padding: 1.75rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 820px) {
    .dc-body {
        grid-template-columns: 1fr;
    }
}

.dc-desc {
    font-size: .92rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

.dc-kp-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: .65rem;
}

.dc-kp-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem .75rem;
    margin-bottom: 1.6rem;
}

@media (max-width: 600px) {
    .dc-kp-list {
        grid-template-columns: 1fr;
    }
}

.dc-kp-list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .875rem;
    color: var(--text);
    line-height: 1.45;
}

.dc-check {
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: .05em;
}

.dc-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.dc-btn-primary {
    background: var(--card-accent, var(--purple-bright));
    color: #fff;
    text-decoration: none;
    padding: .6rem 1.35rem;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: opacity .2s, transform .15s;
    display: inline-block;
}

    .dc-btn-primary:hover {
        opacity: .86;
        transform: translateY(-1px);
        color: #fff;
    }

.dc-btn-ghost {
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: .6rem 1.35rem;
    border-radius: 10px;
    font-size: .875rem;
    font-family: var(--font-body);
    transition: border-color .2s, color .2s;
    display: inline-block;
}

    .dc-btn-ghost:hover {
        border-color: var(--text-muted);
        color: var(--white);
    }

/* ── RIGHT VISUAL WIDGET ── */
.dc-right {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.dc-visual {
    width: 100%;
    background: rgba(13,8,30,.6);
    border: 1px solid rgba(196,181,253,.1);
    border-radius: 16px;
    overflow: hidden;
    animation: slideUp .5s .1s var(--transition) both;
}

.dcv-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(196,181,253,.08);
    background: rgba(196,181,253,.03);
}

.dcv-dots {
    display: flex;
    gap: .35rem;
}

    .dcv-dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(196,181,253,.15);
    }

        .dcv-dots span:nth-child(1) {
            background: #ef4444;
        }

        .dcv-dots span:nth-child(2) {
            background: #f59e0b;
        }

        .dcv-dots span:nth-child(3) {
            background: #22c55e;
        }

.dcv-title {
    font-size: .75rem;
    color: var(--text-dim);
    font-weight: 500;
}

.dcv-body {
    padding: 1.2rem 1.1rem;
}

.dcv-stat-row {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: .5rem;
    margin-bottom: 1.1rem;
}

.dcv-stat {
    background: rgba(196,181,253,.05);
    border: 1px solid rgba(196,181,253,.08);
    border-radius: 10px;
    padding: .6rem .5rem;
    text-align: center;
}

.dcv-stat-value {
    display: block;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: .2rem;
}

.dcv-stat-label {
    font-size: .65rem;
    color: var(--text-dim);
}

.dcv-bars {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.dcv-bar-row {
    display: grid;
    grid-template-columns: 80px 1fr 36px;
    align-items: center;
    gap: .5rem;
}

.dcv-bar-label {
    font-size: .7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dcv-bar-track {
    height: 6px;
    background: rgba(196,181,253,.1);
    border-radius: 99px;
    overflow: hidden;
}

.dcv-bar-fill {
    height: 100%;
    border-radius: 99px;
    animation: barGrow .7s .3s var(--transition) both;
    transform-origin: left;
}

@keyframes barGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.dcv-bar-pct {
    font-size: .7rem;
    color: var(--text-dim);
    text-align: right;
}

/* ── CARDS GRID ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 540px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.4rem 1.2rem;
    cursor: pointer;
    text-align: left;
    transition: border-color .2s, transform .2s, background .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    animation: cardIn .5s calc(var(--i,0) * 60ms) var(--transition) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(124,58,237,.1), transparent 60%);
    opacity: 0;
    transition: opacity .25s;
}

.feature-card:hover {
    border-color: rgba(124,58,237,.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124,58,237,.12);
}

    .feature-card:hover::before {
        opacity: 1;
    }

.feature-card.is-active {
    border-color: var(--purple-bright);
    background: rgba(124,58,237,.07);
    box-shadow: 0 0 0 1px rgba(124,58,237,.2), 0 12px 40px rgba(124,58,237,.15);
}

    .feature-card.is-active::before {
        opacity: 1;
    }

.feature-card h3 {
    font-family: var(--font-head);
    font-size: .975rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

.feature-card p {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(124,58,237,.15);
    border: 1px solid rgba(124,58,237,.3);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}

    .feature-icon.secondary {
        background: rgba(59,31,168,.2);
        border-color: rgba(59,31,168,.4);
    }

    .feature-icon.accent {
        background: rgba(13,148,136,.12);
        border-color: rgba(13,148,136,.3);
    }

    .feature-icon.success {
        background: rgba(5,150,105,.12);
        border-color: rgba(5,150,105,.3);
    }

    .feature-icon.warning {
        background: rgba(180,83,9,.12);
        border-color: rgba(180,83,9,.3);
    }

.fc-explore-hint {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--text-dim);
    margin-top: .25rem;
    transition: color .2s;
}

.feature-card:hover .fc-explore-hint,
.feature-card.is-active .fc-explore-hint {
    color: var(--purple-bright);
}

/* ── LOADING SPINNER ── */
.panel-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: var(--text-dim);
    font-size: .9rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(124,58,237,.2);
    border-top-color: var(--purple-bright);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


