@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* =====================================================
   ROOT DESIGN TOKENS
   ===================================================== */
:root {
    /* Brand Colors */
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --secondary: #10b981;
    --secondary-light: #34d399;
    --accent: #f59e0b;
    --accent-light: #fcd34d;
    --danger: #ef4444;
    --danger-light: #fca5a5;

    /* Neutrals */
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --light: #f8fafc;
    --light-2: #f1f5f9;
    --light-3: #e2e8f0;
    --white: #ffffff;

    /* Text */
    --text: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Border */
    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    /* Glass */
    --glass: rgba(255, 255, 255, 0.85);
    --glass-dark: rgba(15, 23, 42, 0.85);

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 2px 4px -1px rgb(0 0 0 / 0.08);
    --shadow: 0 4px 16px -2px rgb(0 0 0 / 0.12), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --shadow-md: 0 8px 24px -4px rgb(0 0 0 / 0.14);
    --shadow-lg: 0 20px 40px -8px rgb(0 0 0 / 0.15), 0 8px 16px -4px rgb(0 0 0 / 0.08);
    --shadow-xl: 0 32px 64px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.25);

    /* Radius */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --radius-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.3s;
    --duration-slow: 0.5s;

    /* Header */
    --header-height: 72px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: var(--light-2);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 100px;
}

@media (min-width: 769px) {
    body { padding-bottom: 0; }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--duration) var(--ease);
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text); line-height: 1.75; }

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    margin-bottom: 0.75rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* =====================================================
   HEADER / NAVBAR
   ===================================================== */
header {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: var(--header-height);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 32px rgba(79, 70, 229, 0.06);
}

header .container {
    height: 100%;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   DESKTOP NAV LINKS (shown on 769px+)
   ===================================================== */
.nav-links {
    display: none;
}

@media (min-width: 769px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 0.15rem;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.5rem 0.85rem;
        border-radius: var(--radius-full);
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-muted);
        transition: all var(--duration) var(--ease);
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary);
        background: rgba(79, 70, 229, 0.08);
    }

    /* Hide bottom nav on desktop */
    .bottom-nav {
        display: none !important;
    }
}

.auth-btn a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-dark);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--white);
    transition: all var(--duration) var(--ease);
}

.auth-btn a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* =====================================================
   BOTTOM NAVIGATION DOCK
   ===================================================== */
.bottom-nav {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: var(--glass-dark);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.05) inset;
    transition: all var(--duration-slow) var(--ease);
}

.bottom-nav:hover {
    bottom: 32px;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease-spring);
    min-width: 56px;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    transition: transform var(--duration) var(--ease-spring);
}

.bottom-nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.bottom-nav-item:hover i {
    transform: translateY(-3px) scale(1.15);
}

.bottom-nav-item.active {
    color: white;
    background: rgba(79, 70, 229, 0.5);
}

.bottom-nav-item.active i {
    color: var(--primary-light);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .bottom-nav {
        bottom: 16px;
        width: 94vw;
        padding: 0.6rem 0.5rem;
        justify-content: space-around;
        gap: 0;
    }
    .bottom-nav-item {
        padding: 0.45rem 0.5rem;
        min-width: auto;
        flex: 1;
    }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #6d28d9 100%);
    padding: 7rem 0 9rem;
    color: var(--white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    overflow: hidden;
    margin-bottom: -3rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1400&q=70') center/cover;
    opacity: 0.12;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--light-2);
    clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-light);
    border-radius: 2px;
    opacity: 0.6;
}

.hero p {
    color: rgba(255,255,255,0.85);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    color: var(--primary);
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration) var(--ease-spring);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-xl);
    color: var(--primary-dark);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.4);
    transition: all var(--duration) var(--ease);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

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

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    margin-top: 0.2rem;
    display: block;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--duration-slow) var(--ease);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-body {
    padding: 1.5rem;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease);
}

.card:hover .card-image {
    transform: scale(1.04);
}

.card-image-wrap {
    overflow: hidden;
    height: 200px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

/* Feature Card */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all var(--duration-slow) var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-slow) var(--ease);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

/* =====================================================
   BADGE / TAG
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary { background: rgba(79,70,229,0.1); color: var(--primary); }
.badge-success { background: rgba(16,185,129,0.1); color: var(--secondary); }
.badge-warning { background: rgba(245,158,11,0.1); color: #b45309; }
.badge-danger  { background: rgba(239,68,68,0.1);  color: var(--danger); }

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { color: white; font-size: 1.4rem; margin-bottom: 1rem; display: inline-block; }
.footer-brand p { font-size: 0.9rem; line-height: 1.75; max-width: 280px; }

footer h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

footer ul li { margin-bottom: 0.6rem; }
footer ul li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--duration) var(--ease);
}

footer ul li a:hover { color: white; }

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.footer-contact p i { color: var(--primary-light); margin-top: 3px; }

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =====================================================
   ALERTS / FLASH MESSAGES
   ===================================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16,185,129,0.1);
    color: #065f46;
    border: 1px solid rgba(16,185,129,0.25);
}

.alert-error {
    background: rgba(239,68,68,0.1);
    color: #991b1b;
    border: 1px solid rgba(239,68,68,0.25);
}

.alert-warning {
    background: rgba(245,158,11,0.1);
    color: #92400e;
    border: 1px solid rgba(245,158,11,0.25);
}

/* =====================================================
   FORM CONTROLS (PUBLIC)
   ===================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-3);
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    outline: none;
}

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

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    section { padding: 3.5rem 0; }
    .hero { padding: 5rem 0 7rem; }
    .hero-stats { gap: 1.5rem; }
    .card-grid { grid-template-columns: 1fr; }
}
