:root {
    --primary: #FF2D55;
    --secondary: #6C5CE7;
    --dark: #0A0A0B;
    --light: #F8F9FA;
    --accent: #00F2FF;
    --border: rgba(255, 45, 85, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none !important;
}

body {
    background: #fdfdfd;
    color: var(--dark);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* Kinetic Typography Background */
.bg-text {
    position: fixed;
    font-size: 20vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    z-index: -1;
    white-space: nowrap;
    text-transform: uppercase;
    user-select: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
}

/* Custom Cursor - Optional Pro Touch */
.cursor {
    display: none;
    /* Keep it simple but can be enabled */
}

/* Layout - Asymmetric Containers */
.section-wrap {
    position: relative;
    padding: 120px 0;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.asym-container {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 80px;
}

/* Hero - Poster Style */
.hero-poster {
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 100px;
    /* Offset for the fixed navigation */
}

.hero-text-side {
    padding-left: 100px;
    position: relative;
    z-index: 10;
}

.hero-features-side {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 60px;
    position: relative;
}

.hero-grid-sub {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    transform: rotate(2deg);
    /* Artistic slant */
}

.hero-features-side .grid-item {
    min-height: 180px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

.hero-features-side .grid-item:nth-child(even) {
    transform: translateX(40px) rotate(-1deg);
    background: var(--primary);
    color: white;
}

.hero-features-side .grid-item:hover {
    transform: scale(1.05) translateX(10px);
    z-index: 20;
}

.hero-features-side .item-num {
    font-size: 8rem;
    position: absolute;
    top: -20px;
    right: -20px;
    opacity: 0.15;
    pointer-events: none;
}

.giant-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 0.85;
    margin-bottom: 40px;
}

.title-line-1 {
    color: var(--dark);
}

.title-line-2 {
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
}

.hero-desc {
    font-size: 1.5rem;
    max-width: 500px;
    line-height: 1.4;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
}

/* Floating Elements */
.floating-asset {
    position: absolute;
    width: 400px;
    z-index: 20;
    pointer-events: none;
}

/* Manga Strip Layout */
.manga-strip-wrap {
    background: var(--dark);
    color: white;
    padding: 100px 0;
    transform: rotate(-2deg) scale(1.05);
    margin: 100px 0;
}

.strip-container {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    padding: 40px;
    scrollbar-width: none;
}

.strip-card {
    flex: 0 0 350px;
    height: 500px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.strip-card:hover {
    transform: translateY(-40px) rotate(2deg);
    border-color: var(--primary);
}

/* Bento Poster Grid */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 750px);
    gap: 15px;
    background: var(--dark);
    padding: 15px;
    max-width: 1300px;
    margin: 0 auto;
}

.grid-item {
    background: var(--light);
    padding: 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.grid-item.dark {
    background: var(--dark);
    color: white;
}

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

.item-num {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.1;
}

.section-title-giant {
    font-size: 3.5rem;
    font-weight: 950;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.1;
}

/* Navigation - Vertical Offset */
nav {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1400px;
    height: 80px;
    z-index: 1000;
}

.nav-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    padding: 0 40px;
    border-radius: 100px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
   /* Gallery Refined */
.gallery-grid-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.gallery-card {
    height: 600px;
    background: #111;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    z-index: 2;
}

.badge {
    background: var(--primary);
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.badge.dark { background: #000; }

.offset-card {
    transform: translateY(40px);
}

.card-info h4 { 
    font-size: 1.4rem; 
    font-weight: 850;
    margin-bottom: 5px; 
    line-height: 1.2;
}

.card-info p { 
    font-size: 0.85rem; 
    opacity: 0.7; 
}

.nav-links-desktop {
    display: flex;
    gap: 40px;
    font-weight: 700;
}

.nav-links-desktop a {
    text-decoration: none;
    color: black;
    transition: color 0.3s;
}

.nav-links-desktop a:hover {
    color: var(--primary);
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 2001;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: black;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    text-align: center;
}

.mobile-nav-content a {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: black;
    text-decoration: none;
    margin: 25px 0;
    transition: transform 0.3s;
}

.mobile-nav-content a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Marquee Stability */
.marquee-wrap {
    background: #FF2D55;
    color: white;
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    position: relative;
}
    padding: 0 40px;
    border-radius: 100px;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

/* Horizontal Marquee */
.marquee-wrap {
    overflow: hidden;
    background: var(--primary);
    color: white;
    white-space: nowrap;
    padding: 20px 0;
}

.marquee-content {
    display: flex;
    width: max-content;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    padding-right: 50px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Footer Poster */
footer {
    padding: 120px 40px;
    background: #000;
    color: white;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-hero-text {
    font-size: 12rem;
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .giant-title { font-size: 5rem; }
    .poster-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-poster { 
        grid-template-columns: 1fr; 
        padding-top: 150px;
        min-height: auto;
    }
    
    .hero-text-side { 
        padding: 20px; 
        text-align: center;
    }
    
    .giant-title { 
        font-size: 6rem !important; 
        line-height: 0.9 !important;
        margin-bottom: 20px !important;
    }
    
    .hero-desc { 
        margin: 0 auto 40px auto; 
        font-size: 1.1rem; 
        padding: 0 20px;
    }
    
    .hero-features-side { 
        height: auto; 
        padding: 20px;
    }
    
    .hero-grid-sub {
        transform: none;
        gap: 15px;
    }
    
    /* Grid Helpers for Mobile */
    .mobile-stack-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 25px !important;
    }
    
    .mobile-2-col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .poster-grid { 
        grid-template-columns: 1fr !important; 
        grid-template-rows: auto !important;
    }
    
    .grid-item { transform: none !important; }

    .grid-item[style*="span 2"] {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 400px;
    }

    /* Navigation Mobile */
    nav {
        top: 10px;
        width: calc(100% - 20px);
    }
    
    .offset-card {
        transform: none !important;
    }
    
    .nav-links-desktop {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .nav-download-btn {
        padding: 8px 15px !important;
        font-size: 0.8rem !important;
    }

    /* Improved Typography & Spacing */
    h1, .section-title-giant { 
        font-size: 2.8rem !important; 
        line-height: 1.1 !important; 
        margin-bottom: 25px !important;
        font-weight: 950;
        letter-spacing: -0.02em;
    }
    
    .section-desc-wrap {
        max-width: 100% !important;
        text-align: left !important;
    }

    h2 { font-size: 3.5rem !important; }
    
    .footer-hero-text { font-size: 4rem; }
    
    footer .container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 30px;
    }

    /* Final Stability Fixes */
    .gallery-grid-main {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 5px;
    }

    .gallery-card {
        height: 350px !important;
    }
    
    .offset-card { transform: none !important; }
    
    .card-info { padding: 15px !important; }
    .card-info h4 { font-size: 1rem !important; }
    
    .marquee-wrap {
        width: 100vw !important;
        max-width: 100% !important;
        padding: 12px 0 !important;
    }
    
    .marquee-content {
        font-size: 1.1rem !important;
    }

    .container {
        padding: 0 20px !important; 
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .bg-text { display: none !important; }
    
    .mobile-stack-grid {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }

    /* FAQ Vertical Fix */
    .manga-strip-wrap {
        height: auto !important;
        padding: 50px 0;
    }

    .strip-container {
        flex-direction: column !important;
        overflow-x: visible !important;
        height: auto !important;
    }

    .strip-card {
        width: 100% !important;
        height: auto !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 40px 20px !important;
        flex-shrink: 0 !important;
    }
    
    .strip-card h2 { font-size: 4rem !important; margin-bottom: 10px; }

    .tech-mockup-wrap {
        height: 400px !important;
    }
    
    .tech-mockup-wrap > div {
        width: 95% !important;
        height: 95% !important;
    }

    .footer-copyright-side {
        text-align: left !important;
        margin-top: 40px;
        opacity: 0.5;
    }

    footer p { font-size: 1.2rem !important; }

    .tech-guide-box {
        padding: 40px 25px !important;
        margin-top: 80px !important;
    }

    footer {
        margin-top: 100px !important;
    }

    /* History Grid Refinement */
    .grid-item[style*="span 2"] {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: auto !important;
        padding: 60px 25px !important;
        border-width: 8px !important;
    }

    .grid-item[style*="span 2"] h2 {
        font-size: 3rem !important;
        line-height: 1.1 !important;
        margin-top: 40px !important;
        margin-bottom: 30px !important;
    }
    
    .grid-item[style*="span 2"] div[style*="absolute"] {
        right: 20px !important;
        top: 20px !important;
        font-size: 0.9rem !important;
        padding: 5px 15px !important;
    }

    .brand-slogan-box {
        letter-spacing: 0.2em !important;
        font-size: 1.4rem !important;
        white-space: nowrap !important;
        height: 80px !important;
        margin-top: 40px !important;
    }

    .hero-features-side, .poster-grid, section, body, html {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
}