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

/* === VARIABLES === */
:root {
    /* FMO Brand Colors */
    --dark-brown: #3D2229;
    --warm-cream: #E8DCC8;
    --soft-brown: #CCAA89;
    --mid-brown: #6B5D57;
    --darker-brown: #4A3E3A;

    /* Light Mode */
    --bg-primary: var(--warm-cream);
    --bg-secondary: #f5ede4;
    --text-primary: var(--dark-brown);
    --text-secondary: #5a464a;
    --text-tertiary: var(--soft-brown);
    --border-color: #d4c4b8;
    --primary-color: var(--dark-brown);
    --primary-dark: #2e1a20;
    --card-bg: #ffffff;
    --feature-bg: rgba(204, 170, 137, 0.15);
    --badge-opacity: 0.9;
    --link-color: var(--dark-brown);
    --link-hover: var(--soft-brown);

    /* Gradient */
    --gradient-light: #6B5D57;
    --gradient-mid: #5E4F48;
    --gradient-dark: #4A3E3A;
}

[data-theme="dark"] {
    /* Dark Mode - Warm Browns */
    --bg-primary: var(--gradient-dark);
    --bg-secondary: var(--darker-brown);
    --text-primary: var(--warm-cream);
    --text-secondary: #d4c4b8;
    --text-tertiary: var(--soft-brown);
    --border-color: #5a464a;
    --primary-color: var(--soft-brown);
    --primary-dark: var(--warm-cream);
    --card-bg: rgba(61, 34, 41, 0.6);
    --feature-bg: rgba(204, 170, 137, 0.2);
    --badge-opacity: 1;
    --link-color: var(--warm-cream);
    --link-hover: var(--soft-brown);
}

/* === BASE STYLES === */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(
        circle at center,
        var(--gradient-light) 0%,
        var(--gradient-mid) 50%,
        var(--gradient-dark) 100%
    );
    color: var(--text-primary);
    padding: 24px 24px 0 24px;
    transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body {
    background: var(--bg-primary);
}

.container {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

/* === THEME TOGGLE === */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.4em;
    box-shadow: 0 4px 12px rgba(61, 34, 41, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(61, 34, 41, 0.2);
}

/* === LOGO === */
.logo-box {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo-box:hover {
    transform: translateY(-4px);
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(61, 34, 41, 0.2));
    transition: filter 0.3s ease;
}

.logo-box:hover img {
    filter: drop-shadow(0 6px 12px rgba(61, 34, 41, 0.3));
}

.logo-box a,
.logo-box a:hover,
.logo-box a:focus {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover,
.logo-link:focus {
    text-decoration: none;
}

/* === HEADINGS === */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.3em;
    color: var(--text-primary);
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4em;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1.2em;
    color: var(--text-secondary);
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 0.8em;
    color: var(--text-primary);
}

header {
    margin-bottom: 2em;
}

/* === TEXT / PARAGRAPHS === */
.description {
    font-size: 1.15em;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2.8em;
}

/* === SECTIONS / CARDS === */
section {
    margin-bottom: 3.5em;
}

.card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2em;
    text-align: left;
    box-shadow: 0 4px 12px rgba(61, 34, 41, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 34, 41, 0.15);
}

.card strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

.card p,
.card li {
    color: var(--text-secondary);
    line-height: 1.6;
}

ul {
    padding-left: 1.2em;
}

li {
    margin-bottom: 0.6em;
}

/* === CTA === */
.cta {
    background: var(--feature-bg);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 2.5em;
    text-align: center;
    box-shadow: 0 4px 16px rgba(61, 34, 41, 0.1);
}

.cta h2 {
    margin-bottom: 0.5em;
}

.cta p {
    margin-bottom: 1.5em;
    color: var(--text-secondary);
}

.cta a {
    display: inline-block;
    background: var(--primary-color);
    color: var(--warm-cream);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(61, 34, 41, 0.2);
}

.cta a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(61, 34, 41, 0.3);
}

/* === STEPS / FEATURES GRID === */
.steps,
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6em;
    margin-top: 2em;
}

/* === APP BUTTONS === */
.app-buttons {
    display: flex;
    gap: 1.5em;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2em;
}

.app-button {
    transition: transform 0.25s ease;
}

.app-button img {
    height: 60px;
    opacity: var(--badge-opacity);
    transition: all 0.25s ease;
    border-radius: 8px;
}

.app-button:hover {
    transform: translateY(-4px);
}

.app-button img:hover {
    opacity: 1;
}

/* === LINKS === */
a {
    color: var(--link-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--link-hover);
}

/* === FOOTER === */
footer {
    /* Break out of container - full width */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 5em;
    margin-bottom: 0;
    padding: 3em 2em;
    text-align: center;

    /* Softer gradient from brand palette */
    background: linear-gradient(
        to bottom,
        #5a4a45,
        #4a3e3a
    );

    border-top: 1px solid rgba(204, 170, 137, 0.3);
}

.footer-content {
    max-width: 820px;
    margin: 0 auto;
}

.disclaimer {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    font-style: italic;
    color: var(--soft-brown);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 1.5em;
}

.copyright {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85em;
    color: var(--soft-brown);
    margin-top: 1.5em;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 1.5em;
    justify-content: center;
    margin-top: 1em;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--warm-cream);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--soft-brown);
}
footer .footer-credit {
    margin-top: 20px; /* Additional margin above */
    padding-top: 15px;
    border-top: 1px solid rgba(232, 220, 200, 0.2); /* Optional subtle separator */
}

footer .footer-credit a {
    color: #CCAA89;
    text-decoration: none;
    font-size: 0.85rem;
}

footer .footer-credit a:hover {
    text-decoration: underline;
}

/* === MEDIA QUERIES === */
@media (max-width: 600px) {
    body {
        padding: 16px 16px 0 16px;
    }

    /* Mobile logo size */
    .logo-box {
        width: 90px;
        height: 90px;
        margin-bottom: 1em;
    }

    h1 {
        font-size: 2.2em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    h2 {
        font-size: 1.6em;
    }

    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    footer {
        padding: 2em 1.5em;
    }

    .disclaimer {
        font-size: 0.85em;
    }
}