:root {
    --bg: #fbf7ef;
    --bg-soft: #f2efe6;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --line: #ddd8cb;
    --text: #27332d;
    --text-soft: #5a665f;
    --text-faint: #7d887f;
    --accent: #33483c;
    --accent-soft: #e7eee5;
    --goal: #9ab69c;
    --today: #b7cfa0;
    --library: #c8b89a;
    --review: #9fbac0;
    --shadow: 0 22px 50px rgba(46, 53, 48, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(235, 229, 212, 0.7), transparent 35%),
        radial-gradient(circle at right 10%, rgba(226, 235, 227, 0.9), transparent 30%),
        linear-gradient(180deg, #fffdf8 0%, var(--bg) 55%, #eef3eb 100%);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    padding: 1.1rem 6vw 1rem;
    backdrop-filter: blur(18px);
    background: rgba(251, 247, 239, 0.8);
    border-bottom: 1px solid rgba(221, 216, 203, 0.75);
    z-index: 10;
}

.brand-switcher {
    display: flex;
    justify-content: center;
    gap: 0;
    padding-bottom: 0.75rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid rgba(221, 216, 203, 0.8);
}

.brand-tab {
    padding: 0.3rem 1.6rem;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    border-bottom: 2px solid transparent;
}

.brand-tab.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
}

.logo,
.footer-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.9rem;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text);
}

.btn-sm,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-sm {
    padding: 0.55rem 1rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 600;
}

.btn-primary {
    padding: 1rem 1.6rem;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(51, 72, 60, 0.18);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-sm:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 1rem 1.6rem;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-strong);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 6vw 5rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    padding: 5.4rem 0 4rem;
}

.eyebrow,
.section-kicker,
.journey-label,
.mini-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-faint);
}

.hero-copy h1,
.section-intro h2,
.journey-section h2,
.closing-card h2 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.04;
    color: var(--text);
}

.hero-copy h1 {
    font-size: clamp(3rem, 7vw, 5.7rem);
    max-width: 10ch;
    margin: 0.8rem 0 1.2rem;
}

body.kr .hero-copy h1 {
    font-family: 'Noto Sans', sans-serif;
    font-size: clamp(2.45rem, 4.6vw, 3.25rem);
    max-width: 12ch;
    margin-bottom: 1.2rem;
}

body.kr .section-intro h2,
body.kr .journey-section h2,
body.kr .closing-card h2 {
    font-family: 'Noto Sans', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
}

body.kr h1,
body.kr h2 {
    letter-spacing: -0.03em;
    line-height: 1.22;
    word-break: keep-all;
    font-weight: 700;
}

.hero-body,
.section-body,
.section-points,
.journey-step p,
.closing-card p,
.site-footer p,
.footer-links a {
    color: var(--text-soft);
}

.hero-body {
    max-width: 34rem;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-panel {
    display: flex;
    justify-content: center;
}

.journey-card,
.closing-card {
    background: var(--surface);
    border: 1px solid rgba(221, 216, 203, 0.9);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.journey-card {
    padding: 1.6rem;
}

.journey-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(221, 216, 203, 0.6);
}

.journey-step:last-child {
    border-bottom: none;
}

.journey-step h3 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.journey-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.journey-dot.goals {
    background: var(--goal);
}

.journey-dot.today {
    background: var(--today);
}

.journey-dot.library {
    background: var(--library);
}

.journey-dot.review {
    background: var(--review);
}

.section-intro,
.closing-section {
    padding: 2.5rem 0 4rem;
}

.policy-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 4.4rem 0 5rem;
}

.policy-main h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.7rem, 5vw, 4.2rem);
    line-height: 1.08;
    margin-bottom: 1.8rem;
}

.policy-main h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 1.15;
    margin-top: 2.8rem;
    margin-bottom: 0.9rem;
}

.policy-main p,
.policy-main li {
    font-size: 1.04rem;
    color: var(--text-soft);
    margin-bottom: 0.95rem;
}

.policy-main strong {
    color: var(--text);
}

.policy-main ul,
.policy-main ol {
    padding-left: 1.35rem;
    margin-bottom: 1.4rem;
}

.policy-main hr {
    border: 0;
    border-top: 1px solid rgba(221, 216, 203, 0.9);
    margin: 2.6rem 0;
}

.section-intro {
    max-width: 760px;
}

.section-intro h2,
.journey-section h2,
.closing-card h2 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    margin: 0.8rem 0 1rem;
}

.journey-meta {
    display: grid;
    gap: 2.8rem;
    margin-top: 2.4rem;
}

.journey-meta-item {
    max-width: 54rem;
}

.journey-meta-list {
    list-style: none;
    margin-top: 1rem;
}

.journey-meta-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.95rem;
    color: var(--text-soft);
}

.journey-meta-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.journey-overview-illustration {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.6rem;
}

.overview-step {
    display: grid;
    gap: 0.75rem;
}

.overview-step svg,
.section-illustration svg {
    width: 100%;
    height: auto;
    color: var(--accent);
}

.overview-step svg {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(221, 216, 203, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.overview-step svg rect,
.overview-step svg line,
.overview-step svg path,
.overview-step svg circle,
.overview-step svg polyline,
.overview-step svg polygon,
.section-illustration svg rect,
.section-illustration svg line,
.section-illustration svg path,
.section-illustration svg circle,
.section-illustration svg polyline,
.section-illustration svg polygon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overview-step span {
    font-size: 0.92rem;
    color: var(--text-soft);
}

.feature-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 3rem;
}

.feature-tab {
    padding: 0.85rem 1.15rem;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(221, 216, 203, 0.9);
    border-radius: 999px;
    color: var(--text-soft);
}

.feature-tab.active {
    background: var(--accent-soft);
    color: var(--text);
    font-weight: 700;
}

.journey-section {
    padding: 2rem 0;
}

.journey-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
    gap: 2.5rem;
    align-items: center;
}

.journey-section.alt .journey-layout {
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.1fr);
}

.journey-section.alt .section-copy {
    order: 2;
}

.journey-section.alt .section-illustration {
    order: 1;
}

.section-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(221, 216, 203, 0.9);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.section-illustration svg {
    max-width: 320px;
}

.section-points {
    list-style: none;
    margin-top: 1.5rem;
}

.section-points li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.9rem;
}

.section-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.closing-card {
    padding: 2.4rem;
    text-align: center;
}

.closing-card p {
    max-width: 42rem;
    margin: 1rem auto 1.8rem;
}

.site-footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 6vw 3rem;
}

.footer-top,
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-top {
    padding: 2rem 0 1.8rem;
    border-top: 1px solid rgba(221, 216, 203, 0.8);
}

.footer-contact h4 {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
    color: var(--text-faint);
}

.footer-bottom {
    padding-top: 1.2rem;
    border-top: 1px solid rgba(221, 216, 203, 0.8);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    gap: 1.3rem;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.8rem);
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: min(320px, 88vw);
        padding: 1rem;
        background: rgba(255, 252, 246, 0.96);
        border: 1px solid rgba(221, 216, 203, 0.9);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        padding-top: 3.4rem;
    }

    .journey-overview-illustration,
    .journey-layout,
    .journey-section.alt .journey-layout {
        grid-template-columns: 1fr;
    }

    .journey-section.alt .section-copy,
    .journey-section.alt .section-illustration {
        order: initial;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .site-header,
    main,
    .site-footer {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .brand-tab {
        padding: 0.3rem 0.9rem;
        font-size: 0.68rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .journey-card,
    .closing-card {
        border-radius: 24px;
    }

    .policy-main {
        padding-top: 3.2rem;
    }
}
