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

body {
    background: linear-gradient(135deg, #0a0a0f 0%, #0f0f1a 100%);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #eef5ff;
    line-height: 1.5;
    scroll-behavior: smooth;
    min-height: 100vh;
}

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

/* ---------- TYPOGRAPHY ---------- */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #00ffcc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight {
    color: #00ffcc;
    background: linear-gradient(125deg, #00ffcc, #4f46e5);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* ---------- BUTTONS & NAV ---------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(125deg, #00ffcc, #4f46e5);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #eef5ff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    border-color: #4f46e5;
}

.btn-primary {
    background: linear-gradient(95deg, #4f46e5, #6366f1);
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.3);
}

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

.btn-outline {
    border: 1px solid rgba(0, 255, 204, 0.5);
    background: transparent;
    padding: 0.7rem 1.6rem;
    border-radius: 40px;
    color: #00ffcc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
}

.user-greeting {
    background: rgba(0, 255, 204, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    color: #00ffcc;
    font-weight: 500;
}

/* ---------- HERO SECTION ---------- */
.hero {
    padding: 4rem 0 3rem 0;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    margin: 1.2rem auto 2rem;
    max-width: 600px;
    opacity: 0.8;
}

/* ---------- STATS ---------- */
.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ffcc, #4f46e5);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ---------- FEATURES ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(2px);
    border-radius: 28px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 70, 229, 0.5);
    background: #14141f;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ---------- STEPS ---------- */
.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.step {
    background: #111116;
    padding: 1.8rem;
    border-radius: 28px;
    flex: 1;
    min-width: 200px;
    border-left: 3px solid #4f46e5;
    transition: all 0.2s;
    text-align: center;
}

.step:hover {
    transform: translateX(5px);
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ffcc, #4f46e5);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
}

/* ---------- DEMO SHOWCASE ---------- */
.demo-showcase {
    background: rgba(20, 20, 30, 0.5);
    border-radius: 28px;
    padding: 2rem;
    margin: 3rem 0;
}

.demo-code pre {
    background: #0a0a0f;
    padding: 1.5rem;
    border-radius: 16px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.9rem;
    margin-top: 1rem;
}

code {
    background: rgba(0, 255, 204, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    color: #00ffcc;
    font-family: monospace;
}

/* ---------- DASHBOARD ---------- */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.dashboard-card {
    background: rgba(20, 20, 30, 0.6);
    border-radius: 28px;
    padding: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.dashboard-card:hover {
    border-color: rgba(79, 70, 229, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.projects-count {
    background: #4f46e5;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.projects-list {
    max-height: 400px;
    overflow-y: auto;
}

.project-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}

.project-item:hover {
    background: rgba(79, 70, 229, 0.2);
    transform: translateX(5px);
}

.project-info {
    flex: 1;
}

.project-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.project-url {
    font-size: 0.8rem;
    font-family: monospace;
    color: #00ffcc;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
}

.project-action-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.project-action-btn:hover {
    background: #4f46e5;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.project-input, .project-select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #0a0a0f;
    border: 1px solid #2c2c3a;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    outline: none;
}

.project-input:focus, .project-select:focus {
    border-color: #4f46e5;
}

.user-link {
    text-align: center;
}

.link-box {
    background: #0a0a0f;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.link-box code {
    word-break: break-all;
    font-size: 0.9rem;
}

.copy-btn {
    background: #4f46e5;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #6366f1;
}

.link-info {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ---------- STATS MINI ---------- */
.stats-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(20, 20, 30, 0.6);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #00ffcc;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ---------- FOOTER ---------- */
footer {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #00ffcc;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* ---------- MODAL ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.login-card {
    background: linear-gradient(135deg, #14141c, #1a1a24);
    border-radius: 32px;
    padding: 2rem;
    width: 90%;
    max-width: 420px;
    border: 1px solid rgba(79, 70, 229, 0.3);
    animation: fadeInUp 0.3s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: #0a0a0f;
    border: 1px solid #2c2c3a;
    border-radius: 60px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

.input-group input:focus {
    border-color: #4f46e5;
}

.login-info {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0.7;
}

/* ---------- TOAST ---------- */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e2a;
    backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 60px;
    color: #00ffcc;
    font-weight: 500;
    z-index: 1200;
    border-left: 4px solid #00ffcc;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
    opacity: 0;
    pointer-events: none;
}

.toast-message.show {
    opacity: 1;
}

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

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

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #00ffcc;
    animation: pulse 1s infinite;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}