/* ============================================================
   STUDYCUBE — main.css
   ------------------------------------------------------------
   디자인 토큰 → 글로벌 → 헤더 → 히어로 → 섹션별
   페이지 수정은 각 섹션 블록 단위로만 손대도 충돌 없음.
============================================================ */

/* ===== 1. DESIGN TOKENS ===== */
:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-2: #f4f4f5;
  --ink: #0a0a0a;
  --ink-2: #3f3f46;
  --ink-3: #52525b;
  --muted: #737380;
  --line: #ececec;
  --line-2: #f4f4f5;

  --brand: #0a0a0a;        /* 메인 브랜드 컬러 (블랙 베이스) */
  --accent: #dc2626;       /* 강조 (레드) */
  --blue: #2563eb;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --purple: #7c3aed;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(10,10,10,.04);
  --shadow: 0 4px 16px rgba(10,10,10,.06);
}

/* ===== 2. GLOBAL ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Pretendard', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { margin: 0; letter-spacing: -.02em; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== 3. BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}
.btn-lg svg { width: 20px; height: 20px; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1a1a1a; }

.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

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

.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn-outline:hover { border-color: #fff; }

.btn-text { color: var(--ink-2); font-weight: 500; padding: 10px 6px; }
.btn-text:hover { color: var(--ink); }

/* ===== 4. HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
}
.brand-mark {
  display: inline-block;
  width: 28px; height: 28px;
  background: url('../img/cube.png') no-repeat center / contain;
}
.brand-light .brand-mark {
  filter: invert(1) brightness(2);
}
.brand-name { font-weight: 700; }

.site-nav ul {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--ink-2);
}
/* 상단 항목(링크·드롭다운 버튼) 같은 라인에 정렬 */
.site-nav > ul { align-items: center; }
.site-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
}
.site-nav a {
  position: relative;
  padding: 6px 0;
  font-weight: 500;
  transition: color .15s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--accent);
  height: 2.5px;
}

/* ===== 드롭다운 내비게이션 ===== */
.has-dropdown { position: relative; }
.nav-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .15s;
}
.nav-top:hover,
.has-dropdown:hover .nav-top { color: var(--ink); }
.caret {
  width: 6px; height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .2s ease;
}
.has-dropdown:hover .caret,
.has-dropdown.open .caret { transform: rotate(-135deg); margin-top: 2px; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 188px;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(10,10,10,.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 60;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.dropdown li { width: 100%; }
.dropdown a {
  display: block;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--surface-2); color: var(--ink); }
.dropdown a.active {
  color: var(--accent);
  font-weight: 700;
  background: rgba(220,38,38,.06);
}
.has-dropdown.is-current .nav-top { color: var(--ink); font-weight: 700; }
.site-nav a.active { color: var(--ink); font-weight: 700; }
.site-nav a.active::after { transform: scaleX(1); background: var(--accent); height: 2.5px; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
}

/* ===== 5. HERO ===== */
.hero {
  padding: 0 0 56px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fafafb 0%, #ffffff 100%);
}
.hero-inner { position: relative; }
/* full-bleed 히어로 — 화면 양쪽 끝까지, 라운드 없음 */
.hero-grid {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 520px;
  margin-bottom: 40px;
  isolation: isolate;
  background: linear-gradient(135deg, #1f1f1f, #0a0a0a);
  display: flex;
  align-items: center;
}
.hero-grid-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-text {
  position: relative;
  z-index: 2;
  padding: 96px 0;
  max-width: 720px;
  color: #fff;
}
.hero-text .hero-title { color: #fff; }
.hero-text .hero-sub { color: rgba(255,255,255,0.9); }
.hero-text .hero-tag {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
}
.hero-text .btn-primary {
  background: #fff;
  color: var(--ink);
}
.hero-text .btn-primary:hover {
  background: #f4f4f5;
}
.hero-text .btn-text { color: rgba(255,255,255,0.9); }
.hero-text .btn-text:hover { color: #fff; }
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== D-DAY (배경 박스 없음, 텍스트만) ===== */
.dday-badge {
  position: absolute;
  top: 36px;
  right: 32px;
  z-index: 10;
  text-align: right;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.55);
}
.dday-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255,255,255,.8);
  margin-bottom: 5px;
}
.dday-num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
  margin-bottom: 7px;
}
.dday-num span {
  color: inherit;
}
.dday-date {
  font-size: 11px;
  color: rgba(255,255,255,.75);
  letter-spacing: .02em;
}
@media (max-width: 768px) {
  .dday-badge {
    top: 20px;
    right: 20px;
  }
  .dday-num { font-size: 28px; }
}
@media (max-width: 768px) {
  .hero-grid { min-height: 440px; }
  .hero-text { padding: 64px 0; }
  .hero-image::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 100%);
  }
}

/* ===== 서브페이지 히어로(about-hero)도 메인처럼 화면 양끝 풀블리드 ===== */
.about-hero .hero-inner { padding: 0; max-width: none; width: 100%; }
.about-hero .hero-grid {
  width: 100%;
  margin: 0;
  border-radius: 0;
}
/* 텍스트는 본문 칼럼(좌측)에 맞춰 정렬 */
.about-hero .hero-text {
  margin-left: max(32px, calc(50% - 558px));
  margin-right: 32px;
}
@media (max-width: 768px) {
  .about-hero .hero-text { margin-left: 20px; margin-right: 20px; }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  50% { opacity: .4; }
}

.hero-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: 0 0 20px;
  max-width: 880px;
}
.hero-accent {
  background: linear-gradient(120deg, #dc2626, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 0 28px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.hero-stats .stat {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}
.hero-stats .stat:last-child { border-right: none; }
.stat-v {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.stat-u {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
}
.stat-k {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}

/* ===== 6. SECTIONS GENERIC ===== */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}
.section-head.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head.split > div { max-width: 720px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.15;
  margin: 0 0 14px;
}
.section-head p {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.65;
}
.link-more {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.link-more:hover { color: var(--ink); }

/* ===== 7. WHY GRID ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.why-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  transition: border-color .15s, transform .2s ease;
}
.why-image {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin: -4px -4px 18px;
  background: #fafafb;
}
.why-image svg {
  width: 100%;
  height: 100%;
  display: block;
}
.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .4s ease;
}
.why-card:hover .why-image img {
  transform: scale(1.04);
}
.why-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
/* why-header: 번호 + 제목 한 줄 */
.why-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  color: #fff;
}
.why-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.3;
}
/* 구 클래스 제거 대비 */
.why-icon { display: none; }
.why-card > h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
.why-card > p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 18px;
  line-height: 1.65;
}
.why-list li {
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 8px 0;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.why-list li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}

/* ===== 8. COURSES ===== */
.section-courses { background: var(--surface); }
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.course-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.course-grade {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.badge-blue   { background: #fef2f2; color: #1d4ed8; }
.badge-green  { background: #ecfdf5; color: #047857; }
.badge-orange { background: #fffbeb; color: #b45309; }
.badge-purple { background: #f5f3ff; color: #6d28d9; }

.course-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -.018em;
}
.course-card > p {
  font-size: 15.5px;
  color: var(--ink-2);
  margin: 0 0 18px;
  line-height: 1.65;
}
.course-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line-2);
  padding-top: 14px;
}
.course-info > div { display: flex; flex-direction: column; gap: 4px; }
.course-info dt {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin: 0;
}
.course-info dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}

/* ===== 9. TEACHERS ===== */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.teacher-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  background: #fff;
  transition: transform .2s ease, border-color .15s;
}
.teacher-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}
.teacher-photo {
  width: 84px; height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4f4f5, #e4e4e7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -.02em;
}
.teacher-subj {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.teacher-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.teacher-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ===== 9-A. STUDY SYSTEM ===== */
.section-system { background: var(--surface); }
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.system-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .15s, box-shadow .2s ease;
}
.system-card {
  cursor: pointer;
}
.system-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
/* 클릭 선택 상태 */
.system-card.active {
  border-color: var(--accent);
  border-width: 2px;
  background: #fff8f8;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(220,38,38,.12);
}
.system-card.active .sys-step {
  color: var(--accent);
}
/* 다른 카드 선택 시 나머지 흐리게 */
.system-grid.has-active .system-card:not(.active) {
  opacity: .5;
  transform: none;
}
.sys-step {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.system-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -.018em;
}
.system-card p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.65;
}

/* ===== 9-B. MENTORING ===== */
.mentor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mentor-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .2s ease;
}
.mentor-card {
  cursor: pointer;
}
.mentor-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
/* 클릭 선택 상태 */
.mentor-card.active {
  border-color: var(--accent);
  border-width: 2px;
  background: #fff8f8;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(220,38,38,.12);
}
.mentor-card.active .mentor-tag {
  background: var(--accent);
  color: #fff;
}
/* 다른 카드가 선택됐을 때 나머지 카드 살짝 흐리게 */
.mentor-grid.has-active .mentor-card:not(.active) {
  opacity: .55;
  transform: none;
}
.mentor-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  background: #fef2f2;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.mentor-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.mentor-card > p {
  font-size: 15.5px;
  color: var(--ink-2);
  margin: 0 0 22px;
  line-height: 1.65;
}
.mentor-list {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  list-style: none;
}
.mentor-list li {
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mentor-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 14px;
}

/* ===== 10. PROCESS (DAILY ROUTINE) ===== */
.section-process { background: var(--surface-2); overflow: hidden; }

/* ===== 일과 가로 컨베이어 (드래그 스크롤) — 모노크롬, 보더리스 ===== */
.routine-marquee {
  position: relative;
  width: 100%;
  margin-top: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.routine-marquee::-webkit-scrollbar { display: none; }
.routine-marquee.dragging { cursor: grabbing; }
.routine-track {
  display: flex;
  width: max-content;
  padding: 14px 0;
  margin: 0;
  list-style: none;
}

.routine-card {
  flex: 0 0 268px;
  width: 268px;
  margin-right: 18px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 1px 2px rgba(10,10,10,.04), 0 10px 28px rgba(10,10,10,.05);
  transition: transform .28s ease, box-shadow .28s ease;
}
.routine-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(10,10,10,.06), 0 22px 48px rgba(10,10,10,.12);
}
.routine-marquee.dragging .routine-card { transform: none; }
/* 아이콘 — 배경 박스 없이 검은 아이콘 */
.routine-icon {
  display: inline-flex;
  color: #0a0a0a;
  margin-bottom: 18px;
}
.routine-icon svg { width: 30px; height: 30px; }
.routine-time {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 9px;
}
.routine-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.routine-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f1f1f2;
  color: #6b6b73;
}
.routine-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ===== 11. REVIEWS ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-quote {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 22px;
  letter-spacing: -.01em;
}
.review-meta {
  font-size: 14px;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.review-meta strong {
  color: var(--ink);
  font-weight: 700;
  margin-right: 4px;
}

/* ===== 12. CTA ===== */
.cta {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  right: -160px; top: -160px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(124,58,237,.35), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta::after {
  content: "";
  position: absolute;
  left: -160px; bottom: -200px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(37,99,235,.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cta-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
.cta-text h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.cta-text p {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.cta-actions .btn {
  justify-content: center;
}

/* ===== 13. FOOTER ===== */
.site-footer {
  background: #0a0a0a;
  color: rgba(255,255,255,.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-light { color: #fff; }
.footer-tagline {
  margin-top: 14px;
  font-size: 14.5px;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  max-width: 280px;
}
.site-footer h5 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.footer-links li {
  font-size: 14.5px;
  color: rgba(255,255,255,.65);
  padding: 5px 0;
}
.footer-links a {
  color: rgba(255,255,255,.7);
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal {
  display: flex;
  gap: 18px;
}
.footer-legal a:hover { color: #fff; }

/* ===== 14. RESPONSIVE ===== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .system-grid { grid-template-columns: repeat(2, 1fr); }
  .mentor-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .site-nav, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .site-nav {
    display: block;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
  }
  body.nav-open .site-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  body.nav-open .site-nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line-2);
  }
  /* 모바일 드롭다운 — 탭하면 인라인으로 펼침 */
  .has-dropdown { position: static; }
  .nav-top {
    width: 100%;
    justify-content: space-between;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line-2);
  }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: max-height .26s ease;
  }
  .dropdown::before { display: none; }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { transform: none; max-height: 0; }
  .has-dropdown.open .dropdown { transform: none; max-height: 380px; }

  .hero { padding: 56px 0 48px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .hero-stats .stat:nth-child(even) { border-right: none; }
  .hero-stats .stat:nth-child(1),
  .hero-stats .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  .section { padding: 64px 0; }
  .why-grid, .course-grid, .teacher-grid, .system-grid, .mentor-grid, .review-grid { grid-template-columns: 1fr; }
  .routine-card { flex-basis: 232px; width: 232px; padding: 24px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .cta-inner { grid-template-columns: 1fr; padding: 56px 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
