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

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #0F9D58;
    --accent-dark: #0a7e46;
    --accent-orange: #FF6B35;
    --card-bg: #1a1a1a;
    --border-color: #2a2a2a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

.logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: block;
    object-fit: contain;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-download-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: black;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.google-play-icon {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.logo-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: block;
    object-fit: contain;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-download-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: black;
    padding: 1rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3);
}

.app-store-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.badge-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.badge-icon {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.phone-frame {
    background: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-screen {
    background: #0a0a0a;
    border-radius: 30px;
    padding: 1.5rem;
    min-height: 700px;
    overflow: hidden;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.status-icons {
    display: flex;
    gap: 0.5rem;
}

.app-content {
    animation: fadeInUp 0.8s ease-out;
}

.date-header {
    margin-bottom: 2rem;
}

.date-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.date-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.habit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.habit-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
}

.habit-card:hover {
    transform: scale(1.05);
}

.habit-card.completed {
    background: linear-gradient(135deg, #0F9D58 0%, #4285F4 100%);
}

.habit-icon {
    font-size: 1.5rem;
}

.habit-count {
    font-size: 1.25rem;
    font-weight: 600;
}

.habit-name {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s;
}

.action-card:hover {
    transform: translateX(5px);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.action-details {
    display: flex;
    flex-direction: column;
}

.action-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.action-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.features-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    border-radius: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.separator {
    color: var(--text-secondary);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* App Screenshot */
.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

/* Placeholder for missing screenshot */
.phone-screen:not(:has(.app-screenshot[src*="."])) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.phone-screen:not(:has(.app-screenshot[src*="."])):before {
    content: "Add your app screenshot to assets/app-screenshot.png";
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* Google Play Badge */
.google-play-badge-link {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.google-play-badge-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.google-play-badge {
    height: 60px;
    width: auto;
    display: block;
}

/* Navigation Google Play Badge */
.google-play-badge-link-nav {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.google-play-badge-link-nav:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.google-play-badge-nav {
    height: 40px;
    width: auto;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .logo-large {
        margin: 0 auto 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup {
        max-width: 300px;
    }
    
    .btn-download-nav {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .nav-brand .brand-name {
        display: none;
    }
}