
/* =========================================
   1. CSS Reset & Variables
   ========================================= */
:root {
    /* Color Palette */
    --c-bg-main: #0f172a;       /* Deep Blue/Black */
    --c-bg-secondary: #1e293b;  /* Card Background */
    --c-bg-dark: #020617;       /* Darker sections */
    
    --c-primary: #3b82f6;       /* Bright Blue */
    --c-accent: #8b5cf6;        /* Violet */
    --c-success: #10b981;       /* Emerald Green (Money/Win) */
    --c-danger: #ef4444;        /* Red (Crash) */
    --c-text-main: #f8fafc;     /* White-ish */
    --c-text-muted: #94a3b8;    /* Gray */
    
    --g-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --g-success: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --g-text: linear-gradient(to right, #60a5fa, #c084fc);

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --fz-body: 1rem;
    --fz-h1: clamp(2rem, 5vw, 3.5rem);
    --fz-h2: clamp(1.5rem, 3vw, 2.5rem);
    
    /* Spacing & Layout */
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 2rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --container-width: 1200px;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Normalize */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--c-bg-main);
    color: var(--c-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

/* =========================================
   2. Utilities & Animations
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap-md);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   3. Header & Navigation
   ========================================= */
.intro {
    background: radial-gradient(circle at top right, #1e1b4b 0%, var(--c-bg-main) 60%);
    padding: 2rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Decorative background glow */
.intro::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: var(--c-primary);
    filter: blur(150px);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

/* Mocking the Logo since span is empty */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: var(--g-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    position: relative;
}
.logo::after {
    content: 'UP X'; /* Adding text content */
}

nav ul {
    display: flex;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

nav ul li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-muted);
    position: relative;
}

nav ul li a:hover,
nav ul li a:focus {
    color: var(--c-text-main);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--c-primary);
    transition: var(--transition);
    border-radius: 2px;
}

nav ul li a:hover::after {
    width: 100%;
}

.border {
    display: none; /* Hiding abstract element */
}

/* Mobile Burger */
.burger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 20;
}
.burger::before, .burger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--c-text-main);
    border-radius: 2px;
    transition: var(--transition);
}
.burger::before { top: 0; }
.burger::after { bottom: 0; }

/* =========================================
   4. Hero Content
   ========================================= */
.intro .body {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeIn 0.8s ease-out;
}

.intro h1 {
    font-size: var(--fz-h1);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.intro h1 span {
    background: var(--g-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.intro p {
    font-size: 1.125rem;
    color: var(--c-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* CTA Button */
.intro .body a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--g-primary);
    color: white;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: var(--shadow-glow);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.intro .body a::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.intro .body a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

.intro .body a:hover::before {
    opacity: 1;
}

.intro .body a:active {
    transform: translateY(0);
}

/* =========================================
   5. Content Section
   ========================================= */
.content {
    padding: 4rem 0;
    background: var(--c-bg-main);
}

.content h2, .content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--c-text-main);
    line-height: 1.3;
}

.content h2 {
    font-size: var(--fz-h2);
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--c-primary);
}

.content h2 span {
    color: var(--c-primary);
}

.content h3 {
    font-size: 1.5rem;
    color: var(--c-text-main);
}

.content p {
    margin-bottom: 1.5rem;
    color: var(--c-text-muted);
    font-size: 1.05rem;
}

/* Lists */
.content ul, .content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--c-text-muted);
}

.content ul li::before {
    content: '➤';
    position: absolute;
    left: 0;
    color: var(--c-success);
    font-size: 0.8em;
    top: 0.2em;
}

.content ol {
    counter-reset: my-counter;
}

.content ol li {
    counter-increment: my-counter;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--c-text-muted);
}

.content ol li::before {
    content: counter(my-counter);
    position: absolute;
    left: 0;
    top: -2px;
    background: var(--c-secondary);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--c-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: var(--c-bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

caption {
    margin-bottom: 0.75rem;
    font-weight: bold;
    color: var(--c-text-main);
    text-align: left;
    font-size: 1.1rem;
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--c-text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

td {
    color: var(--c-text-muted);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Game Highlights in Text */
strong {
    color: var(--c-text-main);
    font-weight: 700;
}

/* =========================================
   6. Footer
   ========================================= */
footer {
    background: var(--c-bg-dark);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .bor {
    width: 50px;
    height: 4px;
    background: var(--g-primary);
    border-radius: 2px;
    margin-bottom: 2rem;
}

footer nav {
    flex-direction: column;
    margin-bottom: 0;
}

footer nav ul {
    background: transparent;
    border: none;
    backdrop-filter: none;
    flex-wrap: wrap;
    justify-content: center;
}

/* =========================================
   7. Form Elements (Implicit) & Buttons
   ========================================= */
/* Even though explicit form HTML isn't in input, 
   styling is provided per requirement */
input, select, textarea {
    width: 100%;
    padding: 0.8em 1.2em;
    background: var(--c-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--c-text-main);
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* =========================================
   8. Responsive Media Queries
   ========================================= */
@media (max-width: 900px) {
    nav ul {
        padding: 0.5rem 1rem;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Layout */
    .intro {
        text-align: center;
        padding-top: 1rem;
    }
    
    .intro .body {
        margin: 0 auto;
    }
    
    .intro h1 {
        font-size: 2.5rem;
    }
    
    /* Navigation - Burger Menu Logic */
    .burger {
        display: block;
    }
    
    nav {
        flex-wrap: wrap;
    }

    /* Since we can't use JS, we style the list to break to a new line 
       or assume JS toggles a class. Here we stack it beautifully. */
    nav ul {
        display: none; /* Hidden by default on mobile if JS implies toggle */
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        background: var(--c-bg-secondary);
        border-radius: var(--radius-md);
        text-align: center;
        gap: 0;
        padding: 0;
    }
    
    /* If there was a .active class, we would show it. 
       For this CSS only solution, let's assume valid graceful degradation:
       We keep it simple or show it as a horizontal scrollable list below. */
    nav ul {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        width: 100vw;
        margin-left: -1rem; /* counteract container padding */
        padding: 1rem;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        background: var(--c-bg-dark);
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }
    
    nav ul li {
        flex: 0 0 auto;
    }

    nav ul li a {
        padding: 0.5rem 1rem;
        background: rgba(255,255,255,0.05);
        border-radius: 20px;
        white-space: nowrap;
    }
    
    .burger {
        display: none; /* Hiding burger since we used scrollable nav strategy */
    }

    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Typography */
    .content h2 {
        border-left: none;
        padding-left: 0;
        text-align: center;
        background: linear-gradient(to right, rgba(59, 130, 246, 0.1), transparent);
        padding: 0.5rem;
        border-radius: var(--radius-sm);
    }
}

/* =========================================
   9. Scrollbar Styling
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--c-bg-main);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c-primary);
}
