:root {
    --primary: #0F172A;
    --secondary: #2563EB;
    --accent: #14B8A6;
    --bg-main: #F8FAFC;
    --text-main: #0F172A;
    --text-secondary: #475569;
    --surface-bg: #FFFFFF;
    --success: #22C55E;
    --error: #EF4444;
    --warning: #F59E0B;
    --border-radius: 0.75rem;
    --box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: inherit;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

button:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

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

ul,
ol {
    list-style: none;
}

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

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

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

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

input:focus,
textarea:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ===== hero_section ===== */
#hero {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

#hero .container {
    width: 100%;
}

/* ===== main_article_content ===== */
#main-article .prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

#main-article .prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

#main-article .js-checklist-item {
    border: 1px solid transparent;
}

#main-article .js-checklist-item:hover {
    border-color: var(--accent);
}

/* ===== extra_materials ===== */
#materials .js-modal {
    transition: opacity 0.3s ease-in-out;
}

#materials .modal-content-inner {
    max-height: 60vh;
    overflow-y: auto;
}

/* ===== blog_categories ===== */
#categories {
    width: 100%;
}

.bx {
    display: inline-block;
}

/* ===== deal_checklist ===== */
#buying .is-success {
    color: var(--success) !important;
    opacity: 1 !important;
}

#buying .is-active-border {
    border-color: var(--accent) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* ===== expert_mission ===== */
.js-expert-fade {
    transition-property: opacity, transform
}

.delay-200 {
    transition-delay: 200ms
}

/* ===== newsletter_form ===== */
#subscribe {
    width: 100%
}

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

#footer a {
    transition: color 0.3s ease;
}