/* QUEST LOG WEBSITE DESIGN SYSTEM */
:root {
    /* Font Families */
    --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Theme Default (Violet) */
    --bg-primary: #080710;
    --bg-secondary: #0f0e1d;
    --bg-card: rgba(20, 18, 38, 0.65);
    --bg-card-hover: rgba(30, 28, 56, 0.85);
    --accent-violet: #a78bfa;
    --accent-violet-hover: #8b5cf6;
    --accent-violet-dim: rgba(167, 139, 250, 0.15);
    --accent-pink: #f472b6;
    --accent-pink-hover: #db2777;
    --gradient-primary: linear-gradient(135deg, #8b5cf6, #a78bfa);
    --gradient-pink: linear-gradient(135deg, #a78bfa, #f472b6);
    --shadow-glow: 0 0 25px rgba(167, 139, 250, 0.45);
    --gradient-bg: radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, rgba(244, 114, 182, 0.1) 0%, transparent 50%),
                    radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    /* Other Variables */
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --ease-out: cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-spring: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}
/* THEMES */
[data-theme="emerald"] {
    --bg-primary: #040d09;
    --bg-secondary: #081710;
    --bg-card: rgba(12, 32, 24, 0.65);
    --bg-card-hover: rgba(18, 46, 35, 0.85);
    --accent-violet: #34d399;
    --accent-violet-hover: #10b981;
    --accent-violet-dim: rgba(52, 211, 153, 0.15);
    --accent-pink: #00f5ff;
    --accent-pink-hover: #00d8e2;
    --gradient-primary: linear-gradient(135deg, #10b981, #34d399);
    --gradient-pink: linear-gradient(135deg, #34d399, #00f5ff);
    --shadow-glow: 0 0 25px rgba(52, 211, 153, 0.45);
    --gradient-bg: radial-gradient(ellipse at 20% 50%, rgba(52, 211, 153, 0.15) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
                    radial-gradient(ellipse at 50% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}
[data-theme="blue"] {
    --bg-primary: #030814;
    --bg-secondary: #071224;
    --bg-card: rgba(10, 24, 48, 0.65);
    --bg-card-hover: rgba(16, 36, 72, 0.85);
    --accent-violet: #60a5fa;
    --accent-violet-hover: #3b82f6;
    --accent-violet-dim: rgba(96, 165, 250, 0.15);
    --accent-pink: #8b5cf6;
    --accent-pink-hover: #7c3aed;
    --gradient-primary: linear-gradient(135deg, #3b82f6, #60a5fa);
    --gradient-pink: linear-gradient(135deg, #60a5fa, #8b5cf6);
    --shadow-glow: 0 0 25px rgba(96, 165, 250, 0.45);
    --gradient-bg: radial-gradient(ellipse at 20% 50%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                    radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}
[data-theme="rose"] {
    --bg-primary: #0e0509;
    --bg-secondary: #180812;
    --bg-card: rgba(36, 12, 28, 0.65);
    --bg-card-hover: rgba(50, 18, 40, 0.85);
    --accent-violet: #f472b6;
    --accent-violet-hover: #db2777;
    --accent-violet-dim: rgba(244, 114, 182, 0.15);
    --accent-pink: #ff8a65;
    --accent-pink-hover: #ff7043;
    --gradient-primary: linear-gradient(135deg, #db2777, #f472b6);
    --gradient-pink: linear-gradient(135deg, #f472b6, #ff8a65);
    --shadow-glow: 0 0 25px rgba(244, 114, 182, 0.45);
    --gradient-bg: radial-gradient(ellipse at 20% 50%, rgba(244, 114, 182, 0.15) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, rgba(255, 138, 101, 0.1) 0%, transparent 50%),
                    radial-gradient(ellipse at 50% 80%, rgba(219, 39, 119, 0.08) 0%, transparent 50%);
}
/* Base resets */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--gradient-bg);
    pointer-events: none;
    z-index: 0;
}
.particles-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-violet);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-20px) scale(1); }
}
/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}
/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 15, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s var(--ease-out);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}
.logo-icon-svg {
    width: 28px;
    height: 28px;
    color: var(--accent-violet);
    filter: drop-shadow(0 0 8px var(--accent-violet-dim));
}
.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s var(--ease-out);
}
.nav-link:hover {
    color: white;
}
/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    padding: 4px;
}
.theme-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s var(--ease-out), border-color 0.2s;
}
.theme-dot:hover {
    transform: scale(1.15);
}
.theme-dot.active {
    border-color: white;
    transform: scale(1.05);
}
.theme-dot.violet { background: #8b5cf6; }
.theme-dot.emerald { background: #10b981; }
.theme-dot.blue { background: #3b82f6; }
.theme-dot.rose { background: #db2777; }
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s var(--ease-out);
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 28px;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow), 0 10px 20px rgba(0, 0, 0, 0.3);
}
.btn-primary:active {
    transform: scale(0.97);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 14px 28px;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
/* Hero Section */
.hero-section {
    padding: 100px 0 60px 0;
    text-align: center;
    overflow: hidden;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-violet-dim);
    border: 1.2px solid rgba(167, 139, 250, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-violet);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, white 60%, var(--accent-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}
/* Mockup Showcase */
.mockup-container {
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    padding: 6px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(244, 114, 182, 0.1) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(167, 139, 250, 0.15);
    position: relative;
    transition: transform 0.5s var(--ease-out);
}
.mockup-container:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 70px rgba(167, 139, 250, 0.2);
}
.mockup-screen {
    border-radius: var(--radius-lg);
    background: #080710;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    min-height: 540px;
    position: relative;
    overflow: hidden;
}
.mockup-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.mockup-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 65%);
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: var(--radius-xl);
    z-index: 50;
}
.mockup-container:hover .mockup-glare {
    opacity: 1;
}

/* Dashboard Mockup Game Items */
.mockup-game-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(167, 139, 250, 0.25) !important;
}
.mockup-game-item:active {
    transform: scale(0.98);
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Features Grid */
.features-section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1.2px solid rgba(167, 139, 250, 0.16) !important;
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(167, 139, 250, 0.35) !important;
    box-shadow: 0 12px 30px rgba(167, 139, 250, 0.08), 0 0 25px rgba(167, 139, 250, 0.15);
}
.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-violet-dim);
    border: 1.5px solid rgba(167, 139, 250, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-violet);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.15);
}
.feature-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}
.feature-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
/* Download Call-to-action */
.download-section {
    padding: 80px 0;
    text-align: center;
}
.download-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(244, 114, 182, 0.06) 100%);
    border: 1.5px solid rgba(167, 139, 250, 0.22);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 35px rgba(167, 139, 250, 0.15) !important;
}
.download-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.download-desc {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px auto;
    font-size: 0.95rem;
    line-height: 1.6;
}
/* Legal Documents pages specific */
.legal-container {
    padding: 60px 0 100px 0;
    max-width: 800px;
    margin: 0 auto;
}
.legal-header {
    text-align: left;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 24px;
}
.legal-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
.legal-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.legal-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    margin: 36px 0 16px 0;
}
.legal-content p {
    margin-bottom: 16px;
}
.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.legal-content li {
    margin-bottom: 8px;
}
/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 5, 10, 0.9);
    padding: 40px 0;
    margin-top: 60px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-text {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s var(--ease-out);
}
.footer-link:hover {
    color: white;
}
/* Entrance Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Responsive Rules */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* simple stack or menu icon could go here */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
