/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - WallStreetClash App Theme */
    --primary: #33B34D; /* wscGreen: rgb(51, 179, 77) */
    --primary-dark: #2A9A40;
    --primary-light: #4CC565;
    --secondary: #FFCC33; /* wscGold */
    --accent: #FFCC33;
    --success: #33B34D; /* Green for gains */
    --danger: #CC3333; /* Red for losses */
    --text-primary: #FFFFFF;
    --text-secondary: #999999;
    --bg-dark: #1A1A1A; /* wscBlack: rgb(26, 26, 26) */
    --bg-darker: #0D0D0D; /* Darker black */
    --bg-card: #1F1F1F;
    --bg-card-hover: #2A2A2A;
    --border: rgba(51, 179, 77, 0.2);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #33B34D 0%, #2A9A40 100%);
    --gradient-secondary: linear-gradient(135deg, #CC3333 0%, #993333 100%);
    --gradient-accent: linear-gradient(135deg, #FFCC33 0%, #FFB800 100%);
    --gradient-hero: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 50%, #0D0D0D 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 4rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(51, 179, 77, 0.3);
    --shadow-glow-strong: 0 0 30px rgba(51, 179, 77, 0.5);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.logo h1 {
    font-size: var(--font-size-xl);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-clash {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-download-nav {
    background: var(--gradient-primary);
    color: var(--text-primary) !important;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 8px;
    font-weight: 600;
}

.btn-download-nav::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* Hero Avatars */
.hero-avatars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-avatar {
    position: absolute;
    width: auto;
    height: 500px;
    opacity: 0.6;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.hero-avatar-left {
    left: -50px;
    bottom: 10%;
    animation-delay: 0s;
}

.hero-avatar-right {
    right: -50px;
    bottom: 10%;
    animation-delay: 3s;
}

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

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    opacity: 0.8;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(51, 179, 77, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(51, 179, 77, 0.1) 0%, transparent 50%);
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.hero-title {
    font-size: clamp(var(--font-size-4xl), 8vw, var(--font-size-6xl));
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -2px;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

.title-line.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
}

.hero-app-store-badge {
    display: inline-block;
}

.hero-app-store-badge .app-store-badge-img {
    height: 70px;
    width: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-lg);
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(51, 179, 77, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

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

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
}

/* Rank Icons */
.rank-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.rank-icon-small {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.rank-card .rank-icon {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.rank-card.rank-legendary .rank-icon {
    filter: drop-shadow(0 4px 12px rgba(255, 204, 51, 0.4));
}

/* Ensure images load properly */
.rank-card img {
    max-width: 100%;
    height: auto;
}

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

/* Section Styles */
section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
}

/* Features Section */
.features {
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--spacing-xl);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
    background: var(--bg-darker);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    align-items: flex-start;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    box-shadow: var(--shadow-glow);
}

.step-content h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.step-content p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    line-height: 1.7;
}

/* Ranks Section */
.ranks {
    background: var(--bg-dark);
}

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.rank-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-base);
}

.rank-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.rank-card.rank-legendary {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
}

.rank-card.rank-legendary:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.rank-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.rank-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.rank-points {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.rank-capital {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Download Section */
.download {
    background: var(--bg-darker);
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.download-content h2 {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.download-content > p {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.btn-app-store-badge {
    display: inline-block;
    text-decoration: none;
    transition: var(--transition-base);
    line-height: 0;
}

.btn-app-store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-store-badge-img {
    height: 60px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.app-store-badge-img:hover {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* Legacy styles for backward compatibility */
.btn-app-store {
    background: #000;
    color: #fff;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.btn-app-store:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-app-store svg {
    width: 32px;
    height: 32px;
}

.btn-label {
    font-size: var(--font-size-xs);
    line-height: 1;
}

.btn-text {
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: 1;
}

.download-note {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.footer-section h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
}

.disclaimer {
    font-size: var(--font-size-xs) !important;
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
    
    .hero-avatar {
        height: 300px;
        opacity: 0.4;
    }
    
    .hero-avatar-left {
        left: -100px;
    }
    
    .hero-avatar-right {
        right: -100px;
    }
    
    .features-grid,
    .ranks-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-avatar {
        height: 200px;
        opacity: 0.3;
    }
    
    .hero-avatar-left {
        left: -80px;
    }
    
    .hero-avatar-right {
        right: -80px;
    }
}
