body { background: var(--ink); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 var(--pad);
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,64,122,0.5) 0%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -150px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(44,82,153,0.35) 0%, transparent 68%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}

/* JS(index_test.js)가 순차적으로 페이드인시키는 요소들 — 처음부터 CSS로 숨겨둬야
   "잠깐 보였다가 다시 애니메이션" 되는 깜빡임(FOUC)이 없다. JS가 실패해도
   index_test.js의 gsapReady 폴백이 opacity:1로 되돌리므로 영구히 안 보이는 일은 없다. */
.hero-eyebrow, .hero-title, .hero-sub, .hero-input-wrap, .hero-tags { opacity: 0; }

.hero-eyebrow {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.32); text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero-title {
  font-size: clamp(30px, 3vw, 60px); font-weight: 700; word-break:keep-all;
  color: #2fdf9a; line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.hero-title em { font-style: normal; color: #fff;}
.hero-sub {
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  margin-bottom: 3rem; line-height: 1.5;
}
.hero-input-wrap {
  display: flex; width: 80%; gap: 10px;
}
.hero-input {
  flex: 1; padding:22px;
  border: none; outline: none;
  border-radius: 14px;
  font-family: inherit; font-size: 16px;
  color: var(--ink);
}
.hero-input::placeholder { color: var(--ink-4); }
.hero-btn {
  padding: 22px; border: none; cursor: pointer;
  border-radius: 14px;
  background: #2fdf9a; color: #000;
  font-family: inherit; font-size: 16px; font-weight: 700;
  letter-spacing: 0.03em; white-space: nowrap;
  transition: background 0.2s;
}
.hero-btn:hover { background: #ffe500; }
.hero-btn:disabled { opacity: 0.7; cursor: default; }

/* 진단 폼 에러 메시지 */
.error-box {
  margin-top: 14px; padding: 12px 16px;
  border: 1px solid rgba(255,107,107,0.35);
  background: rgba(255,80,80,0.08);
  border-radius: 10px;
  font-size: 13px; color: #ffb4b4; line-height: 1.6;
  text-align: left;
}

.hero-tags {
  display: flex; margin-top: 2rem;
  flex-wrap: wrap; justify-content: center;
}
.hero-tag { font-size: 12px; color: rgba(255,255,255,0.25); letter-spacing: 0.05em; }
.hero-tag + .hero-tag::before { content: '·'; margin: 0 0.8rem; color: rgba(255,255,255,0.12); }

/* 서브 메뉴 카드 */
.hero-nav {
  display: flex; gap: 16px; margin-top: 4rem;
  flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 2;
}
.hero-nav-card {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  font-size: 13px; font-weight: 500;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
}
.hero-nav-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.hero-nav-card .material-icons { font-size: 16px; color: rgba(255,255,255,0.3); }
.hero-nav-card:hover .material-icons { color: rgba(255,255,255,0.7); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .hero-input-wrap { flex-direction: column; }
  .hero-btn { width: 100%; text-align: center; }
}
@media (max-width: 640px) {
  .hero-nav { gap: 10px; }
  .hero-nav-card { font-size: 12px; padding: 12px 16px; }
}

/* ── 히어로 코드 배경 애니메이션 ── */
.hero-code-bg {
  position: absolute; inset: 40px 0; opacity:.5;
  pointer-events: none; z-index: 1;
  
  overflow: hidden;
  filter: blur(2px);
}
.code-line {
  font-family: 'Courier New', 'Monaco', monospace;
  font-size: clamp(10px, 1vw, 14px); font-weight: 300; line-height: 1.9;
  white-space: pre;
  display: block;
  width: 100%;
}
/* 구문 색상 */
.code-line .c-tag    { color: rgba(150,200,255,0.7); }
.code-line .c-str    { color: rgba(180,255,150,0.7); }
.code-line .c-key    { color: rgba(255,180,100,0.7); }
.code-line .c-val    { color: rgba(255,140,140,0.7); }
.code-line .c-cmt    { color: rgba(120,160,120,0.6); }
.code-line .c-fn     { color: rgba(220,180,255,0.7); }
.code-line .c-num    { color: rgba(100,220,220,0.7); }
.code-line .c-plain  { color: rgba(255,255,255,0.03); }
