/* =========================================================
   화도진티비 (hwadojintv) — 공식 홈페이지 스타일
   작성: 최바롬 수석비서관 · 2026-12-04
   색: 잉크 블랙 + 네온 레드/마젠타 (로고 색상 기준)
   ========================================================= */

:root {
  --ink: #08090d;
  --ink-2: #0d0f16;
  --card: #12151e;
  --card-2: #171b26;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f4f9;
  --muted: #9aa4b8;
  --muted-2: #78839a;
  --red: #ff4438;
  --red-soft: #ff6b5f;
  --magenta: #ff2e7e;
  --amber: #ffc266;
  --grad: linear-gradient(100deg, var(--red) 0%, #ff3a52 45%, var(--magenta) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --header-h: 72px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff;
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 200;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 공통 타이포 ---------- */
h1, h2, h3, h4 {
  line-height: 1.32;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.16rem; }
p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-soft);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.lead { color: var(--muted); font-size: 1.06rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 58, 82, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(255, 46, 126, 0.38); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--red-soft); background: rgba(255, 68, 56, 0.08); }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- 헤더 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand img {
  height: 40px;
  width: auto;
}
.brand span {
  display: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 68, 56, 0.14); }
.nav .btn { margin-left: 8px; padding: 10px 20px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 19px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 130%;
  background:
    radial-gradient(45% 40% at 88% 22%, rgba(255, 46, 126, 0.17), transparent 70%),
    radial-gradient(40% 38% at 18% 8%, rgba(255, 68, 56, 0.16), transparent 72%),
    radial-gradient(60% 50% at 50% 110%, rgba(38, 44, 66, 0.55), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.hero-copy { max-width: 620px; }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.14rem); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
/* 로고 뒤에 부드러운 어두운 후광 — 로고 PNG의 그림자 영역이 배경과 이어지도록 */
.hero-art::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  background: radial-gradient(closest-side,
      rgba(6, 7, 10, 0.96) 0%,
      rgba(6, 7, 10, 0.82) 52%,
      rgba(6, 7, 10, 0) 78%);
  pointer-events: none;
}
.hero-art img {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  height: auto;
  filter: drop-shadow(0 18px 44px rgba(255, 46, 126, 0.28));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}
.chips li {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 13px;
  border-radius: 999px;
}
.chips li b { color: var(--text); font-weight: 700; }

/* ---------- 섹션 ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { margin: 14px 0 14px; }
.section-head p { color: var(--muted); }

/* ---------- 카드 그리드 ---------- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}
.card {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.card:hover::after { opacity: 1; }
.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(255, 68, 56, 0.12);
  border: 1px solid rgba(255, 68, 56, 0.22);
  color: var(--red-soft);
  margin-bottom: 18px;
}
.card .ico svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .num {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

/* ---------- 진행 절차 ---------- */
.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--red-soft);
  margin-bottom: 10px;
}
.step h3 { font-size: 1.03rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- 포트폴리오 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.filter {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter[aria-pressed="true"] {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.pgrid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.pcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.pmedia {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(60% 60% at 70% 20%, rgba(255, 46, 126, 0.22), transparent 70%),
    radial-gradient(60% 60% at 20% 90%, rgba(255, 68, 56, 0.18), transparent 70%),
    linear-gradient(140deg, #1b2030, #0c0e14);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pmedia img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.pcard:hover .pmedia img { transform: scale(1.04); }
.pmedia .ph {
  display: grid;
  place-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pmedia .ph svg { width: 34px; height: 34px; opacity: 0.7; }
.pbody { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}
.ptag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 68, 56, 0.13);
  color: var(--red-soft);
  border: 1px solid rgba(255, 68, 56, 0.22);
}
.pdate { color: var(--muted-2); font-weight: 600; letter-spacing: 0.02em; }
.pbody h3 { font-size: 1.06rem; }
.pbody p { color: var(--muted); font-size: 0.92rem; }
.pbody .plink {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pbody .plink svg { width: 14px; height: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  padding: 4px 22px;
  margin-bottom: 10px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.faq details[open] { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.faq summary {
  cursor: pointer;
  padding: 18px 30px 18px 0;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--muted); font-size: 0.96rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 68px) clamp(26px, 5vw, 56px);
  border-radius: 24px;
  border: 1px solid rgba(255, 68, 56, 0.25);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(255, 46, 126, 0.28), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, rgba(255, 68, 56, 0.22), transparent 60%),
    linear-gradient(160deg, #17121a, #0d0f16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--muted); }

/* ---------- 문의 페이지 ---------- */
.ccards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ccard {
  display: block;
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ccard:hover { transform: translateY(-3px); border-color: rgba(255, 68, 56, 0.45); }
.ccard .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 68, 56, 0.12);
  color: var(--red-soft);
  border: 1px solid rgba(255, 68, 56, 0.2);
  margin-bottom: 16px;
}
.ccard .ico svg { width: 22px; height: 22px; }
.ccard .label,
.ccard .value,
.ccard .hint { display: block; }
.ccard .label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.ccard .value { font-size: 1.22rem; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.ccard .hint { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: rgba(255, 68, 56, 0.14);
  border: 1px solid rgba(255, 68, 56, 0.3);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 7px; top: 11px;
  width: 6px; height: 10px;
  border-right: 2px solid var(--red-soft);
  border-bottom: 2px solid var(--red-soft);
  transform: rotate(40deg);
}
.checklist b { color: var(--text); }

/* ---------- 정보 표 ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.95rem;
}
.info-table th,
.info-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }
.info-table th {
  width: 34%;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
}
.info-table td { font-weight: 600; }
.info-table a { color: var(--red-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 인용/소개 블록 ---------- */
.quote {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 22px;
  color: var(--muted);
  font-size: 1.02rem;
}

.profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}
.profile-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(70% 70% at 50% 10%, rgba(255, 46, 126, 0.18), transparent 70%), #0d0f16;
  padding: 18px;
}
.profile-media img { width: 100%; height: auto; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.tags li {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

/* ---------- 푸터 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 52px 0 36px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer img { height: 30px; width: auto; margin-bottom: 14px; }
.footer h4 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
  font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a:hover { color: var(--text); }
.footer .biz { line-height: 1.85; }
.footer .biz strong { color: var(--text); font-weight: 700; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* ---------- 등장 애니메이션 (JS가 있을 때만 숨김 → 자바스크립트가 없어도 내용은 보임) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(74%, 330px); }
  .profile { grid-template-columns: 1fr; }
  .profile-media { max-width: 260px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .brand img { height: 34px; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 18px 22px;
    background: #0a0b10;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.26s ease, opacity 0.26s ease, visibility 0.26s;
  }
  .nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav a { padding: 14px 16px; border-radius: 12px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; padding: 14px 18px; }
  .hero { padding-top: 40px; }
  .hero-art { display: none; }
  .chips { margin-top: 26px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .info-table th { width: 40%; white-space: normal; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: 100%; }
  .section-head { margin-bottom: 30px; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 18px; }
  .brand img { height: 30px; }
}
