/* Modern Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #A5851B;
    --primary-light: #D4AF37;
    --primary-dark: #8B7016;
    --accent: #FF6B35;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent) 0%, #FF8C61 100%);
    top: 50%;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    font-size: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    z-index: 1;
}

.badge {
    display: inline-block;
    background: rgba(165, 133, 27, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-large {
    padding: 18px 36px;
    font-size: 17px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    z-index: 1;
}

.phone-frame {
    width: 320px;
    height: 650px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    color: var(--text-tertiary);
    text-align: center;
    gap: 16px;
}

.placeholder-icon {
    font-size: 48px;
}

.placeholder-text {
    font-size: 14px;
    font-weight: 500;
}

.placeholder-text small {
    display: block;
    font-size: 12px;
    opacity: 0.7;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(165, 133, 27, 0.3) 0%, transparent 70%);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-badge {
    display: inline-block;
    background: rgba(165, 133, 27, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Game Modes Section */
.game-modes {
    padding: 120px 0;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.mode-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s;
    border: 2px solid transparent;
}

.mode-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.mode-primary {
    border-color: #4CAF50;
}

.mode-primary:hover {
    border-color: #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, white 100%);
}

.mode-secondary {
    border-color: #FF9800;
}

.mode-secondary:hover {
    border-color: #FF9800;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.05) 0%, white 100%);
}

.mode-tertiary {
    border-color: #2196F3;
}

.mode-tertiary:hover {
    border-color: #2196F3;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, white 100%);
}

.mode-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.mode-icon {
    font-size: 40px;
}

.mode-header h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.mode-tagline {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.mode-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.mode-how {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.mode-how h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mode-how p {
    font-size: 14px;
    color: var(--text-secondary);
}

.mode-screenshot {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.mode-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.mode-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.mode-placeholder small {
    display: block;
    font-size: 12px;
    opacity: 0.7;
}

/* How It Works Section */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.step-visual {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/2;
}

.step-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.step-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.step-placeholder small {
    display: block;
    font-size: 12px;
    opacity: 0.7;
}

.step-connector {
    height: 40px;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary) 0%, transparent 100%);
    margin-left: 78px;
}

/* Download Section */
.download {
    padding: 120px 0;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.download-text h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.download-text > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s;
}

.store-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.store-btn svg {
    flex-shrink: 0;
}

.store-btn div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-btn small {
    font-size: 12px;
    opacity: 0.8;
}

.store-btn span {
    font-size: 16px;
    font-weight: 700;
}

.download-note {
    font-size: 14px;
    color: var(--text-tertiary);
}

.phones-mockup {
    display: flex;
    gap: 24px;
    justify-content: center;
    position: relative;
}

.phone-left, .phone-right {
    width: 200px;
    height: 400px;
    background: #1a1a1a;
    border-radius: 32px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.phone-left {
    transform: rotate(-8deg) translateY(20px);
}

.phone-right {
    transform: rotate(8deg) translateY(-20px);
}

.phones-mockup:hover .phone-left {
    transform: rotate(-4deg) translateY(10px);
}

.phones-mockup:hover .phone-right {
    transform: rotate(4deg) translateY(-10px);
}

.phone-left .phone-img,
.phone-right .phone-img {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    object-fit: cover;
    display: none;
}

.phone-left .phone-placeholder,
.phone-right .phone-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 32px;
    text-align: center;
}

.phone-placeholder small {
    display: block;
    font-size: 10px;
    margin-top: 8px;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
    margin-bottom: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Show images when loaded */
.screenshot-img[src]:not([src=""]),
.mode-img[src]:not([src=""]),
.step-img[src]:not([src=""]),
.phone-img[src]:not([src=""]) {
    display: block;
}

.screenshot-img[src]:not([src=""]) + .screenshot-placeholder,
.mode-img[src]:not([src=""]) + .mode-placeholder,
.step-img[src]:not([src=""]) + .step-placeholder,
.phone-img[src]:not([src=""]) + .phone-placeholder {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        order: -1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modes-grid {
        grid-template-columns: 1fr;
    }

    .download-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .phones-mockup {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .step-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .step-connector {
        margin-left: 20px;
    }

    .download-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
