/* Modern Design System */
:root {
    /* Color Palette */
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --dark-bg: #0F172A;
    --dark-card: #1E293B;
    --light-bg: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-light: #F1F5F9;

    /* Gradients */
    --hero-gradient: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
    --card-gradient: linear-gradient(145deg, #ffffff 0%, #f3f4f6 100%);
    --dark-card-gradient: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    background: var(--light-bg);
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--hero-gradient);
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Buttons */
.btn-custom-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-custom-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-custom-outline {
    background: transparent;
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 2px solid #E2E8F0;
    transition: var(--transition-base);
}

.btn-custom-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: white;
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid #F1F5F9;
    transition: var(--transition-base);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.1);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--hero-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.btn-cta {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    transition: var(--transition-base);
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    color: var(--primary-hover);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-base);
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.2rem;
}

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

/* Dark Mode */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

body.dark-mode .navbar {
    background-color: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .nav-link {
    color: var(--text-light) !important;
}

body.dark-mode .nav-link:hover {
    color: var(--primary-color) !important;
}

body.dark-mode .hero-section {
    background: var(--dark-bg);
}

body.dark-mode .hero-title {
    background: linear-gradient(to right, #F8FAFC, #818CF8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .features-section {
    background: var(--dark-card);
}

body.dark-mode .feature-card {
    background: #1E293B;
    border-color: #334155;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: var(--text-light);
}

body.dark-mode .feature-card p {
    color: var(--text-muted);
}

body.dark-mode .btn-custom-outline {
    border-color: #334155;
    color: var(--text-light);
}

body.dark-mode .btn-custom-outline:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Auth Pages */
.auth-section {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    position: relative;
}

.auth-bg-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.auth-bg-shape::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--hero-gradient);
    filter: blur(120px);
    opacity: 0.15;
    border-radius: 50%;
}

.auth-bg-shape::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    filter: blur(120px);
    opacity: 0.1;
    border-radius: 50%;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #E2E8F0;
    background-color: #F8FAFC;
    transition: var(--transition-base);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background-color: white;
}

.form-label {
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.input-group-text {
    background-color: #F8FAFC;
    border-color: #E2E8F0;
    color: var(--text-muted);
}

/* Dark Mode Auth */
body.dark-mode .auth-section {
    background: var(--dark-bg);
}

body.dark-mode .auth-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .form-control {
    background-color: #0F172A;
    border-color: #334155;
    color: var(--text-light);
}

body.dark-mode .form-control:focus {
    border-color: var(--primary-color);
    background-color: #0F172A;
}

body.dark-mode .input-group-text {
    background-color: #0F172A;
    border-color: #334155;
    color: var(--text-muted);
}

body.dark-mode .auth-title {
    background: linear-gradient(to right, #F8FAFC, #818CF8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .form-label {
    color: var(--text-light);
}

body.dark-mode .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .auth-card .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode .form-text {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Simple Animations */
@keyframes fadeInUpCustom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUpCustom 0.6s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}