/* ==============================
   RESET & BASE
   ============================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #06080d;
    --bg-secondary: #0c1017;
    --bg-card: rgba(14, 18, 27, 0.7);
    --bg-card-hover: rgba(20, 26, 40, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #f0f2f5;
    --text-secondary: #8a8f9c;
    --text-muted: #5a5f6e;
    --accent-cyan: #00d4ff;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --gradient-main: linear-gradient(135deg, #00d4ff, #3b82f6, #8b5cf6);
    --gradient-warm: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
    --gradient-cool: linear-gradient(135deg, #10b981, #00d4ff, #3b82f6);
    --shadow-glow-cyan: 0 0 30px rgba(0, 212, 255, 0.15);
    --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-mono {
    font-family: var(--font-mono);
}

/* ==============================
   ANIMATED BACKGROUND
   ============================== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: float 20s infinite ease-in-out;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12), transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
    top: 40%;
    right: -150px;
    animation-delay: -7s;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08), transparent 70%);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* Particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ==============================
   NAVIGATION
   ============================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(6, 8, 13, 0.6);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.nav-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.nav-text .accent {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
    letter-spacing: 2px;
}

/* ==============================
   HERO SECTION
   ============================== */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    padding: 120px 24px 60px;
    text-align: center;
}

.hero-content {
    max-width: 720px;
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 16px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-subtle);
}

/* ==============================
   ANIMATIONS (ENTRANCE)
   ============================== */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

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

.animate-card {
    opacity: 0;
    transform: translateY(40px);
}

.animate-card.visible {
    animation: cardReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-card:nth-child(2).visible { animation-delay: 0.12s; }
.animate-card:nth-child(3).visible { animation-delay: 0.24s; }

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

/* ==============================
   OPTIONS SECTION
   ============================== */
.options-section {
    position: relative;
    z-index: 1;
    padding: 40px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ==============================
   OPTION CARDS
   ============================== */
.option-card {
    position: relative;
    padding: 36px 28px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.option-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    transition: all 0.5s ease;
}

.card-download .card-glow {
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}
.card-view .card-glow {
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}
.card-preview .card-glow {
    background: linear-gradient(90deg, transparent, var(--accent-pink), transparent);
}

.option-card:hover .card-glow {
    width: 100%;
    height: 2px;
    box-shadow: 0 0 30px 5px currentColor;
}

.card-download:hover .card-glow { box-shadow: 0 0 30px 5px rgba(0, 212, 255, 0.3); }
.card-view:hover .card-glow { box-shadow: 0 0 30px 5px rgba(139, 92, 246, 0.3); }
.card-preview:hover .card-glow { box-shadow: 0 0 30px 5px rgba(236, 72, 153, 0.3); }

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card-icon svg {
    width: 26px;
    height: 26px;
}

.card-download .card-icon {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
}
.card-view .card-icon {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}
.card-preview .card-icon {
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.15);
    color: var(--accent-pink);
}

.option-card:hover .card-icon {
    transform: scale(1.1);
}

.card-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.5;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.card-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex: 1;
}

.card-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* ==============================
   BUTTONS
   ============================== */
.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: none;
    outline: none;
    width: 100%;
}

.btn-icon {
    display: flex;
    align-items: center;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.btn-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.card-btn:hover .btn-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--accent-cyan);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(59, 130, 246, 0.25));
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.12));
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(59, 130, 246, 0.22));
    box-shadow: var(--shadow-glow-purple);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.2);
    color: var(--accent-pink);
}

.btn-tertiary:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.15);
    transform: translateY(-2px);
}

/* ==============================
   PDF PREVIEW SECTION
   ============================== */
.preview-section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: none;
}

.preview-section.active {
    display: block;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    backdrop-filter: blur(12px);
}

.preview-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.preview-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.preview-close svg {
    width: 18px;
    height: 18px;
}

.preview-container {
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    background: #1a1a2e;
}

.pdf-iframe {
    width: 100%;
    height: 80vh;
    border: none;
    display: block;
}

/* ==============================
   FOOTER / CREDITS
   ============================== */
.footer {
    position: relative;
    z-index: 1;
    padding: 80px 24px 40px;
    text-align: center;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), rgba(0, 212, 255, 0.4), transparent);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.credits-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.5));
}

.credits-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.credits-sky {
    background: linear-gradient(135deg, #00d4ff, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credits-reaper {
    color: var(--text-primary);
}

.credits-num {
    background: linear-gradient(135deg, #f97316, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credits-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 36px;
}

.tagline-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--border-subtle);
}

.credits-details {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.credit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.credit-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.credit-value {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.footer-ascii {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.35;
    white-space: pre;
    line-height: 1.4;
    margin-bottom: 28px;
    overflow-x: auto;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 900px) {
    .options-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px 32px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .credits-details {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .credits-tagline {
        flex-direction: column;
        gap: 8px;
    }

    .tagline-line {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 16px;
    }

    .nav-text {
        font-size: 0.95rem;
    }

    .hero {
        padding: 100px 16px 40px;
    }

    .hero-title {
        letter-spacing: -1px;
    }

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

    .option-card {
        padding: 28px 22px 22px;
    }

    .footer-ascii {
        font-size: 0.55rem;
    }
}

/* ==============================
   SCROLLBAR
   ============================== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Selection */
::selection {
    background: rgba(0, 212, 255, 0.2);
    color: var(--text-primary);
}
