/* ===== Variables ===== */
:root {
    --bg-primary: #FAF0F8;
    --bg-dark: #1A1A1A;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --accent-purple: #8B5CF6;
    --accent-green: #2DA264;
    --accent-pink: #F6E3F2;
    --white: #FFFFFF;
    --border-light: rgba(26, 26, 26, 0.1);
    
    --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(180deg, #F6E3F2 0%, var(--bg-primary) 30%, var(--bg-primary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(250, 240, 248, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.btn-nav {
    background: var(--bg-dark);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.6;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-dark);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Hero Visual - Swipe Demo */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 400px;
}

.swipe-demo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Swipe indicators */
.swipe-indicator {
    position: absolute;
    font-size: 28px;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 8px;
    background: white;
    border: 4px solid;
    opacity: 0;
    z-index: 20;
}

.push-indicator {
    color: #2DA264;
    border-color: #2DA264;
    left: -80px;
    top: 20px;
    transform: rotate(-15deg);
    animation: pushPulse 3s ease-in-out infinite;
}

.skip-indicator {
    color: #A3342E;
    border-color: #A3342E;
    right: -80px;
    top: 20px;
    transform: rotate(15deg);
    animation: skipPulse 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes pushPulse {
    0%, 30%, 100% { opacity: 0; }
    10%, 20% { opacity: 1; }
}

@keyframes skipPulse {
    0%, 30%, 100% { opacity: 0; }
    10%, 20% { opacity: 1; }
}

/* Demo Card */
.demo-card {
    width: 220px;
    background: white;
    border-radius: 20px;
    border: 2.5px solid #3F0633;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: cardSwipe 3s ease-in-out infinite;
}

@keyframes cardSwipe {
    0%, 30% { transform: rotate(0deg) translateX(0); }
    10%, 15% { transform: rotate(8deg) translateX(40px); }
    20%, 25% { transform: rotate(0deg) translateX(0); }
    60%, 80% { transform: rotate(0deg) translateX(0); }
    65%, 70% { transform: rotate(-8deg) translateX(-40px); }
    75% { transform: rotate(0deg) translateX(0); }
}

.demo-card-header {
    height: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2));
    padding: 12px;
}

.demo-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: white;
    color: #6366F1;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 20px;
}

.demo-card-badge svg {
    width: 12px;
    height: 12px;
}

.demo-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 160px;
}

.demo-card-content h3 {
    font-size: 16px;
    font-weight: 900;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.demo-card-content p {
    font-size: 13px;
    color: #6B6B6B;
    line-height: 1.4;
    flex: 1;
}

.demo-card-source {
    font-size: 11px;
    color: #9E9E9E;
    margin-top: auto;
}

/* ===== Features Section ===== */
.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* ===== Categories Section ===== */
.categories {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.05));
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.category-badge {
    background: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    border: 2px solid var(--cat-color);
    color: var(--cat-color);
    transition: transform 0.2s;
}

.category-badge:hover {
    transform: scale(1.05);
}

/* ===== Download Section ===== */
.download {
    padding: 8rem 2rem;
    text-align: center;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
}

.download h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--white);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
        min-height: auto;
        padding-bottom: 4rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        min-height: 350px;
    }
    
    .demo-card {
        width: 200px;
    }
    
    .demo-card-header {
        height: 80px;
    }
    
    .demo-card-content {
        min-height: 140px;
        padding: 12px;
    }
    
    .swipe-indicator {
        font-size: 20px;
        padding: 6px 12px;
    }
    
    .push-indicator {
        left: -60px;
    }
    
    .skip-indicator {
        right: -60px;
    }
}

@media (max-width: 600px) {
    .nav-links a:not(.btn-nav) {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

