/* ============================================================
   퀵에어특송 — 통합 디자인 (네이비+골드 · 대형 타이포 · 항로 모티프)
   외부 폰트/자산 없음: 시스템 폰트 + 무게·자간·모노 악센트로 개성.
   ============================================================ */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* light theme */
  --bg: #f5f8fc;
  --bg-alt: #eef3fa;
  --surface: #ffffff;
  --surface-2: #f9fbfe;
  --text: #0f1c2e;
  --muted: #56657b;
  --border: #e2e9f3;
  --brand: #133a63;
  --brand-strong: #0d2a4a;
  --gold: #d9931b;
  --gold-bright: #eaa62c;
  --gold-tint: #fbf1dc;
  --on-brand: #ffffff;
  --shadow: 0 20px 55px rgba(15, 35, 63, 0.12);
  --shadow-sm: 0 4px 16px rgba(15, 35, 63, 0.07);
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #091425;
    --bg-alt: #0c1b30;
    --surface: #0f2138;
    --surface-2: #132842;
    --text: #e9f0fb;
    --muted: #9db0c7;
    --border: #21344f;
    --brand: #2f6aa8;
    --brand-strong: #3b7abc;
    --gold: #efb23f;
    --gold-bright: #f4c05c;
    --gold-tint: #241d0d;
    --on-brand: #ffffff;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #091425; --bg-alt: #0c1b30; --surface: #0f2138; --surface-2: #132842;
  --text: #e9f0fb; --muted: #9db0c7; --border: #21344f;
  --brand: #2f6aa8; --brand-strong: #3b7abc; --gold: #efb23f; --gold-bright: #f4c05c;
  --gold-tint: #241d0d; --on-brand: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5); --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  word-break: keep-all; overflow-wrap: break-word; /* 한국어: 어절 중간에서 줄바꿈 금지 */
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

/* type scale */
h1, h2, h3 { margin: 0 0 .45em; letter-spacing: -0.022em; }
.display {
  font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.06;
  letter-spacing: -0.038em; margin: 0 0 .35em;
}
.display .hl { color: var(--gold); position: relative; white-space: nowrap; }
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem); font-weight: 800; line-height: 1.16;
  letter-spacing: -0.028em; text-align: center; margin: 0 auto .5em;
}
.lede { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--muted); }
.eyebrow {
  font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center;
  gap: 8px; margin: 0 0 16px;
}
.eyebrow.center { justify-content: center; display: flex; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); }
.mono-label { font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 780px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brand); }
.brand-mark { display: inline-flex; color: var(--brand); }
.brand-name { font-size: 1.18rem; letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > a { color: var(--muted); font-size: .93rem; font-weight: 600; }
.nav > a:hover { color: var(--text); }
.nav .nav-cta { background: var(--brand); color: var(--on-brand); padding: 9px 17px; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--brand-strong); color: #fff; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: .95rem; line-height: 1;
}
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle .t-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .t-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .t-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .t-moon { display: inline; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 700; font-size: 1rem; padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .14s ease, background .14s, border-color .14s;
  font-family: inherit;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-block { width: 100%; }
:root[data-theme="dark"] .btn-ghost { color: var(--text); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: 60px 0 56px;
  background:
    radial-gradient(120% 80% at 85% -10%, var(--gold-tint) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--brand) 5%, transparent) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--brand) 5%, transparent) 0 1px, transparent 1px 46px);
  -webkit-mask-image: radial-gradient(80% 70% at 60% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(80% 70% at 60% 30%, #000 0%, transparent 75%); opacity: .6; }
.hero-bg .route { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 46px; align-items: center; }
.hero-copy { max-width: 30rem; }
.lede { max-width: 34ch; }
.hero-actions { display: flex; gap: 12px; margin: 26px 0 22px; flex-wrap: wrap; }
.badges { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; flex-wrap: wrap; }
.badges li { font-size: .88rem; color: var(--muted); }
.badges b { color: var(--text); font-weight: 800; }

/* calculator card */
.calc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 26px 26px 22px; position: relative;
}
.calc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--brand); }
:root[data-theme="dark"] .live { color: var(--gold); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #17a673; box-shadow: 0 0 0 0 rgba(23,166,115,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(23,166,115,.5); } 70% { box-shadow: 0 0 0 8px rgba(23,166,115,0); } 100% { box-shadow: 0 0 0 0 rgba(23,166,115,0); } }
.calc-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 14px; }

.stepper { list-style: none; display: flex; padding: 0; margin: 0 0 18px; gap: 6px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--muted); position: relative; }
.stepper li span { font-family: var(--mono); font-size: .7rem; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); }
.stepper li.on { color: var(--text); }
.stepper li.on span { background: var(--brand); color: #fff; border-color: var(--brand); }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 1px; border-top: 1px dashed var(--border); margin-left: 4px; }

.calc-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .8rem; font-weight: 700; color: var(--text); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 12px 13px; width: 100%; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px;
  transition: border-color .14s, box-shadow .14s;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.quick-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick-picks button { font-size: .8rem; font-weight: 600; color: var(--brand); background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; cursor: pointer; font-family: inherit; }
.quick-picks button:hover { border-color: var(--gold); }
:root[data-theme="dark"] .quick-picks button { color: var(--text); }
.field label.sub { font-size: .72rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.field label .opt { font-size: .68rem; font-weight: 500; color: var(--muted); }
.field-hint { font-size: .74rem; color: var(--muted); margin: 7px 0 0; }
.calc-disclaimer { font-size: .76rem; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }

/* results */
.rate-result { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.rate-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; background: var(--surface-2); }
.rate-opt .opt-label { font-weight: 800; letter-spacing: -0.01em; }
.rate-opt .opt-eta { font-size: .78rem; color: var(--muted); margin-top: 1px; }
.rate-opt .opt-price { font-size: 1.24rem; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
:root[data-theme="dark"] .rate-opt .opt-price { color: var(--gold); }
.rate-opt .opt-price small { font-size: .7rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.rate-loading, .rate-error { font-size: .9rem; color: var(--muted); padding: 6px 2px; }
.rate-error { color: #c0392b; }
.rate-cta { margin-top: 4px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-lede { text-align: center; color: var(--muted); max-width: 54ch; margin: -6px auto 34px; }
.mobile-br { display: none; }

/* steps (numbered route) */
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.step-n { font-family: var(--mono); font-size: .85rem; font-weight: 700; color: var(--gold); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-n::after { content: ""; width: 34px; border-top: 1px dashed var(--gold); opacity: .6; }
.steps h3 { font-size: 1.14rem; }
.steps p { font-size: .93rem; color: var(--muted); margin: 0; }

/* service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 6px; }
.svc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.svc-card.feat { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); background:
  linear-gradient(180deg, var(--gold-tint), var(--surface)); }
.svc-card .mono-label { color: var(--gold); }
.svc-card h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 8px; }
.svc-card p { font-size: .93rem; color: var(--muted); margin: 0; }
.svc-note { text-align: center; color: var(--muted); font-size: .92rem; margin: 26px 0 0; }
.svc-note b { color: var(--text); }

/* faq */
.faq { border: 1px solid var(--border); border-radius: 13px; padding: 2px 20px; margin-bottom: 11px; background: var(--surface); }
.faq summary { font-weight: 700; cursor: pointer; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--gold); font-size: 1.2rem; font-weight: 700; }
.faq[open] summary { border-bottom: 1px solid var(--border); }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); font-size: .93rem; padding: 13px 0; margin: 0; }

/* contact */
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.contact-status { font-size: .92rem; padding: 11px 15px; border-radius: 11px; margin: 0; }
.contact-status.ok { background: #e6f7ee; color: #128a4e; }
.contact-status.err { background: #fdecec; color: #c0392b; }

/* footer */
.site-footer { background: var(--brand-strong); color: #c6d4e6; padding: 40px 0; }
:root[data-theme="dark"] .site-footer { background: #060f1c; }
.footer-inner { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.site-footer .brand-name { color: #fff; font-weight: 800; }
.footer-note { margin: 0; font-size: .92rem; }
.footer-fine { margin: 0; font-size: .78rem; color: #8ea1ba; }

/* Turnstile 필드 (폼의 정식 필드처럼 프레이밍) */
.ts-field { gap: 7px; }
.ts-field > label { display: flex; align-items: baseline; gap: 8px; color: var(--text); }
.ts-field > label span { font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cf-turnstile { min-height: 65px; }
.cf-turnstile iframe { width: 100% !important; }

/* responsive */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: none; }
  .lede { max-width: 46ch; }
  .steps, .svc-grid { grid-template-columns: 1fr; }
  .mobile-br { display: inline; }
}
@media (max-width: 560px) {
  .nav { gap: 10px; }
  .nav > a:not(.nav-cta) { display: none; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .stepper li:not(:last-child)::after { display: none; }
}

/* a11y */
:where(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus, #2c6fb0); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
