:root{
    --bg: #f5ef9e;
    --surface: #ffffff;
    --text: #202923;
    --muted: #68756d;
    --accent: #268477;
    --accent-light: #e8f4ef;
    --border: #e2e9e3;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}
*{
    padding: 0;
    box-sizing: border-box;
    margin: 0;
}
body {
    padding-top: 90px;
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #152a64;
    font-size: 1.3rem;
    padding: 0 24px;
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    padding: 15px 0;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    display: inline-block;
    position: relative;
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    font-family: "DM Sans", sans-serif;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffcc00;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover {
    color: #ffcc00;
}

.nav-links a:hover::after {
    width: 60%;
    left: 20%;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
    height: 50vh;
    padding: 0 20px;
}

.hero h1 {
    font-size: 5em;
    padding: 50px;
}

.hero p {
    font-size: 1.8rem;
}

.hero-btns {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 10px 20px;
}

.hero-btns a {
    text-decoration: none;
    padding: 12px 24px;
    color: #fcfdfd;
    background: #152a64;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px #152a64;
    display: inline-block;
    transition: transform 0.2s ease;
}

.hero-btns a:hover {
    transform: scale(1.08);
}

.hero-btns a:active {
    transform: scale(0.97);
}

.about {
    display: flex;
    flex-direction: column;
    padding: 90px 0;
    width: min(100% - 40px, 1150px);
    margin: 0 auto; 
}

.about > h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    padding: 50px;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1;
}

.about-content {
    text-align: left;
    max-width: 1000px;
}

.about-content > p {
    max-width: 700px;
    margin-bottom: 42px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.about-content h2 {
    margin-top: 32px;
    margin-bottom: 20px;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--text);
    line-height: 1.2;
}

.features-heading {
    margin-top: 75px;
}

/* theme swatch */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.theme-card {
    min-height: 285px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(32, 41, 35, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
    font-weight: 600;
    color: #fff;
}

.theme-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: -75px;
    right: -55px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.theme-card::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    top: -45px;
    right: -30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.theme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 32px rgba(32, 41, 35, 0.2);
}

.theme-top {
    min-height: 28px;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.theme-tag {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.theme-card h3 {
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: 9px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.65rem;
}

.theme-card p {
    position: relative;
    z-index: 1;
    min-height: 70px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
    line-height: 1.55;
}

.theme-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
    margin-top: 20px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.theme-button:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.03);
}

.theme-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.harvest {
    background: linear-gradient(145deg, #b8682d, #713e29);
}

.cold {
    background: linear-gradient(145deg, #3c83ad, #1f4777);
}

.hot {
    background: linear-gradient(145deg, #de5542, #992a35);
}

.treasure {
    background: linear-gradient(145deg, #d1a12e, #8c5d13);
}

.palette {
    display: flex;
    gap: 7px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.palette span {
    width: 30px;
    height: 7px;
    display: block;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
}

.palette span:nth-child(2) {
    opacity: 0.65;
}

.palette span:nth-child(3) {
    opacity: 0.35;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.features-card {
    min-height: 155px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(32, 41, 35, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    padding: 20px;
    text-align: left;
}

.features-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 14px 28px rgba(38, 132, 119, 0.16);
}

.features-num {
    flex-shrink: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    background: #152a64;
    line-height: 1.3;
    padding: 10px 20px;
    border-radius: 999px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #152a64;
}

.features-card h3 {
    margin-bottom: 9px;
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.3;
}

.features-card p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.how-to-use {
    width: min(100% - 40px, 1100px);
    margin: 0 auto;
    padding: 30px 0 100px;
}

.how-to-use > h1 {
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.how-intro {
    color: var(--muted);
    font-size: 1.08rem;
    margin-bottom: 32px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(32, 41, 35, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(32, 41, 35, 0.12);
}

.step-number {
    display: inline-block;
    color: var(--accent);
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 30px;
    border: 3px solid #152a64;
    padding: 10px 20px;
    border-radius: 999px;
}

.step-number h2 {
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.step-card p {
    max-width: 380px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

@media (max-width: 850px) {
    .theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .about {
        width: min(100% - 28px, 520px);
        padding: 65px 0;
    }

    .theme-grid, .features-grid {
        grid-template-columns: 1fr;
    }

    .theme-card {
        min-height: 250px;
    }

    .features-heading {
        margin-top: 55px
    }

    .how-to-use {
        width: min(100% - 20px, 520px);
        padding: 20px 0 70px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        min-height: auto;
    }
}