/* ===============================================
   OBFUS1 - Advanced Lua Obfuscator
   Premium Dark Theme v2.0
   =============================================== */

:root {
    /* Colors */
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --bg-tertiary: #0f0f17;
    --bg-card: rgba(15, 15, 23, 0.7);

    --accent-primary: #7c3aed;
    --accent-secondary: #a855f7;
    --accent-tertiary: #c084fc;
    --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    --accent-glow: rgba(124, 58, 237, 0.5);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --border-color: rgba(124, 58, 237, 0.15);
    --border-hover: rgba(124, 58, 237, 0.4);

    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    --discord: #5865F2;

    /* Fonts */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px var(--accent-glow);

    /* Timing */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    animation: pageFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

body.page-exit {
    animation: pageFadeOut 0.4s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes pageFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
        filter: blur(10px);
    }
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ===============================================
   ANIMATED BACKGROUNDS
   =============================================== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
    top: -300px;
    left: -200px;
    animation: glow1Move 15s ease-in-out infinite;
}

.bg-glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    bottom: -200px;
    right: -150px;
    animation: glow2Move 18s ease-in-out infinite;
}

.bg-glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.15) 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation: glow3Move 20s ease-in-out infinite;
}

@keyframes glow1Move {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }

    25% {
        transform: translate(100px, 50px) scale(1.1);
        opacity: 1;
    }

    50% {
        transform: translate(50px, 100px) scale(0.9);
        opacity: 0.6;
    }

    75% {
        transform: translate(-50px, 50px) scale(1.05);
        opacity: 0.9;
    }
}

@keyframes glow2Move {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }

    33% {
        transform: translate(-80px, -60px) scale(1.15);
        opacity: 1;
    }

    66% {
        transform: translate(60px, -80px) scale(0.85);
        opacity: 0.5;
    }
}

@keyframes glow3Move {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-30%, -70%) scale(1.2);
        opacity: 0.9;
    }
}

/* Aurora Effect */
.bg-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-aurora::before,
.bg-aurora::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(124, 58, 237, 0.03) 60deg,
            transparent 120deg,
            rgba(168, 85, 247, 0.03) 180deg,
            transparent 240deg,
            rgba(192, 132, 252, 0.03) 300deg,
            transparent 360deg);
    animation: auroraRotate 60s linear infinite;
}

.bg-aurora::after {
    animation-direction: reverse;
    animation-duration: 45s;
    opacity: 0.5;
}

@keyframes auroraRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===============================================
   HEADER
   =============================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.header.scrolled {
    padding: 0.75rem 2rem;
    background: rgba(5, 5, 8, 0.95);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent-glow);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-secondary);
}

.nav-link.active::after {
    width: 100%;
}

.discord-btn {
    padding: 0.6rem 1.2rem;
    background: var(--discord);
    border-radius: 8px;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.discord-btn::after {
    display: none;
}

.discord-btn svg {
    width: 18px;
    height: 18px;
}

.discord-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.discord-notice .discord-icon {
    filter: none;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-link {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.mobile-link.discord {
    background: var(--discord);
    color: white;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease forwards;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.version-badge-big {
    display: inline-block;
    background: var(--accent-gradient);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 1rem;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px var(--accent-glow);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.typing-effect::after {
    content: '|';
    animation: blink 1s infinite;
    -webkit-text-fill-color: var(--accent-primary);
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.cta-btn svg {
    width: 20px;
    height: 20px;
}

.cta-btn.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px var(--accent-glow);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.cta-btn.secondary:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--accent-primary);
}

.cta-btn.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Stats */
.stats-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    padding: 1.5rem 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ===============================================
   SECTIONS COMMON
   =============================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-badge svg {
    width: 14px;
    height: 14px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ===============================================
   FEATURES SECTION
   =============================================== */
.features-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, var(--bg-card) 100%);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    background: var(--accent-gradient);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 14px;
    box-shadow: 0 0 25px var(--accent-glow);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    stroke-width: 2;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent-secondary);
    font-weight: 500;
}

/* ===============================================
   HOW IT WORKS SECTION
   =============================================== */
.how-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.03) 50%, transparent 100%);
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    position: relative;
    text-align: center;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -1rem;
}

.step-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    z-index: 1;
    transition: var(--transition-normal);
}

.step-item:hover .step-content {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 16px;
    box-shadow: 0 0 25px var(--accent-glow);
}

.step-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-line {
    position: absolute;
    top: 50%;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: var(--border-color);
    display: none;
}

/* ===============================================
   OBFUSCATOR SECTION
   =============================================== */
.obfuscator-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.obfuscator-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.editor-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.panel-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.panel-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.panel-title svg {
    width: 16px;
    height: 16px;
}

.panel-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.panel-btn svg {
    width: 14px;
    height: 14px;
}

.panel-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.panel-btn.copy:hover {
    border-color: var(--success);
    color: var(--success);
}

.editor-wrapper {
    display: flex;
    flex: 1;
}

.line-numbers {
    min-width: 40px;
    padding: 1rem 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: right;
    user-select: none;
    border-right: 1px solid var(--border-color);
    display: none;
}

.code-editor {
    width: 100%;
    min-height: 350px;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.code-editor::placeholder {
    color: var(--text-muted);
}

/* Controls Panel */
.controls-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
}

.obfuscate-btn {
    width: 120px;
    height: 120px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.obfuscate-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-normal);
}

.obfuscate-btn:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 0 60px var(--accent-glow);
}

.obfuscate-btn:hover:not(:disabled)::before {
    opacity: 1;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.obfuscate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon svg {
    width: 32px;
    height: 32px;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Cooldown Timer */
.cooldown-timer {
    position: relative;
    width: 80px;
    height: 80px;
}

.cooldown-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.cooldown-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 6;
}

.cooldown-progress {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear;
}

.cooldown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-secondary);
}

.discord-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.discord-notice svg {
    width: 16px;
    height: 16px;
    color: var(--discord);
}

.discord-notice a {
    color: var(--discord);
    text-decoration: none;
    font-weight: 600;
}

.discord-notice a:hover {
    text-decoration: underline;
}

/* ===============================================
   CTA SECTION
   =============================================== */
.cta-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem 3rem;
    backdrop-filter: blur(10px);
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 250px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.footer-name {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.heart {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ===============================================
   TOAST NOTIFICATIONS
   =============================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease forwards;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 450px;
}

.toast-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.toast-main span {
    flex: 1;
}

.toast-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.toast-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.toast-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.toast-details {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    display: none;
    margin-top: 0.25rem;
}

.toast-details.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.toast svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success {
    border-color: var(--success);
}

.toast.success svg {
    color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

.toast.error svg {
    color: var(--error);
}

.toast.info {
    border-color: var(--accent-primary);
}

.toast.info svg {
    color: var(--accent-primary);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 1024px) {
    .obfuscator-container {
        grid-template-columns: 1fr;
    }

    .controls-panel {
        flex-direction: row;
        padding: 1.5rem;
    }

    .obfuscate-btn {
        width: 100px;
        height: 100px;
    }

    .step-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding-top: 6rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .code-editor {
        min-height: 250px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cta-content {
        padding: 2.5rem 1.5rem;
    }
}

/* Animation delays for feature cards */
.feature-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.15s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.25s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.35s;
}

.feature-card:nth-child(7) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(8) {
    animation-delay: 0.45s;
}

.feature-card:nth-child(9) {
    animation-delay: 0.5s;
}

/* ===============================================
   MOBILE RESPONSIVE STYLES
   =============================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .nav {
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .obfuscator-container {
        gap: 1.5rem;
    }

    .stats-container {
        padding: 1.5rem 2rem;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .version-badge-big {
        font-size: 1rem;
        padding: 0.4rem 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-subtitle br {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    /* Features */
    .features-section {
        padding: 3rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* How It Works */
    .how-section {
        padding: 3rem 1rem;
    }

    .steps-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .step-number {
        font-size: 1.5rem;
        min-width: 50px;
    }

    .step-line {
        display: none;
    }

    .step-content h3 {
        font-size: 1.1rem;
    }

    /* Obfuscator */
    .obfuscator-section {
        padding: 3rem 1rem;
    }

    .obfuscator-container {
        flex-direction: column;
        gap: 1rem;
    }

    .editor-panel {
        min-height: 200px;
    }

    .code-editor {
        min-height: 180px;
        font-size: 12px;
    }

    .panel-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .panel-title {
        font-size: 0.8rem;
    }

    .controls-panel {
        padding: 1.5rem;
    }

    .obfuscate-btn {
        width: 100px;
        height: 100px;
        font-size: 0.8rem;
    }

    .cooldown-timer {
        width: 100px;
        height: 100px;
    }

    /* CTA Section */
    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-content {
        padding: 2rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .header {
        padding: 0.5rem 0.75rem;
    }

    .logo {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .obfuscate-btn,
    .cooldown-timer {
        width: 90px;
        height: 90px;
    }
}
