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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo-icon {
    font-size: 32px;
    display: flex;
    align-items: center;
}

.logo-icon img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.language-switcher {
    font-size: 20px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #c7cfef;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #667eea;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* Screenshots Section */
.screenshots {
    background: white;
    padding: 80px 20px;
}

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

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.screenshot {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 1px solid #c3c5cf;
    aspect-ratio: 9/19.5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pricing Section */
.pricing {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.pricing-card {
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    border: 1px solid #c7cfef;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.pricing-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

.plan-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-period {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.pricing-card.featured .plan-features li {
    border-bottom-color: rgba(255,255,255,0.2);
}

.plan-button {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s;
}

.pricing-card.featured .plan-button {
    background: white;
    color: #667eea;
}

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

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 50px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

.footer-bottom img {
    height: 48px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .nav-links {
        gap: 15px;
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

/* Privacy & Terms Pages */
.content-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 50px;
}

.content-page h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #667eea;
}

.content-page h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #333;
}

.content-page p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.content-page ul {
    margin: 15px 0 15px 30px;
    line-height: 1.8;
    color: #555;
}

.last-updated {
    color: #999;
    font-style: italic;
    margin-top: 40px;
}

/* Promotional animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(67, 233, 123, 0);
    }
}

/* Apps Section - Multi-product Homepage */
.apps-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.app-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #c7cfef;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.app-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    border: 1px solid #97a8f1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.app-card-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.offer-badge {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    animation: pulse 2s infinite;
}

.app-card-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.app-card-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.app-card-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.app-feature-item {
    font-size: 14px;
    color: #555;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.app-card-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.price-normal {
    font-size: 32px;
    font-weight: 700;
    color: #62d6f4;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.price-special {
    font-size: 32px;
    font-weight: 700;
    color: #43e97b;
}

.price-period {
    color: #666;
    font-size: 14px;
}

.app-card-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: auto;
}

.app-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Health-themed variations */
.header-health {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-health {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.app-card-health {
    border: 1px solid #c7cfef;
}

.app-card-health .app-card-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.app-card-health .app-card-button:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.featured-health {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Habit/Routinify-themed variations (purple-indigo) */
.header-habit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-habit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.app-card-habit {
    border: 1px solid #c7cfef;
}

.app-card-habit .app-card-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.app-card-habit .app-card-button:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.featured-habit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* App logo in hero */
.app-logo-hero {
    margin-bottom: 30px;
}

.hero-app-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Disclaimer section */
.disclaimer-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.disclaimer-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.disclaimer-box h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 20px;
}

.disclaimer-box p {
    color: #856404;
    line-height: 1.8;
    font-size: 14px;
}

/* Responsive updates for app cards */
@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card-features {
        grid-template-columns: 1fr;
    }
    
    .app-card-icon {
        width: 60px;
        height: 60px;
    }
    
    .hero-app-icon {
        width: 100px;
        height: 100px;
    }
}
