/* ==============================================
   Skull Riddle:Puzzle Coast - Primal Mystery Theme
   Color Scheme: Bone Beige & Ember Orange
   ============================================== */

/* CSS Variables - Bone Beige & Ember Orange Palette */
:root {
    /* Primary Colors - Bone Beige */
    --bone-light: #E8DCC8;
    --bone-medium: #D4C5A9;
    --bone-dark: #B8A788;
    
    /* Secondary Colors - Ember Orange */
    --ember-bright: #D4805B;
    --ember-medium: #B86F4D;
    --ember-dark: #9A5A3E;
    --ember-glow: #E89572;
    
    /* Accent & Background */
    --accent-fire: #E65C3B;
    --bg-cream: #F5EFE6;
    --bg-white: #FFFFFF;
    --text-dark: #2C1810;
    --text-medium: #5A4A3A;
    
    /* Shadows & Effects */
    --shadow-totem: 0 4px 12px rgba(44, 24, 16, 0.15);
    --shadow-lift: 0 8px 24px rgba(44, 24, 16, 0.2);
    --glow-ember: 0 0 20px rgba(230, 92, 59, 0.3);
}

/* Base Reset & Typography */
* {
    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-dark);
    background-color: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--ember-bright);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--ember-dark);
}

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

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

/* ==============================================
   Sticky Header
   ============================================== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-totem);
    z-index: 1000;
    height: 56px;
}

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

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

.header-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    display: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    display: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-medium);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--ember-bright);
    background-color: var(--bone-light);
}

.cta-button-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--ember-bright);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cta-button-mobile:hover {
    background-color: var(--ember-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

/* ==============================================
   Hero Section - Asymmetric Diagonal Split
   ============================================== */
.hero {
    padding-top: 80px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bone-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 60%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(212, 128, 91, 0.08) 100%);
    transform: skewX(-15deg);
    pointer-events: none;
}

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

.hero-content {
    text-align: center;
    margin-bottom: 40px;
}

.hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 24px;
    box-shadow: var(--shadow-totem);
    animation: tribalPulse 4s ease-in-out infinite;
}

@keyframes tribalPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 12px rgba(44, 24, 16, 0.15), 0 0 0 rgba(230, 92, 59, 0);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 12px 24px rgba(44, 24, 16, 0.25), 0 0 20px rgba(230, 92, 59, 0.3);
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ember-bright);
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-visual {
    max-width: 600px;
    margin: 0 auto;
}

.hero-banner {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lift);
    border: 3px solid var(--bone-medium);
}

/* ==============================================
   Download Buttons - Carved Stone Tablet Style
   ============================================== */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    min-height: 56px;
    background: linear-gradient(135deg, var(--ember-bright) 0%, var(--ember-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-totem), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    text-decoration: none;
}

.download-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.download-button:active:not(:disabled) {
    transform: translateY(-1px);
}

.download-button.app-store {
    background: #2a2a2a;
    opacity: 0.55;
    filter: grayscale(0.6);
    cursor: not-allowed;
}

.download-button.app-store:hover {
    transform: none;
    box-shadow: var(--shadow-totem);
}

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

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

.button-label {
    font-size: 0.6875rem;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.9;
}

.button-store {
    font-size: 1.125rem;
    font-weight: 700;
}

.coming-soon-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--text-medium);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==============================================
   Features Section
   ============================================== */
.features {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--ember-bright), var(--ember-glow));
    margin: 16px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-card {
    background-color: var(--bg-cream);
    border: 2px solid var(--bone-medium);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 24, 16, 0.08);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--ember-bright);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ==============================================
   Download CTA Section
   ============================================== */
.download-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--ember-dark) 0%, var(--ember-bright) 50%, var(--ember-glow) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: emberGlow 8s ease-in-out infinite;
}

@keyframes emberGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 40px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.download-buttons-large {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ==============================================
   Mobile Sticky CTA
   ============================================== */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    box-shadow: 0 -4px 12px rgba(44, 24, 16, 0.15);
    z-index: 999;
    display: block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

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

.sticky-download-button {
    display: block;
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--ember-bright) 0%, var(--ember-dark) 100%);
    color: white;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: var(--shadow-totem);
    transition: all 0.3s ease;
}

.sticky-download-button:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lift);
}

/* ==============================================
   About Section
   ============================================== */
.about {
    padding: 80px 0;
    background-color: var(--bg-cream);
}

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

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.about-contact {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--bone-medium);
}

.about-contact p {
    font-size: 1rem;
    margin-bottom: 0;
}

.about-contact strong {
    color: var(--text-dark);
}

.about-contact a {
    color: var(--ember-bright);
    font-weight: 600;
}

/* ==============================================
   Footer
   ============================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--bone-light);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.footer-app-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.footer-contact a {
    color: var(--bone-light);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--ember-glow);
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--bone-light);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--ember-glow);
}

.separator {
    color: var(--bone-medium);
}

.footer-copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(232, 220, 200, 0.2);
}

.footer-copyright p {
    font-size: 0.875rem;
    color: var(--bone-medium);
}

/* ==============================================
   Responsive Design - Tablet & Desktop
   ============================================== */
@media (min-width: 768px) {
    /* Header */
    .sticky-header {
        height: 64px;
    }
    
    .header-title {
        display: block;
    }
    
    .nav-link {
        display: block;
    }
    
    .cta-button-mobile {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .hero-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }
    
    .hero-content {
        text-align: left;
        margin-bottom: 0;
    }
    
    .hero-icon {
        margin-left: 0;
        width: 120px;
        height: 120px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
        margin-left: 0;
    }
    
    .download-buttons {
        margin-left: 0;
        flex-direction: row;
        max-width: none;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    /* Download CTA */
    .cta-title {
        font-size: 2.75rem;
    }
    
    .download-buttons-large {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }
    
    /* Mobile Sticky CTA - Hide on Desktop */
    .mobile-sticky-cta {
        display: none;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-brand {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Download CTA */
    .cta-title {
        font-size: 3rem;
    }
}
