/* Base Variables & Theme */
:root {
    --font-main: 'Outfit', sans-serif;
    
    /* Premium Dark Theme */
    --bg-color: #030305;
    --bg-secondary: #0a0a0f;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-color: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --success: #2ea043;
    --warning: #d29922;
    --danger: #f85149;
    --card-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    
    /* Crypto Colors */
    --c-yellow: #F0B90B;
    --c-red: #FF0013;
    --c-blue: #627EEA;
    --c-cyan: #0098EA;
    --c-orange: #C2A633;
}

[data-theme="light"] {
    --bg-color: #f6f8fa;
    --bg-secondary: #ffffff;
    --text-primary: #1F2328;
    --text-secondary: #656d76;
    --accent-color: #0969da;
    --accent-gradient: linear-gradient(135deg, #0969da 0%, #8250df 100%);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 36px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.logo-img.small {
    height: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Custom Dropdown UI */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 20, 30, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.custom-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.dropdown-item:hover, .dropdown-item.active {
    background: var(--accent-gradient);
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 99;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.mobile-menu a:hover {
    background: var(--glass-border);
}

.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.theme-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}

.theme-btn:hover {
    background: var(--glass-border);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero {
    position: relative;
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Ambient glow behind the 3D globe (static gradients, no blur filter = no lag) */
.gradient-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Rotating 3D node-sphere canvas */
.hero-globe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.gradient-bg::before,
.gradient-bg::after {
    content: "";
    position: absolute;
    width: 75vw;
    height: 75vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    /* soft edge comes from the gradient itself — no costly blur() */
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.gradient-bg::before {
    top: -30%;
    left: -20%;
    background: radial-gradient(closest-side, rgba(59, 130, 246, 0.4), transparent 100%);
    animation: aurora-a 22s ease-in-out infinite alternate;
}

.gradient-bg::after {
    bottom: -30%;
    right: -20%;
    background: radial-gradient(closest-side, rgba(139, 92, 246, 0.38), transparent 100%);
    animation: aurora-b 28s ease-in-out infinite alternate;
}

[data-theme="light"] .gradient-bg::before {
    background: radial-gradient(closest-side, rgba(9, 105, 218, 0.22), transparent 100%);
}

[data-theme="light"] .gradient-bg::after {
    background: radial-gradient(closest-side, rgba(130, 80, 223, 0.2), transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* transform-only keyframes → composited on the GPU, never repaints */
@keyframes aurora-a {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(14%, 11%, 0); }
}

@keyframes aurora-b {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-12%, -9%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .gradient-bg,
    .gradient-bg::before,
    .gradient-bg::after,
    .pulse-ring {
        animation: none;
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

.text-center {
    text-align: center;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 32px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%, rgba(59,130,246,0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* HWID Section */
.hwid-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hwid-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hwid-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.alert-box {
    display: flex;
    gap: 16px;
    background: rgba(210, 153, 34, 0.1);
    border-left: 4px solid var(--warning);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 24px;
}

.alert-icon {
    color: var(--warning);
    flex-shrink: 0;
}

.mt-4 { margin-top: 16px; }

.hwid-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--glass-border);
}

.secure-badge {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 30px;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.code-snippet {
    background: #0d1117;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    font-family: monospace;
    color: #c9d1d9;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #30363d;
}

.color-success { color: #3fb950; }

/* Platforms Section */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-card:hover {
    transform: translateY(-8px);
}

.platform-card.active {
    box-shadow: 0 0 0 2px var(--accent-color), 0 20px 40px rgba(59, 130, 246, 0.2) !important;
}

.platform-card svg {
    color: var(--text-secondary);
}

.platform-card.active svg {
    color: var(--accent-color);
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(46, 160, 67, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(210, 153, 34, 0.1);
    color: var(--warning);
}

/* Crypto Donate */
.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.crypto-card {
    padding: 24px;
    text-align: left;
    height: 100%;
}

.crypto-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.crypto-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
}

.bg-yellow { background: var(--c-yellow); }
.bg-red { background: var(--c-red); }
.bg-blue { background: var(--c-blue); }
.bg-cyan { background: var(--c-cyan); }
.bg-orange { background: var(--c-orange); }

.crypto-header h3 {
    font-size: 1.1rem;
}

.crypto-body {
    display: flex;
    gap: 8px;
}

.crypto-body input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}

.copy-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 46px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(46, 160, 67, 0.3);
    transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.toast.show {
    bottom: 40px;
}

/* Responsive - Tablet & Mobile */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 3rem; }
    .hwid-card { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .footer-content { flex-direction: column; gap: 20px; }
}

/* Cyber Grid Background */
.cyber-grid-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 60vh;
    z-index: -1;
    perspective: 1000px;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}

.cyber-grid {
    position: absolute;
    width: 200vw;
    height: 200vh;
    bottom: -50vh;
    left: -50vw;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.4) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotateX(75deg);
    transform-origin: center center;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    will-change: transform;
}

[data-theme="light"] .cyber-grid {
    background-image: 
        linear-gradient(rgba(9, 105, 218, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 105, 218, 0.3) 1px, transparent 1px);
}

/* Mesh Background removed to fix lag */
