/* =============================================
   ELITE DOWNLOADER — Design System v3.0
   Linear-Inspired Clean Professional
   ============================================= */

:root {
    --bg-void: #09090b;
    --bg-surface: #0c0c0e;
    --bg-card: rgba(16, 16, 20, 0.7);
    --bg-card-hover: rgba(22, 22, 28, 0.8);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);

    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-tertiary: #52525b;

    --accent: #7c3aed;
    --accent-soft: rgba(124, 58, 237, 0.12);
    --accent-emerald: #10b981;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 100px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
    font-family: var(--font);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

/* --- Nav --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(20px, 5vw, 60px);
    height: 56px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(9, 9, 11, 0.7);
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-icon { font-size: 1.2rem; }
.logo .highlight { color: var(--text-secondary); font-weight: 400; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions .btn { font-size: 0.82rem; padding: 6px 14px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 550;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-decoration: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
}

.btn-primary {
    background: #fff;
    color: #09090b;
}

.btn-primary:hover {
    background: #e4e4e7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-medium);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.btn.full-w { width: 100%; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 80px clamp(20px, 5vw, 60px) 60px;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-subtle);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.hero-badge .badge-dot {
    width: 6px; height: 6px;
    background: var(--accent-emerald);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.gradient-text {
    background: linear-gradient(135deg, #e4e4e7 0%, #71717a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* --- Hero Screenshot --- */
.hero-screenshot {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px) 80px;
}

.screenshot-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.screenshot-frame img {
    width: 100%;
    display: block;
}

/* Placeholder state when no real screenshot yet */
.screenshot-placeholder {
    padding: 80px 40px;
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-medium);
}

.screenshot-placeholder p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* --- Section Divider --- */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

/* --- Sections --- */
section { position: relative; }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

/* --- Features 2-Col Grid --- */
.features-section {
    padding: 80px clamp(20px, 5vw, 60px);
    max-width: 960px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.feature-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-1px);
}

.feature-card .card-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- Pricing --- */
.pricing-section {
    padding: 80px clamp(20px, 5vw, 60px);
    max-width: 960px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.price-tier {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.price-tier:hover {
    border-color: var(--border-medium);
    transform: translateY(-1px);
}

.price-tier.best-value {
    border-color: rgba(124, 58, 237, 0.3);
}

.price-tier.best-value:hover {
    border-color: rgba(124, 58, 237, 0.45);
}

.value-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.price-tier h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-tag {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.04em;
}

.price-tag .period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

.price-desc {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.tier-features {
    list-style: none;
    margin-bottom: 28px;
    flex-grow: 1;
}

.tier-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.tier-features li b { color: var(--text-primary); }

.tier-icon { width: 16px; height: 16px; flex-shrink: 0; }
.tier-icon.chk { color: var(--accent-emerald); }
.tier-icon.cross { color: var(--text-tertiary); opacity: 0.5; }

/* --- Terminal Card --- */
.security-section {
    padding: 0 clamp(20px, 5vw, 60px) 80px;
    max-width: 720px;
    margin: 0 auto;
}

.terminal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #ef4444; opacity: 0.6; }
.terminal-dot.yellow { background: #f59e0b; opacity: 0.6; }
.terminal-dot.green { background: #22c55e; opacity: 0.6; }

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-left: 6px;
    font-weight: 500;
}

.terminal-body { padding: 24px; }
.terminal-body h3 { font-size: 1.05rem; margin-bottom: 10px; }

.terminal-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.step-list {
    list-style: none;
    counter-reset: steps;
}

.step-list li {
    counter-increment: steps;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.step-list li::before {
    content: counter(steps);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: #a78bfa;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-list li strong { color: var(--text-primary); }

/* --- TOS Notice --- */
.tos-notice {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-top: 32px;
    padding: 0 20px;
}

.tos-notice strong { color: var(--text-secondary); }

/* --- Footer --- */
.footer {
    padding: 32px clamp(20px, 5vw, 60px);
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .logo { font-size: 0.95rem; }

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.footer-links { display: flex; gap: 20px; }

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: color 0.15s var(--ease);
}

.footer-links a:hover { color: var(--text-primary); }

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .feature-grid { grid-template-columns: 1fr; }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .navbar .nav-links { display: none; }

    .cta-group { flex-direction: column; align-items: center; }
    .cta-group .btn { width: 100%; max-width: 300px; }

    .footer-inner { flex-direction: column; text-align: center; }
}
