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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
}

/* Variables based on I Love Apps logo (red heart, white, clean design) */
:root {
    /* Primary red from logo */
    --primary-red: #ef4444;
    --primary-red-light: #f87171;
    --primary-red-dark: #dc2626;
    
    /* Secondary colors */
    --accent-orange: #f97316;
    --accent-blue: #3b82f6;
    
    /* Neutral colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients with I Love Apps colors */
    --gradient-primary: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --gradient-secondary: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    --gradient-mixed: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #3b82f6 100%);
    
    /* Glass effects like iOS 16 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-backdrop: blur(20px);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-red: 0 10px 30px -5px rgb(239 68 68 / 0.3);
    --shadow-orange: 0 10px 30px -5px rgb(249 115 22 / 0.3);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    padding: 0 20px;
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-title {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 120px 20px 100px;
    background: linear-gradient(135deg, #fef2f2 0%, #fef7f7 50%, #f9fafb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    border-radius: 0 0 0 100px;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 550px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    color: var(--primary-red);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.hero-badge i {
    width: 16px;
    height: 16px;
}

.hero-heading {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.hero-brand {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    justify-content: center;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-button-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-red);
}

.hero-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-red);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
}

.hero-graphics {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.floating-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-2 {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 10%;
    animation-delay: 1.5s;
}

.floating-3 {
    width: 45px;
    height: 45px;
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.floating-4 {
    width: 90px;
    height: 90px;
    top: 40%;
    right: 30%;
    animation-delay: 4.5s;
}

.floating-5 {
    width: 35px;
    height: 35px;
    top: 20%;
    right: 60%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.1;
    }
    25% { 
        transform: translateY(-15px) rotate(90deg) scale(1.1); 
        opacity: 0.15;
    }
    50% { 
        transform: translateY(-25px) rotate(180deg) scale(0.9); 
        opacity: 0.08;
    }
    75% { 
        transform: translateY(-10px) rotate(270deg) scale(1.05); 
        opacity: 0.12;
    }
}

.hero-apps {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-app-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.hero-app-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-2xl);
    background: rgba(255, 255, 255, 0.9);
}

.hero-app-textlater {
    animation: floatApp 6s ease-in-out infinite;
}

.hero-app-myrecipe {
    animation: floatApp 6s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes floatApp {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.hero-app-card:hover .hero-app-textlater,
.hero-app-card:hover .hero-app-myrecipe {
    animation-play-state: paused;
}

.app-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: 24px;
    transition: opacity 0.3s ease;
}

.hero-app-card:hover .app-glow {
    opacity: 0.05;
}

.hero-app-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.hero-app-card:hover .hero-app-icon {
    transform: scale(1.1);
}

/* Apps Section */
.apps {
    padding: 100px 20px;
    background: white;
}

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

.apps-header {
    text-align: center;
    margin-bottom: 80px;
}

.apps-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.apps-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

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

.app-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-radius: 32px;
    padding: 50px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    background: rgba(255, 255, 255, 0.9);
}

.app-background-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.app-card:hover .app-background-glow {
    opacity: 1;
}

.app-textlater .app-background-glow {
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.app-myrecipe .app-background-glow {
    background: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
}

.app-status {
    margin-bottom: 24px;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
}

.status-live {
    color: #059669;
}

.status-dev {
    color: var(--accent-orange);
}

.app-icon-wrapper {
    margin-bottom: 24px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1);
}

.app-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.app-tagline {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 16px;
    font-weight: 500;
    font-style: italic;
}

.app-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 15px;
}

.app-progress {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-secondary);
    transition: width 0.8s ease;
    border-radius: 4px;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.feature {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.app-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
}

.stat-label {
    font-size: 12px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.app-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-red);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-red);
}

/* CTA Section */
.cta {
    padding: 100px 20px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    color: var(--primary-red);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2xl);
    background: white;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 80px 20px 40px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--gray-300);
    font-size: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
}

.footer-column a {
    display: block;
    color: var(--gray-300);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-400);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 100px 20px 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-heading {
        font-size: 38px;
    }
    
    .hero-visual {
        order: 1;
        height: 300px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-stats .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        flex-direction: row;
    }
    
    .hero-stats .stat-number {
        font-size: 24px;
        order: 1;
    }
    
    .hero-stats .stat-label {
        order: 2;
        text-align: right;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card {
        padding: 30px;
    }
    
    .app-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .floating-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 32px;
    }
    
    .apps-title {
        font-size: 32px;
    }
    
    .app-card {
        padding: 24px;
    }
    
    .hero-apps {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-app-card {
        width: 120px;
        height: 120px;
    }
    
    .hero-app-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-number {
        font-size: 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
.btn:focus,
.hero-button:focus,
.cta-button:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-secondary: #000;
    }
}
