/* ============================================================
   BASE
   ============================================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.nav-link {
    color: rgb(75 85 99);
    font-size: 0.875rem;
    font-weight: 500;
    transition:
        color 150ms ease,
        background-color 150ms ease;
}

.nav-link:hover {
    color: rgb(22 163 74);
}

.mobile-nav-link {
    display: block;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: rgb(55 65 81);
    font-size: 0.95rem;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background-color: rgb(240 253 244);
    color: rgb(21 128 61);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: rgb(22 163 74);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    transition:
        background-color 150ms ease,
        transform 150ms ease,
        box-shadow 150ms ease;
}

.btn-primary:hover {
    background-color: rgb(21 128 61);
    transform: translateY(-1px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid rgb(209 213 219);
    background-color: white;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(31 41 55);
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}

.btn-secondary:hover {
    border-color: rgb(156 163 175);
    background-color: rgb(249 250 251);
    transform: translateY(-1px);
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: rgb(34 197 94);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.btn-cta-primary:hover {
    background-color: rgb(74 222 128);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid rgb(75 85 99);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.btn-cta-secondary:hover {
    background-color: rgb(31 41 55);
}


/* ============================================================
   FEATURE CARDS
   ============================================================ */

.feature-card {
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background-color: white;
    padding: 1.5rem;
    transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        border-color 150ms ease;
}

.feature-card:hover {
    border-color: rgb(187 247 208);
    transform: translateY(-2px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    display: flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: rgb(220 252 231);
    color: rgb(22 163 74);
}

.feature-title {
    margin-top: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(17 24 39);
}

.feature-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: rgb(107 114 128);
}


/* ============================================================
   FLASH MESSAGES
   ============================================================ */

.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
}

.flash-success {
    border-color: rgb(187 247 208);
    background-color: rgb(240 253 244);
    color: rgb(22 101 52);
}

.flash-error {
    border-color: rgb(254 202 202);
    background-color: rgb(254 242 242);
    color: rgb(153 27 27);
}

.flash-warning {
    border-color: rgb(253 230 138);
    background-color: rgb(254 252 232);
    color: rgb(133 77 14);
}

.flash-info {
    border-color: rgb(191 219 254);
    background-color: rgb(239 246 255);
    color: rgb(30 64 175);
}

.flash-close {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.6;
}

.flash-close:hover {
    opacity: 1;
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

:focus-visible {
    outline: 2px solid rgb(34 197 94);
    outline-offset: 2px;
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}