:root {
    --paper: #f4f0e7;
    --ink: #161616;
    --muted: #777269;
    --green: #315c45;
    --green-light: #dce8dc;
    --orange: #e86f3d;
    --line: #d6d0c4;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
    line-height: 1.5;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.topbar {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;

    min-height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);
}

.brand {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -2px;
}

.topbar-note {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

/* HERO */

.hero {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;

    padding: 90px 0 100px;

    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 60px;
    align-items: end;
}

.eyebrow {
    margin: 0 0 14px;

    color: var(--green);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    max-width: 800px;

    font-size: clamp(70px, 10vw, 145px);
    line-height: 0.82;

    letter-spacing: -8px;
    font-weight: 900;
}

.hero h1 span {
    color: var(--orange);
}

.hero-text {
    max-width: 580px;
    margin: 38px 0 0;

    color: #57534c;

    font-size: 19px;
}

.hero-stamp {
    width: 170px;
    height: 170px;

    border: 2px solid var(--ink);
    border-radius: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    transform: rotate(8deg);

    font-size: 13px;
    font-weight: 900;
    line-height: 1.4;
}

/* COMMON */

.section-card,
.mission-section,
.history,
.safety,
.philosophy {
    width: min(1180px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.section-card {
    background: var(--white);

    border: 1px solid var(--line);
    border-radius: 24px;

    padding: 50px;

    box-shadow: var(--shadow);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;

    margin-bottom: 42px;
}

.section-heading h2 {
    margin: 0;

    font-size: 42px;
    line-height: 1;

    letter-spacing: -2px;
}

.step-number {
    font-size: 64px;
    font-weight: 900;
    line-height: 0.8;

    color: #e4ded3;
}

/* BUILDER */

.field {
    margin-bottom: 30px;
}

.field label {
    display: flex;
    justify-content: space-between;

    margin-bottom: 11px;

    font-size: 14px;
    font-weight: 800;
}

.field label span {
    color: var(--muted);
    font-weight: 500;
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.choice {
    border: 1px solid var(--line);
    background: var(--paper);

    border-radius: 999px;

    padding: 11px 19px;

    color: var(--ink);

    transition:
        0.2s ease;
}

.choice:hover {
    transform: translateY(-2px);
}

.choice.active {
    background: var(--green);
    border-color: var(--green);

    color: white;
}

select,
input {
    width: 100%;

    padding: 15px 16px;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: var(--paper);

    color: var(--ink);

    outline: none;
}

select:focus,
input:focus {
    border-color: var(--green);
}

.primary-button {
    width: 100%;

    margin-top: 15px;

    padding: 18px 22px;

    border: none;
    border-radius: 13px;

    background: var(--orange);

    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-weight: 900;
    letter-spacing: 0.5px;

    transition: 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
}

.builder-note {
    margin: 16px 0 0;

    text-align: center;

    color: var(--muted);

    font-size: 12px;
}

/* MISSION */

.mission-section {
    padding: 100px 0 30px;
}

.mission-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 30px;
}

.mission-top h2 {
    margin: 0;

    font-size: clamp(42px, 7vw, 85px);
    line-height: 0.9;

    letter-spacing: -5px;
}

.mission-badge {
    width: 70px;
    height: 70px;

    border-radius: 50%;

    background: var(--orange);

    color: white;

    display: grid;
    place-items: center;

    font-weight: 900;

    transform: rotate(-8deg);
}

.mission-layout {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 25px;
}

.mission-card {
    padding: 38px;

    border-radius: 22px;

    background: var(--green);

    color: white;
}

.mission-card-top {
    display: flex;
    justify-content: space-between;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;

    opacity: 0.75;
}

.mission-description {
    max-width: 760px;

    margin: 50px 0;

    font-size: 28px;
    line-height: 1.2;

    font-weight: 700;
}

.mission-steps h3 {
    margin: 0 0 20px;

    font-size: 12px;
    letter-spacing: 2px;
}

.mission-steps ol {
    margin: 0;
    padding-left: 25px;
}

.mission-steps li {
    margin-bottom: 16px;

    font-size: 18px;
}

.mission-rule {
    margin-top: 45px;
    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.25);

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mission-rule span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.65;
}

.mission-rule strong {
    font-size: 18px;
}

.lock-card {
    padding: 35px;

    background: var(--white);

    border: 1px solid var(--line);
    border-radius: 22px;

    box-shadow: var(--shadow);
}

.lock-icon {
    width: 50px;
    height: 50px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: var(--green-light);

    color: var(--green);

    font-size: 30px;

    margin-bottom: 30px;
}

.lock-card h3 {
    margin: 0 0 18px;

    font-size: 40px;
    line-height: 0.95;

    letter-spacing: -2px;
}

.lock-card p {
    color: var(--muted);
}

.dark-button {
    width: 100%;

    margin-top: 18px;

    padding: 15px;

    border: none;
    border-radius: 10px;

    background: var(--ink);

    color: white;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.5px;
}

.dark-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.countdown {
    margin: 30px 0 5px;

    font-size: 90px;
    line-height: 0.9;

    font-weight: 900;

    text-align: center;
}

.countdown-message {
    text-align: center;
    font-size: 12px;
}

.complete-button {
    width: 100%;

    margin-top: 18px;

    padding: 13px;

    border: 1px solid var(--green);

    border-radius: 10px;

    background: transparent;

    color: var(--green);

    font-weight: 800;
}

.complete-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.secondary-button {
    margin-top: 20px;

    padding: 13px 18px;

    border: 1px solid var(--line);
    border-radius: 999px;

    background: transparent;

    color: var(--ink);

    font-weight: 700;
}

/* PHILOSOPHY */

.philosophy {
    padding: 160px 0;

    text-align: center;
}

.philosophy h2 {
    margin: 0 auto;

    max-width: 800px;

    font-size: clamp(50px, 8vw, 110px);
    line-height: 0.9;

    letter-spacing: -6px;
}

.philosophy h2 span {
    color: var(--orange);
}

.philosophy>p:last-child {
    max-width: 580px;

    margin: 35px auto 0;

    color: var(--muted);

    font-size: 18px;
}

/* SAFETY */

.safety {
    padding: 30px;

    border: 1px solid #dfcfc5;
    border-radius: 18px;

    background: #f9e9df;

    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.safety-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--orange);

    color: white;

    display: grid;
    place-items: center;

    font-weight: 900;
}

.safety h3 {
    margin: 0 0 6px;
}

.safety p {
    margin: 0;

    color: #6d5c53;

    font-size: 14px;
}

/* HISTORY */

.history {
    padding: 110px 0;
}

.text-button {
    border: none;

    background: none;

    color: var(--muted);

    text-decoration: underline;
}

.history-list {
    display: grid;
    gap: 10px;
}

.history-item {
    padding: 20px;

    border-bottom: 1px solid var(--line);

    display: grid;

    grid-template-columns: 1fr auto;

    gap: 20px;
}

.history-title {
    margin: 0;

    font-weight: 800;
}

.history-meta {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 13px;
}

.history-status {
    align-self: center;

    padding: 7px 10px;

    border-radius: 999px;

    background: var(--green-light);

    color: var(--green);

    font-size: 11px;
    font-weight: 800;
}

.empty-history {
    padding: 30px;

    border: 1px dashed var(--line);
    border-radius: 15px;

    color: var(--muted);

    text-align: center;
}

/* FOOTER */

footer {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding: 35px 0 50px;

    border-top: 1px solid var(--line);

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--muted);
}

footer p {
    margin: 0;
    font-size: 13px;
}

footer span {
    font-size: 12px;
}

/* UTILITY */

.hidden {
    display: none !important;
}

/* RESPONSIVE */

@media (max-width: 850px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 65px 0;
    }

    .hero h1 {
        letter-spacing: -5px;
    }

    .hero-stamp {
        display: none;
    }

    .section-card {
        padding: 30px;
    }

    .mission-layout {
        grid-template-columns: 1fr;
    }

    .philosophy {
        padding: 100px 0;
    }

    .philosophy h2 {
        letter-spacing: -4px;
    }
}

@media (max-width: 550px) {

    .topbar,
    .hero,
    .section-card,
    .mission-section,
    .history,
    .safety,
    footer,
    .philosophy {
        width: min(100% - 24px, 1180px);
    }

    .topbar-note {
        display: none;
    }

    .hero {
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 72px;
        letter-spacing: -5px;
    }

    .hero-text {
        font-size: 16px;
    }

    .section-card {
        padding: 22px;
        border-radius: 17px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .step-number {
        font-size: 45px;
    }

    .mission-card,
    .lock-card {
        padding: 25px;
    }

    .mission-description {
        font-size: 22px;
    }

    .mission-top h2 {
        font-size: 50px;
        letter-spacing: -3px;
    }

    .countdown {
        font-size: 75px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
