: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: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.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 */
/* About Section */
.about-section {
    padding: 4rem 0;
    background: var(--bg);
}

.about-box {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 111, 97, 0.2);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.about-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.about-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.purpose-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.purpose-tags span {
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.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;
}

/* AI Experiences Section (Square Cards) */
.experiences-section {
    padding: 4rem 0;
    background-color: var(--bg-alt);
}
.experiences-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}
.experience-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile for bigger images */
    gap: 1.5rem;
    margin: 0 auto;
}
.experience-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1/1; /* Square aspect ratio */
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    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;
}
.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 111, 97, 0.15);
    border-color: var(--primary);
}
.experience-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;
}
.experience-card img.active {
    opacity: 1;
    z-index: 1;
}
.experience-card:hover img.active {
    transform: scale(1.05);
}
/* Reusing overlay styles from category-card */
.experience-card .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;
}

/* 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 */
    }
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .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 */
    }
    .experience-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 cards side-by-side */
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr); /* Still bigger than before */
    }
    /* Experience grid stays 2 columns (from desktop/tablet) to remain large */
}
/* AI Composer Section */
.composer-section {
    padding: 6rem 0;
    background-color: var(--bg);
}

.horizon-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.composer-info {
    flex: 1;
    max-width: 600px;
}

.composer-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.composer-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.composer-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.glow-image {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 111, 97, 0.2);
    border: 1px solid rgba(255, 111, 97, 0.3);
}

/* iOS-style Prompt Box */
.ios-prompt-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-left: 4px solid var(--primary);
}

.prompt-placeholder {
    display: block;
    color: #eee;
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    line-height: 1.5;
    font-style: italic;
}

.generate-button-mock {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* AI Remix Section */
.remix-section {
    padding: 6rem 0;
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* AI Remix Section */
.remix-section {
    padding: 6rem 0;
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.remix-chain {
    display: flex;
    flex-direction: column; /* Mobile-first: vertical stack */
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2rem 1rem 3rem;
}

.remix-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.remix-step-label {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    letter-spacing: 0.05em;
}

.card-remix {
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.remix-badge {
    margin-top: 1.5rem;
    background: rgba(255, 111, 97, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-style: italic;
    white-space: nowrap;
}

.remix-connector {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0; /* Vertical padding for mobile */
}

.connector-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

/* Responsive adjustments for new sections */
@media (min-width: 768px) {
    .horizon-layout {
        flex-direction: row;
        text-align: left;
    }

    .remix-chain {
        flex-direction: row; /* Horizontal on tablet/desktop */
        align-items: flex-start;
    }

    .remix-card {
        max-width: 350px;
    }

    .remix-connector {
        padding: 10rem 0.5rem 0; /* Align with middle of the card */
    }

    .connector-line {
        width: 50px;
        height: 2px;
        background: linear-gradient(to right, var(--primary), transparent);
    }
}

/* Tablet & Desktop spacing */
@media (min-width: 1024px) {
    .composer-section, .remix-section {
        padding: 8rem 0;
    }
    
    .composer-info h2, .section-header h2 {
        font-size: 3rem;
    }

    .remix-card {
        max-width: 400px;
    }

    .connector-line {
        width: 60px;
    }
}
