@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

:root {
    --bg-deep: #050810;
    --accent-primary: #00f2ff;
    --accent-secondary: #8A00FF;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f0f0f0;
    --text-dim: #a0a0a0;
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Background & Effects */
#canvas-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1;
}

.glow-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 2;
    background: radial-gradient(circle at 80% 20%, rgba(0, 242, 255, 0.05), transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(138, 0, 255, 0.05), transparent 40%);
    pointer-events: none;
}

.vignette {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    box-shadow: inset 0 0 200px rgba(0,0,0,0.8);
    z-index: 2;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-symbol {
    width: 32px; height: 32px;
    border: 1px solid var(--accent-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; border-radius: 6px;
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.logo-text {
    font-weight: 600; letter-spacing: 2px;
    font-size: 1rem;
}

.logo-text span { color: var(--accent-primary); }

.nav-links {
    display: flex; gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.sign-in-alt {
    background: transparent;
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 30px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.4s;
    backdrop-filter: blur(10px);
}

.sign-in-alt:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    transform: translateY(-2px);
}

/* Premium Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 160px 60px 100px 160px;
    max-width: 1600px;
    margin: 0 auto;
}

.premium-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-primary);
    margin-bottom: 20px;
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 30px;
    background: rgba(0, 242, 255, 0.05);
}

.reveal-text {
    font-size: clamp(4rem, 6vw, 6rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(to right, #00f2ff, #0075FF, #8A00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.25rem;
    max-width: 600px;
    line-height: 1.6;
    font-weight: 300;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 86px;
    background: linear-gradient(135deg, rgba(20, 25, 45, 0.6) 0%, rgba(5, 8, 15, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6), inset 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 0;
    z-index: 1001;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.sidebar:hover {
    width: 260px;
    align-items: flex-start;
    padding: 35px 25px;
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 255, 0.15), inset 0 0 12px rgba(255, 255, 255, 0.05);
}

.side-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    width: 100%;
    text-decoration: none;
    color: var(--text-dim);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 18px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    margin-bottom: 6px;
}

.side-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.side-link:hover::before, .side-link.active::before {
    opacity: 1;
}

.side-link:hover, .side-link.active {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transform: translateX(6px);
}

.side-link.active {
    box-shadow: inset 3px 0 0 var(--accent-primary);
}

.s-icon {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-top .side-link .s-icon::before { content: '🏠'; }
.sidebar-menu .side-link:nth-child(1) .s-icon::before { content: '📦'; }
.sidebar-menu .side-link:nth-child(2) .s-icon::before { content: '📱'; }
.sidebar-menu .side-link:nth-child(3) .s-icon::before { content: '🌐'; }
.sidebar-menu .side-link:nth-child(4) .s-icon::before { content: '🎮'; }
.sidebar-menu .side-link:nth-child(5) .s-icon::before { content: '🎬'; }
.sidebar-menu .side-link:nth-child(6) .s-icon::before { content: '✨'; }
.sidebar-bottom .side-link:nth-child(1) .s-icon::before { content: '🛠️'; }
.sidebar-bottom .side-link:nth-child(2) .s-icon::before { content: '✉️'; }

.side-link:hover .s-icon, .side-link.active .s-icon {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.8));
    transform: scale(1.1);
}

.s-text { 
    opacity: 0; 
    transform: translateX(-12px); 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sidebar:hover .s-text {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap: 4px;
}

/* Premium Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
    margin-top: 40px;
}

.bento-card {
    background: rgba(15, 17, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s, border-color 0.6s;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.03), transparent 50%);
    pointer-events: none;
    transition: opacity 0.4s;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 40px rgba(0, 242, 255, 0.1);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    z-index: 2;
}

.panel-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    background: rgba(0, 242, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 255, 0.1);
}

.card-icon {
    color: rgba(255,255,255,0.4);
    transition: color 0.4s;
}

.bento-card:hover .card-icon {
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(0,242,255,0.5));
}

.card-bottom { z-index: 2; }

.bento-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.bento-card p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
}

/* Specific Card Styles */
.card-mobile {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.8), rgba(5, 8, 15, 0.9));
}

.card-mobile h3 { font-size: 2.8rem; margin-bottom: 20px; }
.card-mobile p { font-size: 1.15rem; max-width: 80%; margin-bottom: 30px; }

.explore-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    color: #000;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.card-mobile:hover .explore-btn {
    transform: translateX(10px);
}

.card-games { grid-column: span 2; grid-row: span 1; }
.card-web { grid-column: span 1; grid-row: span 1; }
.card-video { grid-column: span 1; grid-row: span 1; }

.card-others {
    grid-column: span 4;
    grid-row: span 1;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(90deg, rgba(15,17,26,0.6), rgba(25,10,40,0.5));
}

.card-others .card-left { flex: 1; z-index: 2; }
.card-others .card-right { flex: 1; display: flex; justify-content: flex-end; position: relative; }

.hologram-orb {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    filter: blur(30px);
    animation: orbPulse 4s infinite alternate;
}

@keyframes orbPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

@media (max-width: 1100px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .card-others { grid-column: span 2; flex-direction: column; text-align: center; }
    .card-others .card-right { justify-content: center; margin-top: 30px; }
}
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .card-mobile, .card-games, .card-web, .card-video, .card-others { grid-column: span 1; }
}

/* Subpage Specific */
.subpage #canvas-container {
    display: none;
}

.subpage {
    background: radial-gradient(circle at 50% 50%, #0a0f20 0%, #050810 100%);
}

.extra-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    position: relative;
}

#central-avatar-canvas {
    filter: drop-shadow(0 0 50px rgba(0, 242, 255, 0.1));
}

.avatar-status {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 0.7; transform: scale(1); }
}

/* Veloneon Card Grid */
.card-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 80px;
    padding-bottom: 100px;
    flex-wrap: wrap;
}

.veloneon-card {
    width: 480px;
    min-height: 380px;
    padding: 50px;
    background: linear-gradient(135deg, rgba(30, 43, 94, 0.3), rgba(5, 10, 25, 0.8));
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 40px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.veloneon-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: var(--accent-primary);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 255, 0.15);
}

.veloneon-card.coming-soon:hover {
    border-color: #bd00ff;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 30px rgba(189, 0, 255, 0.15);
}

.v-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    transition: opacity 0.5s;
    pointer-events: none;
}

.alt-bg {
    background-image: url('https://images.unsplash.com/photo-1506318137071-a8e063b4bcc0?auto=format&fit=crop&w=1200&q=80');
    filter: hue-rotate(280deg);
}

.veloneon-card:hover .v-card-bg {
    opacity: 0.25;
}

.v-label {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.7rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    display: block;
}

.v-card-content h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.v-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    border: 1px solid var(--accent-primary);
    border-radius: 30px;
    color: var(--accent-primary);
    font-weight: 600;
    transition: all 0.3s;
}

.veloneon-card:hover .v-btn {
    background: var(--accent-primary);
    color: #000;
}

/* Showcase Overlay */
.showcase-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #050810;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

#constellation-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.showcase-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 80vh;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 100px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.showcase-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.slide-info {
    max-width: 500px;
}

.slide-tag {
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 8px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 20px;
}

.slide-info h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.slide-sep {
    border: none;
    height: 2px;
    width: 60px;
    background: linear-gradient(to right, var(--accent-primary), transparent);
    margin-bottom: 30px;
}

.slide-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.slide-mockup img {
    height: 70vh;
    filter: drop-shadow(0 0 40px rgba(0, 242, 255, 0.2));
}

.showcase-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-dot.active {
    background: var(--accent-primary);
    transform: scale(1.3);
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: all 0.5s ease;
}

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

.modal-card {
    background: #0a0d17;
    border: 1px solid var(--glass-border);
    width: 480px;
    border-radius: 50px;
    padding: 60px;
    position: relative;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 30px; right: 30px;
    background: none; border: none;
    color: var(--text-dim);
    font-size: 2rem; cursor: pointer;
}

.avatar-stage {
    display: flex; justify-content: center;
    margin-bottom: 40px;
}

/* Form Switching Split */
.split-wrapper {
    position: relative;
    min-height: 380px;
}

.form-pane {
    position: absolute;
    top: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.form-pane.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
}

.pane-header {
    text-align: center;
    margin-bottom: 35px;
}

.pane-header h2 { font-size: 2rem; font-weight: 300; margin-bottom: 10px; }
.pane-header p { color: var(--text-dim); font-size: 0.9rem; }

.field {
    margin-bottom: 25px;
}

.field label {
    display: block; font-size: 0.75rem; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 10px; letter-spacing: 1px;
}

.field input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: 15px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s;
}

.field input:focus {
    border-color: var(--accent-primary);
    background: rgba(0, 242, 255, 0.02);
    outline: none;
}

.password-group { position: relative; }
.view-toggle {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 1.2rem;
}

.prime-btn {
    width: 100%;
    padding: 18px;
    border-radius: 15px;
    border: none;
    background: linear-gradient(to right, var(--accent-primary), #0075FF);
    color: #fff; font-weight: 700; cursor: pointer;
    transition: all 0.4s;
    letter-spacing: 1px;
    margin-top: 10px;
}

.prime-btn:hover { box-shadow: 0 0 25px rgba(0, 242, 255, 0.4); transform: scale(1.02); }

.pane-footer {
    margin-top: 30px; text-align: center; font-size: 0.85rem;
}

.text-btn {
    background: none; border: none; color: var(--accent-primary);
    font-weight: 600; cursor: pointer; margin-left: 8px;
}

/* Split Mask Logic */
.mask-left, .mask-right {
    position: absolute; top: 0; width: 50%; height: 100%;
    overflow: hidden; z-index: 10; opacity: 0; pointer-events: none;
}
.mask-left { left: 0; }
.mask-right { right: 0; }

.clone-box { width: 200%; position: absolute; }
.mask-right .clone-box { right: 0; }

.splitting .mask-left, .splitting .mask-right { opacity: 1; }
.splitting .form-pane.active { opacity: 0; }

.splitting .mask-left { animation: irisLeft 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards; }
.splitting .mask-right { animation: irisRight 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards; }

@keyframes irisLeft {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-120%) rotateY(-40deg); opacity: 0; }
}
@keyframes irisRight {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(120%) rotateY(40deg); opacity: 0; }
}

.hidden { display: none !important; }

.subpage.games-page {
    background: transparent !important;
}
