/* =========================================
   1. VARIABLES & DESIGN TOKENS
========================================= */
:root {
    --gold-primary: #f5c542;
    --gold-light: #ffd966;
    --gold-dark: #b8860b;
    --gold-deep: #8a6508;
    --gold-glow: rgba(245, 197, 66, 0.35);
    
    --background-dark: #080d18;
    --background-secondary: #101827;
    --surface-dark: #151e30;
    --surface-light: #1d293d;
    
    --text-primary: #ffffff;
    --text-secondary: #c7cedb;
    --text-muted: #8e9bb0;
    
    --border-gold: rgba(245, 197, 66, 0.3);
    --border-gold-strong: rgba(245, 197, 66, 0.6);
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    --accent-red: #ff4d4d;
    --accent-black: #111111;
    
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    --shadow-gold: 0 4px 20px rgba(245, 197, 66, 0.18);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --header-height: 76px;
}

/* =========================================
   2. RESET & BASE STYLES
========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--background-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--background-dark);
    overflow-x: hidden;
    padding-bottom: 0;
}

@media (max-width: 767px) {
    body {
        padding-bottom: 88px; /* Room for mobile sticky footer CTA */
    }
}

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

a:hover {
    color: var(--gold-light);
}

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. TYPOGRAPHY & UTILITIES
========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.25;
    font-weight: 700;
}

.gold-accent {
    color: var(--gold-primary);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.35rem, 2.8vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-light));
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    max-width: 780px;
    margin: -24px auto 40px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    color: #080d18;
    box-shadow: 0 4px 15px rgba(245, 197, 66, 0.35);
    border: 1px solid var(--gold-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 197, 66, 0.5);
    color: #000000;
}

.btn-secondary {
    background: rgba(21, 30, 48, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-gold);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    color: var(--gold-primary);
}

/* =========================================
   4. HEADER & NAVIGATION
========================================= */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(8, 13, 24, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gold);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-emblem {
    position: relative;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--surface-light), var(--surface-dark));
    border: 1px solid var(--border-gold-strong);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
}

.logo-crown {
    font-size: 1.1rem;
    position: absolute;
    top: -6px;
}

.logo-cards {
    font-size: 1.3rem;
    color: var(--gold-primary);
    margin-top: 4px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navigation List */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.25s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    margin-left: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #080d18;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    border-radius: 30px;
    box-shadow: var(--shadow-gold);
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.header-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 197, 66, 0.45);
    color: #000000;
}

/* Hamburger Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    padding: 0;
    z-index: 1001;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--gold-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================
   5. HERO SECTION
========================================= */
.hero-section {
    position: relative;
    padding: 80px 0 100px;
    background: radial-gradient(circle at 50% 20%, rgba(245, 197, 66, 0.08) 0%, rgba(8, 13, 24, 1) 70%);
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.hero-bg-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.6;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(245, 197, 66, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 30px;
    color: var(--gold-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-highlights {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.highlight-item {
    display: flex;
    flex-direction: column;
}

.highlight-val {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.highlight-lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Playing Cards Hero Artwork & Animations */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.card-deck-showcase {
    position: relative;
    width: 320px;
    height: 380px;
    animation: deckFloat 6s ease-in-out infinite;
}

.playing-card {
    position: absolute;
    width: 200px;
    height: 290px;
    background: linear-gradient(145deg, #1d293d, #111a2a);
    border: 2px solid var(--border-gold-strong);
    border-radius: 16px;
    box-shadow: var(--shadow-dark);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

/* Card Metallic Shimmer Effect */
.playing-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(245, 197, 66, 0.18) 50%,
        transparent 60%
    );
    transform: rotate(30deg);
    animation: cardShimmer 5s ease-in-out infinite;
    pointer-events: none;
}

.playing-card.card-1 {
    top: 30px;
    left: 0;
    z-index: 1;
    animation: cardFanLeft 6s ease-in-out infinite;
}

.playing-card.card-3 {
    top: 30px;
    right: 0;
    z-index: 2;
    animation: cardFanRight 6s ease-in-out infinite 0.5s;
}

.playing-card.main-card {
    top: 0;
    left: 60px;
    z-index: 3;
    background: linear-gradient(145deg, #22324b, #152033);
    border-color: var(--gold-primary);
    animation: mainCardPulse 6s ease-in-out infinite 0.2s;
}

.playing-card:hover {
    z-index: 10 !important;
    transform: scale(1.08) translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(245, 197, 66, 0.45) !important;
}

/* Keyframe Animations */
@keyframes deckFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes cardFanLeft {
    0%, 100% {
        transform: rotate(-15deg) translateY(0);
    }
    50% {
        transform: rotate(-18deg) translateY(-6px) translateX(-4px);
    }
}

@keyframes cardFanRight {
    0%, 100% {
        transform: rotate(15deg) translateY(0);
    }
    50% {
        transform: rotate(18deg) translateY(-6px) translateX(4px);
    }
}

@keyframes mainCardPulse {
    0%, 100% {
        transform: rotate(0deg) scale(1.05) translateY(0);
        box-shadow: 0 15px 35px rgba(245, 197, 66, 0.25);
    }
    50% {
        transform: rotate(0deg) scale(1.08) translateY(-10px);
        box-shadow: 0 22px 45px rgba(245, 197, 66, 0.45);
    }
}

@keyframes cardShimmer {
    0% {
        transform: translateY(-100%) rotate(30deg);
        opacity: 0;
    }
    30%, 70% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%) rotate(30deg);
        opacity: 0;
    }
}

.card-corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    font-family: var(--font-heading);
    font-weight: 800;
}

.card-corner.top-left {
    align-self: flex-start;
}

.card-corner.bottom-right {
    align-self: flex-end;
    transform: rotate(180deg);
}

.card-rank {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.card-suit {
    font-size: 1.1rem;
}

.card-suit.spade, .card-suit.club {
    color: var(--gold-primary);
}

.card-suit.heart, .card-suit.diamond {
    color: var(--accent-red);
}

.card-center {
    font-size: 3.5rem;
    text-align: center;
    align-self: center;
}

.card-crown {
    font-size: 2.2rem;
    text-align: center;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold-primary);
    text-align: center;
    letter-spacing: 1.5px;
}

/* =========================================
   6. SECTIONS GENERAL
========================================= */
.section {
    padding: 90px 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}

.section-dark {
    background-color: var(--background-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* Content Grid & Cards */
.content-grid {
    display: grid;
    gap: 30px;
}

.content-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.content-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.content-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--gold-primary);
}

.content-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* =========================================
   7. EXPLAINER & FEATURE GRID
========================================= */
.explainer-box {
    background: linear-gradient(135deg, var(--surface-dark), var(--surface-light));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-dark);
}

.explainer-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: rgba(8, 13, 24, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.feature-card:hover {
    border-color: var(--gold-primary);
}

.feature-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.feature-card h3, .feature-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

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

/* =========================================
   8. HOW TO PLAY STEPS
========================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.step-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gold-primary);
    color: #080d18;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

/* =========================================
   9. HAND RANKINGS SECTION
========================================= */
.rankings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 140px 1fr 180px;
    align-items: center;
    gap: 24px;
    background: var(--surface-dark);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 24px 30px;
    transition: all 0.3s ease;
}

.ranking-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
    transform: translateX(4px);
}

.ranking-badge {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-info h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.ranking-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.ranking-cards-demo {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.mini-card {
    width: 44px;
    height: 64px;
    background: #111a2a;
    border: 1px solid var(--border-gold-strong);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* =========================================
   10. TERMINOLOGY GLOSSARY
========================================= */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.term-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: border-color 0.3s ease;
}

.term-card:hover {
    border-color: var(--gold-primary);
}

.term-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.term-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.term-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

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

/* =========================================
   11. BEGINNER GUIDE & MISTAKES
========================================= */
.guide-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.guide-box {
    background: var(--surface-dark);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 30px;
}

.guide-box h3 {
    font-size: 1.25rem;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.guide-box p {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mistake-card {
    background: rgba(21, 30, 48, 0.8);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.mistake-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.mistake-card h3, .mistake-card h4 {
    font-size: 1.05rem;
    color: var(--accent-red);
    margin-bottom: 10px;
}

.mistake-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* =========================================
   12. ONLINE SAFETY & RESPONSIBLE PLAY
========================================= */
.safety-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.safety-block {
    background: var(--surface-dark);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.safety-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.shield-icon {
    font-size: 2rem;
}

.safety-header h3 {
    font-size: 1.35rem;
    color: var(--gold-primary);
}

.safety-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.96rem;
}

.safety-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold-primary);
    font-weight: bold;
}

/* =========================================
   13. FAQ ACCORDION
========================================= */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--surface-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
    border-color: var(--gold-primary);
}

.faq-trigger {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    background: transparent;
    transition: color 0.2s ease;
}

.faq-trigger:hover {
    color: var(--gold-primary);
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--gold-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-content[hidden] {
    display: none;
}

.faq-item.active .faq-content {
    max-height: 500px;
    transition: max-height 0.35s ease-in-out;
}

.faq-body {
    padding: 0 24px 20px 24px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4px;
    padding-top: 16px;
}

/* =========================================
   14. FOOTER
========================================= */
.site-footer {
    background: #04070e;
    border-top: 1px solid var(--border-gold);
    padding: 60px 0 30px;
    color: var(--text-muted);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.footer-nav h3, .footer-nav h4, .footer-disclaimer-box h3, .footer-disclaimer-box h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-nav a:hover {
    color: var(--gold-primary);
}

.footer-download-highlight {
    color: var(--gold-primary) !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-download-highlight::before {
    content: '📲';
    font-size: 0.9rem;
}

.footer-disclaimer-box p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* =========================================
   15. BACK TO TOP BUTTON
========================================= */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: #080d18;
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    border: 1px solid var(--gold-light);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(245, 197, 66, 0.5);
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: calc(72px + env(safe-area-inset-bottom)); /* Clean spacing above compact sticky footer */
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        z-index: 10001; /* Ensure floating above sticky footer */
    }
}

/* =========================================
   16. MOBILE-ONLY STICKY FOOTER CTA
========================================= */
.mobile-sticky-footer {
    display: none; /* Completely hidden on desktop & tablet */
}

@media (max-width: 767px) {
    .mobile-sticky-footer {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        background: linear-gradient(180deg, #101827 0%, #080d18 100%);
        border-top: 1px solid var(--border-gold-strong);
        border-radius: 14px 14px 0 0;
        padding: 8px 12px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .sticky-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1;
    }

    .sticky-icon {
        width: 36px;
        min-width: 36px;
        height: 36px;
        flex-shrink: 0;
        background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
        color: #080d18;
        font-family: var(--font-heading);
        font-weight: 800;
        font-size: 0.82rem;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(245, 197, 66, 0.3);
    }

    .sticky-content {
        display: flex;
        flex-direction: column;
        min-width: 0;
        overflow: hidden;
    }

    .sticky-content strong {
        font-family: var(--font-heading);
        color: var(--text-primary);
        font-size: 0.84rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sticky-content span {
        font-size: 0.68rem;
        color: var(--text-muted);
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sticky-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 7px 13px;
        background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
        color: #080d18;
        font-weight: 800;
        font-size: 0.74rem;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        box-shadow: var(--shadow-gold);
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* =========================================
   17. RESPONSIVE BREAKPOINTS
========================================= */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-highlights {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 30px;
    }

    .steps-grid, .terms-grid, .mistakes-grid, .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ranking-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ranking-cards-demo {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(16, 24, 39, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-gold);
        padding: 24px 20px;
        transform: translateY(-150%);
        transition: transform 0.35s ease;
        box-shadow: var(--shadow-dark);
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .header-download-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .content-grid.two-col,
    .steps-grid,
    .terms-grid,
    .mistakes-grid,
    .guide-wrapper,
    .safety-container,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Accessibility Focus Outline */
:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 4px;
}

/* =========================================
   16. RECOMMENDED CARD GAME RESOURCES SECTION
========================================= */
.footer-resources {
    margin-top: 36px;
    padding: 24px 20px;
    background: rgba(18, 26, 44, 0.4);
    border: 1px solid rgba(245, 197, 66, 0.15);
    border-radius: var(--radius-md);
    text-align: center;
}

.footer-resources h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    text-align: center;
    display: inline-block;
    position: relative;
}

.footer-resources h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold-gradient);
    margin: 6px auto 0 auto;
    border-radius: 2px;
}

.resources-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.resources-list li {
    margin: 0;
}

.resources-list a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(245, 197, 66, 0.18);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.resources-list a:hover,
.resources-list a:focus-visible {
    color: var(--gold-primary);
    background: rgba(245, 197, 66, 0.1);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 197, 66, 0.15);
}

/* Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
