:root {
    --main-background: #FDFBF7;
    --main-text: #1E293B;
    --secondary-background: #FFFFFF;
    --secondary-text: #475569;
    --accent-color: #1E3A8A;
    --accent-text: #FFFFFF;
    --soft-blue: #E0F2FE;
    --gray-blue: #94A3B8;
    --muted-green: #D1FAE5;
    --light-beige: #F5F5DC;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--main-background);
    color: var(--main-text);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
    margin-bottom: 1rem;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease-in-out;
}

button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 1.875rem);
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }

    .mobile-break-word {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .mobile-font-sm {
        font-size: 0.875rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== header ===== */
.js-mobile-menu-overlay {
    transition: all 0.3s ease-in-out;
}

/* ===== hero_section ===== */
.animate-fade-in-left {
    animation: fadeInLeft 1s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 1s ease-out forwards;
}

.animate-bounce-slow {
    animation: bounce 4s infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes float {

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

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

@keyframes bounce {

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

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

/* ===== problem_section ===== */
#problems {
    width: 100%;
    scroll-margin-top: 2rem;
}

.problem-card {
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
}

/* ===== about_author ===== */
#about {
    width: 100%
}

.js-timeline-item {
    will-change: transform, opacity
}

/* ===== expense_control ===== */
.js-fade-in {
    will-change: transform, opacity
}

.shadow-2xl {
    shadow-color: rgba(30, 58, 138, 0.1)
}

/* ===== budgeting_article ===== */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

/* ===== spending_psychology ===== */
.js-reveal {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== saving_strategies ===== */
#savings {
    width: 100%;
}

#savings .container {
    max-width: 1200px;
}

/* ===== financial_tools ===== */
#tools {
    scroll-margin-top: 2rem;
}

/* ===== client_reviews ===== */
.js-animate-case {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== cta_section ===== */
.cta-section-wrapper {
    width: 100%;
}

.js-cta-form input:focus {
    border-color: var(--accent-color);
    --tw-ring-color: var(--soft-blue);
}

/* ===== footer ===== */
#site-footer {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}