/* ================================================================
   GROUND LAB — 스타일
   색상을 바꾸고 싶으면 아래 :root 의 값만 바꾸면 됩니다.
   ================================================================ */
:root {
  --orange: #ff6a13;        /* 메인 오렌지 */
  --orange-2: #ff9447;      /* 밝은 오렌지 (그라데이션) */
  --orange-deep: #d9500a;   /* 진한 오렌지 */
  --ink: #121110;           /* 검정 */
  --ink-2: #1d1a18;
  --paper: #fbf8f3;         /* 밝은 배경 */
  --white: #ffffff;
  --muted: #6f6a64;
  --line: rgba(18, 17, 16, 0.1);

  --display: "Anton", "Pretendard Variable", Pretendard, sans-serif;
  --body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; color: var(--orange); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange-2), var(--orange) 55%, var(--orange-deep));
  color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(255, 106, 19, .65);
}
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(255, 106, 19, .8); }
.btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .28);
}
.btn-ghost:hover { border-color: var(--white); }
.btn-block { width: 100%; }

/* ───────── 상단 메뉴 ───────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: rgba(18, 17, 16, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  font-family: var(--display);
  font-size: 24px; letter-spacing: .02em;
  color: var(--white);
}
.logo span { color: var(--orange); margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 28px; color: rgba(255,255,255,.8); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--orange); color: var(--white) !important;
}
.nav-member { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: var(--white) !important; }

/* ───────── 첫 화면 ───────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--ink);
  color: var(--white);
  padding: 110px 0 90px;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 85% 30%, rgba(255, 106, 19, .38), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(255, 148, 71, .18), transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 48px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--orange-2);
  margin-bottom: 22px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255,106,19,.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(255,106,19,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,106,19,0); }
}
.hero-display {
  font-family: var(--display);
  font-size: clamp(64px, 11vw, 156px);
  line-height: .9; letter-spacing: .005em;
  text-transform: uppercase;
}
.hero-display span {
  background: linear-gradient(100deg, var(--orange-2), var(--orange) 45%, var(--orange-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title {
  margin-top: 26px;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800; line-height: 1.3; letter-spacing: -.02em;
}
.hero-sub {
  margin-top: 14px; max-width: 520px;
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255,255,255,.7);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li {
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* 타바타 타이머 */
.timer { display: block; position: relative; width: min(100%, 340px); aspect-ratio: 1; justify-self: center; transition: transform .2s ease; }
.timer:hover { transform: scale(1.03); }
.timer-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 10; }
.timer-bar {
  fill: none; stroke: var(--orange); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke .3s ease;
  filter: drop-shadow(0 0 12px rgba(255,106,19,.6));
}
.timer.is-rest .timer-bar { stroke: rgba(255,255,255,.55); filter: none; }
.timer-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.timer-phase { font-weight: 800; letter-spacing: .3em; font-size: 14px; color: var(--orange-2); }
.timer.is-rest .timer-phase { color: rgba(255,255,255,.6); }
.timer-sec { font-family: var(--display); font-size: clamp(72px, 9vw, 112px); line-height: 1; margin: 6px 0; font-variant-numeric: tabular-nums; }
.timer-round { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: rgba(255,255,255,.45); }

.hero-bg-word {
  position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%);
  font-family: var(--display); font-size: 22vw; line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06);
  pointer-events: none; user-select: none;
}

/* ───────── 흐르는 띠 ───────── */
.marquee {
  background: var(--orange);
  color: var(--white);
  overflow: hidden; padding: 16px 0;
  transform: rotate(-1.2deg) scale(1.03);
  margin-top: -18px; position: relative; z-index: 2;
  box-shadow: 0 10px 30px -10px rgba(255,106,19,.6);
}
.marquee-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  font-family: var(--display); font-size: clamp(22px, 3vw, 34px); letter-spacing: .02em;
  animation: marquee 26s linear infinite;
}
.marquee-track i { font-style: normal; font-size: .6em; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── 섹션 공통 ───────── */
section { scroll-margin-top: 60px; }
.section-head { margin-bottom: 48px; }
.kicker {
  font-family: var(--display); letter-spacing: .08em;
  font-size: 16px; color: var(--orange);
  margin-bottom: 12px;
}
.section-head h2, .contact h2 {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 800; line-height: 1.2; letter-spacing: -.03em;
}

/* ───────── 소개 ───────── */
.about { padding: 130px 0 100px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 34px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(18,17,16,.25); }
.feature-num { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--orange); }
.feature h3 { margin: 20px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.feature p { color: var(--muted); font-size: 15.5px; }

/* ───────── 수업 & 가격 ───────── */
.classes { padding: 40px 0 130px; }
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.class-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 30px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.class-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(18,17,16,.35); }
.class-card.is-dark {
  background: var(--ink); color: var(--white); border-color: transparent;
}
.class-card.is-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 100% 0%, rgba(255,106,19,.35), transparent 70%);
}
.class-card > * { position: relative; }
.class-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.class-num { font-family: var(--display); font-size: 18px; color: var(--muted); }
.is-dark .class-num { color: rgba(255,255,255,.45); }
.badge {
  padding: 5px 12px; border-radius: 999px;
  background: var(--orange); color: var(--white);
  font-size: 12px; font-weight: 800; letter-spacing: .06em;
}
.class-en { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.4vw, 42px); line-height: 1; letter-spacing: .01em; }
.class-name { margin-top: 8px; font-weight: 700; color: var(--orange); }
.class-desc { margin-top: 14px; font-size: 15px; color: var(--muted); }
.is-dark .class-desc { color: rgba(255,255,255,.68); }

.class-meta { margin: 24px 0 26px; border-top: 1px solid var(--line); }
.is-dark .class-meta { border-color: rgba(255,255,255,.12); }
.class-meta div {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.is-dark .class-meta div { border-color: rgba(255,255,255,.12); }
.class-meta dt { color: var(--muted); }
.is-dark .class-meta dt { color: rgba(255,255,255,.5); }
.class-meta dd { font-weight: 700; }
.level { display: inline-flex; gap: 4px; }
.level i { width: 16px; height: 6px; border-radius: 3px; background: rgba(18,17,16,.12); }
.is-dark .level i { background: rgba(255,255,255,.15); }
.level i.on { background: var(--orange); }

.class-price { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.class-price strong { font-size: clamp(26px, 2.6vw, 32px); font-weight: 900; letter-spacing: -.03em; }
.class-price span { font-size: 14px; font-weight: 600; color: var(--muted); }
.is-dark .class-price span { color: rgba(255,255,255,.55); }

.class-cta { margin-top: 22px; width: 100%; }

/* 수업이 1개일 때: 넓은 가로형 카드 */
.class-grid.is-single { grid-template-columns: 1fr; }
.is-single .class-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: auto auto auto 1fr;
  column-gap: 64px;
  padding: 48px 52px;
}
.is-single .class-top, .is-single .class-en, .is-single .class-name, .is-single .class-desc { grid-column: 1; }
.is-single .class-en { font-size: clamp(44px, 5vw, 64px); }
.is-single .class-desc { font-size: 16.5px; max-width: 480px; }
.is-single .class-meta { grid-column: 2; grid-row: 1 / 4; margin: 0; align-self: start; }
.is-single .class-price { grid-column: 2; grid-row: 4; align-self: end; margin-top: 28px; }
.is-single .class-cta { grid-column: 2; grid-row: 5; }
.is-single .class-price strong { font-size: clamp(30px, 3vw, 40px); }

/* ───────── 문의 ───────── */
.contact {
  position: relative; overflow: hidden;
  padding: 120px 0;
  background: linear-gradient(140deg, var(--orange-2) 0%, var(--orange) 45%, var(--orange-deep) 100%);
  color: var(--white);
  text-align: center;
}
.contact::after {
  content: "MOVE"; position: absolute; right: -2vw; bottom: -6vw;
  font-family: var(--display); font-size: 26vw; line-height: 1;
  color: rgba(255,255,255,.08); pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; }
.kicker-dark { color: var(--ink); }
.contact-sub { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,.88); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.contact-actions .btn { height: 62px; padding: 0 32px; font-size: 17px; min-width: 240px; }
.btn-insta { background: var(--ink); color: var(--white); box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.btn-kakao { background: #fee500; color: #191600; box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); }
.btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ───────── 하단 ───────── */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 44px 0 110px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.footer-insta { color: var(--white); font-weight: 600; }
.footer-insta:hover { color: var(--orange-2); }
.footer-about { order: 3; flex-basis: 100%; font-size: 12.5px; line-height: 1.8; color: rgba(255,255,255,.45); word-break: keep-all; }
.footer-about a { text-decoration: underline; }
.footer-copy { order: 4; }

/* ───────── 모바일 하단 고정 버튼 ───────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(251,248,243,1) 60%, rgba(251,248,243,0));
  transform: translateY(110%); transition: transform .3s ease;
  display: none;
}
.sticky-cta.is-visible { transform: translateY(0); }

/* ───────── 등장 애니메이션 ───────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ───────── 반응형 ───────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .timer { width: 240px; justify-self: start; }
  .features, .class-grid { grid-template-columns: 1fr; }
  .class-grid { max-width: 560px; }
  .is-single .class-card { display: flex; padding: 32px 28px 30px; }
  .is-single .class-meta { margin: 24px 0 26px; align-self: stretch; }
  .is-single .class-price { align-self: stretch; margin-top: auto; }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta):not(.nav-member) { display: none; }
  .nav-links { gap: 8px; }
  .nav-member, .nav-cta { padding: 7px 14px; font-size: 14px; }
  .hero { padding: 100px 0 70px; align-items: flex-start; }
  .hero-actions .btn { flex: 1 1 100%; }
  .timer { display: none; }
  .about { padding: 100px 0 70px; }
  .classes { padding: 20px 0 90px; }
  .contact { padding: 90px 0; }
  .contact-actions .btn { width: 100%; min-width: 0; }
  .sticky-cta { display: block; }
}

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