/* Global design tokens for Apna Downloader Web Portal */

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --border-color: rgba(255, 255, 255, 0.08);
    --bg-header: rgba(17, 24, 39, 0.8);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-color: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-glow: rgba(59, 130, 246, 0.25);
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
}

.light-mode {
    --bg-primary: #f3f4f6;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e5e7eb;
    --border-color: rgba(0, 0, 0, 0.08);
    --bg-header: rgba(255, 255, 255, 0.85);
    --text-main: #111827;
    --text-muted: #4b5563;
    --accent-color: #1d4ed8;
    --accent-gradient: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
    --accent-glow: rgba(29, 78, 216, 0.15);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header & Navigation */
header {
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
    filter: drop-shadow(0 2px 4px var(--accent-glow));
}

nav {
    display: flex;
    gap: 30px;
    font-size: 14px;
    font-weight: 500;
}

nav a {
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.btn-nav {
    padding: 8px 16px;
    background: var(--accent-gradient);
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    transition: opacity 0.2s;
}

.btn-nav:hover {
    opacity: 0.9;
}

/* Grid & Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding-top: 140px;
    padding-bottom: 100px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

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

.hero-content p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.card-glass {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Feature Showcase */
.features-section {
    background-color: rgba(17, 24, 39, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: left;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Pricing Grid */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.popular {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.pricing-header {
    margin-bottom: 25px;
}

.pricing-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 13px;
}

.pricing-price {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.pricing-price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.original-price {
    text-decoration: line-through;
    color: var(--danger-color) !important;
    font-size: 18px !important;
    margin-right: 5px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: var(--success-color);
}

.btn-pricing {
    width: 100%;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.pricing-card.popular .btn-pricing {
    background: var(--accent-gradient);
    border: none;
    color: white;
}

.btn-pricing:hover {
    opacity: 0.9;
}

/* Forms & Modals */
.form-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    margin-bottom: 15px;
}

.form-input:focus {
    border-color: var(--accent-color);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    .hero-actions {
        justify-content: center;
    }
    nav {
        display: none;
    }
}

/* 3D card tilt & hover effects */
.card-3d {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s, border-color 0.3s;
    transform-style: preserve-3d;
    perspective: 1000px;
}
.card-3d:hover {
    transform: translateY(-8px) scale(1.02) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Floating animation for graphic cards */
@keyframes float-animation {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}
.floating-3d {
    animation: float-animation 6s ease-in-out infinite;
}

/* Glowing grid background */
.grid-glow {
    position: relative;
    background-image: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 80%);
}
