/*
Theme Name: Nakano Pro
Theme URI: https://nakano2835.com
Author: Antigravity
Description: A premium, Apple-style product landing theme (`v3.2`).
Version: 3.2.0
*/

:root {
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-body: #ffffff;
    --bg-card: #f5f5f7;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Yu Gothic", "YuGothic", Arial, sans-serif;
    --header-height: 48px;
    --radius-card: 24px;
}

/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Sticky Glass Header */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: transparent;
    /* logic moved to .nav-background */
    /* transparency removed to solve 'mismatch' issue */
    z-index: 9999;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.05); REMOVED for Organic Look */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Wrapper */
.nav-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Solid Grey Header Block */
.nav-bg-solid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f7;
}

/* Organic: Drip Border */
.header-drip {
    position: absolute;
    bottom: -38px;
    /* Push down so the FLAT top connects with header bottom */
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 1;
    /* Same layer as solid block */
    pointer-events: none;
    overflow: hidden;
    transform-origin: top center;
}

.header-drip svg {
    width: 110%;
    height: 100%;
    margin-left: -5%;
    display: block;
    fill: #f5f5f7;
    /* Solid */
    animation: liquidSway 6s ease-in-out infinite alternate;
}

/* Gentle swaying of the drip */
@keyframes liquidSway {
    0% {
        transform: translateX(0) scaleY(1);
    }

    100% {
        transform: translateX(-10px) scaleY(1.1);
    }
}


/* Section: Technical Specs (Footer) */
.section-specs {
    position: relative;
    background-color: transparent;
    padding: 60px 24px 40px;
    border-top: none;
    z-index: 5;
    /* Establish Stacking Context above Body */
}

/* Footer Background Wrapper */
.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind footer content */
    pointer-events: none;
}

/* Solid Grey Footer Block */
.footer-bg-solid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f7;
    z-index: 1;
}

/* Organic: Footer Drip (Manually Inverted) */
.footer-drip {
    position: absolute;
    top: -38px;
    /* Sticks out the top */
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 1;
    /* Matches solid block */
    overflow: hidden;
    transform-origin: bottom center;
}

.footer-drip svg {
    width: 110%;
    height: 100%;
    margin-left: -5%;
    display: block;
    fill: #f5f5f7;
    animation: liquidSway 6s ease-in-out infinite alternate;
}

.specs-content {
    position: relative;
    z-index: 2;
    /* Sit on top of background */

    width: 100%;
    max-width: 1024px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-content {
    width: 100%;
    max-width: 1024px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 600;
    font-size: 14px;
    opacity: 0.8;
}

/* Desktop Menu (Default) */
.desktop-menu ul {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-menu a {
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.8;
    transition: opacity 0.2s;
    font-weight: 500;
}

.desktop-menu a:hover {
    opacity: 1;
}

/* Hamburger & Mobile Overlay (Hidden on Desktop) */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

.mobile-nav-overlay {
    display: none;
}

/* Mobile Logic (< 768px) */
@media (max-width: 768px) {

    /* Hide Desktop Menu */
    .desktop-menu {
        display: none;
    }

    /* Show Hamburger - V2: "The Equalizer" */
    .nav-toggle-label {
        display: block;
        width: 24px;
        height: 14px;
        position: relative;
        cursor: pointer;
        z-index: 10001;
    }

    .nav-toggle-label span {
        display: none;
        /* We use before/after only for the 2-line look */
    }

    .nav-toggle-label::before,
    .nav-toggle-label::after {
        content: '';
        display: block;
        background: var(--text-primary);
        height: 2px;
        /* Confident strokes */
        width: 100%;
        position: absolute;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 2px;
    }

    .nav-toggle-label::before {
        top: 0;
    }

    .nav-toggle-label::after {
        bottom: 0;
    }

    /* Open State (Cross Transformation) */
    .nav-toggle:checked~.nav-toggle-label::before {
        top: 6px;
        transform: rotate(45deg);
    }

    .nav-toggle:checked~.nav-toggle-label::after {
        bottom: 6px;
        transform: rotate(-45deg);
    }

    /* "Glass Curtain" Overlay - Solid Fix */
    .mobile-nav-overlay {
        display: block;
        position: fixed;
        top: -120%;
        /* Hidden above viewport */
        left: 0;
        width: 100%;
        height: 100vh;
        /* Use vh to ensure full viewport */
        background: #ffffff;
        /* Solid White - No Transparency Overlap */
        z-index: 10000;
        visibility: hidden;
        transition: top 0.5s cubic-bezier(0.83, 0, 0.17, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-top: 20px;
        /* Slight buffer */
    }

    .nav-toggle:checked~.mobile-nav-overlay {
        top: 0;
        visibility: visible;
    }

    /* Mobile Menu Items - Staggered Fade In */
    .mobile-nav-overlay ul {
        list-style: none;
        padding: 0;
        margin-bottom: 40px;
    }

    .mobile-nav-overlay li {
        margin-bottom: 32px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-toggle:checked~.mobile-nav-overlay li:nth-child(1) {
        transition-delay: 0.1s;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-toggle:checked~.mobile-nav-overlay li:nth-child(2) {
        transition-delay: 0.15s;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-toggle:checked~.mobile-nav-overlay li:nth-child(3) {
        transition-delay: 0.2s;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-toggle:checked~.mobile-nav-overlay li:nth-child(4) {
        transition-delay: 0.25s;
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav-overlay a {
        font-size: 32px;
        font-weight: 700;
        color: var(--text-primary);
        letter-spacing: -0.02em;
        text-decoration: none;
    }

    .mobile-extras {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
        opacity: 0;
        transition: opacity 0.5s ease 0.4s;
    }

    .nav-toggle:checked~.mobile-nav-overlay .mobile-extras {
        opacity: 1;
    }

    .mobile-extras a {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-secondary);
        letter-spacing: 0;
    }

    /* Hide Footer Links on Mobile */
    .desktop-only {
        display: none !important;
    }
}

/* Main Layout */
main {
    padding-top: var(--header-height);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Section: Hero */
.section-hero {
    padding: 100px 24px 50px;
    /* Top reduced slightly, Bottom reduced significantly */
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}

.hero-statement {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 24px;
    line-height: 1.2;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: -8px;
}

@media (max-width: 734px) {
    .section-hero {
        padding: 80px 24px 40px;
    }

    .hero-statement {
        font-size: 40px;
    }

    .hero-sub {
        font-size: 20px;
    }
}

/* Section: Product Showcase (Bento Grid Style) */
.section-showcase {
    padding: 10px 24px 60px;
    /* Reduced bottom padding */
}

.product-card {
    background-color: #ffffff;
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
    /* Vertical padding reduced */
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover {
    transform: scale(1.01);
}

.product-image-wrapper {
    margin-bottom: 30px;
    /* Reduced visual gap */
}

.product-image-wrapper img {
    border-radius: 12px;
    margin: 0 auto;
    max-height: 500px;
    max-width: 600px;
    /* Constrain width to match Title */
    width: 100%;
    object-fit: contain;
    /* Ensure it doesn't crop */
}

.product-info h2 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 17px;
    color: var(--text-secondary);
}

@media (max-width: 734px) {
    .product-card {
        padding: 40px 24px;
        border-radius: 20px;
    }

    .product-image-wrapper {
        margin-bottom: 30px;
    }
}

/* Section: Technical Specs (Footer) */
.section-specs {
    background-color: var(--bg-card);
    padding: 40px 24px;
    /* Reduced vertical padding */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.specs-content {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    /* Tightened gap from 40px */
}

.specs-notice {
    font-size: 11px;
    /* Slightly refined size */
    color: var(--text-secondary);
    max-width: 600px;
    text-align: center;
    line-height: 1.4;
    /* Tighter line height */
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 11px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons svg {
    width: 18px;
    /* Slightly more subtle */
    height: 18px;
    fill: var(--text-secondary);
    transition: fill 0.2s;
}

.social-icons svg:hover {
    fill: var(--text-primary);
}

.copyright {
    font-size: 11px;
    color: #999;
}

/* Single Post / Page Styles */
.single-content {
    max-width: 680px;
    margin: 80px auto;
    padding: 0 24px;
}

.single-header {
    text-align: center;
    margin-bottom: 60px;
}

.single-title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.single-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

.entry-content {
    font-size: 19px;
    line-height: 1.58;
    color: var(--text-primary);
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: 28px;
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.entry-content img {
    border-radius: 12px;
    margin: 2em auto;
}
/* Section: 404 Error */
.error-404-container {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 60px;
}

.error-title {
    font-size: 120px;
    font-weight: 100; /* Ultra thin */
    line-height: 1;
    margin: 0 0 24px;
    color: var(--text-color);
    letter-spacing: -4px;
    opacity: 0.8;
}

.error-message {
    font-size: 16px;
    color: var(--text-secondary); /* Grey text */
    margin-bottom: 40px;
    font-weight: 400;
}

.error-home-link .btn-home {
    display: inline-block;
    padding: 12px 32px;
    background: #000;
    color: #fff;
    border-radius: 999px; /* Pill shape */
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.error-home-link .btn-home:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .error-title {
        font-size: 80px;
    }
}
