:root {
    /* Dream Theme Colors from the app */
    --primary-dark: #0D0D1A;
    --primary-medium: #1A1A2E;
    --primary-light: #232342;
    --accent-purple: #9D4EDD;
    --accent-purple-light: #B57BFF;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 26, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-purple);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(157, 78, 221, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-purple);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(157, 78, 221, 0.4);
}

.btn-primary:hover {
    background: var(--accent-purple-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(157, 78, 221, 0.5);
}

.btn-primary img {
    width: 24px;
    height: 24px;
}

/* Screenshots Carousel */
.hero-screenshots {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.screenshot-stack {
    position: relative;
    width: 280px;
    height: 560px;
}

.screenshot-stack img {
    position: absolute;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

.screenshot-stack img:nth-child(1) {
    transform: translateX(-20px) rotateY(5deg);
    z-index: 3;
}

.screenshot-stack img:nth-child(2) {
    transform: translateX(20px) rotateY(-5deg) scale(0.95);
    z-index: 2;
    opacity: 0.8;
}

.screenshot-stack img:nth-child(3) {
    transform: translateX(60px) rotateY(-10deg) scale(0.9);
    z-index: 1;
    opacity: 0.6;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--primary-medium);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-title span {
    color: var(--accent-purple);
}

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

.feature-card {
    background: var(--primary-light);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(157, 78, 221, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 40px rgba(157, 78, 221, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Screenshots Gallery */
.gallery {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
}

.gallery-scroll {
    max-width: 100%;
    overflow-x: auto;
    padding: 2rem 0;
    display: flex;
    gap: 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: var(--primary-light);
    border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 4px;
}

.gallery-scroll img {
    flex-shrink: 0;
    width: 250px;
    border-radius: 16px;
    scroll-snap-align: start;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.gallery-scroll img:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(157, 78, 221, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand img {
    width: 60px;
    height: 60px;
    border-radius: 15px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-purple);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--accent-purple);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-screenshots {
        order: -1;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .screenshot-stack {
        width: 220px;
        height: 440px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Made with love */
.made-with-love {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.made-with-love span {
    color: var(--accent-purple);
}
