/* Core Variables */
:root {
    --bg-color: #fcfcfc;
    --text-color: #1a1a1a;
    --accent-color: #666;
    --border-color: #ccc;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Nest tagline */
.nest-tagline {
    font-size: 1.4rem;
    font-weight: 200;
    letter-spacing: 3px;
    text-transform: lowercase;
    opacity: 0.8;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    min-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

/* Game-like page transition overlay */
.page-wipe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    z-index: 9999;
    pointer-events: none;
    transform: translateY(100%);
}

/* Phase 1: cover the screen before navigating */
.page-wipe.covering {
    animation: wipeCover 0.3s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

/* Phase 2: reveal the new page after it loads */
.page-wipe.revealing {
    transform: translateY(0%);
    animation: wipeReveal 0.35s cubic-bezier(0.7, 0, 0.3, 1) forwards;
    animation-delay: 0.05s;
}

@keyframes wipeCover {
    0%   { transform: translateY(100%); }
    100% { transform: translateY(0%); }
}

@keyframes wipeReveal {
    0%   { transform: translateY(0%); }
    100% { transform: translateY(-100%); }
}

.site-content {
    flex: 1 0 auto;
    width: 100%;
}

.site-footer {
    flex-shrink: 0;
}

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

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 50px;
    padding-bottom: 30px;
}

/* Typography & Navigation */
.brand-logo a {
    font-size: 2.2rem;
    font-weight: 200;
    letter-spacing: -1.5px;
    text-transform: lowercase;
}

.site-navigation {
    display: flex;
    gap: 30px;
}

.site-navigation a {
    font-size: 1rem;
    font-weight: 300;
    text-transform: lowercase;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.site-navigation a:hover {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    width: 100%;
    margin-bottom: 70px;
}

.product-image-container {
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.product-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Product Details */
.product-details-section {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 120px;
}

.product-info-wrap {
    max-width: 450px;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.product-description {
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-bottom: 40px;
}

.product-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    text-transform: lowercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
}

.size-link {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.size-link:hover {
    color: #000;
}

.size-table-dropdown {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.5s ease;
    margin-bottom: 30px;
}
.size-table-dropdown.show {
    max-height: 200px;
    opacity: 1;
}
.size-table-dropdown table {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    text-align: left;
    font-size: 0.75rem;
    border-collapse: collapse;
    color: var(--text-color);
}
.size-table-dropdown th, .size-table-dropdown td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.buy-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Button */
.btn-buy,
.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 50px;
    padding: 0;
    text-align: center;
    text-transform: lowercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-family: var(--font-main);
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    border: 1px solid var(--text-color);
    text-decoration: none;
}

.btn-buy {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
}

.btn-buy:not(:disabled):hover {
    background-color: #333;
    transform: translateY(-2px);
    cursor: pointer;
}

.btn-locked {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-back {
    color: var(--text-color);
    background-color: transparent;
    border: 1px solid var(--text-color);
    opacity: 0.5;
}
.btn-back:hover {
    opacity: 1;
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    padding: 60px 0;
    text-align: center;
}

.footer-divider {
    width: 30px;
    height: 1px;
    background-color: #ddd;
    margin: 25px auto;
}

.brand-ethos {
    font-size: 0.75rem;
    text-transform: lowercase;
    letter-spacing: 2.5px;
    color: var(--accent-color);
}

.copyright {
    font-size: 0.7rem;
    color: #bbb;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.15s; }
.fade-in-delay-2 { animation-delay: 0.35s; }
.fade-in-delay-3 { animation-delay: 0.55s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Game-style grid card hover */
.grid-item:hover .grid-item-status.locked {
    animation: glitchBadge 0.3s ease;
}

@keyframes glitchBadge {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-2px); }
    50%  { transform: translateX(2px); }
    75%  { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

@media (max-width: 600px) {
    .product-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Product Grid */
.merch-grid-section {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 350px;
    }
}

/* Individual grid card */
.grid-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-6px);
    opacity: 0.85;
}

.grid-item-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 16px;
    z-index: 1;
}

@supports not (aspect-ratio: 1 / 1) {
    .grid-item-image::before {
        content: "";
        display: block;
        padding-top: 100%;
    }
}

.grid-item-image img, 
.grid-item-image svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.grid-item-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 0.8rem;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.grid-item-title {
    font-weight: 300;
}

.grid-item-status.locked {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 3px 8px;
    opacity: 0.7;
}

/* Mystery placeholder */
.mystery-placeholder {
    font-size: 5rem;
    font-weight: 100;
    color: rgba(0,0,0,0.2);
    user-select: none;
}

.mystery-full-placeholder {
    font-size: 9rem;
    font-weight: 100;
    color: rgba(0,0,0,0.15);
    user-select: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Coming Soon Landing Page ─────────────────────────────────── */
.coming-soon-wrap {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 40px 5% 80px;
}

/* Logo video — full container width, natural height */
.coming-soon-logo {
    width: 100%;
    max-width: 1000px;
}

.pixelwalk-video {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* Form wrapper */
.coming-soon-form-wrap {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.coming-soon-label {
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 2px;
    color: rgba(232, 232, 232, 0.7);
    text-align: center;
}

.coming-soon-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Email input — wider than checkbox group */
.cs-input {
    width: 100%;
    max-width: 440px;
    height: 50px;
    background: transparent;
    border: 1px solid rgba(232, 232, 232, 0.4);
    color: #e8e8e8;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: lowercase;
    padding: 0 16px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
}

.cs-input::placeholder {
    color: rgba(232, 232, 232, 0.3);
}

.cs-input:focus {
    border-color: rgba(232, 232, 232, 0.9);
}

/* Checkbox group */
.cs-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 340px;
}

.cs-check-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 1px;
    color: rgba(232, 232, 232, 0.75);
    line-height: 1.5;
    user-select: none;
}

.cs-check-label input[type="checkbox"] {
    /* hide native checkbox */
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom checkbox box */
.cs-check-box {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(232, 232, 232, 0.4);
    background: transparent;
    display: inline-block;
    margin-top: 1px;
    position: relative;
    transition: border-color 0.25s ease, background 0.25s ease;
}

/* Checked state */
.cs-check-label input[type="checkbox"]:checked + .cs-check-box {
    background: #e8e8e8;
    border-color: #e8e8e8;
}
.cs-check-label input[type="checkbox"]:checked + .cs-check-box::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    width: 5px;
    height: 8px;
    border: 1.5px solid #111;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Disabled option */
.cs-check-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Submit button area */
.cs-actions {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Override btn-buy for dark bg */
.coming-soon-form .btn-buy {
    background-color: #e8e8e8;
    color: #111;
    border-color: #e8e8e8;
}
.coming-soon-form .btn-buy:not(:disabled):hover {
    background-color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}
.coming-soon-form .btn-buy.btn-locked {
    background-color: transparent;
    border: 1px solid rgba(232, 232, 232, 0.3);
    color: rgba(232, 232, 232, 0.3);
    cursor: not-allowed;
}

/* Feedback message */
.cs-message {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: lowercase;
    min-height: 1.2em;
    text-align: center;
    opacity: 0.85;
}
.cs-message--ok  { color: #a8e6a3; }
.cs-message--err { color: #e6a3a3; }

@media (max-width: 480px) {
    .cs-input { max-width: 100%; }
    .cs-checkboxes { max-width: 100%; }
}
