:root {
    --bg-color: #0A0A0F;
    --card-bg: #11111A;
    --border-color: #1F1F2E;
    --border-hover: #35354A;
    --text-main: #FFFFFF;
    --text-muted: #85859E;
    --text-dark: #404058;
    
    --primary-accent: #A855F7;
    --primary-accent-hover: #C084FC;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

body.fade-out {
    opacity: 0;
}

/* Cabinet Noise Overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    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");
    opacity: .03;
}

/* Watermark Text KLAN */
.watermark-bg {
    position: absolute;
    top: 15%;
    right: -5%;
    font-size: 280px;
    font-weight: 900;
    color: rgba(168, 85, 247, 0.03);
    transform: rotate(15deg);
    z-index: -1;
    pointer-events: none;
    letter-spacing: -5px;
    user-select: none;
}

/* RKN Easter Egg Animation */
.rkn-story {
    position: absolute;
    top: 25%;
    left: 8%;
    width: 250px;
    height: 100px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    transform: rotate(-5deg);
}

.rkn-wall {
    position: absolute;
    right: 0;
    top: 10px;
    background: rgba(225, 29, 72, 0.9);
    color: #ffffff;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 20px;
    letter-spacing: 2px;
    border: 2px solid #be123c;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.5);
    animation: blockAttempt 6s infinite ease-in-out;
}

.klan-packet {
    position: absolute;
    left: 0;
    top: 25px;
    width: 15px;
    height: 15px;
    background: var(--primary-accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-accent);
    animation: packetBypass 6s infinite ease-in-out;
}

@keyframes blockAttempt {
    0%, 10% { transform: scale(1); right: 0; background: rgba(225, 29, 72, 0.9); border-color: #be123c; color: #fff; box-shadow: 0 0 20px rgba(225, 29, 72, 0.5); }
    30% { transform: scale(1.6); right: 80px; }
    35% { transform: scale(1.6) rotate(0deg); right: 80px; background: rgba(225, 29, 72, 0.9); }
    40%, 60% { transform: scale(0.9) rotate(15deg); right: 80px; background: #334155; border-color: #1e293b; color: transparent; box-shadow: none; }
    80%, 90% { transform: scale(0.9) translateY(40px) rotate(45deg); opacity: 0; }
    100% { transform: scale(1); right: 0; opacity: 1; background: rgba(225, 29, 72, 0.9); border-color: #be123c; color: #fff;}
}

@keyframes packetBypass {
    0%, 10% { left: 0; opacity: 0; transform: scale(0.5); }
    20% { left: 0; opacity: 1; transform: scale(1); }
    30% { left: 110px; opacity: 1; transform: scale(1); }
    34% { left: 110px; transform: scale(0); opacity: 0; }
    38% { left: 220px; transform: scale(2); opacity: 1; box-shadow: 0 0 40px var(--primary-accent); }
    60% { left: 400px; opacity: 0; transform: scale(1); }
    100% { left: 0; opacity: 0; }
}

/* DPI Stealth Easter Egg */
.dpi-story {
    position: absolute;
    top: 60%;
    right: 10%;
    width: 200px;
    height: 250px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    transform: rotate(5deg);
}

.dpi-scanner {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #e11d48;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 4px;
    border-bottom: 2px solid #e11d48;
    padding-bottom: 5px;
}

.dpi-laser {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: #e11d48;
    box-shadow: 0 0 10px #e11d48;
    animation: dpiScan 6s infinite linear;
}

.klan-stealth-packet {
    position: absolute;
    bottom: 20px;
    left: -50px;
    color: var(--primary-accent);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-accent);
    animation: stealthMove 6s infinite linear;
}

@keyframes dpiScan {
    0%, 15% { height: 0; opacity: 1; }
    25% { height: 200px; box-shadow: 0 0 20px #e11d48; }
    30%, 75% { height: 200px; transform: translateX(-50%) rotate(10deg); }
    45% { height: 200px; transform: translateX(-50%) rotate(-10deg); }
    60% { height: 200px; transform: translateX(-50%) rotate(15deg); }
    80% { height: 200px; opacity: 1; transform: translateX(-50%) rotate(0deg); } 
    90%, 100% { height: 0; opacity: 0; }
}

@keyframes stealthMove {
    0%, 20% { left: -50px; opacity: 0; color: var(--primary-accent); text-shadow: 0 0 10px var(--primary-accent); }
    25% { left: 0; opacity: 1; color: var(--primary-accent); }
    35% { left: 60px; color: transparent; text-shadow: none; }
    65% { left: 140px; color: transparent; text-shadow: none; }
    75% { left: 180px; color: var(--primary-accent); text-shadow: 0 0 10px var(--primary-accent); }
    90% { left: 300px; opacity: 0; }
    100% { left: 300px; opacity: 0; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-content-wrapper { position: relative; z-index: 10; }

/* Header */
.header {
    padding: 24px 0; position: sticky; top: 0; z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary-accent); text-decoration: none; letter-spacing: -0.5px; }
.logo #nav-logo-text { color: var(--text-main); font-weight: 800; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-switcher { 
    background: none; border: none; color: var(--text-muted); 
    font-size: 14px; font-weight: 500; cursor: pointer; transition: color 0.2s;
}
.lang-switcher:hover { color: var(--white); }

/* Base Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; font-weight: 600; text-decoration: none; 
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1); cursor: pointer; border: none; white-space: nowrap;
}
.btn:active {
    transform: scale(0.98);
}
.btn-primary { 
    background: var(--primary-accent); color: var(--white); 
    padding: 14px 28px; font-size: 15px; box-shadow: inset 0 1px rgba(255, 255, 255, 0.15);
}
.btn-primary:hover { background: var(--primary-accent-hover); transform: translateY(-2px); }
.btn-outline { 
    background: transparent; color: var(--text-main); border: 1px solid var(--border-color); 
    padding: 13px 28px; font-size: 15px; box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}
.btn-outline:hover { background: rgba(255,255,255,0.03); border-color: var(--border-hover); }

.btn-outline-nav {
    background: transparent; color: var(--text-muted); border: 1px solid var(--border-color); 
    padding: 8px 16px; font-size: 13px; border-radius: 6px; text-decoration: none;
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1); box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}
.btn-outline-nav:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.btn-outline-nav:active { transform: scale(0.95); }

/* Hero Section */
.hero { padding: 120px 0 80px; text-align: center; }
.hero-badge { 
    display: inline-block; padding: 4px 12px;
    color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.5px; 
    margin-bottom: 25px; text-transform: uppercase;
}
.hero-badge::before { content: "● "; color: var(--primary-accent); margin-right: 4px; }

.hero h1 { font-size: 56px; color: var(--white); margin-bottom: 25px; font-weight: 800; line-height: 1.15; letter-spacing: -1.5px; }
.hero p { font-size: 17px; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; line-height: 1.6; }
.hero-buttons { display: flex; justify-content: center; gap: 16px; }

/* Sections */
section { padding-top: 60px; padding-bottom: 60px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 28px; color: var(--white); font-weight: 700; letter-spacing: -0.5px; }

/* Cards Grid */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
}
@media (min-width: 1024px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 24px;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
    display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden;
}
.card:hover { 
    border-color: var(--border-hover); 
    transform: translateY(-2px); 
    background-color: rgba(30, 41, 59, 0.15);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 10px 40px -10px rgba(0,0,0,0.5); 
}
/* Subtle Radial Glow Overlay on cards */
.card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    transition: opacity .3s ease; background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 60%);
}
.card:hover::after { opacity: 1; }
.card:active { transform: scale(0.98); }

/* Card Inner Header */
.card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.card-dots { color: var(--text-dark); font-size: 16px; font-weight: 900; letter-spacing: 2px; line-height: 1; }
.card-badge {
    color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase;
    display: flex; align-items: center; gap: 6px;
}
.card-badge-dot {
    width: 6px; height: 6px; background: var(--primary-accent); border-radius: 50%; display: inline-block;
}

.card h3 { color: var(--white); font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* FAQ Accordion */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { 
    background: var(--card-bg); border: 1px solid var(--border-color); 
    border-radius: 12px; overflow: hidden; transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-header { 
    padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; 
}
.faq-header:hover { background: rgba(255,255,255,0.02); }
.faq-question { color: var(--white); font-size: 16px; font-weight: 600; }
.faq-icon { color: var(--primary-accent); font-size: 24px; transition: transform 0.3s ease; line-height: 1; }
.faq-content { 
    max-height: 0; padding: 0 24px; color: var(--text-muted); font-size: 14px; 
    transition: all 0.3s ease; opacity: 0; 
}
.faq-item.active { border-color: var(--border-hover); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-content { max-height: 200px; padding: 0 24px 20px 24px; opacity: 1; }

/* Footer */
footer { border-top: 1px solid var(--border-color); padding: 40px 0 60px; background: #07070A; margin-top: 60px; }
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-logo { font-size: 18px; font-weight: 800; color: var(--primary-accent); margin-bottom: 15px; }
.footer-logo #footer-logo-text { color: var(--white); }
.footer-links { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.copyright { color: var(--text-dark); font-size: 12px; letter-spacing: 0.5px; }

/* Animations */
.animate-on-scroll {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1; transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 15px; }
    .watermark-bg { font-size: 100px; top: 10%; right: -5%; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
}
