/* ponytail: 폰트 CDN 미검증으로 폴백 사용, 실제 폰트 라이선스 확보 후 교체 */

:root {
  --c-slate: #CBD5E1;
  --c-slate-light: #F1F5F9;
  --c-slate-mid: #94A3B8;
  --c-navy: #0B1120;
  --c-navy-soft: #151E31;
  --c-amber: #F59E0B;
  --c-amber-dark: #B45309;
  --c-text: #10192B;
  --c-text-invert: #F8FAFC;

  --font-title: 'Freesentation', 'Gothic A1', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-body: 'Gothic A1', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --fs-0: 1rem;
  --fs-1: 1.25rem;
  --fs-2: 1.5625rem;
  --fs-3: 1.953rem;
  --fs-4: 2.441rem;
  --fs-5: 3.052rem;

  --space-section: clamp(56px, 9vw, 96px);
  --radius: 12px;
  --maxw: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-0);
  line-height: 1.7;
  color: var(--c-text);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.6em;
  color: var(--c-navy);
}

p { margin: 0 0 1em; }

a { color: var(--c-amber-dark); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* focus ring */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--c-amber);
  outline-offset: 2px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--fs-0);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--c-amber);
  color: var(--c-navy);
}

.btn-primary:hover { background: #FBBF24; }

.btn-large { padding: 16px 36px; font-size: var(--fs-1); }

.btn-header {
  background: var(--c-amber);
  color: var(--c-navy);
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-navy);
  min-height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--c-navy-soft);
}

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: var(--fs-1);
  color: var(--c-text-invert);
  letter-spacing: -0.01em;
}

/* hero: dark fullscreen */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.16), transparent 55%),
    linear-gradient(180deg, #0B1120 0%, #101a2e 100%);
  color: var(--c-text-invert);
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
  animation: hero-rise 0.7s ease-out both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  color: var(--c-amber);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hero h1 {
  color: var(--c-text-invert);
  font-size: var(--fs-4);
  margin-bottom: 0.5em;
}

.hero-lede {
  color: var(--c-slate);
  font-size: var(--fs-1);
  margin: 0 auto 2em;
  max-width: 560px;
}

/* generic section */
.section {
  padding: var(--space-section) 0;
  border-bottom: 1px solid #E7ECF2;
}

.section h2 {
  font-size: var(--fs-2);
  margin-top: 1.4em;
}

.section h2:first-of-type,
.section > .container > h2:first-child {
  margin-top: 0;
}

.problem { background: var(--c-slate-light); }

.approval-axis .container p { max-width: 760px; }

/* flow diagram */
.flow-section { background: #fff; }

.flow-diagram {
  width: 100%;
  height: auto;
  max-width: 640px;
  display: block;
  margin: 32px auto 0;
}

.flow-step rect {
  fill: var(--c-slate-light);
  stroke: var(--c-slate-mid);
  stroke-width: 1.5;
}

.step-num {
  font-size: 22px;
  font-weight: 800;
  fill: var(--c-amber-dark);
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  fill: var(--c-navy);
}

.step-desc {
  font-size: 13px;
  fill: #475569;
}

.flow-arrow {
  stroke: var(--c-amber-dark);
  stroke-width: 3;
  marker-end: url(#arrowhead);
}

.arrow-head { fill: var(--c-amber-dark); }

/* table */
.table-section { background: var(--c-slate-light); }

.table-scroll {
  overflow-x: auto;
  margin-top: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--c-slate-mid);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  background: #fff;
}

caption {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  background: var(--c-navy);
  color: var(--c-text-invert);
  font-size: 0.9rem;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.92rem;
}

thead th {
  background: var(--c-slate);
  color: var(--c-navy);
  font-weight: 700;
}

tbody th[scope="row"] {
  font-weight: 700;
  color: var(--c-navy);
  white-space: nowrap;
}

tbody tr:last-child td,
tbody tr:last-child th { border-bottom: none; }

/* gallery */
.gallery-section { background: #fff; }

.gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.gallery figure {
  margin: 0;
  background: var(--c-slate-light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery figcaption {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #475569;
}

/* faq */
.faq-section { background: var(--c-slate-light); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.faq-list details {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 4px 18px;
}

.faq-list summary {
  padding: 14px 0;
  font-weight: 700;
  cursor: pointer;
  color: var(--c-navy);
}

.faq-list details p {
  padding-bottom: 14px;
  color: #334155;
}

/* cta */
.cta-section {
  background: var(--c-navy);
  color: var(--c-text-invert);
  border-bottom: none;
}

.cta-inner { text-align: center; max-width: 620px; }

.cta-section h2 { color: var(--c-text-invert); }

.cta-section p { color: var(--c-slate); margin-bottom: 1.6em; }

/* footer */
.site-footer {
  background: var(--c-navy-soft);
  color: var(--c-slate);
  padding: 40px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--c-slate);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--c-amber); }

.footer-info {
  font-size: 0.82rem;
  color: #94A3B8;
  margin: 0;
}

/* breakpoints */
@media (min-width: 640px) {
  .gallery { flex-direction: row; }
  .gallery figure { flex: 1; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: var(--fs-5); }
  .section h2 { font-size: var(--fs-3); }
}

@media (min-width: 1280px) {
  .container { padding: 0 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner { animation: none; }
  .btn { transition: none; }
}
