:root {
    --bg-dark: #05070a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f8faff;
    --text-secondary: #94a3b8;
    --accent-1: #00f2fe; /* Cyan */
    --accent-2: #7000ff; /* Purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --surface-glass: rgba(15, 23, 42, 0.6);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.4;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--accent-gradient);
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    background: var(--accent-1);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    background: var(--accent-2);
    animation-delay: -5s;
}

.blob-3 {
    top: 50%;
    left: 50%;
    background: #ff0080;
    width: 300px;
    height: 300px;
}

@keyframes move {
    from { transform: translate(-20%, -20%) scale(1); }
    to { transform: translate(20%, 20%) scale(1.2); }
}

/* Typography & Gradient Text */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

nav {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand span {
    font-weight: 500;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
    opacity: 0.9;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0 4rem;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Upload Section */
.upload-section {
    margin-bottom: 5rem;
}

.compression-settings {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.slider-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#target-value {
    font-size: 1.25rem;
    font-weight: 800;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Range Input Styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

input[type=range]::-webkit-slider-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--accent-1);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -9px;
    box-shadow: 0 0 10px var(--accent-1);
    border: 3px solid #0a0e17;
}

input[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--accent-1);
}

.glass-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--accent-1);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.1);
}

.glass-card.drag-over {
    border-color: var(--accent-1);
    background: rgba(0, 242, 254, 0.05);
    transform: scale(1.02);
}

.upload-content h2 {
    font-size: 1.75rem;
    margin: 1.5rem 0 0.5rem;
}

.upload-content p {
    color: var(--text-secondary);
}

.icon-pulse {
    font-size: 4rem;
    color: var(--accent-1);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0px var(--accent-1)); opacity: 0.8; }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 15px var(--accent-1)); opacity: 1; }
    100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--accent-1)); opacity: 0.8; }
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 2rem;
    color: var(--text-secondary);
}

/* Processing State */
.hidden {
    display: none !important;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-1);
    border-radius: 50%;
    margin: 0 auto 2rem;
    animation: rotate 1s linear infinite;
}

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

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-top: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.3s ease;
}

/* Result Screen */
.success-icon {
    font-size: 4rem;
    color: #00ff88;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 2.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

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

.savings-badge {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
}

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

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

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

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
}

.feature-card i {
    font-size: 2rem;
    color: var(--accent-1);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Security Info */
.info-card {
    padding: 4rem;
    text-align: left;
}

.info-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.info-card p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.security-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.security-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.security-list i {
    color: #00ff88;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Steps Section */
.how-it-works {
    padding: 5rem 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.step {
    text-align: left;
    background: rgba(255,255,255,0.02);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 242, 254, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
}

.step h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-1);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* SEO Article Styling */
.seo-article {
    padding: 4rem 0;
    text-align: left;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 3rem 0;
}

.content-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-1);
}

.content-box p {
    color: var(--text-secondary);
}

.features-list {
    margin: 2rem 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.feature-item i {
    color: #00ff88;
    font-size: 1.25rem;
}

.faq-section {
    margin-top: 2rem;
}

.faq-item {
    background: rgba(255,255,255,0.02);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.faq-item h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer Links */
.footer-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .features-grid, .security-list, .steps-container, .content-grid, .features-list {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .stats-grid {
        gap: 1.5rem;
        flex-direction: column;
    }
    
    .stat-arrow {
        transform: rotate(90deg);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .info-card {
        padding: 2rem;
    }

    .seo-article {
        padding: 2rem 0;
    }
}
