:root {
    --bg-deep: #050508;
    --bg-grid: #1a1a2e;
    
    --glass-surface: rgba(30, 30, 35, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-orange: #ff9e7d;
    --accent-blue: #60a5fa;
    
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --window-radius: 32px;
    --pill-radius: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* No scrolling allowed */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Immersive Background --- */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    perspective: 1000px;
}

.retro-grid {
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotateX(75deg);
    animation: grid-scroll 20s linear infinite;
    mask-image: radial-gradient(circle at 50% 0%, black 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, black 0%, transparent 60%);
}

@keyframes grid-scroll {
    0% { transform: rotateX(75deg) translateY(0); }
    100% { transform: rotateX(75deg) translateY(60px); }
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.2) 1px,
        transparent 1px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 0;
}

.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-deep) 90%);
    z-index: 1;
}

/* --- Glass Utility Classes --- */
.glass-panel {
    background: var(--glass-surface);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px var(--glass-highlight);
}

.glass-pill {
    border-radius: var(--pill-radius);
}

/* --- Main Spatial Window --- */
.spatial-window {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 60vh;
    min-height: 500px;
    z-index: 10;
    
    background: var(--glass-surface);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    
    border: 1px solid var(--glass-border);
    border-radius: var(--window-radius);
    
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px var(--glass-highlight);
        
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes glass-shimmer {
    0% { background-position: 150% 0; }
    100% { background-position: -50% 0; }
}

.spatial-window.scrollable {
    display: block; /* Switch to block for scrolling content */
    overflow-y: auto;
    text-align: left;
    padding: 0;
}

/* Scrollbar Styling for WebKit */
.spatial-window.scrollable::-webkit-scrollbar {
    width: 8px;
}

.spatial-window.scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.spatial-window.scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.privacy-doc {
    padding: 3rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-doc h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.privacy-doc .last-updated {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.privacy-doc h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.privacy-doc p, .privacy-doc ul {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.privacy-doc ul {
    padding-left: 1.5rem;
}

.privacy-doc li {
    margin-bottom: 0.5rem;
}

.privacy-doc a {
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

/* --- Content Views --- */
.content-view {
    position: absolute;
    inset: 0;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 6rem;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.content-view.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* Typography */
h1.main-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.jp-subtitle {
    font-size: 1.5rem;
    color: var(--accent-orange);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 158, 125, 0.3);
}

.divider {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1.5rem auto;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.description {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Interactive Elements */
.cta-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Contact View */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mail-link {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
}

.links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
}

.links a:hover {
    color: white;
    border-bottom-color: white;
}

.trademark {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 2rem;
}

/* --- Navigation Ornament --- */
.ornament-nav {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    
    background: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.5rem;
    
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ornament-nav:hover {
    transform: translateY(-50%) scale(1.05);
}

.nav-btn {
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.nav-btn svg {
    overflow: visible;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        justify-content: flex-start;
        padding-top: 2rem;
    }
    .main-title { font-size: 3.5rem; }
    .spatial-window { width: 95%; height: 70vh; }
    .content-view { padding: 6rem 1.5rem 1.5rem 1.5rem; }

    .ornament-nav {
        left: 50%;
        bottom: 2rem;
        top: auto;
        transform: translateX(-50%);
        flex-direction: row;
        border-radius: var(--pill-radius);
    }

    .ornament-nav:hover {
        transform: translateX(-50%) scale(1.05);
    }
}