/* ==========================================================================
   CSS VARIABLES - Futuristic SaaS Design System
   ========================================================================== */
   :root {
    /* Core Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Base Colors */
    --bg-base: #030508;
    --bg-surface: #0a0f18;
    --bg-surface-elevated: #111724;
    
    /* Text Colors */
    --text-primary: #F8FAFC;
    --text-muted: #94A3B8;
    
    /* UI Elements */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Dracula Theme Accents */
    --drac-bg: #18080c;
    --drac-burgundy: #4A1525;
    --drac-crimson: #8F2942;
    --drac-violet: #53345E;
    --drac-plum: #2A1525;
    --drac-glow: rgba(143, 41, 66, 0.25);
    
    /* Detective Theme Accents */
    --det-bg: #060e1c;
    --det-navy: #0F172A;
    --det-blue: #2563EB;
    --det-cyan: #22D3EE;
    --det-graphite: #334155;
    --det-glow: rgba(34, 211, 238, 0.25);
    
    /* Shared Effects */
    --glass-bg: rgba(10, 15, 24, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   TOP NOTICE
   ========================================================================== */
.top-notice {
    background: #000;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
    padding: 8px 0;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.saas-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #fff, #666);
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.age-badge {
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

/* Buttons */
.btn-primary {
    background: #fff;
    color: #000;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-hover);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* SaaS Mockup Graphic */
.saas-mockup {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
}

.saas-mockup::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.mockup-header {
    background: var(--bg-surface-elevated);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.mockup-header span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.mockup-body {
    padding: 24px;
    display: grid;
    gap: 16px;
}

.mockup-card {
    height: 100px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.drac-mockup {
    border-left: 3px solid var(--drac-crimson);
}

.det-mockup {
    border-left: 3px solid var(--det-cyan);
}

/* ==========================================================================
   GAME SHOWCASE
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 48px;
    max-width: 600px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.game-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.game-card:hover {
    transform: translateY(-4px);
}

.game-image-wrapper {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.game-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s ease;
}

.game-card:hover .game-image-wrapper img {
    transform: scale(1.05);
}

.game-card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.g-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.game-card h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.game-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    flex-grow: 1;
}

.play-btn {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

/* Dracula Theme */
.dracula-theme {
    background: linear-gradient(to bottom, var(--bg-surface), var(--drac-bg));
    border-color: rgba(143, 41, 66, 0.15);
}
.dracula-theme:hover {
    border-color: var(--drac-crimson);
    box-shadow: 0 10px 30px var(--drac-glow);
}
.dracula-theme .g-tag {
    background: rgba(143, 41, 66, 0.2);
    color: #fca5a5;
}
.dracula-theme .play-btn {
    background: var(--drac-crimson);
    color: #fff;
}
.dracula-theme .play-btn:hover {
    background: #a82e4b;
}

/* Detective Theme */
.detective-theme {
    background: linear-gradient(to bottom, var(--bg-surface), var(--det-bg));
    border-color: rgba(34, 211, 238, 0.15);
}
.detective-theme:hover {
    border-color: var(--det-cyan);
    box-shadow: 0 10px 30px var(--det-glow);
}
.detective-theme .g-tag {
    background: rgba(34, 211, 238, 0.15);
    color: var(--det-cyan);
}
.detective-theme .play-btn {
    background: var(--det-blue);
    color: #fff;
}
.detective-theme .play-btn:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   INFO PANEL
   ========================================================================== */
.info-panel {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-top: 48px;
}

.info-panel h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.info-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 32px 24px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--border-hover);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 12px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: #222;
    padding: 4px 12px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.step-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 24px;
}

.faq-item.active .faq-question {
    color: #fff;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   LEGAL PAGES & CONTACT
   ========================================================================== */
.page-header {
    padding: 80px 0 40px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.legal-content {
    max-width: 800px;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 80px;
}

.legal-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 32px 0 16px;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

.contact-wrapper {
    max-width: 600px;
    margin-bottom: 100px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
    background: var(--bg-surface-elevated);
}

.success-msg {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.saas-footer {
    background: #020305;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand .brand-logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 1152px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-actions button {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-cookie-primary { background: #fff; color: #000; border: none; }
.btn-cookie-secondary { background: rgba(255,255,255,0.1); color: #fff; border: none; }
.btn-cookie-outline { background: transparent; color: var(--text-muted); border: 1px solid var(--border-color); }

/* ==========================================================================
   GAME RESPONSIVE WRAPPER
   ========================================================================== */
.game-responsive-wrapper {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.game-responsive-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: #000;
}

.game-page-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .games-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .nav-menu, .header-right .btn-primary { display: none; }
    .mobile-toggle { display: block; }
    .steps-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .cookie-actions { flex-direction: column; width: 100%; }
    .cookie-actions button { width: 100%; }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
    }
    .game-responsive-wrapper {
        padding: 4px;
        border-radius: 8px;
        aspect-ratio: 16 / 9;
        max-width: 100%;
    }
}