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

:root {
    --primary: #6c5ce7;
    --primary-hover: #5a4bd1;
    --primary-light: #a29bfe;
    --background: #0a0a0a;
    --background-dark: #141414;
    --background-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-white: #ffffff;
    --border-light: #2a2a2a;
    --shadow-light: 0 8px 30px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.brand-text {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Space Grotesk', sans-serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-primary {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #ffffff !important;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
    color: #ffffff !important;
}

.btn-small {
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
}

.btn-large {
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
}

.btn-secondary {
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 0.7rem 1.8rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    background: transparent;
    transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
}

.btn-download {
    background: #00b894;
    color: white;
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #00a381;
}

.btn-generate {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    justify-content: center;
}

.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
    margin-top: 2rem;
    background: var(--background);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

#toastContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: 100%;
}

.toast {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    backdrop-filter: blur(10px);
    animation: toastSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast.exit {
    animation: toastSlideOut 0.5s ease-in forwards;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%) scale(0.8); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to { transform: translateX(100%) scale(0.8); opacity: 0; }
}

.toast-success { border-left: 4px solid #00b894; }
.toast-error { border-left: 4px solid #ff6b6b; }
.toast-info { border-left: 4px solid #6c5ce7; }
.toast-warning { border-left: 4px solid #fdcb6e; }

.toast-content { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.toast-title { font-weight: 600; font-size: 0.9rem; color: white; }
.toast-message { font-size: 0.8rem; color: #94a3b8; }
.toast-close { background: none; border: none; color: #64748b; cursor: pointer; font-size: 1.2rem; padding: 0 0.2rem; }
.toast-close:hover { color: white; }

@media (max-width: 968px) {
    .container { padding: 0 1.5rem; }
}

@media (max-width: 600px) {
    .container { padding: 0 1rem; }
    .nav-links { gap: 0.5rem; }
    .nav-links a:not(.btn-primary) { display: none; }
    .nav-links .btn-primary {
        color: #ffffff !important;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    #toastContainer { max-width: 90%; right: 5%; top: 70px; }
}