/* ===================================
   BetterPics Landing Page Styles
   Dark theme, glamour-focused
   =================================== */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent: #ec4899;
    --accent-hover: #db2777;
    --accent-alt: #8b5cf6;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --radius: 12px;
    --radius-lg: 16px;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-strong);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

/* Brand Logo */
.brand {
    font-family: "Pacifico", cursive;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-primary);
}

.brand-s {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: clamp(7px, 1.5vw, 9px);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-left: 2px;
    letter-spacing: 1px;
}

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

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

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

.nav-cta {
    display: flex;
}

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

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
}

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

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

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Hero Visual - Transform Flow */
.hero-visual {
    margin: 48px 0;
}

.transform-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.transform-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.transform-images {
    display: flex;
    gap: 8px;
}

.transform-img {
    width: 80px;
    height: 120px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--border);
}

.styles-showcase {
    display: flex;
    gap: 16px;
}

.style-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.style-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Results Stacks (in transform flow) */
.results-step {
    flex-shrink: 0;
}

.results-stacks {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
}

.card-stack {
    position: relative;
    width: 160px;
    height: 240px;
    margin-bottom: 48px; /* Space for stacked cards behind */
    cursor: pointer;
}

.stack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 240px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--border);
    transition: transform 0.4s ease, opacity 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform-origin: top center;
}

/* Stack positioning - cards behind peek out */
.stack-card[data-index="0"] {
    z-index: 4;
    transform: translateY(0) scale(1);
}

.stack-card[data-index="1"] {
    z-index: 3;
    transform: translateY(16px) scale(0.95);
}

.stack-card[data-index="2"] {
    z-index: 2;
    transform: translateY(32px) scale(0.9);
}

.stack-card[data-index="3"] {
    z-index: 1;
    transform: translateY(48px) scale(0.85);
}

/* Swipe animation */
.stack-card.swiping {
    transition: transform 0.3s ease;
}

.stack-card.swiped-left {
    transform: translateX(-150%) rotate(-15deg) !important;
    opacity: 0;
}

.stack-card.swiped-right {
    transform: translateX(150%) rotate(15deg) !important;
    opacity: 0;
}

/* Arrow direction - horizontal by default */
.arrow-vertical {
    display: none;
}

.arrow-horizontal {
    display: inline;
}

.image-placeholder {
    width: 80px;
    height: 100px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.results .image-placeholder {
    background: var(--gradient);
}

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

.transform-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.styles-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.style-chip {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.apple-icon {
    width: 20px;
    height: 20px;
}

/* Styles Section */
.styles-section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 48px;
}

.styles-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.style-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.style-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.2);
}

.style-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

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

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    padding: 32px;
}

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

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

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

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--border);
}

/* Gallery */
.gallery {
    padding: 100px 0;
}

.gallery-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.before-after {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
}

.before, .after {
    position: relative;
    flex: 0 1 auto;
}

.before-img,
.after-img {
    width: auto;
    height: 320px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.image-label {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 600px) {
    .before-after {
        flex-direction: column;
        align-items: center;
    }

    .before-img,
    .after-img {
        height: 280px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.faq-question span:first-child {
    font-style: italic;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
}

.pricing-card {
    max-width: 400px;
    margin: 0 auto 48px;
    padding: 32px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--gradient);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.75rem;
    margin: 16px 0 8px;
}

.pricing-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-tier {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-tier:hover {
    border-color: var(--border-strong);
}

.pricing-tier.popular {
    border-color: var(--accent);
}

.tier-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    background: var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.tier-credits {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tier-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.tier-price {
    font-size: 1.25rem;
    font-weight: 600;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    margin-top: 32px;
}

/* Skip Photographer */
.skip-photographer {
    padding: 80px 0;
    background: var(--bg-tertiary);
}

.skip-content {
    text-align: center;
}

.skip-content h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.skip-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
}

.skip-list li {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skip-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
}

/* Final CTA */
.final-cta {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 32px;
}

.final-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 80px 0 60px;
    }

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

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

    .transform-flow {
        flex-direction: column;
    }

    .arrow-horizontal {
        display: none;
    }

    .arrow-vertical {
        display: inline;
    }

    .card-stack {
        width: 120px;
        height: 180px;
    }

    .stack-card {
        width: 120px;
        height: 180px;
    }

    .step-connector {
        display: none;
    }

    .steps {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
}
