/* ========================================
   Qouch Potato - Cinematic Landing Page
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Dark Cinematic Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #16161f;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    
    --accent-primary: #e50914;
    --accent-secondary: #ff4757;
    --accent-glow: rgba(229, 9, 20, 0.4);
    
    --gradient-primary: linear-gradient(135deg, #e50914 0%, #ff6b6b 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10,10,15,0) 0%, #0a0a0f 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;
    
    /* Borders */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--accent-glow);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.nav-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(229, 9, 20, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(229, 9, 20, 0.1) 0%, transparent 40%);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-dark);
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 24px;
}

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

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.app-store-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.6;
}

.app-store-badge img {
    height: 44px;
    filter: grayscale(100%);
}

.coming-soon {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-phones {
    position: relative;
    height: 600px;
}

.phone-mockup {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    background: var(--bg-tertiary);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-main {
    position: absolute;
    width: 280px;
    height: 580px;
    right: 40px;
    top: 0;
    z-index: 2;
}

.phone-secondary {
    position: absolute;
    width: 240px;
    height: 500px;
    left: 20px;
    top: 80px;
    z-index: 1;
    opacity: 0.8;
    transform: rotate(-5deg);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: float 3s ease-in-out infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

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

/* Problem Section */
.problem-section {
    padding: var(--section-padding) 24px;
    background: var(--bg-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.problem-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

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

.solution-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.solution-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.solution-intro p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.solution-intro em {
    color: var(--accent-primary);
    font-style: normal;
}

/* Features Section */
.features-section {
    padding: var(--section-padding) 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

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

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

/* Screenshots Section */
.screenshots-section {
    padding: var(--section-padding) 24px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.screenshots-carousel {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshots-carousel::-webkit-scrollbar {
    height: 8px;
}

.screenshots-carousel::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 220px;
    text-align: center;
    scroll-snap-align: start;
}

.phone-frame {
    background: var(--bg-tertiary);
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-frame img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.screenshot-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.screenshot-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* How It Works Section */
.how-it-works-section {
    padding: var(--section-padding) 24px;
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

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

.step-connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    margin-top: 30px;
    flex-shrink: 0;
}

/* Waitlist Section */
.waitlist-section {
    padding: var(--section-padding) 24px;
    background: var(--bg-secondary);
}

.waitlist-card {
    background: 
        radial-gradient(ellipse at 30% 0%, rgba(229, 9, 20, 0.1) 0%, transparent 50%),
        var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.waitlist-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.waitlist-content > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.waitlist-form .form-group {
    display: flex;
    gap: 12px;
}

.waitlist-form input {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.waitlist-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.waitlist-form input::placeholder {
    color: var(--text-muted);
}

.waitlist-form .btn {
    white-space: nowrap;
}

.waitlist-form .btn-loading {
    display: none;
}

.waitlist-form .btn.loading .btn-text {
    display: none;
}

.waitlist-form .btn.loading .btn-loading {
    display: block;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.success-message {
    display: none;
    text-align: center;
    padding: 40px 0;
}

.success-message.show {
    display: block;
}

.success-message .success-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.success-message p {
    color: var(--text-secondary);
}

.waitlist-form.hidden {
    display: none;
}

.waitlist-visual .phone-mockup {
    width: 260px;
    height: 540px;
    margin: 0 auto;
}

/* Footer */
.footer {
    padding: 60px 24px 30px;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-img {
    height: 36px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.footer-logo span {
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-brand > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: white;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    padding: 6px 0;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        align-items: center;
    }
    
    .hero-phones {
        order: 1;
        height: 400px;
        margin-bottom: 40px;
    }
    
    .phone-main {
        width: 220px;
        height: 460px;
        right: 50%;
        transform: translateX(60%);
    }
    
    .phone-secondary {
        width: 180px;
        height: 380px;
        left: 50%;
        transform: translateX(-140%) rotate(-5deg);
    }
    
    .features-grid,
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .waitlist-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .waitlist-visual {
        display: none;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 24px 60px;
    }
    
    .hero-phones {
        height: 300px;
    }
    
    .phone-main {
        width: 180px;
        height: 380px;
    }
    
    .phone-secondary {
        width: 150px;
        height: 320px;
    }
    
    .features-grid,
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 32px;
    }
    
    .step-connector {
        width: 2px;
        height: 40px;
        background: linear-gradient(180deg, var(--accent-primary), transparent);
        margin: 0 auto;
    }
    
    .waitlist-card {
        padding: 40px 24px;
    }
    
    .waitlist-form .form-group {
        flex-direction: column;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Legal Pages */
.legal-page {
    padding: 120px 24px 60px;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.legal-page .last-updated {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-page ul {
    padding-left: 24px;
}

.legal-page a {
    color: var(--accent-primary);
}

.legal-page a:hover {
    text-decoration: underline;
}
