@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
    font-family: Inter, "Noto Sans KR", "Malgun Gothic", sans-serif;
    color: #172033;
    background: #f6f8fc;
    font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f6f8fc; }
a, button { -webkit-tap-highlight-color: transparent; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; z-index: 10;
    width: 256px; height: 100vh; flex: 0 0 256px;
    padding: 28px 18px;
    background: rgba(255,255,255,.94);
    border-right: 1px solid #e7ebf2;
}
.brand {
    display: flex; align-items: center; min-height: 54px; padding: 0 12px 0 52px;
    color: #15213a; text-decoration: none; font-size: 15px; font-weight: 800; line-height: 1.35;
    position: relative;
}
.brand::before {
    content: "S6"; position: absolute; left: 4px; top: 7px;
    display: grid; place-items: center; width: 36px; height: 36px;
    border-radius: 11px; background: linear-gradient(135deg,#2563eb,#6548e8);
    color: #fff; font-size: 12px; letter-spacing: -.03em;
    box-shadow: 0 8px 18px rgba(37,99,235,.22);
}
.menu { margin-top: 38px; }
.menu::before { content: "WORKSPACE"; display: block; margin: 0 14px 12px; color: #a0a9b8; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.menu-item {
    display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 5px 0; padding: 0 14px;
    border-radius: 12px; color: #657087; font-size: 14px; font-weight: 600; text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.menu-item:hover { color: #24314b; background: #f3f6fb; transform: translateX(2px); }
.menu-item.is-active { color: #2459d3; background: #edf3ff; }
.menu-item.is-pending { color: #8a95a8; cursor: default; }
.menu-icon { display: grid; place-items: center; width: 25px; color: #4e7ce8; font-size: 13px; }
.menu-item small { margin-left: auto; padding: 4px 7px; border-radius: 20px; background: #f0f2f6; color: #9aa4b4; font-size: 9px; }
.menu-group { margin: 5px 0; }
.menu-group > summary { margin: 0; cursor: pointer; list-style: none; }
.menu-group > summary::-webkit-details-marker { display: none; }
.menu-chevron { width: 7px; height: 7px; margin-left: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .18s ease; }
.menu-group[open] .menu-chevron { transform: rotate(225deg); }
.submenu { display: grid; gap: 3px; margin: 3px 5px 9px 43px; padding-left: 12px; border-left: 1px solid #e4e9f1; }
.submenu-item { display: flex; align-items: center; min-height: 34px; padding: 0 10px; border-radius: 9px; color: #8a95a7; font-size: 11px; font-weight: 600; text-decoration: none; transition: background .18s ease, color .18s ease; }
.submenu-item:hover { background: #f3f6fb; color: #32415a; }
.submenu-item.is-active { background: #edf5ff; color: #20a7e3; font-weight: 800; text-shadow: 0 0 10px rgba(56,189,248,.28); }

.main-content { flex: 1; min-width: 0; padding: 0 5vw; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 92px; border-bottom: 1px solid #e8ecf2; }
.topbar-copy { display: flex; align-items: center; gap: 9px; color: #7c879a; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #18b981; box-shadow: 0 0 0 5px rgba(24,185,129,.1); }
.account-actions { display: flex; align-items: center; gap: 10px; }
.account-actions form { margin: 0; }
.user-greeting { margin-right: 5px; color: #778297; font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: #245de8; color: #fff; box-shadow: 0 8px 20px rgba(36,93,232,.2); }
.button-primary:hover { background: #194fd2; box-shadow: 0 10px 26px rgba(36,93,232,.28); }
.button-secondary { background: #fff; border-color: #dfe4ec; color: #33415c; }
.button-secondary:hover { border-color: #cbd3df; background: #fafbfc; }
.button-large { min-height: 50px; padding: 0 23px; font-size: 14px; }

.hero { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); align-items: center; gap: 5vw; max-width: 1280px; min-height: 565px; margin: 0 auto; padding: 70px 0 78px; }
.eyebrow { margin: 0 0 18px; color: #3267e8; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.hero h1 { margin: 0; color: #111a2d; font-size: clamp(42px,5vw,72px); line-height: 1.12; letter-spacing: -.055em; }
.hero h1 span { color: #3168e8; }
.hero-description { max-width: 590px; margin: 26px 0 0; color: #69758b; font-size: 16px; line-height: 1.85; word-break: keep-all; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }
.text-link { color: #45526a; font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 5px; transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-visual { position: relative; min-height: 390px; }
.visual-glow { position: absolute; inset: 10% 8%; border-radius: 50%; background: radial-gradient(circle,rgba(92,110,246,.22),rgba(92,110,246,0) 68%); filter: blur(18px); }
.visual-card { position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.83); box-shadow: 0 30px 70px rgba(48,63,102,.14); backdrop-filter: blur(18px); }
.visual-card-main { top: 48px; right: 5%; width: min(410px,90%); padding: 28px; border-radius: 24px; transform: rotate(1.5deg); }
.visual-card-head { display: flex; align-items: center; justify-content: space-between; color: #8390a4; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.visual-card-head i { width: 8px; height: 8px; border-radius: 50%; background: #24c18a; box-shadow: 0 0 0 5px rgba(36,193,138,.1); }
.visual-card-main > strong { display: block; margin-top: 34px; color: #1c2942; font-size: 20px; letter-spacing: -.03em; }
.progress-track { height: 8px; margin: 22px 0 29px; border-radius: 10px; background: #edf0f5; overflow: hidden; }
.progress-track span { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2865eb,#7957e8); }
.visual-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.visual-stats div { padding: 14px 8px; border-radius: 14px; background: #f7f8fb; text-align: center; }
.visual-stats b { display: block; color: #202c43; font-size: 18px; }
.visual-stats small { display: block; margin-top: 5px; color: #8a95a8; font-size: 10px; }
.visual-card-float { right: 0; bottom: 40px; display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 16px; transform: rotate(-2deg); }
.visual-card-float .pulse { width: 10px; height: 10px; border-radius: 50%; background: #22bd87; box-shadow: 0 0 0 7px rgba(34,189,135,.11); }
.visual-card-float b, .visual-card-float small { display: block; }
.visual-card-float b { color: #26324a; font-size: 12px; }
.visual-card-float small { margin-top: 3px; color: #8994a7; font-size: 9px; }
.visual-orbit { position: absolute; border: 1px solid rgba(80,105,196,.13); border-radius: 50%; }
.orbit-one { inset: 0 4% 4% 2%; transform: rotate(18deg); }
.orbit-two { inset: 14% 0 0 14%; transform: rotate(-24deg); }

.section { max-width: 1280px; margin: 0 auto; padding: 82px 0; border-top: 1px solid #e5eaf1; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .learning-panel h2 { margin: 0; color: #172138; font-size: clamp(27px,3vw,38px); letter-spacing: -.04em; }
.section-heading > p { margin: 0; color: #788499; font-size: 13px; line-height: 1.75; }
.note-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.field-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.field-card { position: relative; min-height: 215px; padding: 23px; border: 1px solid #e1e6ee; border-radius: 18px; background: rgba(255,255,255,.8); color: inherit; text-decoration: none; overflow: hidden; }
.field-card::after { content: ""; position: absolute; right: -45px; bottom: -55px; width: 120px; height: 120px; border-radius: 50%; background: var(--accent-soft); }
.field-card.is-available { border-color: #cad9fa; box-shadow: 0 14px 35px rgba(43,102,232,.09); transition: transform .2s ease, box-shadow .2s ease; }
.field-card.is-available:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(43,102,232,.15); }
.field-card.is-upcoming { opacity: .74; }
.field-card-top { display: flex; align-items: center; justify-content: space-between; }
.field-card-top > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; }
.field-card-top small { padding: 5px 8px; border-radius: 20px; background: #f2f4f8; color: #929daf; font-size: 9px; font-weight: 700; }
.field-card h3 { margin: 22px 0 9px; color: #202c43; font-size: 18px; letter-spacing: -.03em; }
.field-card p { margin: 0; color: #788499; font-size: 12px; line-height: 1.7; word-break: keep-all; }
.field-card b { display: inline-block; margin-top: 17px; color: var(--accent); font-size: 11px; }
.collection-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin: 72px 0 24px; padding-top: 34px; border-top: 1px solid #e5eaf1; scroll-margin-top: 30px; }
.collection-heading > div { display: flex; align-items: center; gap: 14px; }
.collection-heading > div > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #edf3ff; color: #2b66e8; font-size: 12px; font-weight: 800; }
.collection-heading small { color: #3267e8; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.collection-heading h3 { margin: 4px 0 0; color: #172138; font-size: 25px; letter-spacing: -.04em; }
.collection-heading p { margin: 0; color: #8a95a7; font-size: 11px; }
.note-card { position: relative; display: block; min-height: 310px; padding: 28px; border: 1px solid #e1e6ee; border-radius: 20px; background: rgba(255,255,255,.82); color: inherit; text-decoration: none; box-shadow: 0 12px 34px rgba(35,50,80,.045); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.note-card:hover { transform: translateY(-5px); border-color: #d1d9e6; box-shadow: 0 22px 50px rgba(35,50,80,.1); }
.note-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -90px; bottom: -100px; border-radius: 50%; background: var(--accent-soft); }
.accent-blue { --accent:#2b66e8; --accent-soft:#edf3ff; }
.accent-violet { --accent:#7556df; --accent-soft:#f2efff; }
.accent-mint { --accent:#159a78; --accent-soft:#ebfaf5; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; }
.card-label { margin: 28px 0 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.note-card h3 { margin: 0 0 13px; color: #1d2940; font-size: 21px; letter-spacing: -.03em; }
.note-card > p:last-of-type { max-width: 290px; margin: 0; color: #727e92; font-size: 13px; line-height: 1.75; word-break: keep-all; }
.card-arrow { position: absolute; right: 24px; top: 26px; color: #a3adbc; font-size: 17px; }

.learning-panel { display: grid; grid-template-columns: auto minmax(260px,1fr) minmax(100px,.45fr) auto; align-items: center; gap: 25px; max-width: 1280px; margin: 0 auto 70px; padding: 32px 34px; border: 1px solid #dfe5ee; border-radius: 22px; background: #fff; box-shadow: 0 16px 45px rgba(35,50,80,.055); }
.panel-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #17233b; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.panel-copy h2 { font-size: 20px; }
.panel-copy p { margin: 7px 0 0; color: #7a8598; font-size: 12px; }
.panel-line { height: 1px; background: #ebedf2; }
.panel-line span { display: block; width: 40%; height: 100%; background: #6386e8; }
.button-dark { border-color: #e5e9ef; background: #f5f7fa; color: #9aa4b4; cursor: default; }
.button-dark:hover { transform: none; }
.home-footer { display: flex; justify-content: space-between; max-width: 1280px; margin: 0 auto; padding: 28px 0 38px; border-top: 1px solid #e5e9f0; color: #9aa4b3; font-size: 10px; letter-spacing: .04em; }

@media (max-width: 1050px) {
    .hero { grid-template-columns: 1fr; padding-top: 55px; }
    .hero-visual { min-height: 340px; max-width: 560px; width: 100%; margin: 0 auto; }
    .note-grid { grid-template-columns: repeat(2,1fr); }
    .field-grid { grid-template-columns: repeat(2,1fr); }
    .note-card:last-child { grid-column: 1 / -1; }
    .learning-panel { grid-template-columns: auto 1fr auto; }
    .panel-line { display: none; }
}
@media (max-width: 760px) {
    .app-shell { display: block; }
    .sidebar { position: static; width: auto; height: auto; padding: 12px 15px 0; border-right: 0; border-bottom: 1px solid #e5e9f0; }
    .brand { min-height: 48px; padding-left: 50px; }
    .brand::before { top: 6px; }
    .menu { display: flex; margin-top: 8px; overflow-x: auto; }
    .menu::before { display: none; }
    .menu-item { flex: 0 0 auto; border-radius: 10px 10px 0 0; }
    .menu-group { display: flex; flex: 0 0 auto; margin: 0; }
    .menu-group[open] { align-items: center; }
    .menu-chevron { margin-left: 4px; }
    .submenu { display: flex; flex: 0 0 auto; gap: 4px; margin: 0; padding: 7px 0; border-left: 0; }
    .submenu-item { flex: 0 0 auto; min-height: 34px; border: 1px solid #e5eaf2; background: #fff; }
    .main-content { padding: 0 20px; }
    .topbar { min-height: 72px; }
    .topbar-copy, .user-greeting { display: none; }
    .account-actions { margin-left: auto; }
    .hero { min-height: auto; padding: 55px 0 60px; }
    .hero h1 { font-size: clamp(39px,12vw,56px); }
    .hero-description { font-size: 14px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
    .hero-visual { min-height: 305px; }
    .visual-card-main { top: 25px; right: 2%; width: 96%; padding: 23px; }
    .visual-card-float { bottom: 8px; }
    .section { padding: 60px 0; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 16px; }
    .note-grid { grid-template-columns: 1fr; }
    .field-grid { grid-template-columns: 1fr; }
    .collection-heading { display: block; margin-top: 55px; }
    .collection-heading > p { margin-top: 13px; }
    .note-card:last-child { grid-column: auto; }
    .learning-panel { grid-template-columns: auto 1fr; padding: 25px; }
    .learning-panel .button { grid-column: 1 / -1; }
    .home-footer { gap: 15px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
