/* ============================================================
   제로원 바이브코딩 — 공통 스타일
   ============================================================ */

:root {
  --bg:        #08090D;
  --bg-2:      #0D0F16;
  --surface:   #12151F;
  --surface-2: #181C29;
  --line:      #232839;
  --line-2:    #2E3448;

  --text:      #E8EBF2;
  --text-2:    #A2A9BC;
  --text-3:    #6C7489;

  --accent:    #00E0B8;
  --accent-2:  #6C8CFF;
  --accent-dim:rgba(0, 224, 184, 0.12);
  --warn:      #FFB454;
  --danger:    #FF6B6B;

  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1120px;

  --shadow:    0 8px 32px rgba(0,0,0,.45);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

h1, h2, h3, h4 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.hide { display: none !important; }

/* ---------- 헤더 ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,9,13,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -0.03em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121A; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
}
/* 마스코트 이미지를 쓸 때는 그라데이션 배경 대신 이미지 자체를 보여줍니다. */
img.logo-mark { background: none; object-fit: cover; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--text); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #04121A; }
.btn-primary:hover:not(:disabled) { background: #2BEFCB; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--text-3); background: var(--surface); }
.btn-google { background: #fff; color: #1F1F1F; }
.btn-google:hover:not(:disabled) { background: #F1F3F4; }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 13px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255,107,107,.35); }

/* ---------- 섹션 ---------- */
.sec { padding: 96px 0; }
.sec-alt { background: var(--bg-2); }
.sec-head { margin-bottom: 44px; max-width: 720px; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  color: var(--accent); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.sec-head p { color: var(--text-2); margin: 14px 0 0; font-size: 16.5px; }

/* ---------- 히어로 ---------- */
.hero { position: relative; padding: 108px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto -10%;
  height: 620px; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 30% 40%, rgba(0,224,184,.13), transparent 70%),
              radial-gradient(ellipse 45% 45% at 75% 25%, rgba(108,140,255,.11), transparent 70%);
}
.hero-in { position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13px; color: var(--text-2); margin-bottom: 24px;
}
.badge b { color: var(--accent); font-weight: 600; }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px); font-weight: 800;
  letter-spacing: -0.035em; max-width: 15ch;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  color: var(--text-2); font-size: clamp(16px, 2vw, 18.5px);
  margin: 22px 0 34px; max-width: 52ch;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-stats div strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.hero-stats div span { color: var(--text-3); font-size: 13.5px; }

/* ---------- 카드 ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.card p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* 강의 카드 */
.course-card { display: flex; flex-direction: column; gap: 18px; }
.course-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.lv {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  font-family: var(--mono);
}
.lv-1 { background: var(--accent-dim); color: var(--accent); }
.lv-2 { background: rgba(108,140,255,.14); color: var(--accent-2); }
.course-card h3 { font-size: 22px; margin: 0; }
.course-meta { display: flex; gap: 16px; color: var(--text-3); font-size: 13.5px; flex-wrap: wrap; }
.price { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.price s { color: var(--text-3); font-size: 15px; }

/* ---------- 커리큘럼 ---------- */
.lesson-list { display: flex; flex-direction: column; gap: 10px; }
.lesson {
  display: flex; align-items: center; gap: 16px;
  padding: 17px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s;
}
.lesson:hover { border-color: var(--line-2); }
.lesson-no {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--accent); min-width: 30px;
}
.lesson-body { flex: 1; min-width: 0; }
.lesson-body h4 { font-size: 15.5px; font-weight: 600; }
.lesson-body p { margin: 4px 0 0; color: var(--text-3); font-size: 13.5px; }
.lesson-tag {
  font-size: 12px; padding: 4px 10px; border-radius: 7px;
  background: var(--surface-2); color: var(--text-3); font-family: var(--mono);
}
.lesson-tag.free { background: var(--accent-dim); color: var(--accent); }
.lesson.locked { opacity: .72; }
.lesson.playable { cursor: pointer; }
.lesson.playable:hover { border-color: var(--accent); }

/* ---------- 준비물 ---------- */
.kit { display: flex; flex-direction: column; gap: 12px; }
.kit-row { display: flex; gap: 13px; align-items: flex-start; }
.kit-ico {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-dim); color: var(--accent);
  display: grid; place-items: center; font-size: 13px; margin-top: 2px;
}
.kit-row div strong { font-size: 15px; font-weight: 600; display: block; }
.kit-row div span { color: var(--text-2); font-size: 14px; }

/* ---------- 비디오 ---------- */
.video-box {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
}
.video-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--text-3); font-size: 14.5px; text-align: center; padding: 20px;
}
/* 수강생 식별 워터마크 — 무단 배포 억제용 */
.wmark {
  position: absolute; pointer-events: none; z-index: 5;
  font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.34);
  text-shadow: 0 1px 3px rgba(0,0,0,.9); letter-spacing: .04em;
  transition: opacity .4s;
}

/* ---------- 자랑방 / 결과물 ---------- */
.show-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.show-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.show-thumb { aspect-ratio: 16/10; background: var(--surface-2); object-fit: cover; width: 100%; }
.show-body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.show-body h4 { font-size: 16px; font-weight: 700; }
.show-body p { color: var(--text-2); font-size: 14px; margin: 0; flex: 1; }
.show-by { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-3); }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); }

/* ---------- 후기 ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.quote p { color: var(--text); font-size: 15px; margin: 0; line-height: 1.75; }
.stars { color: var(--warn); font-size: 14px; letter-spacing: 2px; }

/* ---------- 폼 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea, .field select {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-size: 15px; font-family: inherit;
  width: 100%; transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.field small { color: var(--text-3); font-size: 12.5px; }
.field textarea { resize: vertical; min-height: 110px; }

/* ---------- 알림 ---------- */
.note {
  padding: 15px 18px; border-radius: var(--radius); font-size: 14.5px;
  border: 1px solid var(--line-2); background: var(--surface);
  display: flex; gap: 11px; align-items: flex-start;
}
.note-ok { border-color: rgba(0,224,184,.3); background: var(--accent-dim); }
.note-warn { border-color: rgba(255,180,84,.3); background: rgba(255,180,84,.09); }
.note-err { border-color: rgba(255,107,107,.3); background: rgba(255,107,107,.09); }

.pill { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; font-weight: 600; font-family: var(--mono); }
.pill-ok { background: var(--accent-dim); color: var(--accent); }
.pill-wait { background: rgba(255,180,84,.14); color: var(--warn); }
.pill-no { background: rgba(255,107,107,.13); color: var(--danger); }

/* ---------- 테이블 ---------- */
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-2); color: var(--text-3); font-weight: 600; font-size: 13px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* ---------- 모달 ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(4,5,8,.78);
  backdrop-filter: blur(6px); z-index: 200;
  display: grid; place-items: center; padding: 20px;
}
.modal {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); padding: 32px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow);
}
.modal h3 { font-size: 21px; margin-bottom: 10px; }
.modal p { color: var(--text-2); font-size: 14.5px; margin: 0 0 22px; }

/* ---------- 푸터 ---------- */
.ftr { border-top: 1px solid var(--line); padding: 48px 0 60px; background: var(--bg-2); }
.ftr-in { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.ftr p { color: var(--text-3); font-size: 13.5px; margin: 10px 0 0; max-width: 40ch; }
.ftr-links { display: flex; gap: 30px; flex-wrap: wrap; }
.ftr-col h5 { font-size: 13px; color: var(--text-3); margin: 0 0 12px; font-weight: 600; }
.ftr-col a { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.ftr-col a:hover { color: var(--text); }
.ftr-legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }

/* ---------- 로딩 ---------- */
.spin {
  width: 18px; height: 18px; border: 2px solid var(--line-2);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center-load { display: grid; place-items: center; padding: 80px 0; gap: 14px; color: var(--text-3); }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .g3, .g4, .show-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 14px; }
  .nav .nav-hide { display: none; }
}
@media (max-width: 620px) {
  .sec { padding: 64px 0; }
  .g2, .g3, .g4, .show-grid { grid-template-columns: 1fr; }
  .hero { padding: 68px 0 60px; }
  .hero-stats { gap: 26px; }
  .card { padding: 22px; }
}
