/* Wasteland Pop: Corrosion - Industrial Grit Theme */
/* Color Scheme: Rust & Steel */

:root {
    /* Primary Rust Colors */
    --rust-orange: #D2691E;
    --rust-deep: #CD7F32;
    --rust-light: #E8956C;
    
    /* Steel Grays */
    --steel-dark: #4A4A4A;
    --steel-medium: #708090;
    --steel-light: #A9A9A9;
    
    /* Oxidized Accents */
    --oxidized-green: #5E7A63;
    --oxidized-teal: #4A7C7E;
    
    /* Backgrounds */
    --bg-dark: #2B2520;
    --bg-medium: #3A3A3A;
    --bg-light: #F5F0EB;
    --bg-rust-gradient: linear-gradient(135deg, var(--rust-deep) 0%, var(--rust-orange) 50%, var(--steel-medium) 100%);
    
    /* Text */
    --text-primary: #2B2520;
    --text-secondary: #4A4A4A;
    --text-light: #FFFFFF;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(43, 37, 32, 0.95) 100%);
    border-bottom: 3px solid var(--rust-orange);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 2px solid var(--rust-orange);
    box-shadow: 0 0 12px rgba(210, 105, 30, 0.4);
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.01em;
}

.header-nav {
    display: none;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--steel-light);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--rust-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rust-orange);
    transition: width var(--transition-normal);
}

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

.nav-cta {
    background: var(--rust-orange);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--rust-deep);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(210, 105, 30, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.5);
    background: var(--rust-deep);
}

/* Hero Section */
.hero {
    margin-top: 64px;
    background: linear-gradient(135deg, #3A3A3A 0%, #2B2520 50%, #4A4A4A 100%);
    padding: var(--spacing-xl) var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(210, 105, 30, 0.03) 2px,
        rgba(210, 105, 30, 0.03) 4px
    );
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    border-radius: 24px;
    border: 4px solid var(--rust-orange);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 40px rgba(210, 105, 30, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

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

.hero-title {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-size: 36px;
}

.hero-subtitle {
    color: var(--rust-light);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    color: var(--steel-light);
    font-size: 16px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--bg-dark);
    border: 2.5px solid var(--rust-orange);
    border-radius: var(--radius-lg);
    min-height: 56px;
    width: 100%;
    max-width: 280px;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(210, 105, 30, 0.1);
}

.download-btn.google-play {
    background: var(--bg-dark);
    color: var(--text-light);
}

.download-btn.google-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4), inset 0 0 30px rgba(210, 105, 30, 0.2);
    border-color: var(--rust-deep);
}

.download-btn.app-store {
    background: #2a2a2a;
    color: var(--steel-light);
    opacity: 0.55;
    filter: grayscale(0.6);
    cursor: not-allowed;
    border-color: var(--steel-medium);
}

.download-btn.app-store .coming-soon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--steel-medium);
    color: var(--text-light);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.store-name {
    font-size: 18px;
    font-weight: 600;
}

.hero-visual {
    margin-top: var(--spacing-lg);
}

.hero-banner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 3px solid var(--rust-orange);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Features Section */
.features {
    padding: var(--spacing-xl) var(--spacing-sm);
    background: var(--bg-light);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--rust-orange);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.feature-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F0EB 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 2px solid var(--steel-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(210, 105, 30, 0.2);
    border-color: var(--rust-orange);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
    transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Download CTA Section */
.download-cta {
    padding: var(--spacing-xl) var(--spacing-sm);
    background: var(--bg-rust-gradient);
    position: relative;
    overflow: hidden;
}

.download-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.05) 10px,
        rgba(0, 0, 0, 0.05) 20px
    );
    pointer-events: none;
}

.download-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-cta-title {
    color: var(--text-light);
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.download-cta-subtitle {
    color: var(--steel-light);
    font-size: 18px;
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.download-buttons-large {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.download-btn-large {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 32px;
    background: var(--bg-dark);
    border: 3px solid var(--rust-orange);
    border-radius: var(--radius-lg);
    min-height: 72px;
    width: 100%;
    max-width: 320px;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(210, 105, 30, 0.15);
}

.download-btn-large.google-play {
    background: var(--bg-dark);
    color: var(--text-light);
}

.download-btn-large.google-play:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(210, 105, 30, 0.5), inset 0 0 40px rgba(210, 105, 30, 0.25);
}

.download-btn-large.app-store {
    background: #2a2a2a;
    color: var(--steel-light);
    opacity: 0.55;
    filter: grayscale(0.6);
    cursor: not-allowed;
    border-color: var(--steel-medium);
}

.download-btn-large.app-store .coming-soon-badge-large {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--steel-medium);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-icon-large {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.store-text-large {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-label-large {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.store-name-large {
    font-size: 22px;
    font-weight: 700;
}

/* About Section */
.about {
    padding: var(--spacing-xl) var(--spacing-sm);
    background: var(--bg-light);
}

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

.about-content {
    margin-top: var(--spacing-lg);
}

.about-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-contact {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F0EB 100%);
    border-left: 4px solid var(--rust-orange);
    border-radius: var(--radius-md);
}

.about-contact a {
    color: var(--rust-orange);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.about-contact a:hover {
    color: var(--rust-deep);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: var(--spacing-lg) var(--spacing-sm);
    border-top: 3px solid var(--rust-orange);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: var(--spacing-md);
}

.footer-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    border: 2px solid var(--rust-orange);
}

.footer-title {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    color: var(--steel-light);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--rust-orange);
}

.footer-contact {
    margin-bottom: var(--spacing-md);
}

.footer-contact p {
    color: var(--steel-light);
    font-size: 14px;
}

.footer-contact a {
    color: var(--rust-light);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--rust-orange);
}

.footer-copyright {
    color: var(--steel-medium);
    font-size: 13px;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--steel-dark);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-dark) 20%, var(--bg-dark) 100%);
    padding: var(--spacing-sm);
    z-index: 999;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    border-top: 2px solid var(--rust-orange);
}

.mobile-sticky-cta.visible {
    transform: translateY(0);
}

.mobile-cta-btn {
    display: block;
    width: 100%;
    background: var(--rust-orange);
    color: var(--text-light);
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--rust-deep);
    box-shadow: 0 4px 16px rgba(210, 105, 30, 0.4);
    transition: all var(--transition-fast);
}

.mobile-cta-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(210, 105, 30, 0.3);
}

/* Tablet Styles */
@media (min-width: 768px) {
    h1 {
        font-size: 48px;
    }
    
    h2 {
        font-size: 36px;
    }
    
    .header-nav {
        display: flex;
    }
    
    .hero {
        padding: 80px var(--spacing-md);
    }
    
    .hero-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
        align-items: center;
    }
    
    .hero-content {
        text-align: left;
        margin-bottom: 0;
    }
    
    .hero-icon {
        margin: 0 0 var(--spacing-md) 0;
    }
    
    .hero-description {
        margin: 0 0 var(--spacing-lg) 0;
    }
    
    .download-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .download-buttons-large {
        flex-direction: row;
        justify-content: center;
    }
    
    .mobile-sticky-cta {
        display: none;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero {
        padding: 100px var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .download-cta-title {
        font-size: 40px;
    }
}
