        :root {
            --bg: #faf9f7;
            --surface: #ffffff;
            --text: #1a1a1a;
            --text-muted: #4a4a4a;
            --text-subtle: #7a7a7a;
            --border: #e8e6e3;
            --accent: #ea7a27;
            --accent-soft: #fff7ed;
            --accent-dark: #c2410c;
            --dim-language: #3b82f6;
            --dim-education: #059669;
            --dim-career: #d97706;
            --dim-life: #ec4899;
            --dim-growth: #7c3aed;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg);
            color: var(--text);
            overflow-x: hidden;
        }
        [id] { scroll-margin-top: 80px; }
        .serif { font-family: 'Playfair Display', serif; }
        
        /* Hide scrollbar for carousels */
        .hide-scroll::-webkit-scrollbar { display: none; }
        .hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }
        
        /* Card interactions - Reference pattern with enhanced effects */
        .artifact-card {
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }
        .artifact-card:active { 
            transform: scale(0.97);
            transition-duration: 0.1s;
        }
        
        @media (min-width: 1024px) {
            .artifact-card:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.1);
            }
            .artifact-card:active {
                transform: translateY(0) scale(0.98);
            }
        }

        /* Coming Soon cards */
        .coming-soon { opacity: 0.55; border-style: dashed !important; pointer-events: none; position: relative; }
        .coming-soon::after { content: 'Coming Soon'; position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; background: none; height: auto; width: auto; opacity: 1; }
        .coming-soon::before { display: none; }

        /* ── Autocomplete Dropdown ─────────────────────────── */
        .search-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            margin-top: 8px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            max-height: 420px;
            overflow-y: auto;
            z-index: 9999;
        }
        .search-dropdown.active { display: block; }

        .search-item {
            padding: 12px 16px;
            cursor: pointer;
            border-bottom: 1px solid #f1f5f9;
            transition: background 0.15s;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .search-item:hover,
        .search-item.selected { background: #f1f5f9; }
        .search-item:last-child { border-bottom: none; }

        .search-item-icon {
            width: 32px; height: 32px;
            border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-size: 12px; font-weight: 700;
            flex-shrink: 0;
        }

        .search-dropdown-footer {
            padding: 10px 16px;
            border-top: 1px solid #e2e8f0;
            text-align: center;
            cursor: pointer;
            color: #3b82f6;
            font-size: 13px;
            font-weight: 600;
            transition: background 0.15s;
        }
        .search-dropdown-footer:hover { background: #f8fafc; }

        /* Hide autocomplete when SERP is active */
        .serp-active .search-dropdown { display: none !important; }

        /* ── SERP Mode: Two-State System ────────────────────── */

        /* In SERP mode: hide hero, all landing sections, footer */
        .serp-active header { display: none !important; }
        .serp-active .serp-results { display: block !important; }
        .serp-active #for-you,
        .serp-active #explore,
        .serp-active #faqs,
        .serp-active #dimensions,
        .serp-active footer,
        .serp-active section:not(.serp-results):not(nav) {
            display: none !important;
        }

        /* In SERP mode: transform nav — show search, hide landing links */
        .serp-active .nav-landing { display: none !important; }
        .serp-active .nav-serp { display: flex !important; }

        /* ── SERP Filter Chips ─────────────────────────────── */
        .serp-chip {
            padding: 6px 14px;
            border-radius: 9999px;
            border: 1px solid #e2e8f0;
            background: white;
            color: #64748b;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
            white-space: nowrap;
        }
        .serp-chip:hover {
            border-color: #3b82f6;
            color: #3b82f6;
        }
        .serp-chip.active {
            background: #3b82f6;
            color: white;
            border-color: #3b82f6;
            font-weight: 600;
        }

        /* ── SERP Result Cards ─────────────────────────────── */
        .serp-card {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.9);
            border-radius: 12px;
            padding: 16px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .serp-card:hover {
            background: rgba(255, 255, 255, 0.95);
            transform: translateY(-3px);
            box-shadow: 0 8px 24px -4px rgba(59, 130, 246, 0.12);
            border-color: rgba(147, 197, 253, 0.5);
        }
        .serp-card::before {
            content: '';
            position: absolute;
            top: 10px; bottom: 10px; left: 0;
            width: 3px;
            border-radius: 0 3px 3px 0;
            opacity: 0;
            transform: scaleY(0.5);
            transition: all 0.25s;
        }
        .serp-card:hover::before {
            opacity: 1;
            transform: scaleY(1);
        }
        .serp-card[data-cat="Education"]::before { background: linear-gradient(180deg, #22c55e, #16a34a); }
        .serp-card[data-cat="Career"]::before { background: linear-gradient(180deg, #f97316, #ea580c); }
        .serp-card[data-cat="Language"]::before { background: linear-gradient(180deg, #3b82f6, #2563eb); }
        .serp-card[data-cat="Growth"]::before { background: linear-gradient(180deg, #8b5cf6, #7c3aed); }
        .serp-card[data-cat="Life"]::before { background: linear-gradient(180deg, #ec4899, #db2777); }
        .serp-card:active {
            transform: translateY(-1px) scale(0.98);
            transition-duration: 0.1s;
        }

        .serp-card-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }
        .serp-card-badge[data-cat="Education"] { background: #dcfce7; color: #166534; }
        .serp-card-badge[data-cat="Career"]    { background: #ffedd5; color: #9a3412; }
        .serp-card-badge[data-cat="Language"]   { background: #dbeafe; color: #1e40af; }
        .serp-card-badge[data-cat="Growth"]     { background: #ede9fe; color: #5b21b6; }
        .serp-card-badge[data-cat="Life"]       { background: #fce7f3; color: #9d174d; }

        .serp-card-title {
            font-weight: 700;
            font-size: 14px;
            color: #1e293b;
            line-height: 1.4;
            margin-bottom: 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .serp-card-title mark {
            background: #fef08a;
            padding: 0 2px;
            border-radius: 2px;
        }
        .serp-card-meta {
            font-size: 11px;
            color: #94a3b8;
            margin-top: auto;
        }

        /* ── Suggestion Chips (zero results) ───────────────── */
        .serp-suggest-chip {
            padding: 6px 16px;
            border-radius: 9999px;
            border: 1px solid #e2e8f0;
            background: white;
            color: #3b82f6;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
        }
        .serp-suggest-chip:hover {
            background: #3b82f6;
            color: white;
            border-color: #3b82f6;
        }
        
        /* FAQ accordion - Smooth effects */
        .faq-item { 
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            overflow: hidden;
        }
        .faq-item:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            border-color: #cbd5e1;
        }
        .faq-item.active {
            border-color: #3b82f6;
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
        }
        .faq-button {
            width: 100%;
            padding: 14px 20px;
            text-align: left;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            background: none;
            border: none;
            font-family: inherit;
            transition: all 0.3s;
            position: relative;
        }
        .faq-button::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: #3b82f6;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .faq-item.active .faq-button::before {
            opacity: 1;
        }
        .faq-button:hover {
            background: #f8fafc;
        }
        .faq-question {
            font-weight: 600;
            color: #1e293b;
            font-size: 1rem;
            padding-right: 16px;
            line-height: 1.5;
        }
        .faq-icon {
            flex-shrink: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f1f5f9;
            border-radius: 50%;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            color: #64748b;
        }
        .faq-item.active .faq-icon {
            transform: rotate(180deg);
            background: #dbeafe;
            color: #3b82f6;
        }
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                        opacity 0.4s ease,
                        padding 0.4s ease;
            opacity: 0;
            padding: 0 20px;
        }
        .faq-item.active .faq-answer {
            max-height: 600px;
            opacity: 1;
            padding: 0 20px 16px 24px;
            border-left: 4px solid transparent;
        }
        .faq-answer-content {
            color: #475569;
            font-size: 0.95rem;
            line-height: 1.7;
            padding-top: 4px;
        }
        .login-modal-hidden {
            opacity: 0;
            pointer-events: none;
        }
        .login-panel-hidden {
            transform: translateY(12px) scale(0.98);
            opacity: 0;
        }
