/* Ultra Premium Dark Theme - Dribbble Level */

:root {
    /* Neon Colors */
    --neon-purple: #B794F6;
    --neon-pink: #F687B3;
    --neon-blue: #63B3ED;
    --neon-green: #68D391;

    /* Dark Backgrounds */
    --bg-ultra-dark: #0A0E27;
    --bg-dark: #151932;
    --bg-card: #1A1F3A;
    --bg-elevated: #222749;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --text-muted: #718096;

    /* Accents */
    --accent-purple: #9F7AEA;
    --accent-pink: #ED64A6;
    --border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-ultra-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent; /* Removes blue tap highlight on mobile */
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(183, 148, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(246, 135, 179, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(99, 179, 237, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Navbar - Ultra Modern */
.navbar {
    background: rgba(21, 25, 50, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo {
    font-size: 28px;
    filter: drop-shadow(0 0 20px rgba(183, 148, 246, 0.6));
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(183, 148, 246, 0.6)); }
    50% { filter: drop-shadow(0 0 30px rgba(246, 135, 179, 0.8)); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover::before {
    opacity: 1;
}

.nav-menu a:hover {
    color: var(--neon-purple);
}

/* Nav Toggle (Hamburger Menu) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero - Stunning Gradient */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0A0E27 0%, #1A1F3A 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 24px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(183, 148, 246, 0.15) 0%, transparent 70%);
    top: -400px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(246, 135, 179, 0.12) 0%, transparent 70%);
    bottom: -300px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 22px);
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-weight: 400;
}

/* Search Tabs - Neon Style */
.search-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 2px solid var(--border);
    padding: 16px 36px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    border-color: var(--neon-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(183, 148, 246, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(183, 148, 246, 0.4);
}

/* Search Input - Glass Morphism */
.search-container {
    margin-bottom: 30px;
}

.search-form {
    display: none;
}

.search-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.input-group {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 8px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--neon-purple);
    box-shadow: 0 0 40px rgba(183, 148, 246, 0.3);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 20px 24px;
    font-size: 17px;
    color: var(--text-primary);
    outline: none;
    font-weight: 500;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(183, 148, 246, 0.4);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(183, 148, 246, 0.6);
}

.btn-icon {
    font-size: 20px;
}

.search-help {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 15px;
}

/* Results Card - Neon Glow */
.results-container {
    margin-top: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card {
    background: var(--bg-card);
    padding: 48px;
    border-radius: 24px;
    border: 2px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.result-danger {
    border-color: var(--neon-pink);
    box-shadow: 0 20px 60px rgba(246, 135, 179, 0.3);
}

.result-success {
    border-color: var(--neon-green);
    box-shadow: 0 20px 60px rgba(104, 211, 145, 0.3);
}

.result-icon {
    font-size: 72px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px currentColor);
}

.result-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.result-message {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.result-message strong {
    color: var(--text-primary);
}

.result-count {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
    border: 2px solid rgba(251, 191, 36, 0.4);
    padding: 24px;
    border-radius: 16px;
    color: #FDE68A;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 24px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    padding: 18px 36px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(183, 148, 246, 0.4);
}

.download-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(183, 148, 246, 0.6);
}

/* Loading - Neon Spinner */
.loading {
    text-align: center;
    padding: 60px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(183, 148, 246, 0.2);
    border-top: 4px solid var(--neon-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

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

/* Features - Neon Cards */
.features {
    padding: 120px 24px;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    margin-bottom: 80px;
    background: linear-gradient(135deg, var(--text-primary), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 48px 36px;
    border-radius: 24px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--neon-purple);
    box-shadow: 0 20px 60px rgba(183, 148, 246, 0.3);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px rgba(183, 148, 246, 0.4));
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

/* How It Works - Timeline */
.how-it-works {
    padding: 120px 24px;
    background: var(--bg-dark);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    margin: 0 auto 28px;
    box-shadow: 0 8px 30px rgba(183, 148, 246, 0.5);
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
}

.step h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

/* Blog Section */
.blog-preview {
    padding: 120px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.view-all {
    color: var(--neon-purple);
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--neon-pink);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.4s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.blog-card:hover {
    transform: translateY(-12px);
    border-color: var(--neon-purple);
    box-shadow: 0 20px 60px rgba(183, 148, 246, 0.3);
}

.blog-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.blog-content {
    padding: 36px;
}

.blog-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

/* CTA - Neon Glow */
.cta {
    padding: 120px 24px;
    background: linear-gradient(135deg, #0A0E27 0%, #1A1F3A 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(183, 148, 246, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.cta h2 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.cta p {
    font-size: clamp(16px, 3vw, 22px);
    color: var(--text-secondary);
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.btn-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    padding: 24px 56px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 8px 40px rgba(183, 148, 246, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 50px rgba(183, 148, 246, 0.7);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 80px 24px 32px;
    border-top: 2px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--neon-purple);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
}

.disclaimer {
    margin-top: 12px;
    font-size: 14px;
}

/* App-Like Mobile Bottom Bar (Hidden on Desktop) */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 31, 58, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom); /* iOS safe area spacing */
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    transition: all 0.3s ease;
}

.bottom-nav-item svg {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.bottom-nav-item.active {
    color: var(--neon-purple);
}

.bottom-nav-item.active svg {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 10px rgba(183, 148, 246, 0.6));
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Make space for bottom bar */
    }

    .hero {
        min-height: auto;
        padding: 40px 24px;
    }

    /* Hamburger Animation & Slide Menu */
    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 20px;
        padding: 15px 40px;
    }

    /* Bottom Bar display */
    .mobile-bottom-bar {
        display: flex;
    }

    .search-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    /* Input Field Fixes for Phone */
    .input-group {
        flex-direction: column;
        background: transparent; /* Remove parent background */
        border: none;
        padding: 0;
        gap: 16px; /* Spacing between input and button */
    }

    .input-group input {
        background: rgba(26, 31, 58, 0.8);
        border: 2px solid var(--border);
        border-radius: 16px;
        width: 100%;
        padding: 20px;
    }

    .input-group input:focus {
        border-color: var(--neon-purple);
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        border-radius: 16px;
        padding: 20px;
    }

    .result-card {
        padding: 32px 24px;
    }

    .features-grid,
    .steps,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .download-link {
        width: 100%; /* Full width button on mobile */
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-purple), var(--neon-pink));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-purple));
}