:root {
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #60a5fa;
    --accent-red: #ef4444;
    --accent-red-dim: #fca5a5;
    --bg-dark: #030712;
    --bg-card: rgba(17, 24, 39, 0.6);
    --text-main: #f9fafb;
    --text-dim: #9ca3af;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
}

/* Device Blocker Modal Styles */
.device-blocker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #030712 0%, #1a1f3a 100%);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.device-blocker-content {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    animation: fadeInScale 0.6s ease-out;
}

.device-blocker-content h1 {
    font-size: 2.5rem;
    color: #ef4444;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.device-blocker-content p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.device-blocker-content .device-info {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-top: 2rem;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* Custom Selection */
::selection {
    background: var(--primary-glow);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Stunning Mesh Gradient Background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--bg-dark);
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 0);
    left: var(--mouse-x, 0);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 75% 25%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 25% 75%, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
    filter: blur(80px);
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

header {
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(3, 7, 18, 0.7);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-sizing: border-box;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover,
nav a:focus {
    color: var(--text-main);
    outline: none;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--text-main);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(16px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 5%;
}

.mobile-nav a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.hero {
    padding: 12rem 5% 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.badge {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    animation: fadeInUp 0.8s ease-out;
}

.soon-badge {
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.3);
    color: #eab308;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out 0.1s backwards;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 650px;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px var(--primary-glow);
}

.btn-outline {
    background: var(--glass-highlight);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    margin-left: 1rem;
    backdrop-filter: blur(4px);
}

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

.features {
    padding: 4rem 5% 8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

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

.card h2 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.privacy-card {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.privacy-card h2 {
    color: #22c55e;
}

.card p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
}

/* Page Specific Content */
.tool-container {
    padding: 12rem 5% 6rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.fix-area {
    width: 350px;
    height: 350px;
    margin: 3rem auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 8px solid var(--bg-card);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    background: #000;
    cursor: move;
    touch-action: none;
}

.flashing-pixel {
    width: 100%;
    height: 100%;
}

.warning-box {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    color: var(--accent-red-dim);
    font-size: 0.9rem;
    display: inline-block;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    header {
        padding: 1rem 5%;
    }

    nav ul {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 2rem 5% 4rem;
    }

    .fix-area {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 10rem 5% 4rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .card {
        padding: 1.25rem;
    }

    .tool-container {
        padding: 10rem 5% 4rem;
    }
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: 2px;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

footer {
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(3, 7, 18, 0.5);
    margin-top: 4rem;
}