/* =========================================
   RESET & BASE STYLES
   ========================================= */
:root {
    --primary-color: #00E5FF;
    /* Cyan/Teal Neon */
    --secondary-color: #2979FF;
    /* Bright Blue */
    --accent-color: #FF2E93;
    /* Pink Accent */
    --text-color: #FFFFFF;
    --text-muted: #B0BEC5;
    --bg-color: #0A192F;
    /* Deep Navy */
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --container-width: 1200px;
    --header-height: 70px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    /* CRITICAL: No scroll-behavior: smooth to prevent fighting with JS/Native scroll */
    overflow-x: hidden;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section {
    padding: 80px 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-text {
    background: linear-gradient(135deg, #FFD700, #FDB931, #C06C02);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glossy-green {
    background: linear-gradient(135deg, #00FF7F, #b0ffce, #00FF7F);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
    font-weight: 700;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.section-subtitle {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* =========================================
   HEADER
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
}

.nav-menu ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-btn {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    padding: 8px 20px;
    border-radius: 50px;
    color: #fff !important;
    font-weight: 700 !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 25, 47, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.mobile-menu-overlay ul {
    text-align: center;
}

.mobile-menu-overlay li {
    margin: 20px 0;
}

.mobile-menu-overlay a {
    font-size: 1.5rem;
    font-weight: 700;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    /* Use dvh for mobile address bar handling */
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Critical for containing background effects */
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind glow if needed, or replace it */
}

/* Supernova Effect Configured to NOT cause scroll overflow */
.supernova-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 229, 255, 0.05) 40%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-title {
    font-size: 3.5rem;
    /* Adjustable for mobile */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.mouse-icon {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* =========================================
   SECTIONS: About, Features, Voices, etc
   ========================================= */
.concept-highlight {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 30px;
    background: linear-gradient(120deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-scenes {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.feature-scenes.hidden {
    display: none;
}

.scene-img {
    border-radius: 10px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.btn-expand {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 15px;
    cursor: pointer;
}

/* Voices */
.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.voice-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
}

.voice-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Price */
.price-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    margin: 20px 0;
}

.price-details-container {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Company */
.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.ceo-photo-wrapper {
    margin-bottom: 20px;
}

.ceo-img {
    width: 150px;
    border-radius: 50%;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.tiktok-btn {
    background: #000;
    border: 1px solid #333;
}

.insta-btn {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.timeline {
    border-left: 2px solid var(--primary-color);
    padding-left: 20px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.year {
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    padding: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact Section Styles */
.contact {
    background: linear-gradient(180deg, var(--bg-color) 0%, #0d2546 100%);
}

.cta-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 60px 20px;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #fff;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.2rem;
}

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.3);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding-right: 20px;
    color: #fff;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

/* Open state for icon */
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 20px 25px;
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
.mobile-sticky-footer {
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Fix overlap between buttons and scroll indicator */
    .hero-content {
        padding-bottom: 80px;
        /* Ensure space for scroll indicator */
    }

    .scroll-indicator {
        bottom: 100px;
        /* Move it up slightly if needed, or keeping it bottom but content is padded */
        /* Actually, let's keep scroll indicator at bottom but ensure content doesn't hit it */
        bottom: 20px;
    }

    /* If viewport is really short, maybe hide scroll indicator? */
    @media (max-height: 700px) {
        .scroll-indicator {
            display: none;
        }
    }

    .price-details-container {
        grid-template-columns: 1fr;
    }

    .company-grid {
        grid-template-columns: 1fr;
    }

    /* Sticky Button for Mobile */
    .mobile-sticky-footer {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        z-index: 2000;
        pointer-events: none;
        /* Let clicks pass through around button */
    }

    .sticky-btn {
        pointer-events: auto;
        display: block;
        background: linear-gradient(90deg, #FF2E93, #FFD700);
        color: #fff;
        text-align: center;
        padding: 15px;
        border-radius: 50px;
        font-weight: 800;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        animation: pulse 2s infinite;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}