/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

/* ================= HERO ================= */
.hero {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(88, 101, 242, 0.12), transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% { opacity: .5; }
    50% { opacity: 1; }
}

.logo {
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #667eea, #a855f7, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    z-index: 1;
}

.intro {
    max-width: 900px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #d0d0d0;
    margin-bottom: 2.5rem;
    z-index: 1;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all .35s ease;
    z-index: 1;

}

.cta-button:hover {
    transform: scale(1.06);
    box-shadow: 0 15px 40px rgba(102,126,234,.5);
}

/* ================= CONTENT SECTIONS ================= */
.page-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
}

.page-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #667eea, #a855f7, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================= REFERENCE TITLE ================= */
.reference-title {
    text-align: center;
    margin: 4rem 0 2rem;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #667eea, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================= VIDEO GRID ================= */
.video-grid {
    max-width: 1400px;
    margin: 0 auto 6rem;
    display: grid;
    gap: 2.5rem;
}

.video-grid.vertical {
    grid-template-columns: repeat(3, 1fr);
}

.video-grid.horizontal {
    grid-template-columns: repeat(2, 1fr);
}

/* ================= VIDEO CARD ================= */
.video-grid video {
    width: 100%;
    border-radius: 22px;
    background: #000;
    border: 2px solid rgba(102,126,234,.2);
    box-shadow:
        0 15px 40px rgba(0,0,0,.6),
        inset 0 0 0 1px rgba(255,255,255,.03);
    transition: 
        transform .45s ease,
        box-shadow .45s ease,
        border-color .45s ease;
    position: relative;
}

/* Glow overlay */
.video-grid video::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(102,126,234,.18),
        rgba(168,85,247,.18)
    );
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.video-grid video:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: #667eea;
    box-shadow:
        0 30px 70px rgba(102,126,234,.4),
        0 0 45px rgba(168,85,247,.3);
}

.video-grid video:hover::after {
    opacity: 1;
}

/* ================= FORMAT SECTION TITLES ================= */
.format-title {
    text-align: center;
    margin-bottom: 5rem;
    font-size: clamp(2.8rem, 6vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #a855f7 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glow underline */
.format-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #667eea, #a855f7);
    box-shadow: 0 0 25px rgba(102,126,234,.7);
}

/* Solid secondary CTA */
.cta-button.secondary {
    background: linear-gradient(135deg, #667eea, #a855f7);
    box-shadow: 0 12px 35px rgba(102,126,234,.45);
}

/* Outline style */
.cta-button.outline {
    background: transparent;
    border: 2px solid rgba(102,126,234,.6);
    color: #fff;
}

/* Hover behavior */
.cta-button.secondary:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 50px rgba(102,126,234,.6);
}

.cta-button.outline:hover {
    background: rgba(102,126,234,.12);
    border-color: #667eea;
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(102,126,234,.35);
}

/* ================= YOUTUBE EMBEDS ================= */
.yt {
    position: relative;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    border: 2px solid rgba(102,126,234,.2);
    box-shadow:
        0 15px 40px rgba(0,0,0,.6),
        inset 0 0 0 1px rgba(255,255,255,.03);
    transition:
        transform .45s ease,
        box-shadow .45s ease,
        border-color .45s ease;
}

/* Aspect ratios */
.yt.vertical { aspect-ratio: 9 / 16; }
.yt.horizontal { aspect-ratio: 16 / 9; }

.yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Hover glow (same as video) */
.yt:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: #667eea;
    box-shadow:
        0 30px 70px rgba(102,126,234,.4),
        0 0 45px rgba(168,85,247,.3);
}

/* Mobile stacking */
@media (max-width: 640px) {
    .end-actions {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-button {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }
}

/* ================= FOOTER ================= */
footer {
    padding: 2rem;
    text-align: center;
    color: #666;
    background: #0a0a0a;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .video-grid.vertical {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-grid.horizontal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem;
        min-height: 90vh;
    }

    .logo {
        font-size: 3rem;
    }

    .intro {
        font-size: .95rem;
    }

    .page-section h2 {
        font-size: 2.2rem;
    }

    .video-grid {
        gap: 2rem;
    }

    .video-grid.vertical,
    .video-grid.horizontal {
        grid-template-columns: 1fr;
    }

    .video-grid video {
        border-radius: 16px;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.3rem;
    }

    .reference-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}
