/* ===== Tokens ===== */
:root {
  --bg:        #0a0d16;
  --bg-alt:    #0d111d;
  --surface:   #141a29;
  --surface-2: #1b2236;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --text:      #eaf0fb;
  --muted:     #9aa6bf;
  --muted-2:   #6f7b94;
  --brand:     #4f7cff;
  --brand-2:   #22d3ee;
  --grad:      linear-gradient(120deg, #4f7cff 0%, #22d3ee 100%);
  --radius:    16px;
  --maxw:      1120px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Malgun Gothic", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 한글이 글자 단위로 쪼개지지 않고 어절(띄어쓰기) 단위로 줄바꿈 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 줄은 자연스럽게 꽉 채우되, 마지막 줄 외톨이 단어만 정리 (balance와 달리 줄 수를 늘리지 않음) */
p, li, h1, h2, h3, h4, .hero__sub, .press__quote, .press__title, .lead { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
strong { color: #fff; font-weight: 700; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 18px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: .95rem; font-weight: 700;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  cursor: pointer;
}
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--primary { background: var(--grad); color: #06121f; box-shadow: 0 8px 30px rgba(79,124,255,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(79,124,255,.5); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand-2); color: var(--brand-2); }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 48px);
  background: rgba(10,13,22,.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.is-scrolled { background: rgba(10,13,22,.9); border-bottom-color: var(--line); }
.nav__logo { font-weight: 800; letter-spacing: .08em; font-size: 1.15rem; }
.nav__brand { display: flex; align-items: center; }
.nav__logo-img { height: 24px; display: block; }
@media (min-width: 820px){ .nav__logo-img { height: 27px; } }
.nav__links { display: none; gap: 28px; font-size: .92rem; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }

@media (min-width: 820px) {
  .nav__links { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px clamp(18px,5vw,48px) 80px;
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(79,124,255,.28), transparent 70%),
    radial-gradient(40% 40% at 80% 30%, rgba(34,211,238,.16), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 860px; }
.hero__title {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.02em;
  margin-bottom: 24px;
}
.hero__sub { font-size: clamp(1rem, 3.6vw, 1.25rem); color: var(--muted); margin-bottom: 36px; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: clamp(24px, 6vw, 56px); justify-content: center; flex-wrap: wrap;
  margin-top: 56px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat b { font-size: clamp(1.8rem,6vw,2.6rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .82rem; color: var(--muted-2); margin-top: 2px; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 1; color: var(--muted-2); font-size: 1.4rem;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

.br-pc { display: none; }
@media (min-width: 720px){ .br-pc { display: inline; } }

/* ===== Section base ===== */
.section { padding: clamp(72px, 11vw, 130px) clamp(18px,5vw,48px); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: var(--maxw); margin: 0 auto clamp(40px,6vw,64px); }
.section__head h2 { font-size: clamp(1.7rem, 5vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.section__head--tight { margin-bottom: clamp(20px,3vw,28px); }

/* Press feature (출범 기사) */
.press {
  display: block;
  max-width: var(--maxw); margin: 0 auto clamp(40px,6vw,60px);
  background: linear-gradient(150deg, var(--surface-2), var(--bg-alt));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.press::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 100% 0%, rgba(34,211,238,.14), transparent 60%);
}
.press:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.press__tag { font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--brand-2); margin-bottom: 14px; }
.press__title { font-size: clamp(1.5rem, 4.6vw, 2.4rem); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.press__quote { font-size: clamp(1.02rem, 2.8vw, 1.22rem); color: var(--text); font-weight: 600; margin-top: 20px; padding-left: 16px; border-left: 3px solid var(--brand); }
.press__desc { color: var(--muted); font-size: clamp(.95rem,2.4vw,1.02rem); margin-top: 18px; max-width: 760px; }
.press__link { display: inline-block; margin-top: 22px; color: var(--brand-2); font-weight: 700; font-size: .95rem; }
.lead { color: var(--muted); font-size: clamp(1rem,2.6vw,1.12rem); max-width: 1120px; margin-top: 18px; }

/* ===== Members ===== */
.members {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 600px){ .members { gap: 16px; } }
@media (min-width: 940px){ .members { grid-template-columns: repeat(3,1fr); } }
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
@media (min-width: 600px){ .member { padding: 26px 24px; } }
.member:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.member__role { font-size: .68rem; font-weight: 700; letter-spacing: .03em; color: var(--brand-2); margin-bottom: 8px; }
.member h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.member p { font-size: .82rem; color: var(--muted); line-height: 1.55; }
@media (min-width: 600px){
  .member__role { font-size: .78rem; margin-bottom: 12px; }
  .member h3 { font-size: 1.15rem; margin-bottom: 8px; }
  .member p { font-size: .92rem; }
}
.member--more { background: transparent; border-style: dashed; }

/* ===== Goal ===== */
.goal-head { max-width: var(--maxw); margin: clamp(56px,8vw,88px) auto clamp(26px,4vw,40px); text-align: center; }
.goal-head h3 { font-size: clamp(1.4rem,4.4vw,2.1rem); font-weight: 800; letter-spacing: -.02em; }

.goal {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: clamp(28px,5vw,40px); grid-template-columns: 1fr;
}
@media (min-width: 720px){ .goal { grid-template-columns: repeat(3,1fr); gap: clamp(28px,4vw,48px); } }
.goal__item {
  padding-top: 22px;
  border-top: 2px solid transparent;
  border-image: var(--grad) 1;
}
.goal__num { font-size: .82rem; font-weight: 800; color: var(--brand-2); letter-spacing: .14em; }
.goal__item h4 { font-size: 1.22rem; margin: 10px 0 10px; }
.goal__item p { font-size: .94rem; color: var(--muted); }

/* ===== Steps ===== */
.steps {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.step span { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--brand-2); }
.step h4 { font-size: 1.2rem; margin: 6px 0 8px; }
.step p { font-size: .88rem; color: var(--muted); }
.step-arrow { display: none; align-self: center; color: var(--muted-2); font-size: 1.4rem; }
@media (min-width: 880px){
  .steps { display: flex; flex-direction: row; align-items: stretch; gap: 12px; }
  .step { flex: 1; padding: 24px; }
  .step h4 { font-size: 1.25rem; }
  .step p { font-size: .9rem; }
  .step-arrow { display: block; }
}

/* ===== Videos ===== */
.videos, .media {
  max-width: var(--maxw); margin: clamp(40px,6vw,56px) auto 0;
  display: grid; gap: 22px; grid-template-columns: 1fr;
}
@media (min-width: 760px){ .videos, .media { grid-template-columns: 1fr 1fr; } }
.videos--single, .media--single { display: block; }
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__cap { padding: 14px 18px; font-size: .9rem; color: var(--muted); }
.video-card__cap em { color: var(--muted-2); font-style: normal; font-size: .82rem; }
.video-card--wide { max-width: 860px; margin: 0 auto; }

/* 클릭하면 네이티브 플레이어(풀스크린)로 열리는 포스터 — 모바일 컨트롤 문제 회피 */
.video-poster {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  background: #000 center / cover no-repeat;
}
.video-poster::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.video-poster__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(10,13,22,.6); border: 2px solid #fff; z-index: 1;
  transition: transform .15s ease, background .15s ease;
}
.video-poster__play::before {
  content: ""; position: absolute; top: 50%; left: 56%; transform: translate(-50%,-50%);
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.video-poster:hover .video-poster__play { transform: translate(-50%,-50%) scale(1.06); background: rgba(79,124,255,.75); }
.video-poster__label {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 1;
  color: #fff; font-size: .82rem; font-weight: 600;
  background: rgba(0,0,0,.5); padding: 4px 12px; border-radius: 999px;
}
.video-frame--ph {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #111626 0 14px, #141a2c 14px 28px);
  color: var(--muted); font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  border: 1px dashed var(--line-2);
}

/* ===== Projects ===== */
.projects {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 600px){ .projects { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px){ .projects { grid-template-columns: repeat(4,1fr); } }
.project {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s var(--ease), border-color .3s;
}
.project:hover { transform: translateY(-4px); border-color: var(--line-2); }
.project h4 { font-size: 1.1rem; }
.project p { font-size: .9rem; color: var(--muted); flex: 1; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 700; color: var(--brand-2); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); padding: 4px 12px; border-radius: 100px; }

/* ===== Demo ===== */
.demo { max-width: var(--maxw); margin: clamp(48px,7vw,72px) auto 0; }
.demo__head, .menu__head { text-align: center; margin-bottom: 28px; }
.demo__head h3, .menu__head h3 { font-size: clamp(1.3rem,4vw,1.8rem); font-weight: 800; }
.demo__head p, .menu__head p { color: var(--muted); margin-top: 8px; font-size: .95rem; }

/* ===== Menu ===== */
.menu { max-width: var(--maxw); margin: clamp(56px,8vw,90px) auto 0; }
.menu__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px){ .menu__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px){ .menu__grid { grid-template-columns: repeat(5,1fr); } }
.menu__cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.menu__cat h5 { font-size: 1rem; margin-bottom: 12px; color: var(--brand-2); }
.menu__cat ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.menu__cat li { font-size: .9rem; color: var(--muted); padding-left: 16px; position: relative; }
.menu__cat li::before { content: "›"; position: absolute; left: 0; color: var(--brand); }

/* ===== News card ===== */
.news-card {
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
  background: linear-gradient(160deg, var(--surface), var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .3s var(--ease), border-color .3s;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.news-card__tag { font-size: .78rem; font-weight: 700; color: var(--muted-2); }
.news-card h4 { font-size: 1.3rem; }
.news-card p { color: var(--muted); font-size: .92rem; }
.news-card__link { color: var(--brand-2); font-weight: 700; font-size: .92rem; margin-top: 4px; }

/* ===== Footer ===== */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer__cta {
  text-align: center; padding: clamp(64px,9vw,110px) 24px;
  max-width: 700px; margin: 0 auto;
}
.footer__cta h2 { font-size: clamp(1.6rem,5vw,2.4rem); font-weight: 800; }
.footer__cta p { color: var(--muted); margin: 14px 0 28px; }
.footer__meta {
  padding: clamp(48px,7vw,72px) clamp(18px,5vw,48px);
  display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center;
}
.footer__brand { font-weight: 800; letter-spacing: .1em; font-size: 1.05rem; }
.footer__logo { height: 30px; display: block; }
.footer__members { font-size: .85rem; color: var(--muted); }
.footer__copy { font-size: .8rem; color: var(--muted-2); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}
