/* ============================================
   PET.STUDIO - Naked City Films Style Hero
   Full-screen hero with centered card layout
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --electric-blue: #0004eb;
    --pure-white: #ffffff;
    --pure-black: #000000;
    --light-gray: #e8e8e8;
    --card-gray: #f0f0f0;
    --off-white: #f0f2f5;
    --section-bg: #f0f2f5;
    --section-bg-alt: #f0f2f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==================== */
/* Fixed Header */
/* ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    pointer-events: none;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.15em;
    pointer-events: auto;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-logo .logo-pet {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--electric-blue);
    letter-spacing: -0.02em;
}

.header-logo .logo-studio {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: var(--electric-blue);
    padding: 0.3em 0.5em;
    letter-spacing: 0.05em;
}

.header-nav {
    display: none;
    /* Old nav hidden */
}

/* Nav bar inside hero */
.hero-nav-bar {
    position: absolute;
    top: 28vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 20;
}

.hero-nav-bar .nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.hero-nav-bar .nav-link:hover {
    color: var(--electric-blue);
}

.hero-card input[type="file"] {
    display: none;
}

/* Card Nav */
.card-nav {
    display: flex;
    gap: 2rem;
}

.card-nav .nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-nav .nav-link:hover {
    color: var(--electric-blue);
}

/* Card Logo */
.card-logo {
    display: flex;
    align-items: center;
    gap: 0.1em;
}

.card-logo .logo-pet {
    font-family: 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--electric-blue);
    letter-spacing: -0.02em;
}

.card-logo .logo-studio {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    background: var(--electric-blue);
    padding: 0.25em 0.5em;
    letter-spacing: 0.05em;
}

/* Upload CTA */
.upload-cta {
    font-size: 1rem;
    color: #888;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Loading state in card */
.hero-card .upload-states {
    text-align: center;
}

.hero-card .upload-state {
    display: none;
    flex-direction: column;
    align-items: center;
}

.hero-card .upload-state.active {
    display: flex;
}

.hero-card .loading-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
}

.hero-card .loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
    border: 3px solid #eee;
    border-top-color: var(--electric-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.hero-card .loading-text {
    font-size: 0.9rem;
    color: #666;
}

/* ==================== */
/* Hero - Full Screen */
/* ==================== */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Image */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-bg-overlay {
    display: none;
}

/* Bottom fade to blend into sections */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent 0%, #f0f2f5 100%);
    z-index: 5;
    pointer-events: none;
}

/* ==================== */
/* Fun Upload Zone */
/* ==================== */
.upload-zone {
    position: relative;
    z-index: 10;
    width: 36vw;
    max-width: 450px;
    min-width: 260px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.upload-zone:hover {
    transform: scale(1.01);
}

.upload-zone input[type="file"] {
    display: none;
}

/* Corner Brackets */
.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--pure-black);
    border-style: solid;
    border-width: 0;
    transition: all 0.3s ease;
}

.corner-tl {
    top: 0;
    left: 0;
    border-top-width: 3px;
    border-left-width: 3px;
}

.corner-tr {
    top: 0;
    right: 0;
    border-top-width: 3px;
    border-right-width: 3px;
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-bottom-width: 3px;
    border-left-width: 3px;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-bottom-width: 3px;
    border-right-width: 3px;
}

.upload-zone:hover .corner,
.upload-zone.dragover .corner {
    border-color: var(--electric-blue);
    width: 50px;
    height: 50px;
}

/* Upload States */
.upload-states {
    text-align: center;
}

.upload-state {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Show upload states - clean background */
.upload-state.active {
    display: flex;
}

.upload-emoji {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.upload-emoji.bounce {
    animation: bounce 0.5s ease infinite;
}

@keyframes bounce {

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

    50% {
        transform: translateY(-10px);
    }
}

.upload-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pure-black);
    margin: 0;
}

.upload-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.upload-formats {
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
}

/* Hero Navigation */
.hero-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3rem;
    z-index: 20;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--pure-black);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--electric-blue);
    background: rgba(255, 255, 255, 1);
}

/* Loading in Upload Zone */
#stateLoading {
    background: #fff;
    padding: 3rem 4rem;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.upload-zone .loading-preview {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.upload-zone .loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid #eee;
    border-top-color: var(--electric-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

#stateLoading .upload-title {
    font-size: 1.2rem;
    color: #333;
}

/* ==================== */
/* Centered Card (legacy) */
/* ==================== */
.hero-card {
    position: relative;
    z-index: 10;
    width: 45vw;
    max-width: 600px;
    min-width: 450px;
    aspect-ratio: 4 / 3;
    background: var(--card-gray);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:hover {
    transform: scale(1.01);
}

/* ==================== */
/* Navigation */
/* ==================== */
.hero-nav {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 5;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pure-black);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--electric-blue);
}

.nav-link sup {
    font-size: 0.55rem;
    color: var(--electric-blue);
    margin-left: 2px;
}

/* ==================== */
/* Main Content Area */
/* ==================== */
.hero-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* ==================== */
/* Card States */
/* ==================== */
.card-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.card-state.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==================== */
/* State 1: Logo */
/* ==================== */
.logo-container {
    text-align: center;
}

.logo-text {
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.logo-pet {
    font-family: 'Inter', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    color: var(--electric-blue);
    letter-spacing: -0.04em;
    line-height: 0.85;
}

.logo-studio {
    background: var(--electric-blue);
    padding: 0.3em 0.5em;
    margin-left: 0.1em;
    display: flex;
    align-items: center;
}

.logo-studio span {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--pure-white);
    letter-spacing: 0.05em;
}

.logo-tagline {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==================== */
/* State 2: Upload */
/* ==================== */
#stateUpload {
    background: var(--card-gray);
}

#stateUpload input {
    display: none;
}

.upload-content {
    text-align: center;
    cursor: pointer;
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--electric-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.upload-content:hover .upload-icon {
    transform: scale(1.05);
}

.upload-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--pure-white);
    stroke-width: 2;
    fill: none;
}

.upload-text {
    font-family: 'DM Serif Display', Georgia, serif;
    font-style: italic;
    font-size: 2rem;
    color: var(--electric-blue);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.9rem;
    color: #888;
}

#stateUpload.dragover {
    background: rgba(0, 4, 235, 0.08);
}

#stateUpload.dragover .upload-icon {
    transform: scale(1.1);
}

/* ==================== */
/* State 3: Loading */
/* ==================== */
#stateLoading {
    background: var(--card-gray);
}

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

.loading-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--light-gray);
    border-top-color: var(--electric-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    font-family: 'DM Serif Display', Georgia, serif;
    font-style: italic;
    font-size: 1.75rem;
    color: var(--electric-blue);
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-size: 0.9rem;
    color: #888;
}

/* ==================== */
/* Responsive */
/* ==================== */
@media (max-width: 768px) {
    .hero-card {
        width: 90vw;
        min-width: unset;
        aspect-ratio: 3 / 4;
    }

    .hero-nav {
        padding: 1rem 1.25rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .logo-pet {
        font-size: 3rem;
    }

    .logo-studio span {
        font-size: 1.25rem;
    }

    .upload-text {
        font-size: 1.5rem;
    }

    .loading-text {
        font-size: 1.25rem;
    }

    .loading-preview {
        width: 100px;
        height: 100px;
    }
}

/* ==================== */
/* Page Sections */
/* ==================== */
.section {
    padding: 6rem 2rem;
    background: var(--section-bg);
    color: var(--pure-black);
}

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

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--pure-black);
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ==================== */
/* How It Works Section */
/* ==================== */
.section-how-it-works {
    background: var(--section-bg);
    padding: 4rem 2rem;
}

.how-it-works-image {
    text-align: center;
}

.how-it-works-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

/* ==================== */
/* Styles Section */
/* ==================== */
.section-styles {
    background: var(--section-bg);
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.style-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.style-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.style-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pure-black);
    margin-bottom: 0.5rem;
}

.style-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* ==================== */
/* Gallery Section */
/* ==================== */
.section-gallery {
    background: var(--section-bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 4, 235, 0.9);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gallery-item.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    background: transparent;
}

.gallery-item.placeholder span {
    color: #999;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ==================== */
/* Pricing Section */
/* ==================== */
.section-pricing {
    background: var(--section-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--electric-blue);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--electric-blue);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pure-black);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.pricing-price {
    margin-bottom: 1.5rem;
}

.pricing-price .currency {
    font-size: 1.5rem;
    color: #888;
    vertical-align: top;
}

.pricing-price .amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--pure-black);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: #666;
    font-size: 0.95rem;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-cta {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--electric-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.pricing-cta:hover {
    background: #0003c9;
    transform: scale(1.02);
}

.pricing-card.premium {
    border-color: #e0e0e0;
}

/* ==================== */
/* About Section */
/* ==================== */
.section-about {
    background: var(--section-bg-alt);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-lead {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.75rem;
    color: var(--pure-black);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.about-text p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #ddd;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--electric-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== */
/* Footer */
/* ==================== */
.footer {
    padding: 3rem 2rem;
    background: var(--section-bg);
    text-align: center;
    border-top: 1px solid #ddd;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

.footer-logo span {
    background: var(--electric-blue);
    color: #fff;
    padding: 0.2em 0.4em;
    margin-left: 0.1em;
    font-size: 0.8rem;
    font-weight: 700;
}

.footer p {
    color: #555;
    font-size: 0.85rem;
}

/* ==================== */
/* Section Responsive */
/* ==================== */
@media (max-width: 1024px) {
    .styles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }

    .styles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }

    /* Responsive hero elements */
    .header-logo {
        padding: 0.4rem 0.8rem;
    }

    .header-logo .logo-pet {
        font-size: 1.5rem;
    }

    .header-logo .logo-studio {
        font-size: 0.7rem;
    }

    .header-nav {
        gap: 1rem;
    }

    .hero-nav-bar {
        gap: 1.2rem;
    }

    .hero-nav-bar .nav-link {
        font-size: 0.8rem;
    }

    .upload-zone {
        width: 70vw;
        max-width: none;
    }

    .upload-title {
        font-size: 1.2rem;
    }

    .upload-subtitle {
        font-size: 0.85rem;
    }

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

@media (max-width: 480px) {
    .styles-grid {
        grid-template-columns: 1fr;
    }

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

    /* Mobile hero styles */
    .header-logo {
        padding: 0.3rem 0.6rem;
    }

    .header-logo .logo-pet {
        font-size: 1.2rem;
    }

    .header-logo .logo-studio {
        font-size: 0.55rem;
        padding: 0.2em 0.4em;
    }

    .hero-nav-bar {
        top: 20vh;
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 90%;
    }

    .hero-nav-bar .nav-link {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 4px;
    }

    .upload-zone {
        width: 80vw;
        aspect-ratio: 4 / 3;
    }

    .upload-title {
        font-size: 1rem;
    }

    .upload-subtitle {
        font-size: 0.75rem;
    }

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

    .corner {
        width: 25px;
        height: 25px;
        border-width: 2px !important;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .header-logo .logo-pet {
        font-size: 1rem;
    }

    .header-logo .logo-studio {
        font-size: 0.5rem;
    }

    .hero-nav-bar {
        gap: 0.5rem;
    }

    .hero-nav-bar .nav-link {
        font-size: 0.6rem;
    }

    .upload-zone {
        width: 90vw;
    }

    .upload-title {
        font-size: 0.9rem;
    }
}