/* ===========================================================
   monthly-ai.com — 첫 페이지
   색·폰트는 2기 모집 사이트(hello-ClaudeCode/sites/season2)와 같은 값.
   =========================================================== */

:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-alt: #11151a;
  --bg-card: #161b22;
  --bg-card-hover: #1d242d;
  --border: #232a33;
  --border-strong: #2e3742;
  --text: #e7eaee;
  --text-soft: #c5cdd7;
  --text-mute: #9aa4b1;
  --accent: #d97757;
  --accent-strong: #e88a6c;
  --accent-glow: rgba(217, 119, 87, 0.18);
  --good: #6ee7b7;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }

.container { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand-mark { color: var(--accent); font-size: 22px; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.nav { display: flex; gap: 28px; font-size: 15px; color: var(--text-mute); }
.nav a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero {
  padding-block: 104px 96px;
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 119, 87, 0.13), transparent 48%),
    radial-gradient(circle at 90% 100%, rgba(110, 130, 200, 0.09), transparent 50%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero-kicker {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 24px;
}
.hero-title .accent {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 18px; color: var(--text-soft); max-width: 34em; margin: 0 0 36px; }
.hero-sub strong { color: var(--text); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #1a0c05; box-shadow: 0 8px 24px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text-mute); }

/* ===== 월별 레일 ===== */
.rail {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: relative;
  display: grid;
  gap: 14px;
}
.rail::before {
  content: '';
  position: absolute;
  left: 76px;
  top: 28px;
  bottom: 28px;
  border-left: 1px dashed var(--border-strong);
}
.rail-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 20px 18px 0;
}
.rail-item::before {
  content: '';
  position: absolute;
  left: 71px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
}
.rail-month {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-mute);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rail-body { display: grid; gap: 2px; padding-left: 4px; }
.rail-title { font-weight: 700; font-size: 17px; }
.rail-desc { font-size: 14px; color: var(--text-mute); line-height: 1.5; }

.rail-now {
  background: radial-gradient(120% 140% at 0% 50%, rgba(217, 119, 87, 0.12), transparent 65%), var(--bg-card);
  border: 1px solid rgba(217, 119, 87, 0.45);
  border-radius: 14px;
}
.rail-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-glow); }
.rail-now .rail-month { color: var(--accent-strong); }
.rail-monthly::before { border-color: var(--accent); border-style: dashed; }
.rail-monthly .rail-month { color: var(--text); font-family: inherit; font-weight: 700; }

/* ===== Pills ===== */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--border-strong);
  color: var(--text-mute);
}
.pill-live { background: var(--accent); border-color: var(--accent); color: #1a0c05; }
.pill-free { border-color: rgba(110, 231, 183, 0.35); color: var(--good); }
.pill-soon { border-color: rgba(217, 119, 87, 0.45); color: var(--accent-strong); background: var(--accent-glow); }

/* ===== Sections ===== */
.section { padding-block: 88px; border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 40px; max-width: 40em; }
.section-head h2, .community h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.section-head p { margin: 0; color: var(--text-mute); font-size: 16px; }

/* ===== 기수 ===== */
.cohort-list { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.cohort {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: grid;
  gap: 18px;
}
.cohort-current {
  border-color: var(--accent);
  background: radial-gradient(120% 130% at 50% 0%, rgba(217, 119, 87, 0.12) 0%, transparent 60%), var(--bg-card);
}
.cohort-top { display: flex; align-items: center; gap: 12px; }
.cohort-no { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-strong); }
.cohort:not(.cohort-current) .cohort-no { color: var(--text-soft); }
.cohort h3 { margin: 0; font-size: 20px; line-height: 1.4; }
.cohort-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.cohort-meta div { display: grid; gap: 2px; }
.cohort-meta dt { font-size: 12px; color: var(--text-mute); letter-spacing: 0.08em; }
.cohort-meta dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cohort-note { margin: 0; font-size: 14px; color: var(--text-mute); }

.cohort-links { display: grid; gap: 10px; }
.link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.link-row span:first-child { display: grid; gap: 2px; }
.link-row strong { font-size: 16px; }
.link-row small { font-size: 13px; color: var(--text-mute); }
.link-row .arrow { color: var(--text-mute); font-size: 18px; transition: transform 0.15s ease; }
.link-row:hover { border-color: var(--text-mute); background: var(--bg-card-hover); }
.link-row:hover .arrow { transform: translateX(3px); color: var(--text); }
.link-primary { border-color: rgba(217, 119, 87, 0.5); }
.link-primary .arrow { color: var(--accent-strong); }

/* ===== 커뮤니티 ===== */
.community { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.community-copy .pill { margin-bottom: 16px; }
.community-copy p { color: var(--text-soft); font-size: 16px; max-width: 32em; margin: 0 0 14px; }
.community-copy strong { color: var(--text); }
.community-copy .community-note { color: var(--text-mute); font-size: 14px; }

.channels {
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  padding: 20px;
  opacity: 0.8;
}
.channels-head { font-family: var(--mono); font-size: 12px; color: var(--text-mute); margin-bottom: 10px; }
.channels ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.channels li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-soft);
}
.channels li:first-child { background: var(--bg-card); }
.channels .hash { font-family: var(--mono); color: var(--accent); margin-right: -4px; }
.channels small { font-weight: 400; font-size: 13px; color: var(--text-mute); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding-block: 28px; font-size: 13px; color: var(--text-mute); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-mono { font-family: var(--mono); }

/* ===== 반응형 ===== */
@media (max-width: 900px) {
  .hero-grid, .cohort-list, .community { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .community { gap: 32px; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .hero { padding-block: 64px 56px; }
  .section { padding-block: 64px; }
  .nav { gap: 18px; }
  .rail::before { left: 58px; }
  .rail-item { grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding-right: 14px; }
  .rail-item::before { left: 53px; }
  .rail-month { font-size: 12px; }
  .rail-item .pill { grid-column: 2; justify-self: start; margin-left: 4px; }
  .cohort { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .link-row, .link-row .arrow { transition: none; }
}
