:root {
    --primary-bg: #FDFCF0;
    --primary-text: #2D2D2D;
    --secondary-bg: #AEC6CF;
    --secondary-text: #FFFFFF;
    --accent-bg: #708238;
    --accent-text: #FDFCF0;
    --neutral-bg: #D1C7BD;
    --neutral-text: #333333;
    --soft-bg: #DCAE96;
    --muted-text: #6B7280;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --base-size: 16px;
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--base-size);
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover,
a:focus {
    text-decoration: none;
    opacity: 0.8;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

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

ul,
ol {
    list-style: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
}

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

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

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

    .mobile-long-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 0.9rem;
    }
}

.focus-outline:focus-visible {
    outline: 2px solid var(--accent-bg);
    outline-offset: 4px;
}

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

/* ===== hero_section ===== */
#hero {
    background-color: var(--primary-bg);
}

#hero h1 {
    color: var(--primary-text);
}

#hero p {
    color: var(--muted-text);
}

.js-hero-btn {
    background-color: var(--accent-bg);
    color: var(--accent-text);
}

/* ===== planning_error ===== */
.js-planning-section {
    width: 100%;
    transition: opacity 1s ease-in-out;
}

.js-planning-section.opacity-0 {
    opacity: 0;
}

.js-planning-section.opacity-100 {
    opacity: 1;
}

/* ===== expense_control ===== */
.js-expense-card {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transform: translateY(20px);
}

.js-expense-card.opacity-100 {
    transform: translateY(0);
}

/* ===== budget_logic ===== */
#budget {
    width: 100%;
    min-height: auto;
}

/* ===== digital_tools ===== */
#tools {
    width: 100%
}

.js-tools-content {
    transition: opacity 1s ease-out, transform 1s ease-out;
    transform: translateY(20px)
}

.js-tools-content.opacity-100 {
    transform: translateY(0)
}

/* ===== habit_correction ===== */
#habits {
    width: 100%;
}

.js-habit-card {
    transition: transform 0.3s ease, opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== awareness_shift ===== */
#awareness {
    width: 100%;
}

.js-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.opacity-100 {
    opacity: 1;
}

/* ===== reserve_building ===== */
#strategies {
    scroll-margin-top: 80px;
}

.bi {
    line-height: 1;
}

/* ===== modern_tech ===== */
.js-tech-content.opacity-100 {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===== footer ===== */
#footer {
    width: 100%
}