@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --bg: #080c10;
  --bg-soft: #121820;
  --bg-card: #1a222c;
  --text: #f4f6f8;
  --muted: #8fa4b4;
  --accent: #d4a017;
  --accent-light: #f5d76e;
  --accent-2: #14b8a6;
  --radius: 12px;
  --hero-layout: 1.15fr 0.85fr;
  --card-style: sharp;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse 60% 50% at 100% 0%, radial-gradient(ellipse 55% 45% at 92% 8%, rgba(212,160,23,0.18), transparent), radial-gradient(ellipse 48% 38% at 4% 92%, rgba(20,184,166,0.14), transparent), transparent);
  color: var(--text);
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  line-height: 1.75;
  padding-bottom: 88px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: rgba(255,255,255,0.04); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  min-height: 70px; padding: 10px clamp(14px, 4vw, 40px);
  background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand span {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 15px;
}
.brand span::after { content: "K"; }
.phone-note { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent-light); }
.nav-links { margin-left: auto; display: flex; gap: 8px; }
.nav-links a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--text); background: rgba(124, 58, 237, 0.12); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; margin-left: auto; color: var(--text); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto;
}
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(4px); }

.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 56px); gap: clamp(28px, 5vw, 56px);
  align-items: center; max-width: 1140px; margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(14px, 5vw, 40px);
}
.hero-media {
  margin: 0; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.3); box-shadow: var(--shadow);
}
.hero-media a { display: block; }
.hero-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.kicker {
  display: inline-flex; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; color: var(--accent-light);
  background: rgba(124, 58, 237, 0.14); border: 1px solid rgba(124, 58, 237, 0.3);
}
.hero h1 { margin: 16px 0; font-size: clamp(28px, 4.5vw, 46px); font-weight: 800; line-height: 1.25; word-break: keep-all; }
.hero p { color: var(--muted); font-size: 16px; max-width: 520px; word-break: keep-all; }

.band { padding: clamp(48px, 8vw, 80px) clamp(14px, 5vw, 40px); }
.band-a { background: var(--bg-soft); }
.band-b { background: var(--bg); }
.band-c { background: linear-gradient(180deg, #1a2332, var(--bg)); }
.section-head { max-width: 700px; margin-bottom: 28px; }
.section-head small { display: block; font-size: 12px; font-weight: 800; color: var(--accent-2); margin-bottom: 8px; letter-spacing: 0.06em; }
.section-head h1, .section-head h2 { margin: 0 0 12px; font-size: clamp(22px, 3.2vw, 34px); font-weight: 800; word-break: keep-all; }
.section-head p { margin: 0; color: var(--muted); word-break: keep-all; }

.scroll-cards, .link-scroll, .faq-grid { display: grid; gap: 14px; }
.scroll-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.link-scroll { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.faq-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.info-card, .link-card, .faq {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
}
.info-card:hover, .link-card:hover { transform: translateY(-3px); border-color: rgba(124, 58, 237, 0.35); }
.info-card { padding: 22px; }
.info-card span { font-size: 12px; font-weight: 800; color: var(--accent-light); }
.info-card h3 { font-size: 17px; margin: 8px 0; }
.info-card p { margin: 0; font-size: 14px; color: var(--muted); word-break: keep-all; }

.link-card { display: flex; flex-direction: column; overflow: hidden; min-height: 180px; }
.link-card-badge {
  display: grid; place-items: center; aspect-ratio: 16/7;
  font-size: 18px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
  padding: 8px; text-align: center; word-break: keep-all;
}
.link-card strong { padding: 14px 16px 6px; font-size: 15px; }
.link-card span { padding: 0 16px 16px; font-size: 13px; color: var(--muted); }

.link-scroll-compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.link-card-compact { min-height: 100px; padding: 16px; }
.link-card-compact strong { padding: 0; font-size: 14px; }
.link-card-compact span { padding: 4px 0 0; font-size: 12px; }
.link-card-compact .link-card-badge { display: none; }

.link-featured {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.link-card-featured { min-height: 220px; border-width: 2px; }
.link-card-featured .link-card-badge { aspect-ratio: 16/9; font-size: 22px; }

.stats-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  max-width: 900px; margin: 0 auto; padding: 24px clamp(14px, 5vw, 40px);
}
.stat {
  text-align: center; padding: 16px 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
}
.stat strong { display: block; font-size: 28px; color: var(--accent-light); }
.stat span { font-size: 13px; color: var(--muted); }

.faq summary { padding: 18px 20px; cursor: pointer; font-weight: 700; list-style: none; word-break: keep-all; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0; padding: 0 20px 18px; font-size: 14px; color: var(--muted); word-break: keep-all; }

.sitemap-list { list-style: none; padding: 0; max-width: 640px; }
.sitemap-list li { border-bottom: 1px solid var(--line); }
.sitemap-list a { display: block; padding: 14px 0; font-weight: 600; }
.sitemap-list a:hover { color: var(--accent-light); }

.footer {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 32px clamp(14px, 4vw, 40px); background: var(--bg-soft); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.footer a { color: var(--accent-light); font-weight: 700; }
.floating-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 150;
  padding: 14px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
}
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; }
.reveal.is-visible { opacity: 1; transform: none; }

.hero-flip .hero-copy { order: 2; }
.hero-flip .hero-media { order: 1; }
@media (min-width: 901px) {
  .hero-flip { direction: rtl; }
  .hero-flip > * { direction: ltr; }
}

.band-checklist, .band-compare, .band-steps { background: var(--bg-soft); }
.checklist {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px; max-width: 720px;
}
.checklist li {
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.checklist li::before { content: "✓ "; color: var(--accent-light); font-weight: 900; }

.table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left;
}
.compare-table th { background: rgba(255,255,255,0.04); color: var(--accent-light); }

.step-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.step-card {
  padding: 22px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
}
.step-card span { font-size: 28px; font-weight: 900; color: var(--accent); opacity: 0.5; }
.step-card h3 { margin: 8px 0; font-size: 17px; }
.step-card p { margin: 0; font-size: 14px; color: var(--muted); word-break: keep-all; }

/* Rich content — heading structure */
.band-guide, .band-article { background: var(--bg); }
.content-article { max-width: 820px; margin: 0 auto; }
.content-article h2 {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; margin: 0 0 16px;
  word-break: keep-all; line-height: 1.35;
}
.content-lead { font-size: 16px; color: var(--muted); margin: 0 0 28px; line-height: 1.8; word-break: keep-all; }
.guide-chapter { margin-bottom: 48px; }
.guide-chapter:last-child { margin-bottom: 0; }
.content-block { margin-bottom: 28px; }
.content-block h3 {
  font-size: 20px; font-weight: 800; margin: 0 0 10px; color: var(--accent-light);
  word-break: keep-all;
}
.content-block p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.85; word-break: keep-all; }

/* Q&A */
.band-qa { background: var(--bg-soft); }
.qa-list { display: grid; gap: 16px; max-width: 860px; }
.qa-item {
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
}
.qa-q {
  margin: 0 0 14px; font-size: 17px; font-weight: 800; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 12px; word-break: keep-all;
}
.qa-a p {
  margin: 0; font-size: 15px; color: var(--muted); line-height: 1.8;
  display: flex; align-items: flex-start; gap: 12px; word-break: keep-all;
}
.qa-badge {
  flex-shrink: 0; display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 900;
}
.qa-badge-a { background: var(--accent-2); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { max-width: 400px; margin: 0 auto; order: -1; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 70px 12px auto; display: none; flex-direction: column;
    background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  }
  .nav-links.is-open { display: flex; }
  .floating-cta { left: 12px; right: 12px; text-align: center; border-radius: 12px; }
}

.info-card, .link-card { border-radius: 8px; }

.band-a { background: linear-gradient(135deg, var(--bg-soft), var(--bg)); }
.band-b { background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }

body { --theme-id: 'kkangmy-credit24-amber-credit-night'; }
