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

:root {
    /* Primary Brand Colors (Blue) */
    --primary: #1B55CC;
    --primary-light: #698FDD;
    --primary-dark: #0D3BA3;
    
    /* Secondary Colors (Matcha Green) */
    --secondary: #759D53;
    --secondary-light: #A4BE8D;
    --secondary-dark: #5A7A3F;
    
    /* Accent Colors */
    --accent-blue: #B4C7EE;
    --accent-mint: #D1DFC6;
    
    /* Grays */
    --gray-50: #F7F7F7;
    --gray-100: #F1F1F1;
    --gray-200: #E6E6E6;
    --gray-300: #D6D6D6;
    --gray-400: #B8B8B8;
    --gray-500: #888888;
    --gray-600: #717171;
    --gray-700: #5A5A5A;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Text Colors */
    --text-primary: #1F2937;
    --text-secondary: #888888;
    --text-tertiary: #B8B8B8;
    
    /* Background */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F7F7;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: none;
    padding: 10px 0;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    height: 50px;
    width: auto;
}

.logo-wordmark {
    margin-left: 10px;
    font-size: 26px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
}

.header-button {
    padding: 6px 14px;
    font-size: 14px;
}

.header-button svg {
    width: 26px;
    height: 26px;
}

.header-button .button-name {
    font-size: 16px;
}

.header-button .button-label {
    font-size: 11px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 112px 0 88px;
    background: var(--bg-primary);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

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

.hero-title {
    font-size: clamp(44px, 9vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.accent-text {
    color: var(--primary);
}

.hero-workout {
    color: var(--primary);
}

.hero-recipe {
    color: var(--secondary);
}

.hero-action {
    color: var(--text-primary);
}

.hero-action-emphasis {
    color: var(--primary);
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
}

.cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* App Store Button */
.app-store-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    background-color: #000000;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    background-color: #000000;
}

.app-store-button svg {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

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

.button-label {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
}

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

/* Feature Sections with Phone Mockups */
.feature-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.feature-section-alt {
    background-color: var(--bg-secondary);
}

.feature-section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-section-center .feature-section-content {
    display: block;
}

.feature-section-center .feature-text {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.feature-section-reverse {
    direction: rtl;
}

.feature-section-reverse > * {
    direction: ltr;
}

.feature-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.feature-section-description {
    font-size: clamp(18px, 2.5vw, 20px);
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-feature {
    width: 280px;
    aspect-ratio: 9 / 18.5;
    position: relative;
}

.phone-frame-feature {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 40px;
    padding: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-screen-feature {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 34px;
    overflow: hidden;
    position: relative;
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.phone-screen-feature.placeholder-empty {
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--gray-300);
}

.phone-screen-feature.placeholder-empty::after {
    content: "Screenshot placeholder";
    color: var(--gray-400);
    font-size: 14px;
    text-align: center;
}

/* Footer */
.footer {
    padding: 40px 0 20px;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.6fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.footer-logo-icon {
    height: 40px;
    width: auto;
}

.footer-logo-wordmark {
    margin-left: 8px;
    font-size: 22px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
}

.footer-center {
    display: flex;
    justify-content: center;
}

.footer-social {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.social-link {
    text-decoration: none;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--gray-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    background-color: var(--bg-primary);
    transition: all 0.2s ease;
}

.social-icon svg,
.social-icon ion-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-right {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-button {
    padding: 12px 24px;
    font-size: 14px;
}

.footer-download {
    padding: 6px 14px;
    font-size: 13px;
}

.footer-download svg {
    width: 26px;
    height: 26px;
}

.footer-button svg {
    width: 36px;
    height: 36px;
}

.try-free-button {
    padding: 14px 32px;
    font-size: 17px;
}

.try-free-button .button-name {
    font-size: 20px;
}

.footer-button .button-name {
    font-size: 16px;
}

.footer-button .button-label {
    font-size: 11px;
}

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

.footer-text {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-section-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .feature-section-reverse {
        direction: ltr;
    }
    
    .phone-mockup-feature {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .sticky-header {
        padding: 12px 0;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .header-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .header-button .button-name {
        font-size: 14px;
    }
    
    .header-button .button-label {
        font-size: 10px;
    }
    
    .hero {
        padding: 92px 0 64px;
    }
    
    .feature-section {
        padding: 80px 0;
    }
    
    .feature-section-content {
        gap: 40px;
    }
    
    .phone-mockup-feature {
        width: 210px;
    }
    
    .phone-frame-feature {
        border-radius: 32px;
        padding: 8px;
    }
    
    .phone-screen-feature {
        border-radius: 24px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-mockups {
        display: none;
    }
    
    .app-store-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .button-label {
        font-size: 11px;
    }
    
    .button-name {
        font-size: 16px;
    }
    
    .footer-content {
        gap: 24px;
    }
    
    .footer-links {
        gap: 12px;
    }
}
