/* ==========================================================
   KoREI Homepage
   ========================================================== */
:root {
  --blue-900: #0b2a5b;
  --blue-700: #134a9e;
  --blue-600: #1a5fd0;
  --blue-500: #2b7ae8;
  --blue-300: #7fb6f5;
  --blue-50: #eef5fe;
  --sky: #29a8e0;
  --yellow: #f6b81a;

  --ink: #17202e;
  --ink-2: #4a5568;
  --ink-3: #7b8594;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-tint: #f5f8fc;

  --header-h: 68px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 42, 90, 0.08);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .pc-only { display: none; }
}

/* ---------- Buttons / tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-700); }
.btn--ghost { border-color: var(--blue-300); color: var(--blue-700); background: #fff; }
.btn--ghost:hover { border-color: var(--blue-600); background: var(--blue-50); }

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--blue-50);
  color: var(--blue-700);
}
.tag--line { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  transition: box-shadow 0.2s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 4px 16px rgba(16, 42, 90, 0.05); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__logo { height: 34px; width: auto; }
.brand__name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--blue-600); background: var(--blue-50); text-decoration: none; }
.nav a.is-active { color: var(--blue-600); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 860px) {
  .brand__name { font-size: 15px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(16, 42, 90, 0.08);
    display: none;
  }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .header.is-open .nav { display: flex; }
  .header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 380px) {
  .brand__name { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 48px) 0 64px;
  background:
    radial-gradient(1200px 600px at 100% 0%, #dcecff 0%, rgba(220, 236, 255, 0) 60%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
}
.hero__eyebrow {
  color: var(--blue-600);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-900);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue-600), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__desc {
  margin-top: 24px;
  max-width: 520px;
  color: var(--ink-2);
  font-size: 17px;
}
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual img { width: 100%; max-width: 520px; margin-left: auto; }

.values {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.values li { padding: 24px 28px; }
.values li + li { border-left: 1px solid var(--line); }
.values strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-600);
  margin-bottom: 4px;
}
.values span { color: var(--ink-2); font-size: 15px; line-height: 1.6; }

@media (max-width: 860px) {
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__visual img { max-width: 300px; margin: 0 auto; }
  .values { grid-template-columns: 1fr; }
  .values li + li { border-left: 0; border-top: 1px solid var(--line); }
  .values span br { display: none; }
}

/* ---------- Section common ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-tint); }
.section__head { margin-bottom: 48px; }
.section__label {
  color: var(--blue-600);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section__title {
  margin-top: 6px;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-900);
}
.section__desc { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.sub-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 18px;
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}
.greeting p + p { margin-top: 14px; }
.greeting p { color: var(--ink-2); }
.greeting__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.greeting__lead {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.45;
  font-weight: 700;
  color: var(--blue-900) !important;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.greeting__sign { margin-top: 24px !important; color: var(--ink) !important; }
.greeting__sign strong { font-size: 18px; margin-left: 6px; }

.ceo {
  background: linear-gradient(160deg, var(--blue-700), var(--blue-500));
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.ceo__title { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.ceo__list li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
}
.ceo__list li:first-child { border-top: 0; }
.ceo__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.overview { margin-top: 72px; }
.overview__table {
  border-top: 2px solid var(--blue-900);
}
.overview__table > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
}
.overview__table dt {
  padding: 14px 20px;
  background: var(--bg-tint);
  font-weight: 600;
  color: var(--ink);
}
.overview__table dd { padding: 14px 20px; color: var(--ink-2); }

.team { margin-top: 72px; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.team__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}
.team__role {
  display: inline-block;
  font-weight: 700;
  color: #fff;
  background: var(--blue-600);
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 12px;
}
.team__desc { color: var(--ink-2); font-size: 15px; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .overview__table > div { grid-template-columns: 1fr; }
  .overview__table dt { padding: 10px 14px 4px; background: none; font-size: 14px; color: var(--blue-700); }
  .overview__table dd { padding: 0 14px 12px; }
  .overview, .team { margin-top: 56px; }
}

/* ---------- Business ---------- */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.stats li { text-align: center; }
.stats strong {
  display: block;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stats small { font-size: 0.5em; margin-left: 2px; }
.stats span { color: var(--ink-3); font-size: 14px; }
.stats__arrow { font-size: 28px; color: var(--blue-300); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-50);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__title { font-size: 19px; font-weight: 700; color: var(--blue-900); margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats { gap: 12px; padding: 20px 12px; }
  .stats__arrow { font-size: 20px; }
  .stats span { font-size: 13px; }
}

/* ---------- History ---------- */
.history {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.timeline li { position: relative; padding-bottom: 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue-600);
}
.timeline__date { font-weight: 800; color: var(--blue-600); font-size: 17px; }
.timeline__text { margin-top: 4px; font-weight: 600; font-size: 17px; }
.timeline__text small { font-weight: 400; color: var(--ink-3); font-size: 15px; }

.achievements { display: grid; gap: 14px; }
.achievements li {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-tint);
  border-left: 4px solid var(--blue-600);
}
.achievements h3 { font-size: 16px; font-weight: 700; color: var(--blue-900); margin-bottom: 4px; }
.achievements p { color: var(--ink-2); font-size: 15px; }

@media (max-width: 860px) {
  .history { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Careers ---------- */
.jobs { display: grid; gap: 16px; }
.jobs__empty { padding: 40px; text-align: center; color: var(--ink-3); background: #fff; border-radius: var(--radius); }

.job {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.job__summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "meta count" "title count";
  align-items: center;
  column-gap: 24px;
  row-gap: 6px;
  padding: 24px 72px 24px 28px;
  cursor: pointer;
  list-style: none;
}
.job__summary::-webkit-details-marker { display: none; }
.job__summary:hover .job__title { color: var(--blue-600); }
.job__meta { grid-area: meta; display: flex; gap: 6px; flex-wrap: wrap; }
.job__title { grid-area: title; font-size: 20px; font-weight: 700; color: var(--blue-900); transition: color 0.15s; }
.job__headcount { grid-area: count; color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.job__headcount b { color: var(--blue-600); font-size: 18px; margin-left: 4px; }
.job__chevron {
  position: absolute;
  right: 28px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.2s, margin-top 0.2s;
}
.job[open] .job__chevron { transform: rotate(-135deg); margin-top: -3px; }

.job__body { padding: 0 28px 28px; border-top: 1px solid var(--line); }
.job__intro { padding: 20px 0; color: var(--ink-2); }
.job__body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 8px;
}
.job__body section + section { margin-top: 24px; }
.job__grid {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.job__grid section + section { margin-top: 0; }
.job__body ul li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.job__body ul li + li { margin-top: 6px; }
.job__body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-500);
}
.job__conditions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.job__conditions > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.job__conditions dt { padding: 10px 12px; background: var(--bg-tint); font-weight: 600; }
.job__conditions dd { padding: 10px 12px; color: var(--ink-2); }

.job__process { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.job__process li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}
.job__process li:not(:last-child)::after {
  content: "›";
  margin-left: 2px;
  color: var(--ink-3);
  font-weight: 400;
}
.job__process span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-size: 13px;
}
.job__apply {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--blue-50);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink-2);
}

.apply {
  margin-top: 32px;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  color: #fff;
  text-align: center;
}
.apply__title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.apply p { color: rgba(255, 255, 255, 0.85); }
.apply__mail {
  display: table;
  margin-left: auto !important;
  margin-right: auto !important;
  margin: 16px 0 20px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-700);
  font-weight: 800;
  font-size: 19px;
}
.apply__mail:hover { text-decoration: none; background: var(--blue-50); }
.apply__notes {
  display: table;
  margin: 0 auto;
  text-align: left;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.apply__notes li { padding-left: 14px; position: relative; }
.apply__notes li::before { content: "·"; position: absolute; left: 2px; }
.apply__notes b { color: #fff; }

@media (max-width: 860px) {
  .job__grid { grid-template-columns: 1fr; }
  .job__conditions { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .job__summary {
    grid-template-columns: 1fr;
    grid-template-areas: "meta" "title" "count";
    padding: 20px 52px 20px 20px;
  }
  .job__chevron { right: 22px; }
  .job__title { font-size: 18px; }
  .job__body { padding: 0 20px 20px; }
  .job__conditions > div { grid-template-columns: 84px 1fr; }
  .apply { padding: 28px 20px; }
  .apply__mail { font-size: 17px; padding: 10px 22px; }
}

/* ---------- Contact ---------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact__info { display: grid; gap: 12px; }
.contact__info > div { display: flex; gap: 20px; }
.contact__info dt { width: 56px; flex-shrink: 0; font-weight: 700; color: var(--blue-700); }
.contact__info dd { font-size: 17px; }
.contact__maps { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
  .contact { padding: 24px 20px; }
  .contact__info > div { flex-direction: column; gap: 2px; }
  .contact__maps, .contact__maps .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.footer {
  background: #0f1c30;
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
  font-size: 14px;
}
.footer__inner { display: flex; gap: 32px; align-items: flex-start; }
.footer__logo {
  height: 40px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  box-sizing: content-box;
}
.footer__name { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.footer__info p span + span::before {
  content: "|";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.25);
}
.footer__copy { margin-top: 12px !important; color: rgba(255, 255, 255, 0.4); }
@media (max-width: 640px) {
  .footer__inner { flex-direction: column; gap: 20px; }
  .footer__info p span { display: block; }
  .footer__info p span + span::before { content: none; }
}
