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

:root {
    --bg-deep: #02040a;
    --bg-glass: rgba(10, 15, 30, 0.4);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(0, 183, 255, 0.3);
    
    --primary: #0066ff;
    --secondary: #00e5ff;
    --accent: #8a2be2;
    
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-deep);
}

body {
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    z-index: 0;
}

/* --- Atmospheric Orbs --- */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.4;
    animation: pulseOrb 10s infinite alternate;
}

body::before {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
}

body::after {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    animation-delay: -5s;
}

@keyframes pulseOrb {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    100% { transform: scale(1.2) translate(50px, 50px); opacity: 0.5; }
}

/* --- Global Elements --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientFlow 5s ease infinite;
    display: inline-block;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 140px 0;
    position: relative;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -1px;
}

/* --- Pill Nav (Floating Island) --- */
.pill-nav-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 800px;
    display: flex;
    justify-content: center;
}

.pill-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: 8px 12px 8px 24px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pill-nav:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 102, 255, 0.2);
}

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

.pill-logo img {
    height: 36px;
    width: auto;
}

.pill-logo span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pill-links {
    display: flex;
    gap: 24px;
}

.pill-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.pill-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

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

/* --- Magnetic / Glow Buttons --- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    z-index: 1;
}

.btn-primary {
    background: var(--text-main);
    color: #000;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: var(--text-main);
    z-index: -1;
    transition: inset 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 100%;
    border-radius: inherit;
    z-index: -2;
    animation: btnGlow 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover::before {
    background: transparent;
}

.btn-primary:hover::after {
    opacity: 1;
}

@keyframes btnGlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

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

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.lang-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- Hero Ultra-Immersive --- */
.hero-extreme {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
}

.sys-tag {
    font-family: var(--font-mono);
    color: var(--secondary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 100px;
    background: rgba(0, 229, 255, 0.05);
}

.hero-huge-text {
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 32px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.hero-huge-text.typing::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 5px;
    color: var(--secondary);
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-huge-text span {
    display: block;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 48px;
    z-index: 2;
    position: relative;
}

/* --- Bento Box Grid (Features) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}

.bento-item {
    background: rgba(15, 20, 35, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.bento-item:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: auto;
    transition: all 0.3s ease;
}

.bento-item:hover .bento-icon {
    background: var(--text-main);
    color: #000;
    transform: scale(1.1);
}

.bento-item h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Specific Bento Sizes */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-large .bento-icon {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

.bento-large h3 {
    font-size: 2.5rem;
}

.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

/* --- Swiper 3D Gallery --- */
.gallery-3d-wrapper {
    width: 100%;
    padding: 60px 0;
}

.swiper-container-3d {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-container-3d .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 600px;
    height: 337px; /* 16:9 ratio */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.swiper-container-3d .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Showcase & Discord Glass Panels --- */
.glass-panel {
    background: rgba(10, 15, 30, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.showcase-video {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.showcase-video iframe {
    width: 100%;
    height: 100%;
}

.discord-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Footer --- */
.footer-extreme {
    padding: 80px 0 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 100px;
}

.footer-logo {
    width: 60px;
    opacity: 0.3;
    margin-bottom: 20px;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-text {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-wide { grid-column: span 2; }
    .swiper-container-3d .swiper-slide { width: 500px; height: 281px; }
}

@media (max-width: 900px) {
    .pill-links { display: none; }
    .showcase-grid { grid-template-columns: 1fr; }
    .hero-huge-text { font-size: 3.5rem; }
}

@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-wide, .bento-tall { grid-column: span 1; grid-row: span 1; }
    .swiper-container-3d .swiper-slide { width: 300px; height: 168px; }
    .pill-nav { padding: 8px 16px; }
    .bento-item { padding: 24px; }
    .section-title { font-size: 2.5rem; }
}
