:root {
    /* Brand Colors for PlayFame Canada */
    --base-bg: #110B19;
    /* Very dark purple */
    --card-bg: #1E122C;
    /* Surface dark purple */
    --card-border: #3A2353;

    --primary: #A67CFF;
    /* Light purple */
    --secondary: #FFC107;
    /* VIP Yellow / Gold */
    --accent: #00E5FF;
    /* Cyan / Neon blue highlights */
    --text-main: #FFFFFF;
    --text-muted: #B3A4C2;

    /* Layout & Styling */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;

    --shadow-glow: 0 0 20px rgba(166, 124, 255, 0.3);
    --shadow-gold: 0 0 15px rgba(255, 193, 7, 0.4);

    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --max-width: 1280px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--base-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold {
    color: var(--secondary);
}

.text-cyan {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8150ec);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(166, 124, 255, 0.5);
}

.btn-gold {
    background: linear-gradient(135deg, #FFD54F, var(--secondary));
    color: #000;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(166, 124, 255, 0.1);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(17, 11, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.logo-star {
    color: var(--secondary);
    font-size: 1.8rem;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Asymmetrical Layouts (Unique Structure) */
.hero-stage {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: var(--shadow-glow);
    border: 3px solid var(--card-border);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Masonry Stats / Features Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
    margin: 60px 0;
}

.bento-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: transform 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(166, 124, 255, 0.1), transparent);
}

.bento-item.medium {
    grid-column: span 2;
}

/* Tables */
.data-table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.fame-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.fame-table th,
.fame-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.fame-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 600;
}

.fame-table tr:last-child td {
    border-bottom: none;
}

/* Internal SEO Content Area */
.seo-article {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 60px;
    margin: 60px 0;
    border: 1px solid var(--card-border);
}

.seo-article h2 {
    font-size: 2.2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary);
}

.seo-article h3 {
    font-size: 1.6rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.seo-article p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.seo-article ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.seo-article li {
    margin-bottom: 10px;
}

/* Mobile Sticky CTA */
.mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--base-bg);
    padding: 15px;
    border-top: 1px solid var(--primary);
    z-index: 1000;
    display: none;
    text-align: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

/* Visual Diagrams (CSS Based) */
.stat-bar-wrap {
    margin: 20px 0;
}

.stat-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-bar-track {
    height: 12px;
    background: var(--base-bg);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-pill);
}

/* Footer & Author */
.site-footer {
    background: #000;
    padding: 60px 0 20px;
    border-top: 1px solid var(--card-border);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    margin-top: 40px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

/* Media Queries */
@media (max-width: 992px) {

    .nav-desktop,
    .header-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-sticky {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        transform: rotate(0);
        margin-top: 30px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.large,
    .bento-item.medium {
        grid-column: span 1;
    }

    .seo-article {
        padding: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding-bottom: 80px;
        /* Space for sticky CTA */
    }
}