/* 
    Nepse Easy — Landing Page Styles
    Externalized for Performance & PageSpeed Optimization
*/

:root {
    --primary: #10b981;
    --primary-dark: #0a7c6e;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.1), transparent 40%);
}

/* Navbar */
/* Consolidated Navbar & Branding */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%; /* Tight padding to remove gap */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo span {
    font-size: 42px !important; /* Force a massive branding text */
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, #10b981, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Removed redundant nav refinement */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-group {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sep-line {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 5px;
}

.btn-nav {
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--primary);
}

.btn-ghost {
    color: var(--text-gray);
    position: relative;
}

.btn-ghost:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    padding: 60px 8% 60px; /* Minimal gap - sitting just below the navbar */
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

/* Hero Section Polish */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 8% 80px;
    gap: 80px; /* Increased gap for better balance */
}

.hero h1 {
    font-size: 64px; /* Slightly reduced for better balance */
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 12px; /* Reduced from 24px to look more connected */
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff 60%, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 19px;
    color: var(--text-gray);
    margin-bottom: 30px; /* Reduced from 40px for better flow */
    max-width: 520px;
    line-height: 1.7;
}

.hero-image img {
    width: 100%;
    max-width: 620px;
    max-height: 480px; /* Limited height to keep buttons visible */
    object-fit: contain; /* Prevents distortion while limiting height */
    margin: 0 auto;
    display: block;
    border-radius: 30px;
    box-shadow: 0 40px 100px -20px rgba(16, 185, 129, 0.4); 
    border: 1px solid rgba(255,255,255,0.1);
    animation: float 6s ease-in-out infinite; 
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

/* Feature Cards */
.features {
    padding: 100px 8%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 30px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 15px;
}

/* Login Section */
.login-section {
    padding: 120px 8%;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.05) 0%, transparent 70%);
}

.login-card {
    width: 100%;
    max-width: 480px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 50px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.login-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.login-card h2 {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 10px;
    margin-left: 5px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 16px 20px 16px 50px;
    border-radius: 18px;
    color: white;
    font-size: 15px;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.input-wrapper input::placeholder {
    color: #64748b;
    opacity: 1;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    width: 20px;
}

.btn-login {
    width: 100%;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    border: none;
    padding: 18px;
    border-radius: 18px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.5);
}

.alert {
    padding: 14px 20px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
}

.bottom-text {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-gray);
}

.bottom-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

footer {
    padding: 60px 8%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-gray);
    font-size: 14px;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }
    .hero h1 { font-size: 56px; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 42px; }
    .login-card { padding: 40px 25px; }
    .hero-btns { flex-direction: column; }
    .cta-large {
        padding: 12px 24px !important;
        font-size: 15px !important;
        display: inline-block;
        width: 90%;
        box-sizing: border-box;
    }
}

/* Premium Feature Cards */
.premium-feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.premium-feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6), 0 0 20px rgba(99,102,241,0.2);
}
.card-image-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #000;
}
.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    opacity: 0.8;
}
.premium-feature-card:hover .card-image-wrap img {
    transform: scale(1.1);
    opacity: 1;
}
.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.card-content {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}
.card-content p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}
.card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}
.card-tags span {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: #cbd5e1;
}

/* Showcase Cards */
.showcase-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.showcase-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.showcase-card img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.4);
    padding: 10px;
}
.showcase-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.showcase-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: white;
}
.showcase-info p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-top: auto;
}

/* Modal Styling */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    justify-content: center;
    align-items: center;
}
.modal-content {
    animation: modalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: var(--text-gray); font-size: 30px;
    cursor: pointer;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
