/* ============================================
   CareerCode — Premium Design System
   Editorial × Modern Tech
   ============================================ */

:root {
  /* Color */
  --ink: #0A0E1A;
  --ink-soft: #1C2333;
  --paper: #FAFAF7;
  --paper-warm: #F5F2EC;
  --cream: #EFEAE0;
  --blue: #1F4FFF;
  --blue-deep: #0033CC;
  --blue-soft: #E8EEFF;
  --blue-50: #F5F7FF;
  --accent: #FF5A1F;
  --accent-soft: #FFE4D6;
  --slate: #6B7280;
  --slate-soft: #9CA3AF;
  --line: #E8E5DD;
  --line-soft: #F0EDE5;
  --green: #00C896;

  /* Typography */
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(10,14,26,0.04), 0 2px 8px rgba(10,14,26,0.04);
  --shadow-2: 0 4px 12px rgba(10,14,26,0.06), 0 16px 40px rgba(10,14,26,0.08);
  --shadow-3: 0 12px 24px rgba(10,14,26,0.08), 0 24px 64px rgba(31,79,255,0.12);

  /* Layout */
  --container: 1240px;
  --rad-sm: 8px;
  --rad: 16px;
  --rad-lg: 24px;
  --rad-xl: 32px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--ink); color: var(--paper); }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

/* Grain texture */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  z-index: 1; opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-1); }
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 2px; }
.nav-logo .logo-mark { color: var(--blue); }
.nav-menu { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-menu a {
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 100px; position: relative;
  transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { background: var(--paper-warm); }
.nav-menu a.active { color: var(--blue); }
.nav-menu a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--blue);
}
.nav-cta {
  font-size: 14px; font-weight: 700; color: var(--paper);
  background: var(--ink); padding: 10px 20px; border-radius: 100px;
  transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 12px 24px 24px; display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 16px; font-weight: 700; padding: 13px 8px; border-bottom: 1px solid var(--line-soft); }
.mobile-menu a.active { color: var(--blue); }

/* ============ PAGE HERO ============ */
.page-hero { padding: 160px 0 72px; }
.page-eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.page-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--blue); }
.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.04em; color: var(--ink);
}
.page-hero h1 em { font-style: normal; color: var(--blue); font-weight: 800; }
.page-hero .lead { margin-top: 24px; font-size: 18px; color: var(--slate); max-width: 560px; line-height: 1.7; }

/* ============ SECTION ============ */
.section { padding: 88px 0; }
.section-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 56px); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.04em; color: var(--ink);
}
.section-title em { font-style: normal; color: var(--blue); font-weight: 800; }
.section-sub { margin-top: 16px; font-size: 17px; color: var(--slate); max-width: 560px; line-height: 1.7; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; padding: 16px 30px;
  border-radius: 100px; transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-3); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: var(--shadow-3); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn .arr { transition: transform 0.25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ LIVE DOT ============ */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; position: relative; }
.live-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--green); opacity: 0.6;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ============ CARDS ============ */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--rad-lg); padding: 36px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.card-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--slate-soft); margin-bottom: 14px;
}

/* ============ PAGE CTA ============ */
.page-cta {
  background: var(--ink); border-radius: var(--rad-xl);
  padding: 72px 56px; text-align: center; color: var(--paper);
  position: relative; overflow: hidden; margin-bottom: 96px;
}
.page-cta::before {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,79,255,0.35), transparent 70%);
}
.page-cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; position: relative; }
.page-cta h2 em { font-style: normal; color: #7DAEFF; font-weight: 800; }
.page-cta p { margin-top: 16px; color: rgba(250,250,247,0.6); font-size: 16px; position: relative; }
.page-cta .btn { margin-top: 32px; position: relative; }
.page-cta .btn-blue { background: var(--blue); }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--paper-warm); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-logo { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.footer-logo .logo-mark { color: var(--blue); }
.footer-tag { margin-top: 10px; font-size: 14px; color: var(--slate); }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; font-weight: 600; color: var(--ink-soft); transition: color 0.2s; }
.footer-nav a:hover { color: var(--blue); }
.footer-info { font-size: 13px; color: var(--slate); line-height: 1.9; border-top: 1px solid var(--line); padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-info a { color: var(--ink-soft); font-weight: 600; }

/* ============ ACCORDION ============ */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 28px 4px; text-align: left;
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
  transition: color 0.2s;
}
.acc-q:hover { color: var(--blue); }
.acc-q .acc-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  font-size: 16px; font-weight: 400; transition: transform 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.acc-item.open .acc-icon { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1); }
.acc-a-inner { padding: 0 4px 32px; font-size: 16px; color: var(--slate); line-height: 1.8; max-width: 720px; }
.acc-a-inner strong { color: var(--ink); font-weight: 700; }

/* ============ FORM ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.form-field label .req { color: var(--accent); margin-left: 2px; }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--line); border-radius: var(--rad-sm);
  padding: 14px 16px; font-size: 15px; background: #fff; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.form-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-msg { margin-top: 16px; font-size: 14px; font-weight: 600; display: none; padding: 14px 18px; border-radius: var(--rad-sm); }
.form-msg.ok { display: block; background: #E6FAF3; color: #007A5C; }
.form-msg.err { display: block; background: #FFEFE8; color: #C2410C; }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .page-hero { padding: 130px 0 56px; }
  .section { padding: 64px 0; }
  .page-cta { padding: 56px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 24px; }
}
