/* ===== CROSSFALL PAGE STYLES ===== */

/* Hero */
.cf-hero {
    position: relative;
    z-index: 1;
    min-height: 80svh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 var(--nav-pad-x) clamp(48px, 8vw, 80px);
    overflow: hidden;
}

.cf-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #0f1628 30%, #1a0a2e 60%, #0a1a1a 100%);
}

.cf-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,15,0.6) 40%, rgba(10,10,15,0.2) 100%);
    z-index: 1;
}

.cf-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cf-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.cf-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 6px 20px;
    margin-bottom: 24px;
    background: rgba(0, 212, 255, 0.08);
}

.cf-title {
    line-height: 1;
    margin-bottom: 20px;
}

.cf-logo {
    max-width: clamp(280px, 50vw, 560px);
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.2));
}

.cf-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cf-meta-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cf-meta-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    min-height: 44px;
}

.cf-meta-chip svg {
    color: var(--accent);
    opacity: 0.7;
}

.cf-tags-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cf-tag {
    padding: 4px 14px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
}

/* Sections */
.cf-section {
    position: relative;
    z-index: 1;
    padding: var(--section-space-tight) 0;
}

.cf-section-dark {
    background: var(--bg-light);
}

.cf-section-header {
    margin-bottom: 56px;
}

/* About grid */
.cf-about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.cf-lead {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 16px;
}

.cf-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.cf-about-image {
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border);
}

/* Placeholder image style */
.cf-placeholder-img {
    background: linear-gradient(135deg, #12121f 0%, #1a1a30 40%, #161628 100%);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cf-placeholder-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform-origin: center center;
    transition: transform 0.5s ease;
}

.cf-placeholder-img:hover img {
    transform: scale(1.05);
}

.cf-placeholder-img:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.05);
}

/* Gallery */
.cf-gallery {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 16px);
    width: 100%;
    min-width: 0;
}

.cf-gallery-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-y;
    width: 100%;
    min-width: 0;
}

.cf-gallery-track::-webkit-scrollbar {
    display: none;
}

.cf-gallery-slide {
    min-width: calc(33.333% - 11px);
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border);
    flex-shrink: 0;
    scroll-snap-align: start;
}

.cf-gallery-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.cf-gallery-arrow:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.cf-gallery-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
    color: var(--text-dim);
    border-color: var(--border);
}

.cf-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.cf-gallery-dot {
    width: 8px;
    height: 8px;
    border: 1px solid var(--text-dim);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.cf-gallery-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* Features grid */
.cf-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.cf-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px 28px;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}

.cf-feature-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 212, 255, 0.03);
}

.cf-feature-icon {
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.8;
}

.cf-feature-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--text);
}

.cf-feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Concept art grid */
.cf-concept-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cf-concept-item {
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border);
}

.cf-concept-wide {
    grid-column: span 2;
    aspect-ratio: 21 / 9;
}

/* Back section */
.cf-back-section {
    padding: 60px 0;
}

/* ===== LIGHTBOX ===== */
.cf-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    padding: 80px 24px 56px;
}

.cf-lightbox.open {
    display: flex;
}

.cf-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.cf-lightbox-close:hover {
    color: var(--accent);
}

.cf-lightbox-arrow {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.cf-lightbox-prev {
    left: 24px;
}

.cf-lightbox-next {
    right: 24px;
}

.cf-lightbox-arrow:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.cf-lightbox-content {
    width: min(100%, 960px);
    max-width: 900px;
    max-height: calc(100svh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-lightbox-img {
    max-width: 100%;
    max-height: calc(100svh - 160px);
    object-fit: contain;
    border: 1px solid var(--border);
}

.cf-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cf-about-grid {
        grid-template-columns: 1.1fr 1fr;
    }

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

    .cf-gallery-slide {
        min-width: calc(50% - 8px);
    }
}

@media (max-width: 768px) {
    .cf-hero {
        min-height: 72svh;
        align-items: center;
        padding: 152px 20px 56px;
    }

    .cf-title {
        letter-spacing: 6px;
    }

    .cf-tagline {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .cf-meta-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 520px);
        margin-left: auto;
        margin-right: auto;
    }

    .cf-meta-chip {
        justify-content: center;
        padding: 10px 12px;
    }

    .cf-about-grid {
        grid-template-columns: 1fr;
    }

    .cf-gallery {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
    }

    .cf-gallery-track {
        order: 1;
        flex-basis: 100%;
        gap: 12px;
        width: 100%;
        scroll-padding-inline: 0;
    }

    .cf-gallery-prev {
        order: 2;
    }

    .cf-gallery-next {
        order: 3;
    }

    .cf-features-grid {
        grid-template-columns: 1fr;
    }

    .cf-gallery-slide {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .cf-concept-grid {
        grid-template-columns: 1fr;
    }

    .cf-concept-wide {
        grid-column: span 1;
        aspect-ratio: 16 / 10;
    }

    .cf-lightbox {
        padding: 72px 16px 52px;
    }

    .cf-lightbox-arrow {
        width: 40px;
        height: 40px;
    }

    .cf-lightbox-prev {
        left: 12px;
    }

    .cf-lightbox-next {
        right: 12px;
    }

    .cf-lightbox-content,
    .cf-lightbox-img {
        max-height: calc(100svh - 140px);
    }
}

@media (max-width: 640px) {
    .cf-hero {
        padding: 144px 16px 40px;
    }

    .cf-badge {
        letter-spacing: 3px;
        padding-inline: 14px;
    }

    .cf-logo {
        max-width: min(100%, 360px);
    }

    .cf-meta-row {
        grid-template-columns: 1fr;
    }

    .cf-section {
        padding: 60px 0;
    }

    .cf-feature-card {
        padding: 24px 20px;
    }

    .cf-gallery-arrow {
        width: 44px;
        height: 44px;
    }

    .cf-gallery-arrow svg {
        width: 18px;
        height: 18px;
    }

    .cf-gallery-track {
        gap: 10px;
    }

    .cf-lightbox-close {
        top: 12px;
        right: 12px;
    }

    .cf-lightbox-counter {
        bottom: 16px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .cf-tag {
        font-size: 0.65rem;
    }

    .cf-back-section {
        padding: 40px 0;
    }
}
