/* ═══════════════════════════════════════════════════════
   에이블 캠퍼스 — Base Design System
   source/styles/base.css

   모든 HTML 페이지에서 import.
   페이지별 고유 스타일만 각 파일의 <style>에 추가한다.
   토큰 기준: DESIGN.md
═══════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  color-scheme: light;

  /* Font */
  --ac-font: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;

  /* Brand */
  --ac-navy:    #000A24;   /* GNB, Footer */
  --ac-hero-bg: #00042B;   /* 다크 Hero 배경 */
  --ac-cta:     #00296F;   /* CTA 섹션 */

  /* Blue scale */
  --ac-blue-700: #074CBA;
  --ac-blue-600: #0054D2;  /* Accent Hover / 텍스트 강조 */
  --ac-blue-500: #0070FF;  /* Accent — CTA, 링크, 태그 */
  --ac-blue-400: #2D89FF;
  --ac-blue-200: #8FC0FF;
  --ac-blue-100: #CBE2FF;
  --ac-blue-50:  #E3EFFF;
  --ac-blue-25:  #F2F8FF;  /* Accent Subtle */

  /* Paleblue scale */
  --ac-paleblue-400:  #658CCA;
  --ac-paleblue-600:  #3860A7;
  --ac-paleblue-700:  #254C92;
  --ac-paleblue-800:  #13346E;
  --ac-paleblue-900:  #082352;
  --ac-paleblue-1000: #00173F;

  /* Cool gray (주요 단계) */
  --ac-gray-050: #FAFAFB;
  --ac-gray-100: #F5F6F7;
  --ac-gray-150: #EEEFF0;  /* disabled/bg, border-light */
  --ac-gray-200: #E4E5E7;
  --ac-gray-300: #D9DBDE;
  --ac-gray-400: #C5C6CC;  /* on-dark secondary */
  --ac-gray-500: #9D9FA7;
  --ac-gray-600: #868993;
  --ac-gray-650: #73757C;
  --ac-gray-700: #4A4C53;
  --ac-gray-800: #2E2F33;  /* dark card */
  --ac-gray-850: #222222;  /* dark section */
  --ac-gray-900: #111111;  /* text primary */

  /* Semantic — Text */
  --ac-text-primary:   #111111;
  --ac-text-secondary: #737579;
  --ac-text-tertiary:  #868993;
  --ac-text-accent:    #0054D2;
  --ac-text-on-dark:   #FFFFFF;
  --ac-text-on-dark-2: #C5C6CC;

  /* Semantic — BG */
  --ac-bg-default:    #FFFFFF;
  --ac-bg-subtle:     #F5F5F7;
  --ac-bg-surface:    #F5F6F7;
  --ac-bg-card:       #FAFAFA;
  --ac-bg-dark:       #222222;
  --ac-bg-dark-card:  #2E2F33;

  /* Semantic — Border */
  --ac-border:        #E4E5E8;
  --ac-border-light:  #EEEFF0;
  --ac-border-subtle: #D9DBDE;

  /* Semantic — Accent */
  --ac-accent:        #0070FF;
  --ac-accent-hover:  #0054D2;
  --ac-accent-subtle: #F2F8FF;

  /* 이전 파일 호환 aliases */
  --ac-hero:          #00173F;
  --ac-blue-deep:     #00173F;
  --ac-paleblue-dark: #13346E;
  --ac-cool-gray-400: #C5C6CC;
  --ac-cool-gray-600: #868993;
  --ac-text-dark:     #333333;
  --ac-border-l:      #E4E5E7;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a   { text-decoration: none; }
p   { margin: 0; }

/* ─── Body Base ─── */
body {
  font-family: var(--ac-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-width: 1440px;
  overflow-x: auto;
}

/* ─── Preview Badge ─── */
.preview-badge {
  position: fixed;
  top: 84px;
  right: 16px;
  background: rgba(0,112,255,0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 9999;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* ─── GNB ─── */
.nav {
  background: var(--ac-navy);
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo  { width: 170px; height: auto; }
.nav-right { display: flex; align-items: center; gap: 60px; }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 50px;
}
.nav-links a {
  color: #BFBFBF;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s, font-weight 0.15s;
}
.nav-links a:hover,
.nav-links a:active { color: #fff; font-weight: 700; }
.nav-links a.active  { color: #fff; font-weight: 700; }
.nav-links a.has-outlink { display: inline-flex; align-items: center; gap: 2px; }
.nav-links a.has-outlink svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-links li:nth-child(6) { margin-left: -9px; }
.nav-cta {
  background: var(--ac-blue-500);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--ac-font);
  cursor: pointer;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.nav-cta:hover { background-color: var(--ac-accent-hover); }

/* ─── Section Header ─── */
.section-label,
.section-label--muted {
  font-size: 18px;
  font-weight: 500;
  color: #6E6E6E;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 8px;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--ac-text-primary);
  line-height: 44px;
  letter-spacing: -0.01em;
}
.section-title .accent   { color: var(--ac-blue-600); }
.section-title--dark     { color: #fff; }
.section-title--dark .accent { color: var(--ac-blue-200); }

/* ─── Section Spacing ─── */
.section-gap        { padding: 80px 0; }
.section-gap--first { padding: 120px 0 80px; }

/* ─── Buttons ─── */
.btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 4px;
  font-family: var(--ac-font);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
/* Sizes */
.btn--sm { padding: 6px 12px;  font-size: 13px; line-height: 19px; }
.btn--md { padding: 10px 16px; font-size: 14px; line-height: 20px; }
.btn--lg { padding: 12px 24px; font-size: 16px; line-height: 20px; }
.btn--xl { padding: 14px 28px; font-size: 18px; line-height: 24px; }
/* Variants */
.btn--primary { background: var(--ac-blue-500); color: #fff; }
.btn--primary:hover { background: var(--ac-blue-600); }
.btn--primary:disabled { background: var(--ac-gray-150); color: var(--ac-gray-500); }

.btn--outlined {
  background: transparent;
  color: var(--ac-blue-500);
  border: 1px solid var(--ac-blue-500);
}
.btn--outlined:hover { background: var(--ac-accent-subtle); }
.btn--outlined:disabled { border-color: var(--ac-border-subtle); color: var(--ac-gray-500); }

.btn--white { background: #fff; color: var(--ac-blue-500); }
.btn--white:hover { background: var(--ac-bg-subtle); color: var(--ac-blue-600); }

/* 01-main.html 기존 .btn-blue 호환 */
.btn-blue {
  background: var(--ac-blue-500);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--ac-font);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s;
}
.btn-blue:hover { background-color: var(--ac-accent-hover); }
.btn-blue--md { padding: 12px 24px; font-size: 16px; line-height: 24px; }
.btn-blue--lg { padding: 14px 32px; font-size: 18px; line-height: 28px; }

/* ─── Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  line-height: 18px;
  letter-spacing: 0.02em;
}
.badge--accent       { background: var(--ac-accent-subtle); color: #074CBA; }
.badge--accent-light { background: #E3EFFF; color: #074CBA; }
.badge--light        { background: transparent; border: 1px solid var(--ac-border); color: var(--ac-text-secondary); }
.badge--dark         { background: #fff; color: var(--ac-blue-600); }

/* ─── CTA Section ─── */
.section-cta {
  background: var(--ac-cta);
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
}
.cta-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.cta-label {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  line-height: 28px;
  text-align: center;
}
.cta-headline {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 44px;
  text-align: center;
}
.btn-cta {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  color: var(--ac-blue-500);
  border: none;
  border-radius: 4px;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--ac-font);
  cursor: pointer;
  line-height: 28px;
  transition: background-color 0.15s, color 0.15s;
  color-scheme: light;
}
.btn-cta:hover { background-color: var(--ac-bg-subtle); color: var(--ac-blue-600); }

/* ─── Footer ─── */
.footer { background: var(--ac-navy); width: 100%; }
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 120px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-size: 16px; font-weight: 600; color: #F5F5F5; }
.footer-bottom { display: flex; flex-direction: column; gap: 17px; }
.footer-legal { display: flex; align-items: center; gap: 12px; }
.footer-legal a { font-size: 16px; font-weight: 600; color: #E1E1E1; }
.footer-sep-v { width: 1px; height: 14px; background: #AFAFAF; }
.footer-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-info strong,
.footer-info span { font-size: 14px; color: #E1E1E1; line-height: 20px; }
.footer-info strong { font-weight: 600; }
.footer-info span   { font-weight: 400; }
.footer-info .sep,
.sep { width: 1px; height: 12px; background: #AFAFAF; }
.footer-copy { font-size: 12px; font-weight: 400; color: #6E6E6E; line-height: 18px; }
