/* ============================================
   photo2video.live — Professional SaaS 2026
   ============================================ */

:root {
    --primary: #4f46e5;       /* Indigo 600 */
    --primary-light: #6366f1; /* Indigo 500 */
    --primary-dark: #4338ca;  /* Indigo 700 */
    --bg-deep: #0f1115;       /* Very dark slate */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --text-main: #f8fafc;     /* Slate 50 */
    --text-muted: #94a3b8;    /* Slate 400 */
    --text-dim: #64748b;      /* Slate 500 */
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 999px;
}

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

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

/* Removed ambient glow blobs for a cleaner look */

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

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

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

.logo-link {
    color: inherit;
    text-decoration: none;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 24px;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.3s;
}

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

/* ===== BUTTONS ===== */
.btn-primary, .btn-outline {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.2px;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

/* ===== MARQUEE (REMOVED) ===== */
.marquee-container {
    display: none; /* Removed for cleaner layout */
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 100px 20px 50px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    font-weight: 700;
    line-height: 1.15;
}

.gradient-text {
    color: var(--primary-light);
    animation: none;
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ===== APP SECTION ===== */
.app-section {
    padding: 20px 5% 80px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.app-container {
    width: 100%;
    max-width: 1100px;
    background: transparent;
    text-align: center;
    position: relative;
}

/* Stages */
.stage { width: 100%; display: none; animation: fadeUp 0.5s ease; }
.stage.active { display: block; }
.stage.hidden { display: none; }

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

/* ===== UPLOAD BOX ===== */
.upload-box {
    width: 100%;
    border: 1px dashed var(--border-light);
    border-radius: var(--radius);
    padding: 80px 40px;
    min-height: 340px;
    transition: all 0.2s ease;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.upload-box:hover, .upload-box.dragover {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.05);
}

.icon-pulse {
    background: var(--bg-glass);
    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); }

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

.scanner-image {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    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.9); }
    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 8px rgba(99, 102, 241, 0.5); /* subtle glow */
    animation: scanning 2s linear infinite;
}

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

.progress-bar-container {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 24px;
    overflow: hidden;
}

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

/* ===== RESULT ===== */
.result-video-placeholder {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 20px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--border-glass);
}

.result-video-placeholder img { width: 100%; display: block; }

#result-image {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    filter: brightness(0.78);
}

.result-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 120px;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(6, 8, 14, 0.56);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.result-play-button:hover {
    background: rgba(6, 8, 14, 0.7);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translate(-50%, -52%);
}

.result-play-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 3px;
}

.action-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 24px;
}

/* ===== VIDEO GALLERY ===== */
.examples-dense {
    padding: 100px 5%;
    position: relative;
    z-index: 1;
}

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

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

.examples-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -1px;
    margin-bottom: 16px;
    font-weight: 700;
}

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

.masonry-grid {
    column-count: 4;
    column-gap: 16px;
}

@media (max-width: 1200px) { .masonry-grid { column-count: 3; } }
@media (max-width: 900px) { .masonry-grid { column-count: 2; } }
@media (max-width: 600px) { .masonry-grid { column-count: 1; } }

.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--border-light);
    z-index: 2;
}

.masonry-video {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius);
    filter: brightness(0.85) saturate(0.9);
    transition: filter 0.4s ease;
}

.masonry-item:hover .masonry-video {
    filter: brightness(1.1) saturate(1.15);
}

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

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

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 100px 5% 80px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Removed radial blur background pseudo elements */
.how-it-works::before { display: none; }
.how-it-works::after { display: none; }

.how-wrap {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.how-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 20px;
}

.how-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -1px;
    margin-bottom: 14px;
    font-weight: 700;
}

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

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

.how-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

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

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

.how-num {
    font-weight: 700;
    font-size: 0.95rem;
    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(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
}

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

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

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

.chip:hover {
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--text-main);
    background: rgba(168, 85, 247, 0.08);
}

.how-note { margin-top: 20px; display: flex; justify-content: center; }

.how-note-inner {
    max-width: 820px; width: 100%;
    text-align: center; padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
}

.how-note-inner strong { color: var(--text-main); }

@media (max-width: 900px) {
    .how-head h2 { font-size: 1.8rem; }
    .how-grid { grid-template-columns: 1fr; }
}

/* ===== SHARED EYEBROW ===== */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 20px;
}

/* ===== FAQ ===== */
.faq.faq-minimal { padding: 80px 5% 90px; position: relative; z-index: 1; }
.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: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text-main);
}

.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: 1.05rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-right: 6px;
    transition: color 0.3s;
}

.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='%236366f1' stroke-width='2' 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.95rem; max-width: 820px; }

@media (max-width: 900px) {
    .faq.faq-minimal .faq-layout { grid-template-columns: 1fr; gap: 18px; }
    .faq.faq-minimal .faq-kicker { font-size: 40px; }
}

.testimonials {
    padding: 80px 5% 100px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Removed blurry background elements */
.testimonials::before { display: none; }

.t-wrap {
    max-width: 1100px; margin: 0 auto;
    position: relative; z-index: 1;
}

.t-head { text-align: center; margin-bottom: 30px; }

.t-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -1px;
    margin-bottom: 10px;
    font-weight: 700;
}

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

.t-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
}

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

.t-stars {
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #fbbf24; /* Amber 400 */
    font-weight: 600;
}

.t-card blockquote {
    color: var(--text-main);
    line-height: 1.65;
    font-weight: 500;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

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

.t-avatar {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
}

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

.t-cta { margin-top: 30px; 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: 24px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

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

@media (max-width: 980px) {
    .t-grid { grid-template-columns: 1fr; }
    .t-cta-inner { flex-direction: column; text-align: center; }
}

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

.model-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    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 {
    transform: translateY(-1px);
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.08);
}

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

.model-pill:focus { outline: none; }

.model-pill:focus-visible {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 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: var(--gradient-primary); color: #fff; border-color: rgba(168,85,247,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); }

@media (max-width: 520px) {
    .model-picker { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .model-picker::-webkit-scrollbar { height: 4px; }
    .model-picker::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.3); border-radius: 2px; }
}

/* ===== UPLOAD AFTER FILE ===== */
.upload-after { display: none; margin-top: 10px; }
.upload-box.has-file .upload-initial { display: none; }
.upload-box.has-file .upload-after { display: block; }

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

.selected-thumb {
    width: 64px; height: 64px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.selected-meta { text-align: left; display: flex; flex-direction: column; gap: 6px; }

.selected-label {
    font-weight: 700; font-size: 0.78rem;
    letter-spacing: 0.08em; color: var(--text-dim);
    text-transform: uppercase;
}

.selected-name { font-weight: 700; font-size: 1rem; color: var(--text-main); word-break: break-all; }

.btn-sm { padding: 7px 12px; font-size: 0.88rem; border-radius: var(--radius-pill); width: fit-content; }

.prompt-box {
    text-align: left;
    max-width: 760px;
    margin: 0 auto 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 16px;
}

.prompt-label { font-weight: 700; display: block; margin-bottom: 8px; color: var(--text-main); font-size: 0.95rem; }

.prompt-box textarea {
    width: 100%;
    resize: vertical;
    min-height: 80px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    padding: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
    transition: all 0.3s;
}

.prompt-box textarea::placeholder { color: var(--text-dim); }

.prompt-box textarea:focus {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(255,255,255,0.06);
}

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

.create-btn { width: 100%; max-width: 360px; }
.create-note { margin-top: 10px; color: var(--text-dim); font-size: 0.9rem; }

.muted { opacity: 0.6; font-weight: 600; }

/* ===== LOADER RING ===== */
.loader-ring {
    width: 36px; height: 36px;
    border-radius: var(--radius-pill);
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: var(--primary);
    margin: 14px auto 10px;
    animation: spin 0.9s linear infinite;
}

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

/* ===== DOWNLOAD MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

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

.modal-card {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(24px);
    border-radius: var(--radius);
    width: 420px;
    max-width: 90%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    padding: 28px;
    border: 1px solid var(--border-glass);
}

.modal-card, .modal-card * { box-sizing: border-box; }

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

.modal-header h3 { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--text-main); }

.modal-close {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.modal-body { font-size: 0.92rem; color: var(--text-muted); }
.modal-steps { margin: 14px 0; padding-left: 18px; }
.modal-steps li { margin-bottom: 6px; }
.modal-steps strong { color: var(--text-main); }
.modal-hint { font-size: 0.82rem; color: var(--text-dim); margin-top: 12px; }
.modal-hint strong { color: var(--text-muted); }

.modal-footer {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ===== PRIVACY / POLICY PAGE ===== */
.policy { padding: 90px 5% 80px; position: relative; overflow: hidden; z-index: 1; }

.policy::before {
    content: "";
    position: absolute; inset: -220px;
    background:
        radial-gradient(circle at 18% 20%, rgba(168,85,247,0.1), transparent 50%),
        radial-gradient(circle at 82% 30%, rgba(236,72,153,0.08), transparent 50%);
    filter: blur(80px);
    pointer-events: none;
}

.policy-wrap { max-width: 980px; margin: 0 auto; position: relative; z-index: 1; }
.policy-hero { text-align: center; margin-bottom: 18px; }
.policy-hero h1 { font-size: 3rem; letter-spacing: -1px; margin: 10px 0; }
.policy-sub { color: var(--text-muted); max-width: 820px; margin: 0 auto; line-height: 1.6; }
.policy-meta { margin-top: 14px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; color: var(--text-dim); font-size: 0.9rem; }

.policy-card, .policy-section {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 18px;
    margin: 14px 0;
}

.policy-section h2 { margin-bottom: 10px; letter-spacing: -0.6px; }
.policy-section h3 { margin-top: 14px; margin-bottom: 8px; }
.policy-section p, .policy-section li { color: var(--text-muted); line-height: 1.65; }
.policy-section ul { margin: 10px 0 0 18px; }
.policy-toc { margin: 10px 0 0 18px; }
.policy-toc a { color: var(--primary-light); text-decoration: none; font-weight: 600; }
.policy-toc a:hover { text-decoration: underline; }

.policy-box {
    margin-top: 12px; padding: 14px;
    border-radius: var(--radius-sm);
    background: rgba(168,85,247,0.06);
    border: 1px solid rgba(168,85,247,0.15);
}

.ph {
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(168,85,247,0.1);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(168,85,247,0.2);
}

.policy-note { margin-top: 10px; font-size: 0.9rem; color: var(--text-dim); }

.policy-table {
    margin-top: 12px; border-radius: var(--radius-sm);
    overflow: hidden; border: 1px solid var(--border-glass);
}

.policy-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1fr;
    gap: 12px; padding: 12px 14px;
    background: var(--bg-glass);
    border-top: 1px solid var(--border-glass);
}

.policy-head-row {
    background: rgba(168,85,247,0.06);
    font-weight: 700; color: var(--text-main);
    border-top: none;
}

.policy-footer { margin-top: 18px; display: flex; justify-content: center; }

@media (max-width: 900px) {
    .policy-hero h1 { font-size: 2.2rem; }
    .policy-row { grid-template-columns: 1fr; }
}

/* ===== GALLERY OF MAGIC (Legacy, kept for compatibility) ===== */
.magic { padding: 90px 5% 90px; position: relative; overflow: hidden; z-index: 1; }
.magic::before { content:""; position:absolute; inset:-220px; background: radial-gradient(circle at 18% 25%, rgba(168,85,247,0.08), transparent 50%), radial-gradient(circle at 80% 20%, rgba(236,72,153,0.06), transparent 50%); filter: blur(80px); pointer-events:none; }
.magic-wrap { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.magic-head { text-align:center; margin-bottom: 26px; }
.magic-head h2 { font-size: 2.6rem; letter-spacing:-1px; margin-bottom: 10px; }
.magic-head p { color: var(--text-muted); max-width: 820px; margin: 0 auto; font-size: 1.05rem; line-height: 1.6; }
.magic-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.magic-item { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 22px; overflow:hidden; transition: all .25s ease; }
.magic-item:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.magic-split { display:grid; grid-template-columns: 1fr 1fr; min-height: 260px; position: relative; }
.magic-split::after { content:""; position:absolute; top:0; bottom:0; left:50%; width:1px; background: var(--border-glass); }
.magic-pane { position: relative; overflow:hidden; background: rgba(255,255,255,0.02); }
.magic-pane img, .magic-video { width:100%; height:100%; object-fit: cover; display:block; }
.magic-tag { position:absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 10px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); border: 1px solid var(--border-glass); color: var(--text-main); }
.magic-after .magic-tag { border-color: rgba(168,85,247,0.3); }
.magic-caption { padding: 16px 18px 18px; text-align: left; }
.magic-caption h3 { margin: 0 0 8px; letter-spacing: -0.3px; }
.magic-caption p { margin: 0; color: var(--text-muted); line-height: 1.6; }
.magic-note { margin-top: 16px; text-align: center; color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 980px) { .magic-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .magic-split { grid-template-columns: 1fr; } .magic-split::after { display:none; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    header { padding: 14px 4%; }
    .logo { font-size: 18px; }
    nav a { margin-left: 14px; font-size: 0.82rem; }
}
