/*
 * 랜딩(/) 전용. 색은 제품과 같은 남색 primary, 글꼴은 Poppins.
 * 모서리 규칙: 버튼 10px, 블록·이미지 16px, 배지는 완전한 알약형.
 * 여백은 요소마다 클래스로 줌. ".블록 p" 같은 후손 선택자로 여백을 일괄 지정하지 않음
 * (같은 블록 안 다른 p 의 여백까지 덮어씀).
 */
:root {
    --ld-bg: #ffffff;
    --ld-tint: #f4f5fa;
    --ld-border: #e6e8f0;
    --ld-text: #1e2333;
    --ld-body: #4a5068;
    --ld-muted: #868ba0;
    --ld-accent: #405189;
    --ld-accent-deep: #27335c;
    --ld-accent-soft: rgba(64, 81, 137, .09);
    --ld-highlight: #ffd166;
    --ld-shadow: 0 30px 70px -24px rgba(20, 28, 58, .55), 0 10px 24px -12px rgba(20, 28, 58, .3);
    --ld-r-btn: 10px;
    --ld-r-block: 16px;
    --ld-gutter: 32px;
}

/*
 * Poppins 는 Google Fonts 에서 받던 것을 서버에 직접 둔다(라틴 글자만, 굵기 4종, 각 8KB 안팎).
 * Google 쪽 CSS 가 다른 서버에서 첫 화면을 0.95초 막았다. 파일·unicode-range 는 Google 이 내주던 latin
 * 묶음 그대로라 글자 모양은 같다. 한글은 원래대로 시스템 글꼴. 라이선스: assets/fonts/Poppins-OFL.txt
 */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../assets/fonts/poppins-latin-400.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../assets/fonts/poppins-latin-500.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../assets/fonts/poppins-latin-600.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../assets/fonts/poppins-latin-700.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--ld-bg);
    color: var(--ld-text);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* 모든 섹션이 같은 폭·같은 좌우 여백을 씀 → 좌우 대칭 */
.ld-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--ld-gutter); }

/* ── 의미 단위 줄바꿈 ─────────────────────────────────── */
/* ld-line: 항상 한 줄씩. 한 줄이 화면보다 길면 그 안에서만 다시 접힘. */
.ld-line { display: block; }
.ld-line--gap { margin-bottom: .9em; }
/* 함께 읽혀야 하는 구절은 중간에서 끊지 않음. */
.ld-nw { white-space: nowrap; }
/* 다시 접힐 때 끝에 한 단어만 남지 않게 줄 길이를 고르게 함. 미지원 브라우저는 일반 줄바꿈. */
.ld-title, .ld-line, .ld-role__title { text-wrap: balance; word-break: keep-all; }

/* ── 버튼 ──────────────────────────────────────────────── */
.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border: 1px solid transparent;
    border-radius: var(--ld-r-btn);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.ld-btn:active { transform: translateY(1px); }
.ld-btn--sm { padding: 8px 18px; font-size: .9rem; }

.ld-btn--primary { background: var(--ld-accent); color: #fff; }
.ld-btn--primary:hover { background: var(--ld-accent-deep); }
.ld-btn--ghost { background: #fff; color: var(--ld-accent); border-color: rgba(64, 81, 137, .35); }
.ld-btn--ghost:hover { background: var(--ld-accent-soft); border-color: var(--ld-accent); }

/* ── 헤더 ──────────────────────────────────────────────── */
.ld-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--ld-border);
}
.ld-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.ld-logo { display: inline-flex; align-items: center; }
.ld-logo img { display: block; height: 28px; width: auto; }
.ld-nav { display: flex; align-items: center; gap: 8px; }
/* 언어 전환 - 로그인·가입보다 눈에 덜 띄게 글자 버튼으로 */
.ld-lang { display: inline-flex; align-items: center; gap: 4px; padding: 8px 6px; white-space: nowrap; border: 0; background: none; color: var(--ld-muted); font: inherit; font-size: .85rem; cursor: pointer; }
.ld-lang:hover { color: var(--ld-accent); }

/* ── 히어로 ────────────────────────────────────────────── */
.ld-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 96px;
    color: #fff;
    background:
        radial-gradient(700px 420px at 12% 0%, rgba(120, 140, 220, .35), transparent 70%),
        radial-gradient(800px 500px at 95% 100%, rgba(255, 255, 255, .08), transparent 70%),
        linear-gradient(135deg, #2b3866 0%, #405189 55%, #4b5fa0 100%);
}
.ld-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 64px;
}

.ld-eyebrow {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .7);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ld-title {
    margin: 0 0 28px;
    font-size: clamp(2.1rem, 3.8vw, 3.3rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.02em;
}
/* 강조 단어 아래 노란 밑줄 */
.ld-mark {
    font-style: normal;
    background: linear-gradient(transparent 84%, var(--ld-highlight) 84%, var(--ld-highlight) 96%, transparent 96%);
}

.ld-lead { margin: 0; color: rgba(255, 255, 255, .82); font-size: 1.05rem; }
.ld-lead strong { color: #fff; }

.ld-shot {
    position: relative;
    margin: 0;
    padding: 10px;
    border-radius: calc(var(--ld-r-block) + 4px);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: var(--ld-shadow);
}
.ld-shot img { display: block; width: 100%; height: auto; border-radius: var(--ld-r-block); }

/* 제목 타이핑: 글자는 자리를 차지한 채 투명 → 차례로 보임(아래 문단이 들썩이지 않음).
   스크립트가 안 돌면 1.5초 뒤 그냥 보이게 함. */
.ld-title[data-typing] { visibility: hidden; animation: ld-reveal 0s 1.5s forwards; }
.ld-title.is-typing { visibility: visible; animation: none; }
@keyframes ld-reveal { to { visibility: visible; } }
.ld-ch { opacity: 0; }
.ld-ch.is-on { opacity: 1; }
.ld-mark { transition: background-size .35s ease; background-size: 100% 100%; background-repeat: no-repeat; }
.ld-mark.is-pending { background-size: 0 100%; }
.ld-caret {
    display: inline-block;
    width: 3px;
    height: .95em;
    margin-left: 4px;
    vertical-align: -.08em;
    background: var(--ld-highlight);
    animation: ld-blink 1s steps(1) infinite;
}
@keyframes ld-blink { 50% { opacity: 0; } }

/* 첫 화면 진입 시 문구 → 화면 순서로 한 번만 떠오름. 움직임 줄이기 설정이면 생략. */
@media (prefers-reduced-motion: no-preference) {
    .ld-hero__copy, .ld-shot { animation: ld-rise .7s cubic-bezier(.16, 1, .3, 1) both; }
    .ld-shot { animation-delay: .12s; }
}
@keyframes ld-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* ── 섹션 공통 ─────────────────────────────────────────── */
.ld-section { padding: 96px 0; }
.ld-section--tint { background: var(--ld-tint); }

.ld-h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -.01em;
    text-align: center;
}

.ld-sub { margin: 0 0 56px; color: var(--ld-muted); font-size: 1.02rem; text-align: center; word-break: keep-all; }

/* ── 3스텝 ─────────────────────────────────────────────── */
.ld-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}
/* 아이콘 중심을 잇는 선(순서 표시). 아이콘 높이 64px 의 가운데. */
.ld-steps::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 16.67%;
    right: 16.67%;
    border-top: 2px dashed rgba(64, 81, 137, .25);
}
.ld-step { position: relative; }
.ld-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--ld-accent);
    color: var(--ld-accent);
    font-size: 1.6rem;
    box-shadow: 0 0 0 8px #fff;
}
.ld-step:first-child .ld-step__icon { background: var(--ld-accent); color: #fff; }
.ld-step__title { margin: 0 0 8px; font-size: 1.15rem; font-weight: 600; }
.ld-step__desc { margin: 0; color: var(--ld-body); font-size: .97rem; }

/* ── AI 사용 안내 카드(단계 섹션 안) ────────────────────── */
.ld-note {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 880px;
    margin: 64px auto 0;
    padding: 28px 32px;
    border-radius: var(--ld-r-block);
    background: #fffbf0;
    border: 1px solid #fde7b0;
    color: var(--ld-body);
}
.ld-note__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffefc2;
    color: #b7791f;
    font-size: 1.5rem;
}
.ld-note__title { margin: 2px 0 8px; color: var(--ld-text); font-size: 1.2rem; font-weight: 700; word-break: keep-all; }
.ld-note__desc { margin: 0; font-size: 1rem; }
.ld-note__desc strong { color: var(--ld-text); font-weight: 600; }

/* ── 대상별 블록 ───────────────────────────────────────── */
.ld-roles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.ld-role { position: relative; overflow: hidden; border-radius: var(--ld-r-block); padding: 40px 40px 36px; }
/* 카드 오른쪽 아래 큰 아이콘 무늬. 내용 뒤에 깔림. */
.ld-role__mark {
    position: absolute;
    right: -18px;
    bottom: -34px;
    font-size: 11rem;
    line-height: 1;
    pointer-events: none;
}
.ld-role > :not(.ld-role__mark) { position: relative; }
.ld-role--student .ld-role__mark { color: rgba(255, 255, 255, .07); }
.ld-role--teacher .ld-role__mark { color: rgba(64, 81, 137, .06); }
.ld-role__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ld-role__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.35rem;
}
.ld-role__tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
}
.ld-role__title { margin: 0 0 12px; font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; }
.ld-role__desc { margin: 0; font-size: 1rem; }
.ld-role__more { margin: 28px 0 0; font-size: .92rem; }
.ld-link { font-weight: 600; text-decoration: none; }
.ld-link:hover { text-decoration: underline; }
.ld-link i { vertical-align: -2px; transition: transform .2s ease; }
.ld-link:hover i { transform: translateX(3px); }

.ld-role--student {
    background:
        radial-gradient(520px 260px at 100% 0%, rgba(255, 255, 255, .16), transparent 70%),
        linear-gradient(135deg, #34437a 0%, #405189 100%);
    color: rgba(255, 255, 255, .86);
    box-shadow: 0 24px 50px -24px rgba(39, 51, 92, .6);
}
.ld-role--student .ld-role__icon { background: rgba(255, 255, 255, .14); color: #fff; }
.ld-role--student .ld-role__tag { background: rgba(255, 255, 255, .16); color: #fff; }
.ld-role--student .ld-role__title { color: #fff; }
.ld-role--student .ld-role__more { color: rgba(255, 255, 255, .72); }
.ld-role--student .ld-link { color: var(--ld-highlight); }

.ld-role--teacher { background: #fff; border: 1px solid var(--ld-border); color: var(--ld-body); }
.ld-role--teacher .ld-role__icon { background: var(--ld-accent-soft); color: var(--ld-accent); }
.ld-role--teacher .ld-role__tag { background: var(--ld-accent-soft); color: var(--ld-accent); }
.ld-role--teacher .ld-role__title { color: var(--ld-text); }
.ld-role--teacher .ld-link { color: var(--ld-accent); }

/* ── 기관 도입 문의 ────────────────────────────────────── */
.ld-section--cta { padding-top: 0; background: var(--ld-tint); }
.ld-cta-box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 56px;
    border-radius: var(--ld-r-block);
    color: rgba(255, 255, 255, .8);
    background:
        radial-gradient(500px 260px at 0% 0%, rgba(255, 255, 255, .12), transparent 70%),
        linear-gradient(120deg, var(--ld-accent-deep) 0%, var(--ld-accent) 100%);
    box-shadow: 0 24px 50px -24px rgba(39, 51, 92, .6);
}
.ld-cta-box__title { margin: 0 0 10px; color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -.01em; }
.ld-cta-box__desc { margin: 0; font-size: 1.02rem; }
.ld-cta-box__action { flex: none; text-align: center; }
.ld-cta-box__addr { margin: 10px 0 0; font-size: .85rem; color: rgba(255, 255, 255, .7); user-select: all; }
.ld-btn--light { gap: 8px; background: #fff; color: var(--ld-accent-deep); }
.ld-btn--light:hover { background: #eef0f8; }

/* ── 푸터 ──────────────────────────────────────────────── */
.ld-footer { padding: 32px 0 40px; border-top: 1px solid var(--ld-border); color: var(--ld-muted); font-size: .88rem; }
.ld-footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ld-footer__logo { height: 20px; width: auto; opacity: .7; }
.ld-footer__links { display: flex; gap: 18px; }
.ld-footer__links a { color: var(--ld-muted); text-decoration: none; }
.ld-footer__links a:hover { color: var(--ld-text); }
.ld-footer__brand { margin: 0 0 0 auto; }

/* ── 좁은 화면 ─────────────────────────────────────────── */
@media (max-width: 960px) {
    .ld-hero { padding: 56px 0 64px; }
    .ld-hero__grid { grid-template-columns: 1fr; gap: 44px; }
    .ld-roles { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    :root { --ld-gutter: 20px; }
    .ld-section { padding: 64px 0; }
    .ld-sub { margin-bottom: 36px; }
    .ld-steps { grid-template-columns: 1fr; gap: 36px; }
    .ld-steps::before { display: none; }
    .ld-step__icon { margin-bottom: 14px; }
    .ld-role { padding: 32px 24px 28px; }
    .ld-note { flex-direction: column; gap: 14px; margin-top: 44px; padding: 24px 20px; }
    .ld-role__mark { font-size: 8rem; }
    .ld-cta-box { flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 24px; }
    .ld-cta-box__action { width: 100%; }
    .ld-cta-box__action .ld-btn { width: 100%; }
}

@media (max-width: 480px) {
    .ld-header__inner { height: 56px; }
    .ld-logo img { height: 24px; }
    .ld-btn--sm { padding: 9px 14px; font-size: .9rem; }
    .ld-lang { padding: 8px 2px; }
    .ld-lang i { display: none; }
    .ld-title { font-size: 1.9rem; }
    .ld-lead { font-size: 1rem; }
    .ld-shot { padding: 6px; }
    .ld-footer__brand { margin-left: 0; width: 100%; }
}
