/* ════════════════════════════════════════════════════════════
   CODEWAVE 랜딩 — 3색 팔레트: paper / ink / blue
   index.html 에서만 불러온다. 다른 화면은 style.css 그대로.
   ════════════════════════════════════════════════════════════ */

body.lp {
    --paper: #e2e2e3;
    --ink: #0b0d14;
    --blue: #1d36eb;
    --blue-deep: #1428c4;
    --gray-100: #eeeeef;
    --gray-300: #d5d5d7;
    --muted: #5e5e66;
    --edge: clamp(8px, 1.1vw, 16px);
    --round: clamp(28px, 3vw, 44px);
    background: var(--paper);
    color: var(--ink);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", 'Noto Sans KR', sans-serif;
    letter-spacing: -0.01em;
    overflow-x: clip;
}

.lp .heavy { font-weight: 900; }
.lp .light { font-weight: 300; letter-spacing: -0.04em; }
.lp .accent { color: var(--blue); }

/* ── 헤더: 가운데 떠 있는 둥근 알약 두 개 ──────────────── */
.lp .site-header {
    position: fixed;
    top: 0;
    left: 50%;
    right: auto;
    width: min(60vw, 100%);
    min-width: min(760px, 100%);
    transform: translateX(-50%);
    padding-top: 18px;
}

.lp .site-header-inner { width: 100%; }

.lp .site-header-pill {
    gap: 2px;
    padding: 7px;
    border: 1px solid rgba(11, 13, 20, .06);
    border-radius: 999px;
    box-shadow: 0 6px 24px rgba(11, 13, 20, .05);
}

.lp .site-header-pill:first-child { padding-left: 14px; }
.lp .wordmark { margin-right: clamp(12px, 2.6vw, 40px); padding-left: 0; }

.lp .site-nav a,
.lp .site-header-text {
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 15px;
    line-height: 1;
}

.lp .site-nav a:hover,
.lp .site-nav a.is-active,
.lp .site-header-text:hover { background: rgba(11, 13, 20, .06); }

.lp .site-nav a.is-active { color: var(--ink); font-weight: 500; }

.lp .site-header-cta {
    height: auto;
    padding: 13px 20px;
    border-radius: 999px;
    background: var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}

.lp .site-header-cta:hover { background: var(--blue); }

/* ── 히어로: 꽉 찬 화면 → 스크롤하면 얇은 여백의 카드 ──── */
.lp-hero-wrap { padding: 0; transition: padding .55s cubic-bezier(.22, 1, .36, 1); }
.lp-hero-wrap.carded { padding: var(--edge) var(--edge) 0; }

.lp-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    border-radius: 0;
    background: linear-gradient(180deg, #3550f5 0%, #1d36eb 55%, #142bd0 100%);
    color: #fff;
    transition: border-radius .55s cubic-bezier(.22, 1, .36, 1);
}

.lp-hero-wrap.carded .lp-hero { border-radius: var(--round); }

/* 아래에서 떠오르는 흰 빛 */
.lp-hero-orb {
    position: absolute;
    left: 50%;
    top: 78%;
    width: max(150vw, 1500px);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f1f3ff 30%, #d9dfff 60%, #c3ccff 100%);
    filter: blur(30px);
    opacity: .95;
}

.lp-hero-body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 16px 22vh;
    text-align: center;
}

.lp-hero h1 {
    margin: 0;
    font-size: clamp(64px, 12vw, 190px);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.06em;
}

.lp-hero-kicker {
    margin: 0 0 clamp(10px, 1.4vw, 18px);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 600;
    letter-spacing: -.035em;
    color: rgba(255, 255, 255, .82);
}

.lp-hero-sub {
    max-width: 30em;
    margin: clamp(18px, 2.2vw, 28px) auto 0;
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.55;
    letter-spacing: -.025em;
    color: rgba(255, 255, 255, .86);
    word-break: keep-all;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: clamp(28px, 3vw, 42px);
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 30px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 500;
    transition: background-color .2s, color .2s, transform .2s;
}

.lp-btn:active { transform: scale(.97); }
.lp-btn-dark { background: var(--ink); color: #fff; }
.lp-btn-dark:hover { background: #fff; color: var(--ink); }
.lp-btn-glass { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.lp-btn-glass:hover { background: rgba(255, 255, 255, .26); }

/* ── 공통 섹션 ─────────────────────────────────────────── */
.lp-section { padding: clamp(72px, 10vw, 144px) clamp(16px, 4vw, 64px); }
.lp-tight { padding-top: 0; }

.lp-h2 {
    margin: 0 0 clamp(38px, 5vw, 72px);
    font-size: clamp(36px, 6vw, 92px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.05em;
    word-break: keep-all;
}

/* ── 소개: 화면 크기의 흰 카드 ───────────────────────── */
.lp-about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - 2 * var(--edge));
    margin: var(--edge);
    border-radius: var(--round);
    background: #fff;
}

.lp-statement {
    margin: 0;
    font-size: clamp(32px, 5.4vw, 84px);
    line-height: 1.12;
    letter-spacing: -.05em;
    word-break: keep-all;
}

.lp-about-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    margin-top: clamp(48px, 7vw, 96px);
    padding-top: 28px;
}

/* 스크롤 위치에 따라 가운데서 양옆으로 열리는 파란 구분선 */
.lp-about-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #a9b6ff 0%, #5468f2 50%, #1d36eb 100%);
    transform: scaleX(var(--g, 0));
    transform-origin: 50% 50%;
}

.lp-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.lp-facts dt { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.lp-facts dd { margin: 0; font-size: clamp(36px, 5vw, 76px); font-weight: 900; line-height: .95; letter-spacing: -.05em; color: var(--blue); }
.lp-facts dd small { margin-left: 4px; font-size: .4em; letter-spacing: -.02em; }

.lp-about-copy p {
    max-width: 30em;
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: var(--muted);
    word-break: keep-all;
}

.lp-about-copy p + p { margin-top: 14px; }

/* ── 배움: 검은 쇼케이스 (가운데에 오면 꽉 찬 화면) ─────── */
.lp-showcase {
    --f: 0;
    position: relative;
    overflow: hidden;
    margin: 0 calc((1 - var(--f)) * var(--edge));
    padding: clamp(56px, 7vw, 110px) clamp(16px, 4vw, 48px);
    border-radius: calc((1 - var(--f)) * var(--round));
    background: var(--ink);
    color: #fff;
}

.lp-sc-orb {
    --w: clamp(420px, 40vw, 640px);
    position: absolute;
    top: 50%;
    width: var(--w);
    aspect-ratio: 1;
    transform: translateY(-50%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(24px);
    opacity: .9;
    background: radial-gradient(circle, #1d36eb 0%, #3f57f4 40%, #7d8ef8 62%, rgba(125, 142, 248, 0) 72%);
}

.lp-sc-orb.l { left: calc(var(--w) * -.83); }
.lp-sc-orb.r { right: calc(var(--w) * -.83); }

.lp-showcase-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; }

.lp-showcase h2 {
    margin: 0 0 clamp(32px, 4vw, 52px);
    font-size: clamp(34px, 4.6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.045em;
    word-break: keep-all;
}

.lp-sc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }

.lp-sc-card {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2vw, 26px);
    padding: clamp(24px, 2.4vw, 36px);
    border-radius: clamp(22px, 2.4vw, 32px);
    background: rgba(255, 255, 255, .06);
}

.lp-sc-card svg {
    width: clamp(64px, 6vw, 90px);
    height: auto;
    overflow: visible;
    transform: rotate(var(--r, 0deg));
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
    filter: blur(1.5px) drop-shadow(0 0 18px rgba(63, 87, 244, .4));
}

.lp-sc-card svg * { fill: url(#lpGrad); }
.lp-sc-card:hover svg { transform: rotate(calc(var(--r, 0deg) + 20deg)); }
.lp-sc-card h3 { margin: 0; font-size: clamp(21px, 2vw, 28px); font-weight: 800; line-height: 1.15; letter-spacing: -.045em; word-break: keep-all; }
.lp-sc-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .6); word-break: keep-all; }

/* ── 타일 / 회색 패널 ─────────────────────────────────── */
.lp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, .9vw, 12px); }
.lp-tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.lp-tile {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2vw, 28px);
    border-radius: clamp(20px, 2vw, 28px);
    background: #fff;
}

.lp-panel .lp-tile { background: var(--gray-100); }
.lp-tile.tall { min-height: clamp(220px, 21vw, 290px); }
.lp-num { font: 600 13px/1 'Space Grotesk', ui-monospace, monospace; letter-spacing: .04em; color: var(--muted); }
.lp-tile h3 { margin: 0; font-size: clamp(22px, 1.9vw, 28px); font-weight: 800; line-height: 1.15; letter-spacing: -.045em; word-break: keep-all; }
.lp-tile.tall h3 { margin-top: auto; }
.lp-tile p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); word-break: keep-all; }

.lp-panel .lp-tile-blue { background: var(--blue); color: #fff; }
.lp-tile-blue .lp-num,
.lp-tile-blue p { color: rgba(255, 255, 255, .72); }

.lp-panel { padding: clamp(12px, 1.4vw, 20px); border-radius: var(--round); background: var(--gray-300); }

.lp-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 48px;
    padding: clamp(22px, 3vw, 42px) clamp(16px, 2vw, 28px) clamp(28px, 3.5vw, 48px);
}

.lp-panel-head h2 { margin: 0; font-size: clamp(32px, 4.2vw, 64px); font-weight: 800; line-height: 1.08; letter-spacing: -.05em; word-break: keep-all; }
.lp-panel-head p { max-width: 24em; margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); word-break: keep-all; }

/* ── 멤버 ─────────────────────────────────────────────── */
.lp-members-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 48px;
    margin-bottom: clamp(38px, 5vw, 72px);
}

.lp-members-head .lp-h2 { margin: 0; }
.lp-members-head p { max-width: 22em; margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); word-break: keep-all; }

.lp-member-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, .9vw, 12px); }

.lp-member {
    padding: clamp(10px, 1vw, 14px) clamp(10px, 1vw, 14px) 20px;
    border-radius: clamp(20px, 2vw, 28px);
    background: #fff;
}

.lp-member-photo {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    margin-bottom: 16px;
    border-radius: clamp(14px, 1.4vw, 20px);
    background: var(--gray-100);
}

.lp-member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.lp-member:hover .lp-member-photo img { transform: scale(1.04); }
.lp-member-photo span { font-size: clamp(40px, 4vw, 60px); font-weight: 800; color: var(--blue); }

.lp-member-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.lp-member h3 { margin: 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.lp-member p { margin: 4px 6px 0; font-size: 13.5px; color: var(--muted); }

.lp-members-empty { padding: 56px 24px; border-radius: var(--round); background: #fff; color: var(--muted); text-align: center; }

/* ── 함께하기 CTA (파란 판) ──────────────────────────── */
.lp-cta {
    margin: 0 var(--edge) var(--edge);
    padding: clamp(96px, 14vw, 176px) 16px;
    border-radius: var(--round);
    background: var(--blue);
    color: #fff;
    text-align: center;
}

.lp-cta-kicker { margin: 0 0 22px; font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.045em; }
.lp-cta h2 { margin: 0; font-size: clamp(44px, 8.6vw, 136px); font-weight: 400; line-height: 1; letter-spacing: -.055em; }
.lp-cta h2 .line { display: block; white-space: nowrap; }
.lp-cta-sub { max-width: 30em; margin: clamp(24px, 3vw, 36px) auto 0; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .78); word-break: keep-all; }

.lp-cta-btn {
    display: inline-flex;
    margin-top: clamp(32px, 4vw, 48px);
    padding: 18px 28px;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
    transition: background-color .2s, color .2s;
}

.lp-cta-btn:hover { background: var(--ink); color: #fff; }

/* ── 푸터: 화면 폭 전체의 잉크 판 ─────────────────────── */
.lp .site-footer { width: 100%; margin: 0; border-radius: 0; background: var(--ink); }
.lp .cw-faq-q:focus-visible { outline-color: #7d8ef8; }

/* ── 반응형 ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .lp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-member-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .lp-sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-about-grid { grid-template-columns: 1fr; }
    .lp-member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .lp .site-header { width: calc(100% - 24px); min-width: 0; padding-top: 12px; }
    .lp .site-header-inner { width: 100%; }
    .lp .site-nav a, .lp .site-header-text { padding: 9px 12px; font-size: 14px; }
    .lp .site-header-cta { padding: 11px 16px; font-size: 14px; }

    .lp-hero h1 { font-size: 64px; }
    .lp-hero-actions { flex-direction: column; align-items: stretch; width: min(100%, 320px); }
    .lp-btn { justify-content: center; }

    .lp-section { padding: 56px 16px; }
    .lp-tight { padding-top: 0; }
    .lp-h2 { margin-bottom: 22px; font-size: 34px; }

    .lp-statement { font-size: 30px; }
    .lp-about-grid { gap: 28px; margin-top: 32px; padding-top: 20px; }
    .lp-about-copy p { font-size: 15px; }
    .lp-facts dd { font-size: 34px; }

    /* 카드 → 리스트 행 */
    .lp-showcase { padding: 44px 14px; }
    .lp-showcase h2 { margin-bottom: 22px; font-size: 28px; }
    .lp-sc-grid { grid-template-columns: 1fr; gap: 6px; }
    .lp-sc-card { flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px; }
    .lp-sc-card svg { flex: none; width: 40px; }
    .lp-sc-card h3 { font-size: 18px; }
    .lp-sc-card p { margin-top: 3px; font-size: 13.5px; }
    .lp-sc-orb { --w: 300px; opacity: .6; }

    .lp-tiles, .lp-tiles.three { grid-template-columns: 1fr; gap: 6px; }
    .lp-tile, .lp-tile.tall { min-height: 0; padding: 16px 18px; border-radius: 18px; }
    .lp-tile h3 { font-size: 18px; }
    .lp-tile p { margin-top: 4px; font-size: 14px; }
    .lp-panel { padding: 8px; border-radius: 24px; }
    .lp-panel-head { padding: 20px 12px 18px; }
    .lp-panel-head h2 { font-size: 28px; }
    .lp-panel-head p { font-size: 14.5px; }

    .lp-members-head { margin-bottom: 22px; }
    .lp-members-head p { font-size: 14.5px; }
    .lp-member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .lp-member { border-radius: 18px; }
    .lp-member h3 { font-size: 16px; }

    .lp-cta { padding: 72px 16px; }
    .lp-cta h2 { font-size: 40px; }
    .lp-cta h2 .line { white-space: normal; }
    .lp-cta-sub { font-size: 15px; }
}

@media (max-width: 460px) {
    .lp-facts { grid-template-columns: 1fr; }
    .lp-facts dd { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-hero-wrap, .lp-hero, .lp-sc-card svg { transition: none; }
}
