:root {
    --ink: #1e2428;
    --muted: #606970;
    --paper: #fffdfa;
    --soft: #f8f1e7;
    --soft-strong: #efe2cf;
    --cream: #fff5df;
    --line: #e5ddd0;
    --teal: #6b865b;
    --teal-deep: #2f4132;
    --gold: #cfa978;
    --coral: #b66f00;
    --shadow: 0 22px 54px rgba(30, 36, 40, 0.08);
    font-family: "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fffdfa 0%, #fff8f2 100%);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: inherit;
}

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

.wrap {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.nav {
    width: min(1120px, calc(100% - 32px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.brand img {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-links a {
    flex: 0 0 auto;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a:focus-visible {
    color: #f2a51d;
    font-weight: 800;
    outline: none;
}

.nav-menu-item {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 50;
    display: grid;
    min-width: 174px;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(30, 36, 40, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    visibility: hidden;
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 16px;
}

.nav-menu-item:hover .nav-dropdown,
.nav-menu-item:focus-within .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
}

.nav-dropdown a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown a.is-active,
.nav-dropdown a[aria-current="page"] {
    background: var(--soft);
    color: var(--teal-deep);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    color: var(--coral);
    outline: none;
}

.breadcrumb span {
    color: #b8afa2;
}

.breadcrumb strong {
    color: var(--teal-deep);
    font-weight: 900;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.button.primary {
    background: var(--teal-deep);
    color: #fffdf8;
}

.button.secondary {
    border-color: rgba(30, 36, 40, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--teal-deep);
}

.hero {
    padding: 48px 0 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: stretch;
    min-width: 0;
}

.hero-copy {
    display: grid;
    align-content: center;
    gap: 16px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.eyebrow,
.label {
    margin: 0;
    color: var(--teal);
    font-weight: 800;
    letter-spacing: 0;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: 0;
    word-break: keep-all;
}

h1 {
    max-width: 680px;
    font-size: clamp(2.45rem, 4.8vw, 4.3rem);
    line-height: 1.08;
}

h2 {
    font-size: clamp(1.85rem, 3vw, 2.8rem);
    line-height: 1.18;
}

h3 {
    color: var(--teal-deep);
    font-size: 1.14rem;
    line-height: 1.35;
}

p {
    margin: 0;
}

.lead,
.hero-copy > p,
.program-card p,
.track-card p,
.step-card p,
.detail-panel p,
.roadmap-card p {
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
    min-width: 0;
}

.hero-visual {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 600px;
    overflow: hidden;
    border: 1px solid rgba(30, 36, 40, 0.08);
    border-radius: 24px;
    background: #e8ddd0;
    box-shadow: 0 28px 60px rgba(30, 36, 40, 0.12);
}

.hero-visual--compact {
    min-height: 520px;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
    filter: saturate(0.92) contrast(0.98) brightness(1.03) sepia(0.07);
}

.hero-visual--screenshot img {
    object-position: 16% top;
    filter: none;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.04) 30%, rgba(35, 31, 27, 0.34));
    pointer-events: none;
}

.hero-visual--materials {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(210px, 0.85fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: #f3eee7;
}

.hero-visual--materials::after {
    display: none;
}

.material-frame {
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(30, 36, 40, 0.08);
    border-radius: 18px;
    background: #fff;
}

.material-frame--main {
    grid-row: span 2;
}

.material-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}

.material-frame--document img {
    object-position: top center;
}

.hero-note {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1;
    display: grid;
    gap: 4px;
    color: #fffaf4;
}

.hero-note span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.hero-note--paper {
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 14px 16px;
    border: 1px solid rgba(30, 36, 40, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    box-shadow: 0 18px 36px rgba(30, 36, 40, 0.12);
}

.hero-note--paper span {
    color: var(--muted);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.quick-card {
    padding: 18px;
    border: 1px solid rgba(30, 36, 40, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.quick-card strong {
    display: block;
    color: var(--teal-deep);
    line-height: 1.35;
}

.quick-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.section {
    padding: 68px 0;
}

.section.soft {
    background: rgba(248, 241, 231, 0.76);
}

.section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.learning-lane {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.lane-card {
    min-height: 156px;
    padding: 16px;
    border: 1px solid rgba(30, 36, 40, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.lane-card span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    margin-bottom: 9px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--cream);
    color: var(--teal-deep);
    font-size: 0.84rem;
    font-weight: 900;
}

.lane-card h3 {
    font-size: 1.03rem;
}

.lane-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

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

.program-card {
    display: grid;
    grid-template-columns: minmax(160px, 0.42fr) minmax(0, 0.58fr);
    gap: 16px;
    min-width: 0;
    min-height: 100%;
    padding: 14px;
    border: 1px solid rgba(30, 36, 40, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.program-card:hover,
.program-card:focus-visible {
    border-color: rgba(242, 165, 29, 0.72);
    outline: none;
}

.program-card.is-muted {
    background: rgba(255, 255, 255, 0.72);
}

.program-card figure {
    width: 100%;
    min-width: 0;
    margin: 0;
    aspect-ratio: 4 / 3;
    min-height: 210px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--soft);
}

.program-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-card--coding img {
    object-position: center;
}

.program-card--reading figure {
    background: #fff;
}

.program-card--reading img {
    padding: 0;
    object-fit: cover;
    object-position: center;
}

.program-copy {
    display: grid;
    align-content: center;
    gap: 9px;
    min-width: 0;
}

.program-copy small {
    color: var(--coral);
    font-weight: 900;
}

.program-link {
    color: var(--teal);
    font-weight: 900;
}

.flow-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.step-card {
    min-height: 180px;
    padding: 18px;
    border-right: 1px solid var(--line);
}

.step-card:last-child {
    border-right: 0;
}

.step-card strong {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(12, 105, 101, 0.1);
    color: var(--teal-deep);
    font-size: 0.86rem;
}

.track-grid,
.roadmap-grid,
.output-grid {
    display: grid;
    gap: 14px;
}

.track-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.roadmap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.track-card,
.roadmap-card,
.detail-panel {
    min-height: 100%;
    padding: 18px;
    border: 1px solid rgba(30, 36, 40, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.track-card strong,
.roadmap-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--teal-deep);
}

.detail-panel {
    display: grid;
    align-content: start;
    gap: 12px;
}

.detail-panel ul,
.timeline-list,
.check-list {
    display: grid;
    align-content: start;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-panel ul {
    gap: 18px;
}

.detail-panel li,
.timeline-list li,
.check-list li {
    position: relative;
    padding-left: 16px;
    color: var(--muted);
}

.detail-panel li::before,
.timeline-list li::before,
.check-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

.coding-stage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stage-card {
    padding: 18px;
    border: 1px solid rgba(30, 36, 40, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.stage-card small {
    color: var(--coral);
    font-weight: 900;
}

.stage-card h3 {
    margin-top: 6px;
}

.stage-card p {
    margin-top: 8px;
    color: var(--muted);
}

.code-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(300px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.code-box {
    min-height: 100%;
    padding: 18px;
    border-radius: 18px;
    background: #122331;
    color: #fff8e8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.75;
}

.code-box span {
    color: var(--gold);
}

.project-shot {
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(30, 36, 40, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.project-shot img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    object-position: center 42%;
}

.project-shot figcaption {
    padding: 12px 14px 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}

.footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.footer-brand img {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    object-fit: cover;
}

.footer p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 940px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .nav-links {
        width: 100%;
        gap: 12px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        font-size: 0.9rem;
    }

    .nav-dropdown {
        display: none;
    }

    .hero-grid,
    .section-head,
    .program-grid,
    .program-card,
    .code-panel {
        grid-template-columns: 1fr;
    }

    .hero-visual--materials {
        grid-template-columns: 1fr 1fr;
    }

    .material-frame--main {
        grid-column: span 2;
        min-height: 260px;
    }

    .hero-visual {
        min-height: 380px;
    }

    .quick-grid,
    .learning-lane,
    .track-grid,
    .roadmap-grid,
    .coding-stage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-card figure {
        min-height: 260px;
    }

    .flow-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-card {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .step-card:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 36px 0 44px;
    }

    .section {
        padding: 44px 0;
    }

    .hero-actions .button,
    .program-card {
        width: 100%;
    }

    .quick-grid,
    .learning-lane,
    .track-grid,
    .roadmap-grid,
    .output-grid,
    .coding-stage-grid,
    .flow-strip {
        grid-template-columns: 1fr;
    }

    .hero-visual,
    .program-card figure {
        min-height: 250px;
    }

    .hero-visual--materials {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .material-frame--main,
    .material-frame {
        grid-column: auto;
        grid-row: auto;
        min-height: 220px;
    }

    .hero-note--paper {
        position: static;
    }

    h1 {
        font-size: clamp(1.95rem, 8.8vw, 2.7rem);
        overflow-wrap: break-word;
        word-break: keep-all;
    }

    h2 {
        line-height: 1.22;
        overflow-wrap: break-word;
        word-break: keep-all;
    }

    .wrap,
    .hero-copy,
    .section-head,
    .lead {
        max-width: 100%;
        min-width: 0;
    }

    .hero-copy > p,
    .lead {
        font-size: 1rem;
        line-height: 1.76;
        overflow-wrap: anywhere;
        word-break: normal;
    }
}
