@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
    --brand: #1572FF;
    --brand-dark: #0f5bcc;
    --brand-glow: rgba(21, 114, 255, 0.5);
    --bg-darker: #050608;
    --bg-card: #0f1014;
    --text-main: #E5E7EB;
    --text-muted: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: 'Noto Sans SC', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- Utilities --- */
.text-brand { color: var(--brand); }
.bg-brand { background-color: var(--brand); }
.border-brand { border-color: var(--brand); }
.hover\:bg-brand:hover { background-color: var(--brand); }
.hover\:text-brand:hover { color: var(--brand); }

/* --- Glassmorphism --- */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* --- Package Cards --- */
.pkg-card {
    background: linear-gradient(145deg, #0f1014 0%, #08090b 100%);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.pkg-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(21, 114, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.pkg-card:hover {
    transform: translateY(-5px);
    border-color: rgba(21, 114, 255, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(21, 114, 255, 0.1);
}

.pkg-card:hover::before {
    opacity: 1;
}

/* --- High-End Typography --- */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-brand-gradient {
    background: linear-gradient(135deg, #1572FF 0%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Upgrade Path Visualization --- */
.upgrade-path-container {
    position: relative;
}

.path-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #333 0%, var(--brand) 50%, #333 100%);
    z-index: 0;
    transform: translateY(-50%);
    opacity: 0.3;
}

.path-node {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    z-index: 1;
    transition: all 0.3s;
}
.path-node:hover {
    border-color: var(--brand);
    box-shadow: 0 0 15px var(--brand-glow);
}

/* --- Boundaries Cards --- */
.boundary-card {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #333;
    transition: all 0.3s;
}
.boundary-card:hover {
    background: rgba(255, 255, 255, 0.04);
}
.boundary-card.highlight {
    border-left-color: var(--brand);
}
.boundary-card.warning {
    border-left-color: #F59E0B;
}

/* --- Chat Widget --- */
#ai-widget {
    font-family: 'Noto Sans SC', sans-serif;
}
.chat-window {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- FAQ Accordion --- */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Responsive Helpers --- */
@media (max-width: 768px) {
    .path-line {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        background: linear-gradient(180deg, #333 0%, var(--brand) 50%, #333 100%);
    }
}

/* --- Functional Utilities (Restored) --- */
.hidden { display: none !important; }

/* Modal Animation State */
.modal-show {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.modal-content-show {
    transform: scale(1) !important;
}

/* Chat Widget Animation State */
.chat-show {
    display: flex !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
}

/* Nav & Package Toggle Active States */
.nav-pkg-btn.active {
    color: #fff !important;
    background-color: var(--brand) !important;
}

