/* RyanLAB Design Tokens */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  /* Brand */
  --brand-primary: #1E40AF;
  --brand-primary-hover: #1A3796;
  --brand-primary-press: #162E7E;
  --brand-primary-soft: #EEF2FF;
  --brand-primary-tint: #DBE4FF;

  /* Text */
  --text-primary: #1A1A1A;
  --text-body: #4A4A4A;
  --text-muted: #717171;
  --text-faint: #9A9A9A;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #B8C2D9;

  /* Surface */
  --bg-base: #FFFFFF;
  --bg-section: #F5F5F7;
  --bg-card: #FFFFFF;
  --bg-dark: #0B1D3A;
  --bg-dark-soft: #142A52;

  /* Border */
  --border-subtle: #E5E5EA;
  --border-default: #D1D1D6;
  --border-strong: #B0B0B5;
  --border-focus: #1E40AF;

  /* Semantic */
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
  --info: #2563EB;

  /* Status backgrounds (for admin) */
  --status-new-bg: #DBEAFE;
  --status-new-fg: #1E40AF;
  --status-progress-bg: #FEF3C7;
  --status-progress-fg: #92400E;
  --status-done-bg: #DCFCE7;
  --status-done-fg: #166534;

  /* Type */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;

  /* Type scale */
  --fs-display: 56px;
  --fs-h1: 40px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-caption: 13px;
  --fs-micro: 12px;

  /* Line heights */
  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-base: 1.5;
  --lh-relaxed: 1.7;

  /* Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing scale (4px) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;     /* default per brand */
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-full: 9999px;

  /* Shadow */
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-pop: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-focus: 0 0 0 3px rgba(30, 64, 175, 0.18);

  /* Layout */
  --container-max: 1200px;
  --header-h: 72px;
  --header-h-mobile: 60px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 400ms;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text-body);
  background: var(--bg-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-md);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn--primary { background: var(--brand-primary); color: #fff; }
.btn--primary:hover { background: var(--brand-primary-hover); }
.btn--primary:active { background: var(--brand-primary-press); }

.btn--secondary { background: #fff; color: var(--brand-primary); border: 1.5px solid var(--brand-primary); }
.btn--secondary:hover { background: var(--brand-primary-soft); }

.btn--ghost { background: transparent; color: var(--text-primary); }
.btn--ghost:hover { background: var(--bg-section); }

.btn--lg { height: 56px; padding: 0 28px; font-size: var(--fs-body-lg); }
.btn--sm { height: 36px; padding: 0 14px; font-size: var(--fs-body-sm); }

/* Card */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

/* Section */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-section); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--brand-primary);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
