/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --accent: #f472b6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    min-height: 100vh;
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */

   /* Navbar Container */
        .navbar {
            background: #1a1a2e;
            padding: 0 2rem;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .navbar-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            height: 70px;
        }

        /* Logo */
        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: #fff;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        /* Navigation Menu */
        .nav-menu {
            display: flex;
            list-style: none;
            gap: 0.5rem;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            color: #e0e0e0;
            text-decoration: none;
            padding: 0.8rem 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.95rem;
            font-weight: 500;
            border-radius: 8px;
            transition: all 0.3s ease;
            cursor: pointer;
            user-select: none;
        }

        .nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
        }

        .nav-link.active {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: #fff;
        }

        /* Dropdown Arrow */
        .dropdown-arrow {
            font-size: 0.65rem;
            transition: transform 0.3s ease;
            margin-left: 0.3rem;
        }

        .nav-item.open > .nav-link .dropdown-arrow,
        .submenu-item.open > .submenu-link .dropdown-arrow {
            transform: rotate(180deg);
        }

        /* Submenu */
        .submenu {
            position: absolute;
            top: 100%;
            left: 0;
            background: #16213e;
            min-width: 220px;
            list-style: none;
            border-radius: 12px;
            padding: 0.5rem;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .nav-item.open > .submenu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .submenu-item {
            position: relative;
        }

        .submenu-link {
            color: #b0b0b0;
            text-decoration: none;
            padding: 0.8rem 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.9rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            cursor: pointer;
            user-select: none;
        }

        .submenu-link:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        /* Nested Submenu */
        .submenu .submenu {
            left: 100%;
            top: 0;
        }

        .submenu-item.open > .submenu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Hamburger Menu */
        .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 10px;
            border-radius: 8px;
            transition: background 0.3s ease;
        }

        .hamburger:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: #fff;
            border-radius: 3px;
            transition: all 0.3s ease;
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 6px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -6px);
        }

        /* Mobile Styles */
        @media (max-width: 900px) {
            .hamburger {
                display: flex;
            }

            .nav-menu {
                position: fixed;
                top: 70px;
                left: 0;
                right: 0;
                bottom: 0;
                background: #1a1a2e;
                flex-direction: column;
                padding: 1.5rem;
                gap: 0.3rem;
                transform: translateX(-100%);
                transition: transform 0.4s ease;
                overflow-y: auto;
            }

            .nav-menu.active {
                transform: translateX(0);
            }

            .nav-link {
                padding: 1rem 1.2rem;
                font-size: 1.1rem;
                border-radius: 10px;
            }

            /* Mobile Submenu */
            .submenu {
                position: static;
                opacity: 1;
                visibility: hidden;
                transform: none;
                background: rgba(255, 255, 255, 0.05);
                max-height: 0;
                overflow: hidden;
                padding: 0;
                margin-top: 0.3rem;
                margin-left: 1rem;
                transition: max-height 0.4s ease, padding 0.4s ease, visibility 0.4s ease;
            }

            .nav-item.open > .submenu,
            .submenu-item.open > .submenu {
                visibility: visible;
                max-height: 500px;
                padding: 0.5rem;
            }

            .submenu .submenu {
                left: 0;
            }

            .submenu-link {
                padding: 0.9rem 1rem;
            }
        }

/* ==================== HERO SECTION ==================== */
.hero-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary-light);
    margin-bottom: 24px;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== MAIN CONTENT ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 0 80px;
    position: relative;
    margin-top: -40px;
}

/* ==================== CARDS ==================== */
.card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.card-icon.secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--gray-300);
    font-size: 14px;
}

.form-label .required {
    color: var(--accent);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--light);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-500);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    padding-right: 44px;
}

.form-select option {
    background: var(--dark);
    color: var(--light);
    padding: 12px;
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled::before {
    display: none;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 10px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* ==================== SPINNER ==================== */
.spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== RESULTS ==================== */
.results-section {
    min-height: 500px;
}

.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 420px;
    text-align: center;
    color: var(--gray-500);
}

.results-placeholder-icon {
    font-size: 72px;
    margin-bottom: 24px;
    filter: grayscale(0.5);
}

.results-placeholder h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--gray-300);
}

.results-placeholder p {
    font-size: 15px;
    max-width: 300px;
    line-height: 1.6;
}

/* ==================== PROMPT CARDS ==================== */
.prompt-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.prompt-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 22px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.prompt-card:nth-child(1) { animation-delay: 0.1s; }
.prompt-card:nth-child(2) { animation-delay: 0.2s; }
.prompt-card:nth-child(3) { animation-delay: 0.3s; }
.prompt-card:nth-child(4) { animation-delay: 0.4s; }
.prompt-card:nth-child(5) { animation-delay: 0.5s; }

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

.prompt-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(15, 23, 42, 0.7);
    transform: translateX(4px);
}

.prompt-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.prompt-number {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-light);
    font-size: 14px;
}

.prompt-badge {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    font-weight: 700;
}

.prompt-text {
    color: var(--gray-200);
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.prompt-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copy-btn.copied {
    color: var(--success);
    border-color: var(--success);
}

/* ==================== TIPS SECTION ==================== */
.tips-section {
    margin-top: 28px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.tips-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--primary-light);
    font-size: 15px;
}

.tips-list {
    list-style: none;
    color: var(--gray-300);
    font-size: 14px;
}

.tips-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.tips-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

/* ==================== ERROR ==================== */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* ==================== FOOTER ==================== */
footer {
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
    padding-top: 80px;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 100%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(235, 229, 229, 0.08);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.footer-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-column h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--gray-500);
    font-size: 14px;
}

.footer-copyright a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-tech {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-400);
}

.tech-badge span {
    color: var(--success);
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nav-bar {
        flex-direction: column;
        gap: 20px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-value {
        font-size: 24px;
    }
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 768px) {
    .header-content {
        padding: 30px 16px 60px;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .card {
        padding: 24px;
        border-radius: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-column h4 {
        margin-top: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-tech {
        flex-wrap: wrap;
        justify-content: center;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* ==================== RESPONSIVE - SMALL MOBILE ==================== */
@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .prompt-list {
        max-height: none;
    }

    .card {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}
