/* ========================================
   AiPixo Landing Page Styles
   ======================================== */

/* CSS Variables */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-glow: rgba(245, 158, 11, 0.3);
    --border: #262626;
    --gradient-start: #f59e0b;
    --gradient-end: #ea580c;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.logo-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--accent-glow);
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-xl);
}

/* ========================================
   Hero Section - Compact for Above the Fold
   ======================================== */
.hero {
    padding: 140px 0 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.4;
}

.hero-text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 40px;
}

.hero-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   Gallery Section (Animated Carousel) - Above the Fold
   ======================================== */
.gallery {
    padding: 20px 0 40px;
    overflow: hidden;
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 150px;
    background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

.gallery::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 150px;
    background: linear-gradient(270deg, var(--bg-dark) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

.gallery-track {
    display: flex;
    margin-bottom: 16px;
}

.gallery-track-1 {
    animation: scroll-right 40s linear infinite;
}

.gallery-track-2 {
    animation: scroll-left 40s linear infinite;
}

.gallery-slides {
    display: flex;
    gap: 16px;
    padding-right: 16px;
}

.gallery-item {
    flex-shrink: 0;
    width: 220px;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 100px 0;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

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

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(var(--accent), 0.1);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(234, 88, 12, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.feature-card:nth-child(2) .feature-icon {
    color: #ec4899;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(219, 39, 119, 0.1));
}

.feature-card:nth-child(3) .feature-icon {
    color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.1));
}

.feature-card:nth-child(4) .feature-icon {
    color: #6b7280;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.1), rgba(75, 85, 99, 0.1));
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-card);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--bg-dark);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.step-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: 80px 0;
}

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

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--accent);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    color: var(--accent);
    font-weight: 600;
}

.author-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(234, 88, 12, 0.05));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Download Section
   ======================================== */
.download {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.3;
}

.download-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.download-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.5;
}

.download-buttons-with-qr {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.store-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qr-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-image {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    padding: 10px;
    background: var(--bg-card);
}

.download-image {
    position: relative;
    z-index: 1;
}

.download-phone {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    filter: drop-shadow(0 40px 100px rgba(0, 0, 0, 0.6));
    transform: scale(1.15);
    transform-origin: center center;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

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

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 0.95rem;
}

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

.footer-column h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    .hero {
        padding: 120px 0 0;
    }

    .hero-phones {
        max-width: 700px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 110px 0 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .gallery-item {
        width: 160px;
        height: 220px;
    }

    .gallery::before,
    .gallery::after {
        width: 80px;
    }

    .app-showcase {
        padding: 40px 0 60px;
    }

    .hero-phones {
        max-width: 100%;
    }

    .features, .how-it-works {
        padding: 60px 0;
    }

    .download {
        padding: 80px 0;
    }

    .download-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-buttons-with-qr {
        justify-content: center;
    }

    .download-image {
        order: -1;
    }

    .download-phone {
        width: 100%;
        max-width: none;
        transform: scale(1.1);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 0;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        margin-bottom: 24px;
    }

    .gallery-item {
        width: 140px;
        height: 190px;
    }

    .gallery::before,
    .gallery::after {
        width: 40px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 24px;
    }

    .download-buttons-with-qr {
        flex-direction: column;
        align-items: center;
    }

    .store-column {
        width: 100%;
        max-width: 220px;
    }

    .store-badge {
        width: 100%;
        justify-content: center;
    }

    .qr-code-item {
        display: none;
    }

    .download-phone {
        width: 100%;
        transform: scale(1);
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
