/* ==========================================================================
   NYXARWARE CORE STYLES - MINIMALIST PREMIUM DARK
   ========================================================================== */

:root {
    /* Colors */
    --bg-base: #050505;
    --bg-surface: #0e0e0e;
    --bg-surface-hover: #141414;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    
    /* Accents */
    --accent: #ffffff; /* Monochrome primary */
    --accent-glow: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    --gradient-accent: linear-gradient(135deg, #00f2ff 0%, #8200ff 100%);
    
    /* Status */
    --status-ok: #00ff88;

    /* Borders */
    --border-light: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-glow: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    /* Transitions */
    --ease-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-fast: 0.2s ease-out;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    line-height: 1.5;
    background-color: var(--bg-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: #333;
    color: #fff;
}

/* Background Texture & Ambient Orbs */
.noise-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%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)'/%3E%3C/svg%3E");
}

.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
    z-index: -2;
    animation: drift 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: #ffffff;
    top: -15%;
    left: -10%;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: #444444;
    bottom: -15%;
    right: -10%;
    animation-direction: alternate-reverse;
    animation-duration: 25s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.1); }
    100% { transform: translate(-30px, -50px) scale(0.9); }
}

/* Typography Base */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Layout */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 100;
    transition: var(--ease-smooth);
    background: transparent;
}

header.scrolled {
    padding: 16px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
}

.desktop-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--ease-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.pulse {
    width: 6px;
    height: 6px;
    background: var(--status-ok);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--status-ok);
    animation: beaconPulse 2s infinite ease-in-out;
}

@keyframes beaconPulse {
    0% { opacity: 0.5; box-shadow: 0 0 5px var(--status-ok); transform: scale(0.8); }
    50% { opacity: 1; box-shadow: 0 0 15px var(--status-ok); transform: scale(1.2); }
    100% { opacity: 0.5; box-shadow: 0 0 5px var(--status-ok); transform: scale(0.8); }
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.text-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-base);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

/* 3D Logo Frame */
.hero-visual-area {
    display: flex;
    justify-content: center;
}

.hero-image {
    perspective: 1000px;
}

.main-logo-frame {
    width: 320px;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatShadow 6s infinite ease-in-out alternate;
    transform: perspective(1000px) rotateX(15deg) rotateY(-15deg);
}

@keyframes floatShadow {
    0% { box-shadow: 0 15px 35px rgba(0,0,0,0.4); }
    100% { box-shadow: 0 25px 45px rgba(255,255,255,0.05); }
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    filter: grayscale(100%) contrast(1.2);
    transition: var(--ease-smooth);
}

.main-logo-frame:hover .hero-logo-img {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.05);
}

/* Sections Base */
section {
    padding: 100px 0;
    border-top: 1px solid var(--border-light);
}

.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    color: var(--text-primary);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 36px 24px;
    background: linear-gradient(145deg, rgba(20,20,20,0.6) 0%, rgba(10,10,10,0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-glow);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items:baseline;
    gap: 4px;
}

.stat-unit {
    font-size: 1rem;
    color: var(--text-secondary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 40px;
    background: linear-gradient(145deg, rgba(20,20,20,0.6) 0%, rgba(10,10,10,0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at bottom left, rgba(255,255,255,0.03), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-glow);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

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

.feature-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Split Section (Status & Download) */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.status-panel, .download-card {
    padding: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-indicator.online {
    background: var(--status-ok);
    box-shadow: 0 0 10px var(--status-ok);
    animation: beaconPulse 2s infinite ease-in-out;
}

.status-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.status-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.status-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--status-ok);
}

.d-header {
    margin-bottom: 16px;
}

.d-header h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.d-header .version {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.d-body {
    margin-bottom: 32px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.d-btn {
    width: 100%;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--ease-smooth);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: none;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform var(--ease-fast);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    opacity: 0;
    transition: var(--ease-smooth);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-item.open .faq-answer {
    padding: 0 24px 24px 24px;
    max-height: 200px;
    opacity: 1;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* Footer */
.main-footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-content .brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-content .copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Floating Language Switcher */
.fixed-lang-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    cursor: none;
    transition: var(--ease-smooth);
}

.fixed-lang-btn:hover {
    background: #fff;
    color: #000;
}

/* Language Drawer */
.lang-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--ease-smooth);
}
.lang-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lang-drawer {
    position: fixed;
    top: 0; 
    right: -320px;
    width: 320px; 
    height: 100vh;
    background: var(--bg-base);
    border-left: 1px solid var(--border-light);
    z-index: 1001;
    padding: 40px;
    transition: right var(--ease-smooth);
}
.lang-drawer.open {
    right: 0;
}

.lang-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.lang-drawer-header h3 {
    font-size: 1.2rem;
}

.close-lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: none;
}

.lang-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lang-option {
    padding: 16px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-secondary);
    text-align: left;
    transition: var(--ease-fast);
    cursor: none;
}

.lang-option:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.lang-option.active {
    background: var(--text-primary);
    color: var(--bg-base);
    border-color: var(--text-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: none;
}
.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: var(--ease-fast);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-base);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--ease-smooth);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav-links a {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    text-decoration: none;
}

/* Custom Cursor */
@media (pointer: fine) {
    *, body, html, a, button {
        cursor: none !important;
    }

    .custom-cursor {
        position: fixed;
        top: 0; left: 0;
        width: 12px; height: 12px;
        background: #fff;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
        transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, background 0.2s;
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .split-grid {
        grid-template-columns: 1fr;
    }
    .desktop-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}