/* ==========================================================================
   Ginst Tiles - Dedicated Stylesheet
   Matching Ginst architecture with custom portrait video & neon aesthetic
   ========================================================================== */

/* Video Background (Hero Ambient) */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.35;
    filter: blur(12px) brightness(0.55) saturate(1.4);
    transition: opacity 0.5s ease;
}

.ginst-page .hero::before {
    display: none;
}

.ginst-page .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(18, 26, 47, 0.4) 0%, rgba(5, 7, 10, 0.85) 100%);
    z-index: 1;
}

/* Hero Section Layout */
.ginst-page .hero {
    position: relative;
    min-height: 100vh;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: left !important;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
    background: #05070a;
}

.ginst-page .hero-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100% !important;
    padding: 0 40px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.ginst-page .hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    text-align: left !important;
}

.ginst-page .hero-content h1 {
    color: #4be2ff;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.05;
    margin-bottom: 10px;
    text-shadow: 0 0 25px rgba(75, 226, 255, 0.6), 0 0 50px rgba(75, 226, 255, 0.3);
    background: linear-gradient(135deg, #4be2ff 0%, #ffd166 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ginst-page .hero-content h2 {
    color: #ffffff;
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    margin: 0 0 10px 0;
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ginst-page .hero-content .tagline {
    color: #cbd5e1;
    font-size: 1.15rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.ginst-page .hero-content .tagline::before {
    content: '—';
    color: #4be2ff;
    font-weight: bold;
}

.hero-actions {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-gameplay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 38px;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-gameplay:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.65);
    color: #ffffff;
}

.btn-gameplay i {
    font-size: 0.9rem;
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 15px;
}

.badge-link img {
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.badge-google img {
    height: 56px;
    margin-left: -8px;
}

.badge-apple img {
    height: 39px;
}

.badge-link:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2));
}

/* Portrait Device Showcase (Hero Right Side) */
.hero-device-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.phone-mockup {
    position: relative;
    width: 290px;
    aspect-ratio: 9 / 16;
    background: #000000;
    border-radius: 42px;
    padding: 10px;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(75, 226, 255, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.phone-mockup:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 0 0 2px rgba(75, 226, 255, 0.5),
        0 25px 70px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(75, 226, 255, 0.45);
}

.phone-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #05070a;
}

.phone-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: #000;
    border-radius: 10px;
    z-index: 5;
    pointer-events: none;
}

.phone-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
}

.phone-mockup:hover .phone-play-overlay {
    opacity: 1;
}

.play-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(56, 189, 248, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.play-circle i {
    margin-left: 4px;
}

.phone-mockup:hover .play-circle {
    transform: scale(1.05);
}

.play-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Section Title Generic Alignment */
.ginst-page .section-title {
    text-align: left;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    text-transform: none;
    letter-spacing: 0;
    color: #ffffff;
    font-weight: 700;
}

/* About Game Section */
.about-game {
    padding: 90px 0;
    background: #070b14;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-layout {
    display: flex;
    align-items: center;
    gap: 70px;
}

.about-logo {
    flex-shrink: 0;
    width: 320px;
}

.about-phone-card {
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.about-phone-card:hover {
    transform: scale(1.02);
}

.about-phone-card img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex-grow: 1;
}

.about-text p {
    margin-bottom: 18px;
    font-size: 1.15rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.7;
}

.about-text .motto-lead {
    font-size: 1.25rem;
    color: #4be2ff;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(75, 226, 255, 0.3);
}

.about-text .download-badges {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
}

/* Community Section */
.community-section {
    padding: 70px 0;
    background: #05070a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.community-section .section-title {
    text-align: left;
    margin-bottom: 15px;
    font-size: 2rem;
}

.community-description {
    color: var(--text-secondary, #94a3b8);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 950px;
    margin-bottom: 35px;
}

.community-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    align-items: center;
}

.social-box {
    color: #ffffff;
    font-size: 3.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.85;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.social-box:hover {
    transform: translateY(-6px) scale(1.1);
    opacity: 1;
    color: #38bdf8;
    filter: drop-shadow(0 10px 16px rgba(56, 189, 248, 0.4));
}

/* Feature Sections (Lead Notes, Mechanics, Chords, Speeds, Packs) */
.lead-notes-section,
.music-themes,
.game-features,
.bonus-section,
.packs-section {
    padding: 100px 0;
}

.lead-notes-section {
    background: #060a14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.music-themes {
    background: #0a0f1d;
}

.game-features {
    background: #05070a;
}

.bonus-section {
    background: #090e1b;
}

.packs-section {
    background: #05070a;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1.1;
}

.feature-text p {
    font-size: 1.15rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-text .highlight-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.feature-image {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.portrait-preview-card {
    max-width: 380px;
    width: 100%;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portrait-preview-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(56, 189, 248, 0.3);
}

.portrait-preview-card img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
}

.feature-list li {
    margin-bottom: 20px;
    color: var(--text-secondary, #94a3b8);
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: baseline;
    line-height: 1.6;
}

.feature-list li strong {
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    grid-column: 1;
    display: inline-block;
    padding-right: 15px;
    font-size: 1.05rem;
}

.feature-list li span {
    display: inline-block;
    color: #cbd5e1;
    grid-column: 2;
    font-size: 1.05rem;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: #070b14;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery .section-title {
    text-align: left;
    margin-bottom: 40px;
}

.gallery-container {
    width: 100%;
}

/* Video Modal (Portrait 9:16) */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 440px;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.4), 0 25px 60px rgba(0, 0, 0, 0.9);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    outline: none;
}

.video-modal-close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #fff;
    font-size: 2.8rem;
    cursor: pointer;
    z-index: 10002;
    transition: transform 0.3s ease, color 0.3s ease;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.video-modal-close:hover {
    transform: rotate(90deg) scale(1.15);
    color: #38bdf8;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1100px) {
    .ginst-page .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: left;
    }

    .hero-device-showcase {
        justify-content: flex-start;
    }

    .phone-mockup {
        width: 260px;
    }

    .feature-row {
        gap: 50px;
    }
}

@media (max-width: 900px) {
    .about-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .about-logo {
        width: 100%;
        max-width: 320px;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 45px;
    }

    .portrait-preview-card {
        max-width: 320px;
    }

    .community-socials {
        gap: 25px;
    }

    .social-box {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .ginst-page .hero {
        padding-top: 100px;
        padding-bottom: 50px;
        min-height: auto;
    }

    .ginst-page .hero-container {
        padding: 0 20px !important;
    }

    .ginst-page .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-badges {
        flex-wrap: wrap;
        gap: 12px;
    }

    .badge-google img {
        height: 48px;
    }

    .badge-apple img {
        height: 33px;
    }

    .hero-device-showcase {
        display: none; /* Portrait video background takes over full ambience on mobile */
    }

    .video-background video {
        opacity: 0.45;
        filter: blur(4px) brightness(0.65);
    }

    .music-themes,
    .game-features,
    .bonus-section,
    .packs-section,
    .about-game,
    .gallery {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .feature-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .feature-list li strong {
        grid-column: 1;
        padding-right: 0;
    }

    .feature-list li span {
        grid-column: 1;
    }
}

/* Mobile Landscape Optimization */
@media (max-width: 932px) and (orientation: landscape) {
    .ginst-page .hero {
        padding-top: 80px !important;
        min-height: auto;
    }

    .hero-device-showcase {
        display: none;
    }

    .ginst-page .hero-content h1 {
        font-size: 2.2rem !important;
    }

    .ginst-page .hero-content h2 {
        font-size: 1.2rem !important;
    }

    .btn-gameplay {
        padding: 10px 28px !important;
        font-size: 0.85rem !important;
    }
}
