:root {
    --primary: #FF6F61;
    --primary-hover: #ff8a7f;
    --bg: #050505;
    --bg-alt: #121212;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --border: #333;
    --radius: 12px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* Utilities */
.container {
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.coral-text { color: var(--primary); }

/* Navigation */
.navbar {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
}
.logo-img { height: 32px; width: auto; border-radius: 6px; }

.btn-primary-sm {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0 2rem;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
}
.hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.app-store-btn {
    display: inline-block;
    width: 160px;
    height: 54px;
    background: url('assets/app-store-badge.svg') no-repeat center center;
    background-size: contain;
    text-indent: -9999px;
    border-radius: 8px; /* Slight radius for the badge interaction */
}

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

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

/* Hero Marquee - Infinite Scroll */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-marquee {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.hero-marquee:hover .marquee-track {
    animation-play-state: paused;
}

.hero-visual {
    margin-top: 2rem;
    position: relative;
}

/* Scroll Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}
.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Enhanced Cards (Glassmorphism) */
.feature-card, .category-card {
    background: rgba(255, 255, 255, 0.03); /* Subtle glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.feature-card:hover, .category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 111, 97, 0.15); /* Coral glow on hover */
    border-color: var(--primary);
}

.category-card img {
    transition: transform 0.6s ease;
}
.category-card:hover img {
    transform: scale(1.1);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: var(--bg-alt);
}
.features-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.feature-card {
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}
.feature-card h3 {
    margin-top: 0.75rem;
    font-size: 1.1rem;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Comparison Slider */
.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    cursor: ew-resize;
    /* Checkered background for transparent images */
    background: repeating-conic-gradient(#808080 0% 25%, #c0c0c0 0% 50%) 50% / 20px 20px;
}
.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-after {
    z-index: 1; /* Base layer - the result */
}
.img-before {
    z-index: 2; /* Top layer - gets clipped away */
    clip-path: inset(0 50% 0 0); /* Clip from RIGHT - reveals after on right side */
    will-change: clip-path;
}
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: white;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.slider-handle::after {
    content: '< >';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}
.slider-label {
    position: absolute;
    top: 10px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 10px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 20;
}
.label-before { left: 10px; }
.label-after { right: 10px; }

/* AI Categories Section */
.category-section {
    padding: 4rem 0;
    background-color: var(--bg);
}
.category-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 9/16;
    cursor: pointer;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.6s ease;
}
.category-card img.active {
    opacity: 1;
    z-index: 1;
}
.category-card:hover img.active {
    transform: scale(1.05);
}
.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem;
    padding-top: 3rem;
    z-index: 2;
}
.category-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Phone Mockup in Hero */
.phone-mockup img {
    max-width: 250px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Download Button */
.download-btn {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}
.download-btn:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Responsive: Tablet */
@media (min-width: 768px) {
    .hero-content {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 2rem;
    }
    .hero-text { flex: 1; }
    .hero-visual { flex: 1; margin-top: 0; }
    .hero-sub { margin-left: 0; margin-right: 0; }
    .hero h1 { font-size: 3rem; }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr); /* Bigger cards on tablet */
    }
    .phone-mockup img { max-width: 300px; }
}

/* Responsive: Desktop */
@media (min-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr); /* Bigger cards on desktop */
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr); /* Still bigger than before */
    }
}
