@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #030303;
    --surface: #0a0a0a;
    --glass: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --text: #ffffff;
    --accent: #ffffff;
}

* { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding-top: 80px;
    scroll-behavior: smooth;
}

/* --- Navigation & Header --- */
.nav-bar {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1000px; height: 56px;
    background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 12px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; z-index: 1000;
}
.brand { font-weight: 700; font-size: 16px; letter-spacing: -0.5px; color: white; text-decoration: none; }
.menu-btn { 
    background: var(--glass-border); border: none; color: white; 
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s;
}

/* --- Raycast Menu --- */
.palette-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.2s;
    display: flex; align-items: flex-start; justify-content: center; padding-top: 15vh;
}
.palette-overlay.open { opacity: 1; pointer-events: all; }
.palette {
    width: 600px; max-width: 92%; background: #0f0f0f; border: 1px solid var(--glass-border);
    border-radius: 12px; transform: scale(0.95); transition: 0.2s; overflow: hidden;
}
.palette-overlay.open .palette { transform: scale(1); }
.palette-search { width: 100%; background: transparent; border: none; font-size: 16px; color: white; padding: 16px; border-bottom: 1px solid var(--glass-border); font-family: inherit; }
.palette-item { display: flex; justify-content: space-between; padding: 10px 12px; color: #888; cursor: pointer; text-decoration: none; margin: 5px; border-radius: 6px; }
.palette-item:hover { background: var(--glass-highlight); color: white; }
.palette-item.active { background: white; color: black; }
.group-title { font-size: 10px; color: #444; padding: 8px 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* --- SEARCH HIGHLIGHTS --- */
.search-match { animation: flash 2s ease forwards; position: relative; z-index: 10; }
@keyframes flash {
    0% { border-color: white; box-shadow: 0 0 30px rgba(255, 255, 255, 0.2); transform: scale(1.02); }
    100% { border-color: var(--glass-border); box-shadow: none; transform: scale(1); }
}
.text-highlight {
    background: rgba(255, 255, 255, 0.15); color: white; border-radius: 4px;
    padding: 0 2px; border: 1px solid rgba(255,255,255,0.1); animation: textFlash 2s ease forwards;
}
@keyframes textFlash { 0% { background: rgba(255, 255, 255, 0.4); } 100% { background: rgba(255, 255, 255, 0.15); } }

/* --- IDE WIDGET SYSTEM (Global) --- */
.ide-widget {
    display: flex; flex-direction: column;
    width: 100%; max-width: 1000px; margin: 0 auto;
}

/* 1. The Editor Box */
.ide-box {
    background: #0e0e0e; border: 1px solid var(--glass-border); border-bottom: none;
    border-radius: 12px 12px 0 0; overflow: hidden; display: flex; flex-direction: column;
    height: 60vh; position: relative;
}

.ide-header {
    background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--glass-border);
    display: flex; align-items: center; padding: 0 10px; height: 44px;
}
.ide-dots { display: flex; gap: 6px; margin-right: 15px; }
.ide-dot { width: 10px; height: 10px; border-radius: 50%; background: #333; }

.ide-tabs { display: flex; gap: 2px; }
.ide-tab {
    padding: 0 16px; height: 44px; color: #666; font-size: 13px; cursor: pointer;
    background: transparent; border: none; border-right: 1px solid var(--glass-border);
    transition: 0.2s; position: relative;
}
.ide-tab:hover { color: #ccc; background: rgba(255,255,255,0.02); }
.ide-tab.active { color: white; background: rgba(255,255,255,0.05); }

/* 2. The Code Area */
.ide-body { flex: 1; position: relative; display: flex; }
.editor-wrapper { flex: 1; display: none; width: 100%; height: 100%; }
.editor-wrapper.active { display: block; }

.code-area {
    width: 100%; height: 100%; background: #0e0e0e; color: #d4d4d4;
    border: none; padding: 20px; font-family: 'JetBrains Mono', monospace;
    font-size: 14px; line-height: 1.6; resize: none; outline: none; white-space: pre;
}

/* 3. The Wide Run Button */
.ide-run-bar {
    width: 100%; background: #1a1a1a;
    border: 1px solid var(--glass-border); border-top: 1px solid #333;
    border-radius: 0 0 12px 12px;
    padding: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.ide-run-bar:hover { background: #252525; border-color: #555; }
.ide-run-bar:active { background: white; }
.ide-run-bar:active svg { stroke: black; }

/* 4. Preview Panel */
.preview-panel {
    position: absolute; inset: 0; background: white; z-index: 50;
    transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.preview-panel.open { transform: translateY(0); }
.preview-header {
    height: 40px; background: #f0f0f0; border-bottom: 1px solid #ddd;
    display: flex; justify-content: space-between; align-items: center; padding: 0 15px;
}
.close-preview { background: none; border: none; font-size: 20px; color: #333; cursor: pointer; }
.preview-frame { width: 100%; height: calc(100% - 40px); border: none; background: white; }

/* Login Modal & Toast */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 3000; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.modal-box { background: #0a0a0a; border: 1px solid var(--glass-border); padding: 30px; border-radius: 16px; width: 90%; max-width: 320px; text-align: center; }
.modal-input { width: 100%; background: #1a1a1a; border: 1px solid #333; color: white; padding: 12px; border-radius: 8px; margin: 10px 0; outline: none; }
.modal-btn { width: 100%; background: white; color: black; border: none; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px); background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 12px 20px; border-radius: 50px; display: flex; align-items: center; gap: 10px; z-index: 4000; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-icon { width: 20px; height: 20px; background: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 10px; }

/* Layout Helpers */
.container { max-width: 1000px; margin: 0 auto; padding: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; transition: 0.2s; cursor: pointer; }
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.thumb { width: 100%; aspect-ratio: 16/9; background: #111; object-fit: cover; opacity: 0.8; }
.card-body { padding: 16px; }
.card-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; color: #eee; }
.card-meta { font-size: 12px; color: #666; display: flex; justify-content: space-between; }
.tabs-scroll { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 30px; padding-bottom: 10px; scrollbar-width: none; }
.tab-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: #888; padding: 8px 16px; border-radius: 20px; font-size: 13px; white-space: nowrap; cursor: pointer; transition: 0.2s; }
.tab-btn.active { background: white; color: black; font-weight: 600; }
.nav-pill { position: fixed; bottom: 30px; right: 20px; width: 44px; height: 100px; background: rgba(20, 20, 20, 0.9); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 22px; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 900; transition: all 0.4s; box-shadow: 0 10px 30px -5px rgba(0,0,0,0.5); opacity: 0; transform: translateY(100px); }
.nav-pill.visible { transform: translateY(0); opacity: 1; }
.nav-btn { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: white; transition: 0.2s; }
.nav-btn:first-child { border-bottom: 1px solid var(--glass-border); border-radius: 22px 22px 0 0; }
.nav-btn:last-child { border-radius: 0 0 22px 22px; }
.nav-btn:hover { background: var(--glass-highlight); }

/* --- INSIGHTS FINAL (STRUCTURE FIX) --- */

/* 1. Hero Slider (Fixed Structure) */
.hero-wrapper {
    width: 100%; max-width: 1000px; margin: 0 auto 50px;
    height: 420px; position: relative;
    border-radius: 20px; overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #000;
    box-shadow: 0 20px 80px rgba(0,0,0,0.7);
}

/* Container for Image AND Text together */
.slide-item {
    position: absolute; inset: 0; 
    opacity: 0; pointer-events: none;
    transition: opacity 0.6s ease-in-out;
    background-color: #000;
}
.slide-item.active { opacity: 1; z-index: 2; pointer-events: auto; }

/* The Image Background */
.slide-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 6s ease; /* Zoom effect */
    filter: brightness(0.6);
}
.slide-item.active .slide-bg { transform: scale(1.05); }

/* The Text Content */
.slide-content {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; 
    z-index: 3;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, transparent 100%);
    cursor: pointer;
}

.slide-badge {
    background: white; color: black; padding: 4px 10px; border-radius: 4px;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    display: inline-block; margin-bottom: 10px;
}
.slide-title { 
    font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: 5px; 
    color: white; letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Progress Line */
.progress-line {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: rgba(255,255,255,0.1); z-index: 10;
}
.progress-fill {
    height: 100%; width: 0%; background: #ffffff; /* Red accent for visibility */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* 2. Tabs */
.tabs-container { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; }
.glass-tab {
    width: 50px; height: 50px; border-radius: 14px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    color: #666; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s;
}
.glass-tab:hover, .glass-tab.active { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.3); }
.glass-tab svg { width: 20px; height: 20px; }

/* 3. Accordion List */
.content-area { max-width: 800px; margin: 0 auto; min-height: 300px; }
.article-item {
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 12px; margin-bottom: 8px; overflow: hidden;
    transition: background 0.2s;
}
.article-header {
    padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 15px;
}
.article-title { font-size: 15px; font-weight: 500; color: #eee; flex: 1; }

.article-icon-box {
    width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center; color: #888; transition: 0.3s;
}
.article-icon-box svg { width: 14px; height: 14px; transition: transform 0.3s; }

/* Open State */
.article-item.open { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.article-item.open .article-title { color: white; }
.article-item.open .article-icon-box { background: white; color: black; transform: rotate(90deg); }

.article-body {
    height: 0; overflow: hidden; transition: height 0.3s ease-out; opacity: 0;
}
.article-item.open .article-body {
    height: auto; opacity: 1; padding-bottom: 30px; /* More padding bottom */
}
.article-inner { padding: 0 20px; color: #aaa; font-size: 14px; line-height: 1.6; }

/* 4. Button Spacing Fix */
.read-btn-container {
    margin-top: 35px; /* Added significant space */
    width: 100%; display: flex; justify-content: center;
}
.glass-btn {
    display: inline-flex; padding: 10px 24px; border-radius: 30px;
    background: rgba(255,255,255,0.08); color: white; text-decoration: none; font-size: 13px; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1); transition: 0.2s; backdrop-filter: blur(4px);
}
.glass-btn:hover { background: white; color: black; transform: scale(1.02); }


/* --- NAVIGATION PILL & HIGHLIGHT --- */
.nav-pill {
    position: fixed; bottom: 30px; right: 20px;
    width: 44px; height: 100px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px -5px rgba(0,0,0,0.6);
    opacity: 0; transform: translateY(100px); pointer-events: none;
}
.nav-pill.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }

.nav-btn {
    flex: 1; width: 100%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #aaa; transition: 0.2s;
    font-size: 14px;
}
.nav-btn:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-btn:first-child { border-bottom: 1px solid rgba(255,255,255,0.1); border-radius: 22px 22px 0 0; }
.nav-btn:last-child { border-radius: 0 0 22px 22px; }


/* --- FINAL NAVIGATION & SOFT SEARCH STYLES --- */

/* 1. The Navigation Pill (Unified) */
.nav-pill {
    position: fixed; bottom: 30px; right: 20px;
    width: 44px; height: 100px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px -5px rgba(0,0,0,0.6);
    opacity: 0; transform: translateY(100px); pointer-events: none;
}
.nav-pill.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }

.nav-btn {
    flex: 1; width: 100%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #aaa; transition: 0.2s; font-size: 14px;
}
.nav-btn:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-btn:first-child { border-bottom: 1px solid rgba(255,255,255,0.1); border-radius: 22px 22px 0 0; }
.nav-btn:last-child { border-radius: 0 0 22px 22px; }

/* 2. Highlighted Word (Text) */
span.match-text {
    border-radius: 4px; padding: 0 4px;
    transition: background 0.3s;
}

/* 3. The Active Result (Blinks 2 times in 5s, Fades out in 2s) */
.active-search-result {
    position: relative; z-index: 10;
    animation: softPulse 7s forwards;
}

/* 4. Video Card Highlight (Thin 3D Glass) */
.card.active-search-result {
    animation: cardPulse 7s forwards;
}

@keyframes softPulse {
    0% { background: rgba(255, 255, 255, 0); }
    10%, 40% { background: rgba(255, 255, 255, 0.3); box-shadow: 0 0 15px rgba(255,255,255,0.4); }
    25%, 55% { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
    70% { background: rgba(255, 255, 255, 0.1); }
    100% { background: transparent; }
}

@keyframes cardPulse {
    0% { transform: scale(1); box-shadow: none; }
    10%, 40% { transform: scale(1.02); box-shadow: 0 0 0 1px rgba(255,255,255,0.8), 0 0 30px rgba(255,255,255,0.3); }
    25%, 55% { transform: scale(1.01); box-shadow: 0 0 0 1px rgba(255,255,255,0.2); }
    100% { transform: scale(1); box-shadow: none; }
}

/* --- PLAYGROUND ADDITIONS --- */
.ide-tabs { display: flex; flex: 1; }
.ide-tab { flex: 1; text-align: center; padding: 0; }

.ide-actions { display: flex; align-items: center; margin-left: auto; padding-right: 15px; gap: 12px; }
.ide-action-btn {
    background: transparent; border: none; color: #666; 
    cursor: pointer; transition: 0.2s; padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.ide-action-btn:hover { color: white; transform: translateY(-2px); }

.ide-save-toast {
    position: absolute; top: 12px; right: 15px; z-index: 100;
    background: rgba(15,15,15,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
    padding: 6px 12px; color: #aaa; font-size: 11px; font-family: monospace;
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.ide-save-toast.show { opacity: 1; }

/* --- PLAYGROUND & TOAST V3 ADDITIONS --- */
.ide-bottom-controls {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 320px; margin: 20px auto 0;
    background: rgba(20, 20, 20, 0.75); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 30px;
    overflow: hidden; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.8);
}
.ide-ctrl-btn {
    flex: 1; background: transparent; border: none; color: #aaa;
    padding: 14px 0; font-size: 13px; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; transition: 0.3s;
}
.ide-ctrl-btn:hover { color: white; background: rgba(255,255,255,0.08); }
.ide-ctrl-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.1); }

.modal-box-glass {
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px);
    background: rgba(15, 15, 15, 0.98); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15); padding: 10px 16px; min-width: 290px; border-radius: 30px;
    display: flex; align-items: center; gap: 12px; z-index: 4000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-icon-wrap {
    width: 24px; height: 24px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white;
}

.ide-header { padding: 0 0 0 15px !important; }
.ide-tab:last-child { border-right: none !important; }

.ide-run-bar.active { background: white !important; border-color: white !important; }
.ide-run-bar.active svg { stroke: black !important; }


/* --- TOAST TYPOGRAPHY FIX --- */
.toast-icon-wrap { 
    width: 24px; height: 24px; background: rgba(255,255,255,0.1); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; 
}
.toast-icon-wrap svg { width: 14px; height: 14px; }
.toast-content { display: flex; flex-direction: column; gap: 2px; }
.toast-title { font-size: 13px; font-weight: 600; color: #fff; letter-spacing: 0.2px; }
.toast-subtitle { font-size: 11px; color: #aaa; letter-spacing: 0.1px; }


/* --- LIQUID GLASS COMMUNITY (CLEAN) --- */
.glass-panel {
    background: rgba(20, 20, 20, 0.3);
    backdrop-filter: blur(35px); -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px; padding: 32px; margin-bottom: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.faq-item { border-bottom: 1px solid rgba(255,255,255,0.04); }
.faq-item:last-child { border-bottom: none; }
.faq-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 0; cursor: pointer; font-weight: 400; font-size: 15px; color: #ccc;
    transition: color 0.3s ease;
}
.faq-item:hover .faq-header { color: #fff; }
.faq-icon-box {
    color: #555; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; align-items: center; justify-content: center;
}
.faq-item.open .faq-icon-box { transform: rotate(180deg); color: #fff; }
.faq-body { height: 0; overflow: hidden; transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-inner { padding-bottom: 24px; color: #888; font-size: 14px; line-height: 1.8; font-weight: 300; }

.contact-capsule {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 340px; margin: 0 auto;
    background: rgba(15, 15, 15, 0.6); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06); border-radius: 40px; overflow: hidden;
}
.contact-btn {
    flex: 1; background: transparent; border: none; color: #999;
    padding: 16px 0; font-size: 13px; font-weight: 400; letter-spacing: 0.5px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; transition: 0.3s; text-decoration: none;
}
.contact-btn:hover { color: #fff; background: rgba(255,255,255,0.03); }
.contact-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.06); }


/* --- MOBILE OPTIMIZATIONS & SECURE QUOTE --- */
.secure-quote {
    margin-top: 20px; padding: 12px 16px; 
    background: rgba(255,255,255,0.02); 
    border-left: 2px solid rgba(255,255,255,0.15); 
    border-radius: 0 8px 8px 0; display: block;
}
.secure-quote-link {
    color: #ccc; font-size: 13px; text-decoration: none; 
    display: flex; align-items: center; gap: 8px; transition: color 0.2s;
}
.secure-quote-link:hover { color: #fff; }

@media (max-width: 480px) {
    .container { padding-left: 15px !important; padding-right: 15px !important; }
    .glass-panel { padding: 24px 15px !important; }
    .contact-btn { font-size: 12px; padding: 14px 0; }
    .secure-quote { padding: 10px 12px; }
    .secure-quote-link { font-size: 12px; }
}
.faq-header:focus { outline: none; color: #fff; }

/* Fix Scroll Jump */


/* --- SCROLL ANCHORING FIX --- */
* {
    overflow-anchor: none !important;
}

/* --- INDEX PAGE (LIQUID GLASS) --- */
.hero-title {
    font-size: 56px; font-weight: 200; letter-spacing: -2px; line-height: 1.1; margin-bottom: 20px;
    background: linear-gradient(to bottom right, #ffffff, #666666);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 16px; color: #888; font-weight: 300; line-height: 1.6; max-width: 420px; margin: 0 auto; }

.terminal-box {
    background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px;
    padding: 20px; font-family: monospace; font-size: 11px; color: #00ff41;
    text-align: left; height: 110px; overflow-y: hidden;
    margin: 40px auto; max-width: 480px; box-shadow: inset 0 0 30px rgba(0,255,65,0.02);
}
.term-line { margin-bottom: 8px; opacity: 0; animation: fadeIn 0.1s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.nav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 680px; margin: 0 auto 60px; }
.nav-card {
    background: rgba(20, 20, 20, 0.4); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 20px;
    padding: 30px 20px; text-align: center; text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.nav-card:hover { transform: translateY(-4px); background: rgba(30, 30, 30, 0.6); border-color: rgba(255, 255, 255, 0.1); }
.nav-icon { width: 28px; height: 28px; color: #888; transition: color 0.4s; }
.nav-card:hover .nav-icon { color: #fff; }
.nav-title { font-size: 15px; color: #eee; font-weight: 500; letter-spacing: 0.5px; }
.nav-desc { font-size: 12px; color: #666; font-weight: 300; line-height: 1.5; }

@media (max-width: 600px) {
    .nav-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 42px; }
}

/* === PREMIUM GLOBAL FOOTER === */
.global-footer { text-align: center; padding: 50px 20px 30px; margin-top: auto; }
.gf-divider { width: 30px; height: 1px; background: rgba(255, 255, 255, 0.1); margin: 0 auto 15px; }
.gf-text { font-size: 11px; color: #999; letter-spacing: 0.5px; margin-bottom: 6px; }
.gf-text.mono { font-family: 'Courier New', Courier, monospace; color: #777; font-size: 10px; letter-spacing: 0; }
.gf-badge { display: inline-block; margin-top: 15px; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 6px; font-size: 9px; color: #444; text-transform: uppercase; letter-spacing: 1.5px; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); }

/* --- GHOST FOOTER OVERRIDE --- */
.global-footer { opacity: 0.45; transition: opacity 0.4s ease; padding: 30px 20px 20px; }
.global-footer:hover { opacity: 0.7; }
.gf-divider { display: none; }
.gf-badge { background: transparent !important; box-shadow: none !important; border: none !important; color: #333 !important; font-size: 7px !important; padding: 0 !important; margin-top: 8px !important; }



/* Native Details/Summary Accordions */
details.faq-native { border-bottom: 1px solid rgba(255,255,255,0.04); transition: all 0.3s; }
details.faq-native:last-of-type { border-bottom: none; }
details.faq-native summary { padding: 24px 0; font-size: 15px; color: #ccc; cursor: pointer; outline: none; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; }
details.faq-native:hover summary { color: #fff; }
details.faq-native summary::-webkit-details-marker { display: none; }
details.faq-native summary::after { content: ''; width: 18px; height: 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='1.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-size: cover; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
details.faq-native[open] summary::after { transform: rotate(180deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }
details.faq-native[open] summary { color: #fff; }
details.faq-native div { padding-bottom: 24px; color: #888; font-size: 14px; line-height: 1.8; font-weight: 300; }

/* Fix letter-spacing centering offset for global footer */
.gf-text { margin-right: -0.5px; }
.gf-text.mono { margin-right: 0; }
.gf-badge { margin-right: -1.5px; }

/* FOUC Rescue: Forces the body to appear after 2 seconds if JS hangs */
body { animation: forceShow 0.1s 2s forwards; }
@keyframes forceShow { to { opacity: 1 !important; visibility: visible !important; } }

/* --- GLOBAL UPGRADES: BACKGROUND, NAV GLASS, FOOTER & LEGAL MODAL --- */
body { 
    background-color: #070709 !important; 
    background-image: radial-gradient(circle at 50% 0%, rgba(42, 42, 52, 0.45) 0%, transparent 80%) !important; 
    background-attachment: fixed !important; 
}

.nav-bar { background: rgba(10, 10, 12, 0.4) !important; backdrop-filter: blur(20px) saturate(180%) !important; -webkit-backdrop-filter: blur(20px) saturate(180%) !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; }
.palette-overlay .palette { background: rgba(15, 15, 18, 0.6) !important; backdrop-filter: blur(30px) saturate(200%) !important; -webkit-backdrop-filter: blur(30px) saturate(200%) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; }

/* GLOBAL FOOTER STYLES */
.global-footer { padding: 40px 20px 60px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gf-divider { width: 50px; height: 1px; background: rgba(255,255,255,0.15); margin-bottom: 15px; }
.gf-text { font-size: 12px; color: #999; letter-spacing: 0.5px; margin-bottom: 0; }
.gf-text.mono { color: #777; }
.legal-trigger { background: transparent; border: none; color: #888; font-size: 10px; cursor: pointer; text-transform: uppercase; letter-spacing: 1.5px; transition: 0.2s; padding: 5px; margin-top: 15px; font-weight: 500; font-family: inherit;}
.legal-trigger:hover { color: #fff; }

/* GLOBAL LEGAL MODAL STYLES */
body.modal-lock { overflow: hidden; }
.legal-modal { position: fixed; inset: 0; background: rgba(10, 10, 12, 0.4); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); z-index: 5000; display: none; align-items: flex-start; justify-content: center; opacity: 0; transition: opacity 0.4s; padding: 12vh 20px 10vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.legal-modal.show { opacity: 1; display: flex; }
.legal-box { background: rgba(20, 20, 25, 0.65); border: 1px solid rgba(255,255,255,0.1); border-top: 1px solid rgba(255,255,255,0.25); border-radius: 24px; width: 100%; max-width: 540px; padding: 40px; box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05); transform: scale(0.95); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); margin-bottom: auto; }
.legal-modal.show .legal-box { transform: scale(1); }
.l-accord { border-top: 1px solid rgba(255,255,255,0.08); }
.l-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.l-item:last-child { border-bottom: none; }
.l-header { padding: 24px 0; font-size: 14px; color: #ccc; cursor: pointer; display: flex; justify-content: space-between; align-items: center; letter-spacing: 0.5px; font-weight: 500; transition: color 0.3s; }
.l-header:hover { color: #fff; }
.l-icon { position: relative; width: 16px; height: 16px; }
.l-icon::before, .l-icon::after { content: ''; position: absolute; background: #888; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s; }
.l-icon::before { top: 7px; left: 0; width: 16px; height: 2px; border-radius: 1px;}
.l-icon::after { top: 0; left: 7px; width: 2px; height: 16px; border-radius: 1px;}
.l-item.is-open .l-icon::after { transform: rotate(90deg); }
.l-item.is-open .l-icon::before, .l-item.is-open .l-icon::after { background: #fff; }
.l-item.is-open .l-header { color: #fff; }
.l-content { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.25, 1, 0.4, 1); }
.l-content-inner { padding-bottom: 24px; font-size: 13px; color: #999; line-height: 1.8; font-weight: 300; }
.l-close { width: 100%; padding: 18px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #ccc; border-radius: 16px; margin-top: 30px; cursor: pointer; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; font-weight: 600;}
.l-close:hover { background: #fff; color: #000; }
@media (max-width: 600px) { .legal-box { padding: 30px 20px; } .legal-modal { padding-top: 8vh; } }
