:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --bg-light: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --accent: #10B981;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
}
.shape-1 {
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: rgba(37, 99, 235, 0.15);
}
.shape-2 {
    top: 20%;
    right: -200px;
    width: 800px;
    height: 800px;
    background: rgba(16, 185, 129, 0.08);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}
.btn-primary {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-light);
}
.btn-outline:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary);
}
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}
.btn-block {
    width: 100%;
    padding: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}
.logo-icon {
    background: var(--primary);
    color: white;
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding: 10rem 2rem 6rem;
    max-width: 1280px;
    margin: 0 auto;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}
.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}
.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}
.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}
.stat-val {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Login Widget in Hero */
.hero-visual {
    position: relative;
    padding-left: 2rem;
}
.login-widget {
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}
.login-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.login-icon {
    width: 48px; height: 48px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.login-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}
.login-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}
.input-group {
    margin-bottom: 1.5rem;
}
.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.input-wrapper {
    position: relative;
}
.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
}
.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.8rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #F8FAFC;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s;
}
.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.error-msg {
    display: none;
    align-items: center;
    gap: 8px;
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    z-index: 11;
    border: 1px solid var(--border-light);
}
.floating-badge i {
    color: var(--accent);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.delay-1 { transition-delay: 0.2s; }
.pulse {
    animation: pulseShadow 2s infinite;
}
@keyframes pulseShadow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Bento Grid Section */
.features {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 3rem;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.bento-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}
.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.col-span-2 {
    grid-column: span 2;
}
.bento-icon {
    width: 50px; height: 50px;
    background: #F1F5F9;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}
.bento-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}
.bg-primary-light {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.1);
}
.text-primary { color: var(--primary) !important; background: white !important;}
.bg-dark {
    background: #0F172A;
    border-color: #0F172A;
    color: white;
}
.bg-dark h3, .bg-dark p, .bg-dark .bento-icon {
    color: white;
}
.bg-dark .bento-icon { background: rgba(255,255,255,0.1); }

/* Testimonials */
.testimonials {
    background: white;
    padding: 6rem 2rem;
    border-top: 1px solid var(--border-light);
}
.testimonial-carousel {
    display: flex;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: none; /* Firefox */
}
.testimonial-carousel::-webkit-scrollbar { display: none; }
.t-card {
    min-width: 400px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    border-radius: 24px;
}
.t-stars {
    color: #F59E0B;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.t-quote {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.t-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.t-avatar {
    width: 48px; height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-family: 'Outfit';
}
.bg-alt { background: #8B5CF6; }
.t-author h4 { font-size: 1rem; margin: 0; }
.t-author span { font-size: 0.85rem; color: var(--text-muted); }

/* Footer */
footer {
    background: #0F172A;
    color: white;
    padding: 4rem 2rem;
}
.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand .logo { color: white; margin-bottom: 0.5rem; }
.footer-brand p { color: #94A3B8; font-size: 0.9rem; }
.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: white; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual { padding-left: 0; margin-top: 3rem; }
    .floating-badge { display: none; }
    .stats-row { justify-content: center; }
    .bento-grid { grid-template-columns: 1fr; }
    .col-span-2 { grid-column: span 1; }
    .nav-links { display: none; }
}
