/* CSS Variables for Design System */
:root {
    /* Colors */
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-color: #ffd23f;
    --success-color: #06d6a0;
    --warning-color: #f77f00;
    --danger-color: #d62828;
    
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.1);
    
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    
    /* Typography */
    --font-primary: 'Arial', 'Helvetica', sans-serif;
    --font-heading: 'Arial Black', 'Arial', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    z-index: -2;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
    filter: brightness(0.8) contrast(1.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
}


.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 var(--spacing-md);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 107, 53, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 107, 53, 0.8); }
}

.hero-logo-image {
    height: 120px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-tagline {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
    font-weight: 300;
}

.hero-cta {
    margin-bottom: var(--spacing-xxl);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    transform: rotate(45deg);
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Buttons */
.primary-btn {
    background: linear-gradient(to bottom, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to bottom, #5cbf60 0%, #4CAF50 100%);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.large-btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    min-width: 160px;
    text-align: center;
    border-radius: 22px;
}

.btn-text {
    margin-right: var(--spacing-sm);
}

.btn-icon {
    font-size: 1.2em;
}

/* Game Modes Section */
.game-modes {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.mode-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-slow);
}

.mode-card:hover::before {
    left: 100%;
}

.mode-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.mode-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.mode-token {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition-normal);
}

.mode-card:hover .mode-token {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.4));
}

.mode-title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
}

.mode-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Game Features Section */
.game-features {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    margin-top: var(--spacing-xl);
}

.features-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
}

.features-text p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.features-tokens {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-showcase {
    position: relative;
    width: 100%;
    height: 100%;
}

.showcase-token {
    position: absolute;
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: showcaseFloat 6s ease-in-out infinite;
    cursor: pointer;
    transition: var(--transition-normal);
}

.showcase-token:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 8px 16px rgba(255, 107, 53, 0.5));
}

/* Token positioning and animations */
.token-float-1 { top: 10%; left: 20%; animation-delay: 0s; }
.token-float-2 { top: 20%; left: 80%; animation-delay: 0.5s; }
.token-float-3 { top: 30%; left: 15%; animation-delay: 1s; }
.token-float-4 { top: 40%; left: 85%; animation-delay: 1.5s; }
.token-float-5 { top: 50%; left: 10%; animation-delay: 2s; }
.token-float-6 { top: 60%; left: 90%; animation-delay: 2.5s; }
.token-float-7 { top: 70%; left: 25%; animation-delay: 3s; }
.token-float-8 { top: 80%; left: 75%; animation-delay: 3.5s; }
.token-float-9 { top: 15%; left: 50%; animation-delay: 4s; }
.token-float-10 { top: 25%; left: 35%; animation-delay: 4.5s; }
.token-float-11 { top: 35%; left: 65%; animation-delay: 5s; }
.token-float-12 { top: 45%; left: 45%; animation-delay: 5.5s; }
.token-float-13 { top: 55%; left: 55%; animation-delay: 6s; }
.token-float-14 { top: 65%; left: 40%; animation-delay: 6.5s; }

@keyframes showcaseFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(2deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-10px) rotate(-2deg); 
    }
}

/* Board Showcase Section */
.board-showcase {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-primary);
    position: relative;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.board-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.board-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-slow);
}

.board-card:hover::before {
    left: 100%;
}

.board-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.board-image {
    width: 100%;
    height: 200px;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-normal);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.board-card:hover .board-img {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(255, 107, 53, 0.3));
}

.board-title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.board-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Download Section */
.download-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--secondary-color) 100%);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.download-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.download-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
}

.download-cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.main-download-btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-download-btn .primary-btn {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    padding: 16px 32px;
    min-width: 200px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.download-divider {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.download-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.divider-text {
    background: var(--bg-primary);
    padding: 0 var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.app-stores {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-sm);
}

.store-badge {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: var(--transition-normal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.store-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.store-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.store-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1;
}

.store-title {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1;
}

.store-badge.google-play:hover {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(66, 133, 244, 0.1) 100%);
}

.store-badge.app-store:hover {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 122, 255, 0.1) 100%);
}

.store-badge.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.store-badge.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--bg-card);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    backdrop-filter: blur(2px);
}

.coming-soon-text {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.download-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 250px;
    height: 500px;
    background: var(--bg-card);
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.mobile-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.mobile-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}


/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.footer-subtitle {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    display: inline-block;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: var(--spacing-xl);
        transition: var(--transition-normal);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Game Features Responsive */
    .features-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .features-text h3 {
        font-size: 1.5rem;
    }

    .features-tokens {
        height: 300px;
        margin-top: var(--spacing-lg);
    }

    .showcase-token {
        width: 40px;
        height: 40px;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    .modes-grid {
        grid-template-columns: 1fr;
    }

    .app-stores {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .primary-btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }

    .large-btn {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: 1.1rem;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg-card: rgba(255, 255, 255, 0.1);
        --text-secondary: #ffffff;
    }
}

/* Legal Pages Styles */
.legal-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--bg-primary);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.legal-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.legal-updated {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    font-style: italic;
}

.legal-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.legal-section h2 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.legal-section h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-md);
    font-size: 1.2rem;
}

.legal-section p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.legal-section ul {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.legal-section li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Print styles */
@media print {
    .navbar,
    .scroll-indicator,
    .hero-cta,
    .download-buttons {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .legal-content {
        max-width: none;
        padding: 0;
    }
    
    .legal-section {
        background: white;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* Download Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--spacing-xl);
}

.platform-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.platform-option {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-option:hover:not(.disabled) {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.platform-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.platform-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.platform-info {
    flex: 1;
}

.platform-name {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.platform-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.platform-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.platform-option:hover:not(.disabled) .platform-arrow {
    transform: translateX(5px);
    color: var(--accent-color);
}

.platform-arrow.disabled {
    color: var(--text-secondary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: var(--spacing-md);
    }
    
    .modal-header {
        padding: var(--spacing-lg);
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: var(--spacing-lg);
    }
    
    .platform-option {
        padding: var(--spacing-md);
    }
    
    .platform-icon {
        width: 40px;
        height: 40px;
    }
    
    .platform-name {
        font-size: 1.1rem;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .features-content {
        gap: var(--spacing-xl);
    }
    
    .features-tokens {
        height: 350px;
    }
    
    .showcase-token {
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
    .features-text h3 {
        font-size: 1.3rem;
    }
    
    .features-tokens {
        height: 250px;
    }
    
    .showcase-token {
        width: 35px;
        height: 35px;
    }
    
    .features-list {
        font-size: 0.9rem;
    }
}
