/* HALO 모의고사 — shared styles */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  --bg: #ffffff;
  --paper: #f7f6f3;
  --line: #e6e5e1;
  --line-strong: #c8c6bf;
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --muted: #6f6f6f;
  --muted-2: #9a9a96;
  --accent: #1c2b4a;      /* 짙은 슬레이트 블루 — 헤일로 사진에서 채취 */
  --accent-soft: #5a6f99;
  --warm: #c4a16a;        /* 헤일로 가장자리 옅은 황금 — 아주 가끔만 */
  --radius: 2px;
  --container: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "ss01", "ss02";
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ───── Type ───── */
.brand-mark, .brand-en {
  font-family: "Prosto One", "Pretendard", serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink);
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(56px, 9vw, 132px); }
h2 { font-size: clamp(34px, 4.5vw, 60px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.body { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 62ch; }
.small { font-size: 13px; color: var(--muted); }
.mono { font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace; font-feature-settings: normal; }

/* ───── Container ───── */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
section { padding-block: clamp(80px, 10vw, 140px); }
section + section { border-top: 1px solid var(--line); }

/* ───── Nav ───── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,0.92); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .mark {
  display: inline-flex; align-items: center;
}
.nav-logo .mark img {
  height: 22px; width: auto; display: block;
}
.nav-logo .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--ink-2); position: relative; padding: 6px 0;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--accent); }
.nav-cta svg { width: 12px; height: 12px; }
.nav-burger { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px var(--pad) 18px;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(10,10,10,0.06);
  }
  .nav-links.is-open a { padding: 12px 0; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 999px; flex-shrink: 0; }
}

@media (max-width: 560px) {
  .nav-inner { gap: 12px; }
  .nav-cta { display: none; }
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 28px;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.12);
  transition: background .18s ease, transform .18s ease;
}
.btn:hover .arrow { background: rgba(255,255,255,0.2); transform: translateX(2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  transition: gap .18s ease, color .18s ease;
}
.link:hover { gap: 12px; color: var(--accent); border-color: var(--accent); }
.link .arrow-thin { width: 14px; }

@media (max-width: 520px) {
  .btn {
    width: 100%;
    min-height: 52px;
    height: auto;
    padding: 14px 18px;
    justify-content: space-between;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
  }
}

/* ───── Footer ───── */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 40px;
  margin-top: 80px;
}
.footer .container { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; }
.footer .col h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--ink-2); }
.footer ul a:hover { color: var(--accent); }
.footer .legal {
  border-top: 1px solid var(--line);
  margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.footer .legal .brand-en { font-size: 14px; color: var(--ink); }
@media (max-width: 720px) {
  .footer .container { grid-template-columns: 1fr; gap: 32px; }
  .footer .legal { flex-direction: column; gap: 8px; }
}

/* ───── Page-stamp ───── */
.page-stamp {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--muted);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line);
  pointer-events: none;
}
.page-stamp .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ───── Utility ───── */
.hr-fade { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent); border: 0; margin: 0; }
.spacer-80 { height: 80px; }
.spacer-40 { height: 40px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
