/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    /* Colors from app theme */
    --color-bg-start: #CCE0EF;
    --color-bg-middle: #D6E4EF;
    --color-bg-end: #F2E7D6;
    --color-card-bg: #DFCFB1;
    --color-text-dark: #2C1F1A;
    --color-text-soft: #3D3024;
    --color-button-bg: #EBE0C5;
    --color-primary: #E3A72F;
    --color-white: #FFFFFF;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography - System fonts only */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

html {
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    color: var(--color-text-dark);
    background: linear-gradient(135deg, var(--color-bg-start) 0%, var(--color-bg-middle) 50%, var(--color-bg-end) 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text-soft);
    font-weight: 500;
}

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

.nav-links .cta-button {
    background: var(--color-text-dark);
    color: var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.nav-links .cta-button:hover {
    background: var(--color-primary);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding: calc(var(--spacing-xl) + 60px) 0 var(--spacing-xl) 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, #D68910 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-soft);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.button-primary {
    background: var(--color-text-dark);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.button-primary:hover {
    opacity: 0.9;
}

.button-secondary {
    background: var(--color-white);
    color: var(--color-text-dark);
    border: 2px solid rgba(44, 31, 26, 0.2);
}

.button-secondary:hover {
    border-color: var(--color-text-dark);
}

.hero-note {
    color: var(--color-text-soft);
    font-size: 0.875rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Reserve space to prevent layout shift */
    min-height: 600px;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--color-text-dark);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
    /* Prevent layout shift */
    min-height: 600px;
    flex-shrink: 0;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-start) 0%, var(--color-bg-middle) 50%, var(--color-bg-end) 100%);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.app-preview-carousel picture {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.app-preview-carousel picture.active {
    opacity: 1;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, rgba(227, 167, 47, 0.1) 0%, rgba(214, 228, 239, 0.3) 100%);
}

/* Fallback when image doesn't load */
.app-screenshot::after {
    content: attr(alt);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: var(--color-text-soft);
    font-size: 0.875rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===========================
   Features Section
   =========================== */
.features {
    padding: var(--spacing-xl) 0;
    background: rgba(255, 255, 255, 0.5);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-soft);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-card.featured {
    border: 2px solid var(--color-primary);
}

.feature-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #D68910 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.feature-icon svg {
    color: var(--color-white);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--color-text-soft);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-soft);
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ===========================
   Premium Section
   =========================== */
.premium {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(227, 167, 47, 0.1) 0%, rgba(223, 207, 177, 0.2) 100%);
}

.premium-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-text-dark);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.premium-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.premium-description {
    font-size: 1.125rem;
    color: var(--color-text-soft);
    margin-bottom: var(--spacing-md);
}

.premium-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

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

.premium-feature svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.premium-price {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.price-note {
    color: var(--color-text-soft);
    font-size: 1rem;
}

.premium-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.premium-card {
    width: 320px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #D68910 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
}

.card-glow {
    display: none;
}

.card-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
}

.card-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* ===========================
   Community Section
   =========================== */
.community {
    padding: var(--spacing-xl) 0;
    background: rgba(255, 255, 255, 0.5);
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-text-soft);
    font-size: 1rem;
}

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

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.download-content p {
    font-size: 1.125rem;
    color: var(--color-text-soft);
    margin-bottom: var(--spacing-md);
}

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

.app-store-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.875rem 1.75rem;
    background: var(--color-text-dark);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 200px;
}

.app-store-button:hover {
    opacity: 0.9;
}

.app-store-button.apple {
    background: #000000;
}

.app-store-button.google {
    background: #000000;
}

.app-store-button.google:hover {
    background: #1a1a1a;
}

.download-note {
    margin-top: var(--spacing-sm);
    color: var(--color-text-soft);
    font-size: 0.875rem;
    text-align: center;
}

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

.button-text .small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.button-text .large {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: var(--spacing-lg) 0 var(--spacing-md) 0;
    background: rgba(44, 31, 26, 0.05);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-sm);
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin: 0;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.footer-section p {
    color: var(--color-text-soft);
    font-size: 0.875rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-text-soft);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--color-text-dark);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(227, 167, 47, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(44, 31, 26, 0.1);
}

.footer-bottom p {
    color: var(--color-text-soft);
    font-size: 0.875rem;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .hero-content,
    .premium-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .phone-mockup {
        margin: 0 auto;
    }
    
    .premium-visual {
        margin-top: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 0.9rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .nav-links {
        gap: var(--spacing-sm);
    }
    
    .nav-links a:not(.cta-button) {
        display: none;
    }
    
    .hero {
        padding-top: calc(var(--spacing-lg) + 60px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .app-store-button {
        width: 100%;
        max-width: 300px;
    }
}

