/* ============================================
   photolive.video — Professional SaaS 2026
   Inspired by higgsfield.ai
   ============================================ */

:root {
    --primary: #d4a843;
    --primary-light: #f0c050;
    --primary-dark: #b8902f;
    --bg-deep: #000000;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-light: rgba(255, 255, 255, 0.12);
    --text-main: #ffffff;
    --text-muted: #888888;
    --text-dim: #555555;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid var(--border-glass);
}

/* ===== LOGO ===== */
.logo-link { text-decoration: none; display: flex; align-items: center; gap: 10px; }

/* ===== PROMO BAR ===== */
.promo-bar {
    position: fixed;
    top: 61px; /* sits right below the 61px-tall header */
    left: 0; right: 0;
    z-index: 190;
    background: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    flex-wrap: wrap;
}

.promo-bar .promo-icon { font-size: 1rem; }

.promo-bar strong { font-weight: 800; }

.promo-bar-cta {
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.2);
    color: #000;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.promo-bar-cta:hover { background: rgba(0,0,0,0.25); }

.promo-bar-close {
    background: none;
    border: none;
    color: rgba(0,0,0,0.5);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 0 0 6px;
    margin-left: 4px;
    transition: color 0.2s;
}

.promo-bar-close:hover { color: rgba(0,0,0,0.9); }

/* Push hero down to account for header + promo bar */
.hero { padding-top: 0; }

.logo-svg-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-wordmark {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.logo-wordmark .live {
    color: var(--primary-light);
}

nav { display: flex; align-items: center; gap: 4px; }

nav a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 14px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
    border-radius: var(--radius-sm);
}

nav a:hover { color: var(--text-main); }

/* ===== BUTTONS ===== */
.btn-primary, .btn-outline {
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: 0.1px;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-sm { padding: 7px 14px; font-size: 0.84rem; }

/* ===== HERO ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Background video grid */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    z-index: 0;
    transform: scale(1.04);
}

.hero-bg-grid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.55;
    transition: opacity 0.5s;
    background-color: #111; /* Placeholder while loading */
}

/* Dark overlay over video grid */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.6) 75%, rgba(0,0,0,0.97) 100%),
        linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.4) 100%);
}

/* Hero content on top */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 820px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: rgba(212, 168, 67, 0.12);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-kicker-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.6); }
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.08;
    margin-bottom: 22px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.hero h1 em {
    font-style: normal;
    color: var(--primary-light);
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.btn-hero {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #000;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 168, 67, 0.35);
}

.btn-hero-ghost {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-hero-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.3);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== MARQUEE ===== */
.marquee-strip {
    background: var(--primary);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
}

.marquee-track {
    display: inline-block;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-track span {
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 28px;
}

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

/* hide old marquee */
.marquee-container { display: none; }

/* ===== STATS STRIP ===== */
.stats-strip {
    padding: 60px 5%;
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 1px solid var(--border-glass);
    border-top: 1px solid var(--border-glass);
}

.stat-item {
    flex: 1;
    max-width: 220px;
    text-align: center;
    padding: 0 24px;
    border-right: 1px solid var(--border-glass);
}

.stat-item:last-child { border-right: none; }

.stat-num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
    color: var(--primary-light);
    margin-bottom: 4px;
}

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

/* ===== GENERATE MODAL ===== */
.gen-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.gen-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.gen-modal-card {
    background: #0a0a0a;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    padding: 36px;
    animation: modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.gen-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.gen-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: 'Space Grotesk', sans-serif;
}

.gen-modal-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.gen-modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
}

/* ===== STAGES (inside modal) ===== */
.stage { width: 100%; display: none; animation: fadeUp 0.4s ease; }
.stage.active { display: block; }
.stage.hidden { display: none; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== MODEL PICKER ===== */
.model-picker {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 20px;
}

.model-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.model-pill:hover {
    border-color: rgba(212, 168, 67, 0.4);
    background: rgba(212, 168, 67, 0.07);
}

.model-pill.is-active {
    border-color: var(--primary);
    background: rgba(212, 168, 67, 0.12);
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.15);
}

.model-pill:focus { outline: none; }
.model-pill:focus-visible { box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.25); }

.model-badge {
    width: 18px; height: 18px;
    border-radius: var(--radius-pill);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 10px; line-height: 1;
    border: 1px solid rgba(255,255,255,0.1);
}

.model-sora { background: rgba(59,130,246,0.2); color: #60a5fa; border-color: rgba(96,165,250,0.3); }
.model-veo { background: rgba(34,197,94,0.2); color: #4ade80; border-color: rgba(74,222,128,0.3); }
.model-svd { background: rgba(212,168,67,0.2); color: var(--primary-light); border-color: rgba(212,168,67,0.4); }
.model-pika { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.15); }
.model-runway { background: rgba(255,255,255,0.06); color: var(--text-muted); border-color: rgba(255,255,255,0.1); }
.model-name { font-weight: 600; font-size: 0.85rem; color: var(--text-main); }

/* ===== UPLOAD BOX ===== */
.upload-box {
    width: 100%;
    border: 1px dashed var(--border-light);
    border-radius: var(--radius);
    padding: 60px 40px;
    min-height: 280px;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.02);
    position: relative;
    overflow: hidden;
}

.upload-box:hover, .upload-box.dragover {
    border-color: var(--primary);
    background: rgba(212, 168, 67, 0.04);
}

.icon-pulse {
    background: rgba(255,255,255,0.04);
    width: 64px; height: 64px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid var(--border-light);
}

.icon-pulse svg { stroke: var(--text-muted); }

.upload-box h3 { margin-bottom: 8px; font-weight: 600; }
.upload-box p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; }
.formats { font-size: 0.78rem; margin-top: 16px; color: var(--text-dim); }

/* After-file upload state */
.upload-after { display: none; }
.upload-box.has-file .upload-initial { display: none; }
.upload-box.has-file .upload-after { display: block; }

.selected-file {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.selected-thumb {
    width: 64px; height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.selected-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.selected-name { font-weight: 600; font-size: 0.95rem; }

/* ===== PROMPT BOX ===== */
.prompt-box { margin-top: 16px; }

.prompt-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.prompt-label .muted { color: var(--text-dim); font-weight: 400; }

.prompt-box textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    line-height: 1.5;
}

.prompt-box textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.prompt-hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 8px; }

.create-btn { width: 100%; margin-top: 20px; padding: 14px; font-size: 1rem; font-weight: 700; justify-content: center; }
.create-note { font-size: 0.78rem; color: var(--text-dim); margin-top: 10px; text-align: center; }

/* ===== PROCESSING ===== */
.processing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
}

.scanner-image {
    position: relative;
    width: 180px; height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 1px solid var(--border-light);
}

.scanner-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    animation: colorize 5s forwards;
}

@keyframes colorize {
    0% { filter: grayscale(100%) brightness(0.8); }
    100% { filter: grayscale(0%) brightness(1); }
}

.scan-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--primary-light);
    box-shadow: 0 0 10px rgba(212, 168, 67, 0.6);
    animation: scanning 2s linear infinite;
}

@keyframes scanning {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.loader-ring {
    width: 36px; height: 36px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 14px auto;
}

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

.progress-bar-container {
    width: 85%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s linear;
}

/* ===== RESULT ===== */
.result-wrapper { text-align: center; padding: 10px 0; }
.result-wrapper h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }

.result-video-placeholder {
    position: relative;
    width: 100%;
    max-width: 460px;
    min-height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.result-preview-image {
    display: block;
    width: 100%;
    max-height: 40vh;
    object-fit: contain;
    pointer-events: none;
    filter: saturate(1.02) contrast(1.02);
}

.result-video-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 46%),
        linear-gradient(180deg, rgba(8,12,18,0.08), rgba(8,12,18,0.28));
    pointer-events: none;
}

.result-play-overlay {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 92px;
    height: 92px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.38);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(0,0,0,0.26);
    pointer-events: none;
    z-index: 2;
}

.result-loading-badge {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(7,11,18,0.72);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.88);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.result-loading-spinner {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.18);
    border-top-color: var(--primary-light);
    animation: resultSpin 0.9s linear infinite;
}

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

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* ===== VIDEO GALLERY ===== */
.examples-dense {
    padding: 90px 5%;
    position: relative;
    z-index: 1;
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.examples-wrap { max-width: 1500px; margin: 0 auto; }

.examples-head {
    text-align: center;
    margin-bottom: 56px;
}

.examples-head h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -1.5px;
    margin-bottom: 14px;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

.examples-head p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* === Scroll gallery (horizontal, like Higgsfield) === */
.gallery-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.gallery-scroll-wrap::-webkit-scrollbar { display: none; }

.gallery-track {
    display: flex;
    gap: 14px;
    padding: 4px 2px;
    width: max-content;
}

.gallery-row { margin-bottom: 14px; }

.gallery-card {
    width: 260px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: #111;
    border: 1px solid var(--border-glass);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    border-color: rgba(212, 168, 67, 0.25);
    z-index: 2;
}

.gallery-video, .gallery-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    transition: filter 0.3s;
}

.gallery-img { filter: brightness(0.8) saturate(0.7); }
.gallery-card:hover .gallery-img { filter: brightness(1) saturate(0.9); }
.gallery-card:hover .gallery-video { filter: brightness(1.05) saturate(1.1); }

/* Scan line on vintage stills */
.scan-overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-card:hover .scan-overlay { opacity: 1; }

.scan-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--primary-light);
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.7);
    animation: scanning 1.8s linear infinite;
}

.gallery-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 14px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-ai-badge {
    background: var(--primary);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 90px 5% 80px;
    position: relative;
    z-index: 1;
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

.how-wrap { max-width: 1100px; margin: 0 auto; }

.how-head { text-align: center; margin-bottom: 50px; }

.how-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    color: var(--primary-light);
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.2);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.how-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: -1px;
    margin-bottom: 12px;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

.how-head p { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.how-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.25s;
}

.how-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 168, 67, 0.2);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.how-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.how-num {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--primary-light);
}

.how-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light);
    background: rgba(212, 168, 67, 0.08);
    border: 1px solid rgba(212, 168, 67, 0.15);
}

.how-card h3 { font-size: 1.05rem; margin-bottom: 10px; font-weight: 700; }
.how-card p { color: var(--text-muted); line-height: 1.65; font-size: 0.92rem; }

.how-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
}

.chip {
    font-weight: 500;
    font-size: 0.82rem;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    transition: all 0.25s;
    cursor: pointer;
}

.chip:hover {
    border-color: rgba(212, 168, 67, 0.35);
    color: var(--primary-light);
    background: rgba(212, 168, 67, 0.07);
}

/* ===== SECTION EYEBROW (shared) ===== */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    color: var(--primary-light);
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.2);
    margin-bottom: 18px;
    text-transform: uppercase;
}

/* ===== FAQ ===== */
.faq.faq-minimal { 
    padding: 80px 5% 90px; 
    position: relative; 
    z-index: 1; 
    content-visibility: auto;
    contain-intrinsic-size: 400px;
}
.faq.faq-minimal .faq-wrap { max-width: 1100px; margin: 0 auto; }

.faq.faq-minimal .faq-layout {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.faq.faq-minimal .faq-left { padding-top: 10px; }

.faq.faq-minimal .faq-kicker {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
}

.faq.faq-minimal .faq-right { border-top: 1px solid var(--border-glass); }

.faq.faq-minimal .faq-row {
    border-bottom: 1px solid var(--border-glass);
    padding: 20px 0;
}

.faq.faq-minimal .faq-row summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-right: 6px;
    transition: color 0.25s;
}

.faq.faq-minimal .faq-row summary:hover { color: var(--primary-light); }
.faq.faq-minimal .faq-row summary::-webkit-details-marker { display: none; }

.faq.faq-minimal .faq-row summary::after {
    content: "";
    width: 18px; height: 18px;
    flex: 0 0 18px;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23d4a843' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.faq.faq-minimal .faq-row[open] summary::after { transform: rotate(180deg); opacity: 1; }
.faq.faq-minimal .faq-answer { padding: 12px 0 0; }
.faq.faq-minimal .faq-answer p { margin: 0; color: var(--text-muted); line-height: 1.7; font-size: 0.92rem; }

/* ===== TESTIMONIALS ===== */
.testimonials { 
    padding: 80px 5% 100px; 
    position: relative; 
    z-index: 1; 
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

.t-wrap { max-width: 1100px; margin: 0 auto; }
.t-head { text-align: center; margin-bottom: 28px; }

.t-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -1px;
    margin-bottom: 8px;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }

.t-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 22px;
    transition: all 0.22s;
}

.t-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.t-stars { font-size: 0.85rem; margin-bottom: 12px; color: var(--primary); font-weight: 600; }

.t-card blockquote {
    color: rgba(255,255,255,0.8);
    line-height: 1.65;
    font-weight: 400;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.t-card figcaption { display: flex; align-items: center; gap: 12px; }

.t-avatar {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem;
    color: #000;
    background: var(--primary);
}

.t-meta { display: flex; flex-direction: column; line-height: 1.3; }
.t-meta strong { color: var(--text-main); font-size: 0.88rem; }
.t-meta span { color: var(--text-dim); font-size: 0.78rem; margin-top: 2px; }

.t-cta { margin-top: 28px; display: flex; justify-content: center; }

.t-cta-inner {
    width: 100%; max-width: 920px;
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 14px; padding: 22px 24px;
    border-radius: var(--radius);
    background: rgba(212, 168, 67, 0.06);
    border: 1px solid rgba(212, 168, 67, 0.2);
}

.t-cta-sub { color: var(--text-muted); margin-top: 4px; font-size: 0.88rem; }

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 44px 20px;
    color: var(--text-dim);
    border-top: 1px solid var(--border-glass);
    font-size: 0.88rem;
    position: relative;
    z-index: 1;
}

footer a { color: var(--text-muted); transition: color 0.2s; text-decoration: none; }
footer a:hover { color: var(--primary-light); }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 400;
    padding: 16px 5%;
    background: rgba(10, 10, 10, 0.97);
    border-top: 1px solid var(--border-light);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.cookie-banner.is-hidden {
    transform: translateY(110%);
    pointer-events: none;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-text a { color: var(--primary-light); text-decoration: underline; }

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    padding: 9px 20px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cookie-accept:hover { background: var(--primary-light); }

.btn-cookie-decline {
    padding: 9px 20px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cookie-decline:hover { color: var(--text-main); border-color: var(--border-light); }

/* ===== DOWNLOAD MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #0a0a0a;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 28px 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.modal-header h3 { font-weight: 700; font-size: 1.1rem; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.modal-close:hover { color: var(--text-main); }

.modal-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 14px; }

.modal-steps {
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
    list-style: decimal;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-steps li strong { color: var(--text-main); }

.modal-hint {
    font-size: 0.82rem;
    color: var(--text-dim);
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}

.modal-footer { margin-top: 20px; }

.modal-ok {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #000;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-ok:hover { background: var(--primary-light); }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    color: var(--primary-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-bg-grid { grid-template-columns: repeat(3, 1fr); }
    .t-grid { grid-template-columns: repeat(2, 1fr); }
    .how-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-bg-grid { grid-template-columns: repeat(2, 1fr); }
    header { padding: 14px 4%; }
    nav a:not(.btn-outline):not(.btn-primary) { display: none; }
    .gen-modal-card { padding: 24px 20px; }
    .how-grid { grid-template-columns: 1fr; }
    .t-grid { grid-template-columns: 1fr; }
    .faq.faq-minimal .faq-layout { grid-template-columns: 1fr; gap: 16px; }
    .faq.faq-minimal .faq-kicker { font-size: 36px; }
    .stats-strip { flex-wrap: wrap; gap: 20px; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border-glass); padding-bottom: 20px; min-width: 120px; }
    .t-cta-inner { flex-direction: column; text-align: center; }
    .cookie-banner { flex-direction: column; padding: 14px 24px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.4rem; }
    .hero-bg-grid { grid-template-columns: repeat(2, 1fr); }
}
