@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Brand & Accent Colors - Modern Clean SaaS/iGaming Palette */
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #3730A3;
    --primary-subtle: #EEF2FF;
    --primary-glow: rgba(99, 102, 241, 0.25);
    
    --secondary: #06B6D4;
    --secondary-light: #22D3EE;
    --secondary-subtle: #ECFEFF;
    
    --accent-pink: #EC4899;
    --accent-pink-subtle: #FDF2F8;
    --accent-orange: #F59E0B;
    --accent-orange-subtle: #FFFBEB;
    --accent-emerald: #10B981;
    --accent-emerald-subtle: #ECFDF5;
    
    /* Backgrounds (Light Theme) */
    --bg-desktop-canvas: #090E1A;
    --bg-body: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-subtle: #F1F5F9;
    --bg-muted: #E2E8F0;
    
    /* Dark Contrast Sections */
    --bg-navy: #0A0F1D;
    --bg-navy-card: #111827;
    --bg-navy-elevated: #1F2937;
    --bg-footer: #060913;
    
    /* Text Colors */
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #FFFFFF;
    --text-subtle: #94A3B8;
    
    /* Borders */
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --border-hover: #CBD5E1;
    --border-primary: rgba(99, 102, 241, 0.3);
    --border-dark: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --gradient-violet-pink: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);
    --gradient-cyan-blue: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --gradient-amber-rose: linear-gradient(135deg, #F59E0B 0%, #F43F5E 100%);
    --gradient-emerald: linear-gradient(135deg, #10B981 0%, #059669 100%);
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 3px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
    
    /* Mobile App Constraints */
    --mobile-width: 480px;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --primary: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4F46E5;
    --primary-subtle: rgba(99, 102, 241, 0.15);
    --primary-glow: rgba(99, 102, 241, 0.35);
    
    --secondary: #22D3EE;
    --secondary-light: #67E8F9;
    --secondary-subtle: rgba(6, 182, 212, 0.15);
    
    --accent-pink: #F472B6;
    --accent-pink-subtle: rgba(236, 72, 153, 0.15);
    --accent-orange: #FBBF24;
    --accent-orange-subtle: rgba(245, 158, 11, 0.15);
    --accent-emerald: #34D399;
    --accent-emerald-subtle: rgba(16, 185, 129, 0.15);
    
    /* Backgrounds in dark mode */
    --bg-desktop-canvas: #050811;
    --bg-body: #0B0F19;
    --bg-white: #131B2E;
    --bg-card: #131B2E;
    --bg-subtle: #1E293B;
    --bg-muted: #334155;
    
    /* Dark Contrast Sections */
    --bg-navy: #070B14;
    --bg-navy-card: #0F172A;
    --bg-navy-elevated: #1E293B;
    --bg-footer: #03060F;
    
    /* Text Colors in dark mode */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-light: #FFFFFF;
    --text-subtle: #64748B;
    
    /* Borders in dark mode */
    --border: #1E293B;
    --border-light: #1E293B;
    --border-hover: #334155;
    --border-primary: rgba(99, 102, 241, 0.4);
    --border-dark: rgba(255, 255, 255, 0.08);

    /* Shadows in dark mode */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 6px -1px rgba(0, 0, 0, 0.5), 0 1px 3px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 16px -2px rgba(0, 0, 0, 0.6), 0 2px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.7), 0 4px 8px -2px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Desktop Canvas: Shows mobile app centered with elegant ambient backdrop */
body {
    min-height: 100%;
    font-family: var(--font-sans);
    background-color: var(--bg-desktop-canvas);
    background-image: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
                      radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mobile App Viewport (Locked to mobile frame even on laptops) */
.app-viewport {
    width: 100%;
    max-width: var(--mobile-width);
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--bg-body);
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-bottom: 74px; /* Space for fixed bottom bar */
    transition: background-color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Mobile Container */
.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* Typography Badges & Labels */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.15);
    margin-bottom: 10px;
}

.section-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.25;
}

.section-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.center-desc {
    margin-left: auto;
    margin-right: auto;
}

.center {
    text-align: center;
}

.section-head {
    margin-bottom: 28px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Touch-Friendly Mobile Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 11px 20px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    text-align: center;
    min-height: 44px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
    color: #FFFFFF !important;
}

.btn-outline {
    background: var(--bg-white);
    color: var(--text-main) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
    background: var(--bg-subtle);
    border-color: var(--primary-light);
    color: var(--primary) !important;
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-main) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-neon {
    background: var(--accent-emerald-subtle);
    color: var(--accent-emerald) !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 700;
}

.btn-large {
    padding: 13px 24px;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    min-height: 48px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
    min-height: 36px;
}

/* Mobile Header (Fixed within the mobile frame) */
.main-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .main-header {
    background: rgba(19, 27, 46, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 14px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.brand-badge-icon {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.3);
}

/* Mobile Drawer Nav (Locked within the mobile viewport) */
.main-nav {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    background: var(--bg-white);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.15);
    max-height: 0;
    transition: max-height 0.35s ease, background-color 0.3s ease;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

.main-nav.active {
    max-height: 480px;
}

.main-nav .nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 14px;
    gap: 4px;
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: block;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.current {
    color: var(--primary);
    background: var(--primary-subtle);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: var(--border);
    color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.theme-toggle-btn svg {
    width: 17px;
    height: 17px;
    transition: transform 0.3s ease;
}

/* Light mode: show moon, hide sun */
.theme-icon-sun {
    display: none;
}
.theme-icon-moon {
    display: block;
}

/* Dark mode: show sun, hide moon */
[data-theme="dark"] .theme-icon-sun {
    display: block;
}
[data-theme="dark"] .theme-icon-moon {
    display: none;
}

.btn-signin {
    padding: 7px 14px;
    font-size: 0.8rem;
    min-height: 34px;
}

.btn-signup {
    padding: 7px 15px;
    font-size: 0.8rem;
    min-height: 34px;
}

.mobile-menu-toggle {
    display: flex;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.2s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Footer — Clean Deep Navy Contrast */
.main-footer {
    background: var(--bg-footer);
    color: #94A3B8;
    padding: 32px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 30px;
}

.footer-brand p {
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 12px 0 16px;
    color: #94A3B8;
}

.footer-brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #E2E8F0;
}

.footer-links h3,
.footer-contact h3 {
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.footer-links a {
    color: #94A3B8;
    font-size: 0.82rem;
    display: block;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-contact p {
    font-size: 0.82rem;
    color: #94A3B8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-icon {
    width: 24px;
    height: 24px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #64748B;
    line-height: 1.6;
}

.footer-bottom a {
    color: #94A3B8;
}

/* Mobile Fixed Bottom Bar (Locked within the 480px frame) */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    z-index: 1100;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .mobile-bottom-bar {
    background: rgba(19, 27, 46, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-bottom-bar a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.15s ease;
}

.mobile-bottom-bar a:active {
    transform: scale(0.97);
}

.mobile-bottom-bar .btn-login {
    background: var(--bg-subtle);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.mobile-bottom-bar .btn-register {
    background: var(--gradient-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
