:root {
  --bg: #ffffff;
  --text: #0b1221;
  --muted: #6b7280;
  --primary: #1b64ff;
  --primary-600: #1553d6;
  --surface: #f6f7fb;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
}

html {
  scrollbar-width: none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 24px; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(17,24,39,0.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.logo-mark { display: inline-flex; width: 28px; height: 28px; border-radius: 8px; align-items: center; justify-content: center; background: var(--surface); color: var(--primary); }
.logo-mark-img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }

.nav a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { background: var(--surface); }
.profile-chip { display: inline-flex; align-items: center; gap: 8px; }
.avatar-mini { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); }
.profile-name { font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 12px 18px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all .15s ease; box-shadow: 0 1px 0 rgba(17,24,39,0.04); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.nav-toggle { 
  display: none; 
  width: 44px; 
  height: 44px; 
  border: 1px solid var(--border); 
  background: #fff; 
  border-radius: 12px; 
  align-items: center; 
  justify-content: center; 
  gap: 4px; 
  flex-direction: column; 
  cursor: pointer;
  z-index: 1001;
  position: relative;
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
  touch-action: manipulation;
  pointer-events: auto;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
}

/* PC에서는 햄버거 버튼 완전히 숨기기 */
@media (min-width: 769px) {
  .nav-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
  }
}
.nav-toggle span { 
  width: 18px; 
  height: 2px; 
  background: var(--text); 
  display: block; 
  transition: all 0.3s ease;
}

main.container { padding: 32px 20px; flex: 1; }

.hero { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 20px); align-items: center; min-height: 56vh; padding: clamp(24px, 5vw, 64px) 0; background: linear-gradient(180deg, #fff 0%, #f8faff 100%); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero.has-bg { background: none; background-size: 100% auto; background-position: center 60%; background-repeat: no-repeat; }
.hero > div { position: relative; z-index: 1; }
.hero > div { max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.02; margin: 0 0 12px; letter-spacing: -0.01em; padding-left: 10px; }
.hero p { color: var(--muted); font-size: clamp(15px, 1.5vw, 20px); margin: 0 0 24px; max-width: 760px; padding-left: 10px; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; background: #eff6ff; border: 1px solid #bfdbfe; padding: 6px 10px; border-radius: 999px; }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }

.section { margin-top: 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 20px); }
.section.centered { text-align: center; }
.section.centered .grid { max-width: 900px; margin: 0 auto; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: 0 1px 2px rgba(17,24,39,0.04); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.timeline { position: relative; display: grid; gap: 18px; max-width: 800px; margin: 0 auto; }
.timeline:before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px; }
.timeline-node { position: static; justify-self: center; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 1px 0 rgba(17,24,39,0.06); }
.timeline-content { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.timeline-title { font-weight: 700; }
.timeline-desc { color: var(--muted); }

.timeline-item.win .timeline-content { border-color: #bfdbfe; background: #f5faff; }
.timeline-item.win .timeline-node { border-color: #3b82f6; }
.award { color: #1d4ed8; font-weight: 700; background: #eff6ff; border: 1px solid #bfdbfe; padding: 2px 6px; border-radius: 8px; display: inline-block; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.team { display: grid; grid-template-columns: repeat( auto-fit, minmax(160px, 1fr) ); gap: 16px; max-width: 900px; margin: 0 auto; }
.team.two-only { grid-template-columns: repeat(2, minmax(200px, 280px)); justify-content: center; }
.team-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: 0 1px 2px rgba(17,24,39,0.04); }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); margin: 0 auto 8px; }
.team-name { font-weight: 700; }
.team-role { color: var(--muted); }

.flash { display: grid; gap: 8px; margin-bottom: 16px; }
.flash-item { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.flash-item.info { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }

.form { display: grid; gap: 14px; max-width: 520px; }
.form .row { display: grid; gap: 6px; }
.form label { font-weight: 600; }
.form input { height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; outline: none; width: 100%; }
.form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,100,255,0.15); }
.form .hint { color: var(--muted); font-size: 13px; }
.form details[open] summary { margin-bottom: 10px; }
.form textarea { width: 100%; min-height: 120px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; resize: vertical; outline: none; }
.form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,100,255,0.15); }

.list { display: grid; gap: 12px; }
.list-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 12px; }

.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(12px, 2vw, 20px); }
 .learn-grid { max-width: 980px; margin: 0 auto; }
 .learn-grid .list .list-item { width: 100%; max-width: none; margin: 0; }
 .panel { background:#fff; border:1px solid var(--border); border-radius:16px; padding:12px; }
 .panel-head { display:flex; align-items:center; justify-content:space-between; padding: 6px 8px 10px; border-bottom:1px solid var(--border); margin-bottom:8px; }
 .panel-head h3 { margin:0; font-size:16px; }
 .page-head { display:flex; align-items:baseline; justify-content: space-between; gap:10px; margin-bottom: 10px; max-width: 980px; margin-left: auto; margin-right: auto; }
 .lead { display:flex; gap:10px; align-items:center; }
 .dot { width:10px; height:10px; flex: 0 0 10px; aspect-ratio: 1 / 1; border-radius:50%; display:inline-block; border:1px solid var(--border); pointer-events: none; user-select: none; box-sizing: content-box; }
 .cat-unity { background:#fef3c7; border-color:#fcd34d; }
 .cat-ml { background:#dcfce7; border-color:#86efac; }
 .cat-dl { background:#dbeafe; border-color:#93c5fd; }
 .cat-web { background:#f0f9ff; border-color:#7dd3fc; }
 .badge.due { background:#fff7ed; border-color:#fed7aa; color:#c2410c; }
 .empty { text-align:center; color: var(--muted); padding: 20px 0; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { border: 1px solid var(--border); background: #fff; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.tab.active, .tab:hover { border-color: var(--primary); color: var(--primary); }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.32); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.show { display: flex; }
.modal-content { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; width: 100%; max-width: 420px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.check-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.inline-check { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
.inline-check:hover { border-color: var(--primary); }
.inline-check input { width: 18px; height: 18px; }
.inline-check span { font-weight: 600; }

.selected-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
#cat-toggle.selected-filter { justify-content: flex-start; max-width: 980px; margin-left: auto; margin-right: auto; }
.chip { border: 1px solid var(--border); background:#fff; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.chip.active { border-color: var(--primary); color: var(--primary); }
.toggle-group .chip { user-select:none; }

img, video { max-width: 100%; height: auto; display: block; }


.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) ); gap: 16px; max-width: 900px; margin: 0 auto; text-align: center; justify-items: center; }
.footer-col h4 { margin: 0 0 8px; font-size: 14px; color: var(--text); }
.footer-links { display: grid; gap: 6px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .hero { min-height: 50vh; padding: clamp(20px, 4vw, 48px) 0; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
  .team { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header-inner { height: 56px; }
  .logo-mark-img { width: 24px; height: 24px; }
  .logo-text { font-size: 16px; }
  
  .hero { 
    min-height: 45vh; 
    padding: clamp(16px, 3vw, 32px) 0;
    background-position: center 50% !important;
    background-size: cover !important;
  }
  .hero h1 { 
    font-size: clamp(28px, 6vw, 48px); 
    margin: 0 0 8px;
    padding-left: 0;
  }
  .hero p { 
    font-size: clamp(14px, 2vw, 18px); 
    margin: 0 0 20px;
    padding-left: 0;
  }
  .eyebrow { font-size: 11px; padding: 4px 8px; }
  
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .two-col { grid-template-columns: 1fr; gap: 16px; }
  .team { grid-template-columns: 1fr; gap: 12px; }
  .team.two-only { grid-template-columns: 1fr; max-width: 360px; }
  
  .card { padding: 16px; }
  .card h3 { font-size: 16px; }
  
  .btn { padding: 10px 16px; font-size: 14px; }
  .hero-actions { gap: 8px; }
  
  .timeline { gap: 16px; }
  .timeline-content { padding: 12px; }
  .timeline-title { font-size: 15px; }
  .timeline-desc { font-size: 13px; }
  
  .form { gap: 12px; }
  .form input { height: 48px; font-size: 16px; }
  .form textarea { min-height: 100px; font-size: 16px; }
  
  .nav { display: none; }
  .nav-toggle { 
    display: inline-flex !important; 
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 9999 !important;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 12px; }
  .header-inner { height: 52px; }
  .main.container { padding: 20px 12px; }
  
  .hero { 
    min-height: 40vh; 
    padding: clamp(12px, 2vw, 24px) 0;
    background-size: cover !important;
  }
  .hero h1 { 
    font-size: clamp(24px, 8vw, 36px); 
    line-height: 1.1;
  }
  .hero p { 
    font-size: clamp(13px, 2.5vw, 16px); 
    line-height: 1.4;
  }
  
  .section { margin-top: 24px; }
  .card { padding: 14px; border-radius: 12px; }
  .card h3 { font-size: 15px; margin: 0 0 4px; }
  .card p { font-size: 13px; }
  
  .team { grid-template-columns: 1fr; gap: 10px; }
  .team-item { padding: 12px; }
  .avatar { width: 56px; height: 56px; }
  .team-name { font-size: 14px; }
  .team-role { font-size: 12px; }
  
  .btn { padding: 12px 20px; font-size: 15px; border-radius: 12px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  
  .timeline { gap: 12px; }
  .timeline-item { grid-template-columns: 20px 1fr; gap: 8px; }
  .timeline-node { width: 12px; height: 12px; }
  .timeline-content { padding: 10px; border-radius: 12px; }
  .timeline-title { font-size: 14px; }
  .timeline-desc { font-size: 12px; }
  
  .form { max-width: 100%; }
  .form input { height: 52px; padding: 12px 16px; }
  .form textarea { min-height: 120px; padding: 12px 16px; }
  
  .nav-toggle { 
    width: 48px; 
    height: 48px; 
    min-width: 48px;
    min-height: 48px;
    padding: 8px;
  }
  .nav-toggle span { width: 18px; height: 2px; }
  
  .page-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lead { flex-wrap: wrap; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 8px; }
  .main.container { padding: 16px 8px; }
  
  .hero { min-height: 35vh; }
  .hero h1 { font-size: clamp(20px, 9vw, 28px); }
  .hero p { font-size: clamp(12px, 3vw, 14px); }
  
  .card { padding: 12px; }
  .card h3 { font-size: 14px; }
  .card p { font-size: 12px; }
  
  .btn { padding: 10px 16px; font-size: 14px; }
  
  .team-item { padding: 10px; }
  .avatar { width: 48px; height: 48px; }
  
  .timeline-content { padding: 8px; }
  .timeline-title { font-size: 13px; }
  .timeline-desc { font-size: 11px; }
  
  .form input { height: 48px; padding: 10px 14px; }
  .form textarea { min-height: 100px; padding: 10px 14px; }
}

.nav { 
  display: flex; 
  align-items: center; 
  justify-content: flex-end;
  gap: 16px; 
  width: 100%;
}

/* PC에서만 우측 정렬 강제 적용 */
@media (min-width: 769px) {
  .nav {
    justify-content: flex-end !important;
    margin-left: auto;
  }
}

@media (max-width: 1024px) {
  .nav { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.5); 
    z-index: 1000;
    padding: 0;
  }

  .nav.open { 
    display: flex !important; 
    align-items: flex-start; 
    justify-content: flex-start;
    padding: 80px 0 20px 0;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
  }
}

.nav.open { 
  display: flex !important; 
  align-items: flex-start; 
  justify-content: flex-start;
  padding: 80px 0 20px 0;
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

  
  .nav-toggle {
    display: inline-flex !important;
    cursor: pointer;
    z-index: 1001;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    touch-action: manipulation;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 44px;
    min-height: 44px;
  }
  
  .nav-toggle:hover {
    background: var(--surface);
  }
  
  .nav-toggle:active {
    transform: scale(0.95);
  }
  
  .nav-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn:hover { transform: none; }
  .card:hover { transform: none; }
  .nav a:hover { background: var(--surface); }
  
  .btn:active { transform: scale(0.98); }
  .card:active { transform: scale(0.99); }
  
  .nav-toggle {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    padding: 10px !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0.2) !important;
    touch-action: manipulation !important;
  }
  
  .nav-toggle:active {
    transform: scale(0.95);
    background: var(--surface);
  }
}

@media (max-width: 768px) {
  body { -webkit-overflow-scrolling: touch; }
  
  .hero.has-bg {
    background-attachment: scroll !important;
  }
}


