/* ===== 소프트웨어학과 홈페이지 공통 스타일 (다크, 개발자 감성) =====
   모든 페이지가 이 파일 하나를 함께 쓴다.
   1. 변수와 기본   2. 머리글·바닥글   3. 공통 부품   4. 메인 페이지 */

/* ===== 1. 변수와 기본 ===== */
:root {
    --bg: #0a0e13;
    --bg-2: #0f141b;
    --panel: #121922;
    --panel-2: #18212c;
    --line: #222d3a;
    --line-2: #2e3b4b;
    --text: #dbe3ec;
    --muted: #8593a5;
    --dim: #566375;
    --lime: #b8f36b;     /* 포인트 색 */
    --cyan: #67d8ef;
    --amber: #ffc66d;
    --pink: #ff7eb6;
    --violet: #b39dff;
    --radius: 10px;
    --header-h: 64px;
    --font: 'Noto Sans KR', system-ui, -apple-system, 'Malgun Gothic', sans-serif;
    --mono: 'JetBrains Mono', Consolas, 'D2Coding', monospace;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    word-break: keep-all;
}

h1, h2, h3, p, ul, ol, dl, dd, pre {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

a {
    color: var(--cyan);
}

::selection {
    color: var(--bg);
    background: var(--lime);
}

:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.mono {
    font-family: var(--mono);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 8px 14px;
    color: var(--bg);
    background: var(--lime);
    border-radius: 6px;
}

.skip:focus {
    top: 12px;
}

/* 코드 색 (문법 강조처럼) */
.c-key { color: var(--pink); }
.c-fn { color: var(--cyan); }
.c-str { color: var(--amber); }
.c-com { color: var(--dim); }
.c-var { color: var(--violet); }
.c-ok { color: var(--lime); }

/* ===== 2. 머리글 ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 19, .85);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 17px;
}

.logo__path {
    color: var(--lime);
}

.logo__cursor {
    display: inline-block;
    width: 9px;
    height: 17px;
    margin-left: 2px;
    vertical-align: -2px;
    background: var(--lime);
}

@media (prefers-reduced-motion: no-preference) {
    .logo__cursor {
        animation: blink 1.1s steps(1) infinite;
    }
}

@keyframes blink {
    50% { opacity: 0; }
}

.logo__school {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav ul {
    display: flex;
    gap: 2px;
}

.nav a {
    display: block;
    padding: 6px 12px;
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    border-radius: 6px;
}

.nav a span {
    margin-right: 4px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dim);
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--text);
    background: var(--panel);
}

.nav a:hover span {
    color: var(--lime);
}

.nav .nav__cta {
    color: var(--bg);
    background: var(--lime);
    font-weight: 700;
}

.nav .nav__cta:hover {
    color: var(--bg);
    background: #cdff8c;
}

/* 좁은 화면의 메뉴 버튼 */
.nav-toggle {
    display: none;
    padding: 6px 12px;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--lime);
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: 6px;
    cursor: pointer;
}

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

    .nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 16px 18px;
        background: var(--bg-2);
        border-bottom: 1px solid var(--line);
    }

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

    .nav ul {
        flex-direction: column;
    }

    .nav a {
        padding: 12px;
    }

    .nav .nav__cta {
        text-align: center;
    }
}

/* 임시 운영 안내 띠 */
.notice-bar {
    padding: 7px 20px;
    font-family: var(--mono);
    font-size: 13px;
    text-align: center;
    color: var(--amber);
    background: #19160d;
    border-bottom: 1px solid #3a321a;
}

.notice-bar a {
    color: var(--amber);
}

/* ===== 2. 바닥글 ===== */
.footer {
    padding: 56px 0 28px;
    font-size: 14px;
    color: var(--muted);
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.footer__info {
    margin-top: 10px;
}

.footer h2 {
    margin-bottom: 10px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--dim);
}

.footer li + li {
    margin-top: 6px;
}

.footer a {
    color: var(--muted);
    text-decoration: none;
}

.footer a:hover {
    color: var(--lime);
}

.footer__copy {
    margin-top: 40px;
    padding-top: 20px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dim);
    border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===== 3. 공통 부품 ===== */
.section {
    padding: 96px 0;
    border-top: 1px solid var(--line);
}

/* 섹션 머리: "// 01 why" 같은 주석 + 큰 제목 */
.section__label {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--dim);
}

.section__label b {
    font-weight: 500;
    color: var(--lime);
}

.section__title {
    margin-top: 10px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.01em;
}

.section__lead {
    margin-top: 14px;
    max-width: 640px;
    color: var(--muted);
}

.section__more {
    display: inline-block;
    margin-top: 32px;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--lime);
    text-decoration: none;
}

.section__more::before {
    content: '→ ';
}

.section__more:hover {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background .15s, border-color .15s, transform .15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    color: var(--bg);
    background: var(--lime);
}

.btn--primary:hover {
    background: #cdff8c;
}

.btn--ghost {
    color: var(--text);
    border: 1px solid var(--line-2);
}

.btn--ghost:hover {
    border-color: var(--lime);
}

/* 창 모양 틀 (터미널·에디터) */
.window {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.window__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dim);
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
}

.window__dots {
    display: flex;
    gap: 6px;
    margin-right: 6px;
}

.window__dots i {
    width: 11px;
    height: 11px;
    background: var(--line-2);
    border-radius: 50%;
}

.window__dots i:nth-child(1) { background: #ff6b6b; }
.window__dots i:nth-child(2) { background: #ffc66d; }
.window__dots i:nth-child(3) { background: #7ee08a; }

/* ===== 4. 메인 페이지 ===== */

/* 첫 화면 */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 104px;
    /* 모눈 무늬 배경 */
    background-image:
        radial-gradient(ellipse at 75% 30%, rgba(184, 243, 107, .10), transparent 55%),
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
    background-position: center, -1px -1px, -1px -1px;
}

/* 모눈이 아래로 갈수록 흐려지게 */
.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 160px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 56px;
}

.hero__prompt {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--muted);
}

.hero__prompt b {
    font-weight: 500;
    color: var(--lime);
}

.hero__title {
    margin-top: 18px;
    font-size: clamp(32px, 4.3vw, 52px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
}

.hero__title span {
    display: block;
}

.hero__title span::before {
    content: '>';
    margin-right: .35em;
    font-family: var(--mono);
    font-weight: 500;
    color: var(--lime);
}

.hero__title em {
    font-style: normal;
    color: var(--lime);
}

.hero__desc {
    margin-top: 24px;
    max-width: 520px;
    font-size: 17px;
    color: var(--muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

/* 첫 화면 오른쪽 터미널 */
.term {
    padding: 18px 20px 22px;
    min-height: 330px;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.85;
}

.term__line {
    white-space: pre-wrap;
}

.term__ps {
    color: var(--lime);
}

.term__cmd {
    color: var(--text);
}

.term__out {
    color: var(--muted);
}

.term__caret {
    display: inline-block;
    width: 8px;
    height: 16px;
    vertical-align: -3px;
    background: var(--lime);
}

@media (prefers-reduced-motion: no-preference) {
    .term__caret {
        animation: blink 1.1s steps(1) infinite;
    }
}

@media (max-width: 920px) {
    .hero {
        padding: 64px 0 72px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .term {
        min-height: 0;
        font-size: 13px;
    }
}

/* 학과 강점: 함수 정의처럼 */
.strengths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 44px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.strength {
    padding: 28px 26px 30px;
    background: var(--bg-2);
    transition: background .2s;
}

.strength:hover {
    background: var(--panel);
}

.strength__no {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--dim);
}

.strength__fn {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.strength h3 {
    margin-top: 14px;
    font-size: 20px;
}

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

@media (max-width: 860px) {
    .strengths {
        grid-template-columns: 1fr;
    }
}

/* 진로 트랙: 파일 탭 모양 */
.tracks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 44px;
}

.track {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s, transform .2s;
}

.track:hover {
    border-color: var(--lime);
    transform: translateY(-2px);
}

.track__tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.track__tab b {
    font-weight: 500;
    color: var(--text);
}

.track__no {
    color: var(--dim);
}

.track__body {
    padding: 18px 16px 20px;
}

.track h3 {
    font-size: 18px;
}

.track p {
    margin-top: 2px;
    font-size: 14px;
    color: var(--muted);
}

.track p::before {
    content: 'return ';
    font-family: var(--mono);
    color: var(--pink);
}

@media (max-width: 860px) {
    .tracks {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .tracks {
        grid-template-columns: 1fr;
    }
}

/* 진출 기업: import 문 */
.imports {
    margin-top: 28px;
    padding: 18px 20px;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.9;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow-wrap: anywhere;
}

/* 학생 활동: git log */
.log {
    margin-top: 44px;
}

.log__head {
    padding: 12px 18px;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--muted);
}

.log__head b {
    font-weight: 500;
    color: var(--lime);
}

.commit {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 14px;
    padding: 20px 22px;
    border-top: 1px solid var(--line);
}

/* 커밋 그래프의 점과 선 */
.commit__graph {
    position: relative;
}

.commit__graph::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 5px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--lime);
    border-radius: 50%;
    background: var(--panel);
}

.commit__graph::after {
    content: '';
    position: absolute;
    top: 22px;
    bottom: -26px;
    left: 10px;
    width: 2px;
    background: var(--line-2);
}

.commit:last-child .commit__graph::after {
    display: none;
}

.commit__meta {
    font-family: var(--mono);
    font-size: 13px;
}

.commit__hash {
    color: var(--amber);
}

.commit__tag {
    margin-left: 8px;
    padding: 1px 8px;
    color: var(--cyan);
    border: 1px solid rgba(103, 216, 239, .35);
    border-radius: 999px;
}

.commit h3 {
    margin-top: 6px;
    font-size: 19px;
}

.commit p {
    margin-top: 4px;
    color: var(--muted);
}

/* 학과 소식: tail 명령 결과 */
.news {
    margin-top: 32px;
}

.news li + li {
    border-top: 1px dashed var(--line);
}

.news a {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 18px 20px;
    color: var(--text);
    text-decoration: none;
    transition: background .15s;
}

.news a:hover {
    background: var(--panel-2);
}

.news a:hover .news__title {
    color: var(--lime);
}

.news__date {
    flex: none;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--cyan);
}

.news__title {
    flex: 1;
}

.news__arrow {
    flex: none;
    font-family: var(--mono);
    color: var(--dim);
}

@media (max-width: 600px) {
    .news a {
        flex-direction: column;
        gap: 2px;
    }

    .news__arrow {
        display: none;
    }
}

/* 입학 문의 */
.cta {
    padding: 96px 0;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(184, 243, 107, .12), transparent 60%),
        var(--bg);
}

.cta__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding: 36px 36px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: 14px;
}

.cta__cmd {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--muted);
}

.cta__cmd b {
    font-weight: 500;
    color: var(--lime);
}

.cta h2 {
    margin-top: 10px;
    font-size: clamp(24px, 3.4vw, 32px);
    line-height: 1.35;
}

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

.cta__tel {
    font-family: var(--mono);
    color: var(--lime);
    text-decoration: none;
}

.cta__tel:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .cta__box {
        padding: 28px 22px;
    }
}
