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

:root {
    --bg-color: #030305;
    --accent-primary: #C026D3;
    --accent-secondary: #7C3AED;
    --text-primary: #ffffff;
    --text-secondary: #888899;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.05);
}

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

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Language Switcher (Fixed Z-Index) --- */
.language-switcher {
    position: fixed; /* Fixed prevents scroll issues */
    top: 2rem;
    right: 2rem;
    z-index: 9999; /* Maximum z-index */
    pointer-events: auto; /* Ensure clicks work */
}

.lang-glass {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 12, 0.8); /* Slightly darker for better visibility */
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 99px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 18px; /* Slightly larger click area */
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 99px;
    transition: all 0.3s;
    user-select: none;
}

.lang-btn:hover { 
    color: #fff; 
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.divider {
    width: 1px; height: 12px;
    background: var(--card-border);
    margin: 0 4px;
}

/* --- Background Effects --- */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 5;
    opacity: 0.4;
}

.spotlight {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(
        circle 800px at var(--x, 50%) var(--y, 50%),
        rgba(124, 58, 237, 0.15) 0%,
        rgba(3, 3, 5, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.core-structure {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vmin; height: 100vmin;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.ring { transform-origin: 400px 400px; }
.ring-1 { animation: rotateSlow 60s linear infinite; }
.ring-2 { animation: rotateSlow 40s linear infinite reverse; }
.ring-3 { animation: rotateSlow 20s linear infinite; }
.hex-rotate { 
    transform-origin: 400px 400px;
    animation: rotateSlow 120s linear infinite; 
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Layout --- */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
    perspective: 1000px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    transition: transform 0.1s ease-out;
}

/* --- Hero Section --- */
.hero-header {
    text-align: center;
    position: relative;
}

.logo-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 3s ease-out forwards;
}

.logo-inner {
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 4px;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.beacon {
    width: 6px; height: 6px;
    background: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 10px #a855f7;
    animation: beaconPulse 2s infinite;
}

.status-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d8b4fe;
}

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

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -3px;
    margin: 0;
    position: relative;
    display: inline-block;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: default;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-weight: 300;
}

/* --- Feature Cards --- */
.cards-perspective {
    display: flex;
    gap: 2rem;
    perspective: 1000px;
}

.feature-card {
    position: relative;
    width: 280px;
    height: 180px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
    border-radius: 1px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    animation: floatUp 1s ease-out backwards;
    animation-delay: var(--delay);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.card-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-icon {
    margin-bottom: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.feature-card:hover .card-icon { opacity: 1; }

.feature-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-card.highlight {
    background: rgba(124, 58, 237, 0.03);
    border-color: rgba(124, 58, 237, 0.2);
}

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

@media (max-width: 900px) {
    .cards-perspective { flex-direction: column; width: 100%; max-width: 400px; }
    .feature-card { width: 100%; height: auto; }
    .hero-title { font-size: 3.5rem; }
    .language-switcher { top: 1rem; right: 1rem; }
}