/* 
 * Gods Prism: Mythic Merge - Landing Page Styles
 * Theme: Divine Solemnity with Marble White & Royal Violet
 * Typography: Engraved Stone Serif
 * Graphic Language: Temple Column Borders
 * Motion: Static (No Animation)
 */

/* ==================== CSS Variables ==================== */
:root {
    /* Color Palette - Marble White & Royal Violet */
    --color-primary: #4B0082;           /* Royal Violet */
    --color-primary-dark: #380062;      /* Deeper Violet */
    --color-accent: #6A0DAD;            /* Bright Violet */
    --color-marble-white: #F8F8FF;      /* Ghost White */
    --color-marble-light: #FAFAFA;      /* Almost White */
    --color-text-dark: #2A2433;         /* Deep Purple-Black */
    --color-text-gray: #5A5A5A;         /* Medium Gray */
    --color-border: #E0E0E0;            /* Light Gray Border */
    --color-pillar: #D8D8D8;            /* Column Gray */
    
    /* Typography */
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(75, 0, 130, 0.1);
    --shadow-md: 0 4px 16px rgba(75, 0, 130, 0.15);
    --shadow-lg: 0 8px 24px rgba(75, 0, 130, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-marble-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    letter-spacing: 0.03em;
    line-height: 1.3;
    font-weight: 600;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

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

/* ==================== Header ==================== */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(248, 248, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-border);
    z-index: 1000;
    height: 48px;
}

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

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

.header-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.header-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

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

.nav-link {
    display: none;
    font-size: 15px;
    color: var(--color-text-dark);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    background-color: rgba(75, 0, 130, 0.05);
    text-decoration: none;
}

.cta-button-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
}

.cta-button-mobile:hover {
    background-color: var(--color-primary-dark);
    text-decoration: none;
}

/* Desktop Header */
@media (min-width: 768px) {
    .header {
        height: 64px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .nav-link {
        display: block;
    }
    
    .cta-button-mobile {
        display: none;
    }
}

/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-marble-light);
}

.hero-banner {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    order: 2;
}

.hero-overlay {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-sm);
    order: 1;
    background: linear-gradient(to bottom, rgba(248, 248, 255, 1) 0%, rgba(248, 248, 255, 0.95) 100%);
}

.hero-content {
    max-width: 600px;
    text-align: center;
}

.hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.hero-title {
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-lg);
}

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

/* Desktop Hero */
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        min-height: 600px;
    }
    
    .hero-banner {
        width: 50%;
        height: 100%;
        order: 2;
    }
    
    .hero-overlay {
        width: 50%;
        order: 1;
        padding: var(--spacing-xxl) var(--spacing-xl);
        background: var(--color-marble-white);
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-icon {
        margin: 0 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .download-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* ==================== Download Buttons (Pillar-Framed Style) ==================== */
.download-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    position: relative;
    min-width: 200px;
    min-height: 56px;
    
    /* Pillar-style side borders */
    border-left: 4px solid var(--color-accent);
    border-right: 4px solid var(--color-accent);
}

.download-button:hover {
    background-color: var(--color-primary-dark);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

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

.download-button.google-play {
    background-color: var(--color-primary);
}

.download-button.app-store {
    background-color: #2a2a2a;
    opacity: 0.55;
    filter: grayscale(0.6);
    border-left-color: #555;
    border-right-color: #555;
    position: relative;
}

.download-button.app-store:hover {
    background-color: #2a2a2a;
    box-shadow: var(--shadow-sm);
    transform: none;
}

.store-icon {
    flex-shrink: 0;
}

.button-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.button-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.button-store {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.coming-soon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-text-gray);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Large download buttons variant */
.download-buttons-large .download-button {
    min-width: 240px;
    min-height: 64px;
    padding: 16px 28px;
}

.download-buttons-large .store-icon {
    width: 32px;
    height: 32px;
}

.download-buttons-large .button-label {
    font-size: 12px;
}

.download-buttons-large .button-store {
    font-size: 20px;
}

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

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--color-primary);
}

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

.feature-card {
    padding: var(--spacing-lg);
    background-color: var(--color-marble-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    
    /* Temple column borders on sides */
    border-left: 4px solid var(--color-pillar);
    border-right: 4px solid var(--color-pillar);
}

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

.feature-title {
    font-size: 22px;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.feature-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-gray);
}

/* Desktop Features */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== Download CTA Section ==================== */
.download-cta {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.cta-subtitle {
    font-size: 18px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.download-cta .download-buttons {
    margin-top: var(--spacing-xl);
}

.download-cta .download-button {
    width: 100%;
    max-width: 280px;
}

/* Desktop Download CTA */
@media (min-width: 768px) {
    .cta-title {
        font-size: 48px;
    }
    
    .cta-subtitle {
        font-size: 20px;
    }
    
    .download-cta .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .download-cta .download-button {
        width: auto;
    }
}

/* ==================== About Section ==================== */
.about {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-marble-light);
}

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

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

.contact-info {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--color-border);
    font-size: 16px;
}

.contact-info a {
    font-weight: 600;
}

/* Desktop About */
@media (min-width: 768px) {
    .about-content p {
        font-size: 18px;
    }
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--color-text-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
}

.footer-app-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.02em;
}

.footer-tagline {
    font-size: 14px;
    opacity: 0.8;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact a:hover {
    color: white;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    font-size: 14px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-legal a:hover {
    color: white;
}

.separator {
    opacity: 0.5;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* Desktop Footer */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* ==================== Floating CTA (Mobile Only) ==================== */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: var(--spacing-sm);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.floating-cta.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.floating-cta-button {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    border-left: 4px solid var(--color-accent);
    border-right: 4px solid var(--color-accent);
}

.floating-cta-button:hover {
    background-color: var(--color-primary-dark);
    text-decoration: none;
}

/* Hide floating CTA on desktop */
@media (min-width: 768px) {
    .floating-cta {
        display: none;
    }
}

/* ==================== Accessibility ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
