/* ==========================================
   AnimeAvatar - Styles
   Target: Gen Z Instagram users
   Aesthetic: Vibrant, playful, premium
========================================== */

/* CSS Variables */
:root {
    /* Colors - Vibrant & Gen Z friendly */
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --secondary: #EC4899;
    --accent: #F59E0B;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-card: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);

    /* Neutrals */
    --bg-dark: #0f0f23;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252545;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

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

.nav-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--space-md) var(--space-2xl);
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    margin-bottom: var(--space-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

/* Showcase */
.showcase {
    margin-bottom: var(--space-xl);
}

.showcase-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.before-after {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.ba-image {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anime-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: white;
}

.anime-emoji {
    font-size: 2rem;
}

.ba-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

.ba-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    animation: arrowMove 1s infinite;
}

@keyframes arrowMove {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* Hero CTA */
.hero-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    margin-bottom: var(--space-xl);
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.5);
}

.cta-price {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

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

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

/* Section Titles */
.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: 1.05rem;
}

/* Styles Section */
.styles {
    padding: var(--space-2xl) 0;
    position: relative;
    z-index: 1;
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .styles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.style-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.style-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.style-preview {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    margin: 0 auto var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-preview.ghibli {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.style-preview.gaming {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.style-preview.manga {
    background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%);
}

.style-preview.cyberpunk {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.style-preview.royal {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.style-preview.demon {
    background: linear-gradient(135deg, #1a1a2e 0%, #e94560 100%);
}

.style-preview.kawaii {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.style-preview.ninja {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
}

/* New Fun Styles */
.style-preview.chibi {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff9a9e 100%);
}

.style-preview.couple {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #ff9a9e 100%);
}

.style-preview.maincharacter {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #ffd200 100%);
}

/* Professional Styles */
.style-preview.linkedin {
    background: linear-gradient(135deg, #0077B5 0%, #00a0dc 100%);
}

.style-preview.corporate {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.style-preview.passport {
    background: linear-gradient(135deg, #e8e8e8 0%, #ffffff 50%, #f5f5f5 100%);
}

.style-preview.academic {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
}

/* Professional Section Styling */
.professional-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.professional-grid {
    max-width: 800px;
}

/* PRO Badge */
.pro-card {
    position: relative;
}

.pro-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #0077B5, #00a0dc);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-card:hover .pro-badge {
    background: linear-gradient(135deg, #00a0dc, #0077B5);
}

.style-emoji {
    font-size: 2.5rem;
}

.style-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.style-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* How It Works */
.how-it-works {
    padding: var(--space-2xl) 0;
    background: var(--bg-card);
    position: relative;
    z-index: 1;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-md);
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    font-weight: 700;
    font-size: 0.9rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.step-arrow {
    color: var(--primary);
    font-size: 1.5rem;
    align-self: center;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .step-arrow {
        display: none;
    }
}

/* Upload Section */
.upload-section {
    padding: var(--space-2xl) 0;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.upload-box {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px dashed rgba(139, 92, 246, 0.5);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover,
.upload-box.dragover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.upload-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.upload-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.preview-section {
    max-width: 300px;
    margin: var(--space-lg) auto 0;
    text-align: center;
}

.preview-image {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 auto var(--space-md);
    border: 3px solid var(--primary);
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.change-photo {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-photo:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   SIDE-BY-SIDE COMPARISON SECTION
   ============================================ */

.comparison-section {
    max-width: 800px;
    margin: 0 auto;
}

.comparison-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.comparison-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 0 0 auto;
    width: 320px;
}

.comparison-card.original {
    border-color: rgba(139, 92, 246, 0.3);
}

.comparison-card.result {
    border-color: rgba(236, 72, 153, 0.3);
}

.card-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.card-image {
    width: 280px;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 auto 1rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Original photo card - smaller */
.comparison-card.original {
    width: 260px;
}

.comparison-card.original .card-image {
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary);
}

/* Preview card - larger to be the star */
.comparison-card.result .card-image {
    border: 3px solid var(--secondary);
}

/* Placeholder for result */
.result-placeholder {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.placeholder-icon {
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.placeholder-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Watermark on preview */
.result-image {
    position: relative;
}

.preview-watermark {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Arrow between cards */
.comparison-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.arrow-icon {
    font-size: 2rem;
    color: var(--primary);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

.arrow-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes arrowPulse {

    0%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(5px);
        opacity: 0.7;
    }
}

/* Change photo button */
.change-photo-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-photo-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Generate Section */
.generate-section {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.selected-style-info {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.selected-style-info strong {
    color: var(--primary-light);
    text-transform: capitalize;
}

#twistedBadge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.generate-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(139, 92, 246, 0.4);
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.generate-btn .btn-icon {
    font-size: 1.25rem;
}

.generate-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Pulse attention animation for generate button */
.generate-btn.pulse-attention {
    animation: pulseAttention 0.8s ease-in-out infinite;
}

@keyframes pulseAttention {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(139, 92, 246, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 40px rgba(139, 92, 246, 0.8), 0 0 30px rgba(236, 72, 153, 0.5);
    }
}

/* Download Section */
.download-section {
    margin-top: 2rem;
}

.download-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.download-card h3 {
    margin-bottom: 0.5rem;
    color: #22c55e;
}

.download-card>p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.download-price {
    margin-bottom: 1rem;
}

.price-tag {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.pay-download-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.3);
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 0.75rem;
}

.pay-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

.try-again-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.try-again-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile responsive for comparison section */
@media (max-width: 768px) {
    .comparison-section {
        padding: 0 1rem;
        overflow: hidden;
    }

    .comparison-grid {
        flex-direction: column;
        width: 100%;
    }

    .comparison-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    .comparison-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .comparison-card.original {
        width: 100%;
        max-width: 100%;
    }

    .comparison-card .card-image {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto 1rem;
    }

    .comparison-card.original .card-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 1;
    }

    .comparison-card .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 400px) {
    .comparison-card {
        padding: 1rem;
    }

    .comparison-card .card-image {
        max-width: 220px;
    }

    .comparison-card.original .card-image {
        max-width: 180px;
    }
}

/* ============================================
   HALL OF FAME SECTION
   ============================================ */

.hall-of-fame {
    padding: var(--space-2xl) 0;
    background: var(--bg-card);
    position: relative;
    z-index: 1;
}

.hof-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto var(--space-lg);
}

@media (max-width: 900px) {
    .hof-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 700px) {
    .hof-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .hof-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
        gap: 1rem;
    }

    .hof-grid::-webkit-scrollbar {
        height: 4px;
    }

    .hof-grid::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }
}

.hof-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

@media (max-width: 500px) {
    .hof-card {
        flex: 0 0 140px;
        scroll-snap-align: start;
    }
}

.hof-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.hof-card.rank-1 {
    border-color: gold;
}

.hof-card.rank-2 {
    border-color: silver;
}

.hof-card.rank-3 {
    border-color: #cd7f32;
}

.hof-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hof-card:hover img {
    transform: scale(1.1);
}

.hof-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
}

.hof-card.rank-1 .hof-rank {
    background: gold;
    color: #000;
}

.hof-card.rank-2 .hof-rank {
    background: silver;
    color: #000;
}

.hof-card.rank-3 .hof-rank {
    background: #cd7f32;
    color: #fff;
}

.hof-votes {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hof-cta {
    text-align: center;
}

.hof-link {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.hof-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.hof-hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hof-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.hof-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
    padding: var(--space-2xl) 0;
    background: var(--gradient-dark);
    position: relative;
    z-index: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
}

.price-card.popular {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.15) 0%, var(--bg-card) 100%);
    transform: scale(1.05);
}

.price-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.price-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.price-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.price-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.price-amount {
    text-align: center;
    margin-bottom: var(--space-md);
}

.currency {
    font-size: 1.25rem;
    color: var(--text-secondary);
    vertical-align: super;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-features {
    list-style: none;
    margin-bottom: var(--space-md);
}

.price-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-features li.dim {
    opacity: 0.5;
}

.price-per {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.save-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
}

.price-btn {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.price-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.price-btn.primary {
    background: var(--gradient-primary);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.price-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

/* Testimonials */
.testimonials {
    padding: var(--space-2xl) 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.testimonials-scroll {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding: var(--space-sm) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonials-scroll::-webkit-scrollbar {
    display: none;
}

.testimonial {
    min-width: 300px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    scroll-snap-align: start;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-handle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonial p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.testimonial-stars {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* FAQ */
.faq {
    padding: var(--space-2xl) 0;
    background: var(--bg-card);
    position: relative;
    z-index: 1;
}

.faq-list {
    max-width: 600px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    cursor: pointer;
    font-weight: 500;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 var(--space-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Final CTA */
.final-cta {
    padding: var(--space-2xl) 0;
    position: relative;
    z-index: 1;
}

.cta-box {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.cta-box h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: var(--space-sm);
    position: relative;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    position: relative;
}

.cta-box .hero-cta {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cta-box .hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
}

.cta-box .cta-price {
    color: var(--primary);
}

/* Footer */
.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

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

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

.footer-social a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }

    .price-card.popular {
        transform: none;
        order: -1;
    }

    .price-card.popular:hover {
        transform: translateY(-5px);
    }

    .hero-stats {
        gap: var(--space-md);
    }

    .stat-divider {
        display: none;
    }

    .before-after {
        flex-direction: column;
        width: 100%;
        gap: var(--space-sm);
    }

    .ba-arrow {
        transform: rotate(90deg);
        font-size: 1.25rem;
    }

    /* Mobile: Full width images - Before smaller, After larger */
    .ba-image {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 1;
    }

    .ba-image.before {
        max-width: 200px;
    }

    .ba-image.after {
        max-width: 280px;
        box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
    }

    /* Showcase card fills screen */
    .showcase-card {
        width: 100%;
        max-width: 320px;
        padding: var(--space-md);
    }

    .showcase {
        width: 100%;
        padding: 0 var(--space-sm);
    }

    @keyframes arrowMove {

        0%,
        100% {
            transform: rotate(90deg) translateX(0);
        }

        50% {
            transform: rotate(90deg) translateX(5px);
        }
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Hero section mobile optimizations */
    .hero {
        padding: 90px var(--space-sm) var(--space-xl);
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

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

    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: calc(100% - 2rem);
        max-width: 300px;
    }
}

/* Extra small screens (under 375px) */
@media (max-width: 375px) {
    .ba-image.before {
        max-width: 160px;
    }

    .ba-image.after {
        max-width: 220px;
    }

    .showcase-card {
        max-width: 280px;
        padding: var(--space-sm);
    }

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

    .hero-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    z-index: 10000;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}