:root {
  --primary: #6c63ff;
  --primary-dark: #4f46e5;
  --cyan: #00d4ff;
  --navy: #10162f;
  --text: #1f2937;
  --muted: #667085;
  --line: #e6e9f2;
  --bg: #ffffff;
  --soft: #f7f8fc;
  --soft-blue: #eff7ff;
  --shadow: 0 24px 70px rgba(30, 41, 59, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 40px, var(--container)); margin: 0 auto; }
.section { padding: 110px 0; position: relative; overflow: hidden; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-heading h2, .hero h1, .director-copy h2, .contact-copy h2 {
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.055em;
  line-height: 1.12;
}
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
.section-heading p { margin: 18px auto 0; color: var(--muted); font-size: 1.06rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease, border-color .24s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 14px 34px rgba(108, 99, 255, 0.26);
}
.btn-secondary {
  color: var(--primary-dark);
  background: white;
  border-color: rgba(108, 99, 255, .2);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(230, 233, 242, .7);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 14px 34px rgba(15, 23, 42, .08); background: rgba(255,255,255,.95); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; color: var(--navy); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  min-width: 76px;
  height: 34px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  letter-spacing: .16em;
  font-size: .95rem;
  box-shadow: 0 10px 24px rgba(108, 99, 255, .22);
}
.brand-text { font-size: 1.02rem; letter-spacing: -0.04em; }
.desktop-nav { display: flex; align-items: center; gap: 8px; }
.desktop-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #384154;
  font-weight: 800;
  font-size: .95rem;
  transition: background .2s ease, color .2s ease;
}
.desktop-nav a:hover { background: var(--soft-blue); color: var(--primary-dark); }
.desktop-nav .login-link { background: var(--navy); color: white; padding-inline: 18px; }
.mobile-menu-btn { display: none; width: 44px; height: 44px; border: 0; background: white; border-radius: 14px; box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.mobile-menu-btn span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; padding: 10px 20px 20px; background: white; border-top: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 14px 12px; font-weight: 800; border-radius: 14px; }
.mobile-nav a:hover { background: var(--soft-blue); color: var(--primary-dark); }
.mobile-nav.open { display: block; }

.hero {
  min-height: 850px;
  padding-top: 150px;
  background:
    radial-gradient(circle at 20% 20%, rgba(108, 99, 255, .16), transparent 32%),
    radial-gradient(circle at 86% 14%, rgba(0, 212, 255, .18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.8rem); font-weight: 900; }
.hero-subtitle { max-width: 640px; margin: 26px 0 0; color: #536071; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; max-width: 620px; }
.hero-trust div { padding: 18px; border: 1px solid rgba(108,99,255,.13); border-radius: 20px; background: rgba(255,255,255,.74); box-shadow: 0 12px 30px rgba(15,23,42,.06); }
.hero-trust strong { display: block; color: var(--navy); font-size: 1.5rem; font-weight: 900; }
.hero-trust span { color: var(--muted); font-size: .9rem; font-weight: 700; }
.hero-visual { position: relative; min-height: 560px; display: grid; place-items: center; }
.main-dashboard { width: min(100%, 480px); padding: 24px; border-radius: 32px; background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.dashboard-top { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.purple { background: var(--primary); } .dot.blue { background: #3b82f6; } .dot.cyan { background: var(--cyan); }
.dashboard-title { margin-left: auto; color: var(--muted); font-weight: 800; font-size: .9rem; }
.score-card { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-radius: 24px; color: white; background: linear-gradient(135deg, #161b3d, #312e81 54%, #06b6d4); }
.score-card span { display: block; opacity: .78; font-weight: 700; }
.score-card strong { font-size: 1.3rem; }
.score-badge { display: grid !important; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: rgba(255,255,255,.18); font-weight: 900 !important; opacity: 1 !important; }
.progress-list { margin-top: 22px; display: grid; gap: 16px; }
.progress-item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-bottom: 14px; color: var(--navy); font-weight: 800; }
.progress-item span { color: var(--muted); font-weight: 700; }
.progress-item::after, .progress-item i { content: ''; position: absolute; left: 0; bottom: 0; height: 7px; border-radius: 99px; }
.progress-item::after { right: 0; background: #edf1f7; }
.progress-item i { width: var(--w); background: linear-gradient(90deg, var(--primary), var(--cyan)); z-index: 1; }
.dashboard-note { margin-top: 22px; padding: 16px; border-radius: 18px; text-align: center; font-weight: 900; color: var(--primary-dark); background: #f1f4ff; }
.floating-card { position: absolute; padding: 14px 18px; border-radius: 18px; background: white; box-shadow: 0 20px 44px rgba(15,23,42,.13); font-weight: 900; color: var(--navy); animation: floatY 4s ease-in-out infinite; }
.card-a { left: 0; top: 88px; } .card-b { right: 6px; bottom: 76px; animation-delay: -1.2s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-bg-orb { position: absolute; border-radius: 999px; filter: blur(6px); opacity: .58; pointer-events: none; }
.orb-1 { width: 340px; height: 340px; left: -120px; top: 190px; background: rgba(108,99,255,.11); }
.orb-2 { width: 420px; height: 420px; right: -180px; bottom: 100px; background: rgba(0,212,255,.14); }

.about { background: #fff; }
.system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.system-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: 0 16px 44px rgba(15,23,42,.06); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.system-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(108,99,255,.26); }
.system-card .icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(108,99,255,.14), rgba(0,212,255,.16)); font-size: 1.7rem; }
.system-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.28rem; letter-spacing: -.03em; }
.system-card p { margin: 0; color: var(--muted); }

.programs { background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%); }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 14px 34px rgba(15,23,42,.06); }
.tab-btn { min-height: 56px; border: 0; border-radius: 18px; background: transparent; color: #4b5563; font-weight: 900; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.tab-btn:hover { background: var(--soft-blue); color: var(--primary-dark); }
.tab-btn.active { color: white; background: linear-gradient(135deg, var(--primary), var(--cyan)); box-shadow: 0 14px 30px rgba(108,99,255,.22); }
.tab-panels { margin-top: 22px; }
.tab-panel { display: none; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; padding: 34px; border-radius: 32px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tab-panel.active { display: grid; animation: fadeIn .28s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.panel-copy h3 { margin: 0 0 14px; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.05em; }
.panel-copy p { color: var(--muted); font-size: 1.05rem; }
.panel-copy ul { margin: 22px 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; }
.panel-copy li { position: relative; padding-left: 26px; font-weight: 700; color: #394155; }
.panel-copy li::before { content: ''; position: absolute; left: 0; top: .72em; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--cyan)); }
.panel-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; padding: 30px; border-radius: 28px; color: white; background: linear-gradient(135deg, #111827, #312e81); overflow: hidden; position: relative; }
.panel-card::before { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -80px; border-radius: 50%; background: rgba(0,212,255,.24); }
.panel-card.accent { background: linear-gradient(135deg, #4f46e5, #06b6d4); }
.panel-card span, .panel-card p, .panel-card strong { position: relative; z-index: 1; }
.panel-card span { opacity: .75; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.panel-card strong { margin-top: 12px; font-size: 2.2rem; line-height: 1.14; letter-spacing: -.05em; }
.panel-card p { margin: 18px 0 0; opacity: .82; }

.results, .faq, .location { background: var(--soft); }
.results-layout { display: grid; grid-template-columns: 1fr .82fr; gap: 24px; }
.result-box, .review-slider, .philosophy-card, .contact-highlight, .location-info { border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: 0 16px 44px rgba(15,23,42,.06); }
.result-box { padding: 30px; }
.result-box h3 { margin: 0 0 18px; color: var(--navy); font-size: 1.5rem; }
.year-list { display: flex; gap: 8px; margin-bottom: 20px; }
.year-chip { border: 1px solid var(--line); background: white; padding: 9px 16px; border-radius: 999px; font-weight: 900; cursor: pointer; }
.year-chip.active { color: white; background: var(--primary); border-color: var(--primary); }
.university-placeholder, .photo-placeholder, .map-placeholder { display: grid; place-items: center; text-align: center; border: 1px dashed rgba(108,99,255,.34); background: linear-gradient(135deg, rgba(108,99,255,.08), rgba(0,212,255,.08)); border-radius: 24px; color: var(--muted); }
.university-placeholder { min-height: 260px; padding: 28px; }
.university-placeholder span, .photo-placeholder span, .map-placeholder span { color: var(--navy); font-weight: 900; }
.review-slider { position: relative; padding: 30px; overflow: hidden; min-height: 360px; }
.review-card { display: none; }
.review-card.active { display: block; animation: fadeIn .3s ease both; }
.review-card p { margin: 0 0 24px; color: var(--navy); font-size: 1.34rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.48; }
.review-card strong { color: var(--primary-dark); }
.slider-dots { position: absolute; left: 30px; bottom: 28px; display: flex; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: #cfd6e6; cursor: pointer; }
.slider-dots button.active { width: 28px; background: linear-gradient(90deg, var(--primary), var(--cyan)); }

.director { background: white; }
.director-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center; }
.photo-placeholder { min-height: 520px; }
.director-copy h2, .contact-copy h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
.director-copy p, .contact-copy p { color: var(--muted); font-size: 1.06rem; }
.philosophy-card { padding: 24px; margin: 26px 0; }
.philosophy-card strong { color: var(--navy); font-size: 1.08rem; }
.philosophy-card p { margin-bottom: 0; }
.director-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.director-list li { padding: 14px 18px; border-radius: 16px; background: #f6f8ff; font-weight: 800; color: #384154; }

.accordion { max-width: 880px; margin: 0 auto; display: grid; gap: 14px; }
.accordion-item { border: 1px solid var(--line); border-radius: 20px; background: white; overflow: hidden; box-shadow: 0 12px 30px rgba(15,23,42,.05); }
.accordion-btn { width: 100%; border: 0; background: white; padding: 22px 24px; text-align: left; color: var(--navy); font-size: 1.08rem; font-weight: 900; cursor: pointer; position: relative; }
.accordion-btn::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.5rem; }
.accordion-item.open .accordion-btn::after { content: '−'; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.accordion-panel p { margin: 0; padding: 0 24px 24px; color: var(--muted); }

.contact { background: linear-gradient(135deg, #ffffff 0%, #f3fbff 100%); }
.contact-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: 44px; align-items: start; }
.contact-highlight { padding: 22px; margin-top: 28px; display: grid; gap: 8px; }
.contact-highlight strong { color: var(--navy); }
.contact-highlight span { color: var(--muted); }
.consult-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 30px; border: 1px solid var(--line); border-radius: 32px; background: white; box-shadow: var(--shadow); }
.form-row { display: grid; gap: 8px; }
.form-row.full, .checkbox-group { grid-column: 1 / -1; }
.form-row label, .checkbox-group legend { color: var(--navy); font-weight: 900; }
.form-row input, .form-row select, .form-row textarea { width: 100%; border: 1px solid #d8deea; border-radius: 16px; padding: 14px 16px; color: var(--text); background: #fbfcff; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108,99,255,.12); }
.checkbox-group { border: 1px solid #d8deea; border-radius: 18px; padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.checkbox-group legend { padding: 0 8px; }
.checkbox-group label { color: #394155; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.checkbox-group input { accent-color: var(--primary); }
.form-submit, .form-status { grid-column: 1 / -1; }
.form-status { margin: 0; min-height: 26px; color: var(--primary-dark); font-weight: 900; }
.form-status.error { color: #dc2626; }

.location-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch; }
.map-placeholder { min-height: 380px; }
.location-info { padding: 30px; }
.location-info h3 { margin: 0 0 18px; color: var(--navy); font-size: 1.5rem; }
.location-info p { color: var(--muted); }
.location-info strong { display: block; color: var(--navy); }

.site-footer { padding: 56px 0 32px; color: white; background: #10162f; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.footer-brand .brand-text { color: white; }
.site-footer p { color: rgba(255,255,255,.66); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(120px, auto)); gap: 10px 22px; }
.footer-links a { color: rgba(255,255,255,.78); font-weight: 800; }
.footer-links a:hover { color: white; }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.52); font-size: .92rem; }
.floating-kakao { position: fixed; right: 22px; bottom: 22px; z-index: 999; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 18px; border-radius: 999px; color: var(--navy); background: #fee500; box-shadow: 0 18px 38px rgba(15,23,42,.18); font-weight: 900; transition: transform .22s ease; }
.floating-kakao:hover { transform: translateY(-4px); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { min-height: auto; padding-top: 128px; }
  .hero-grid, .tab-panel, .results-layout, .director-grid, .contact-grid, .location-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 470px; }
  .system-grid { grid-template-columns: repeat(2, 1fr); }
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .photo-placeholder { min-height: 360px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 78px 0; }
  .nav-wrap { min-height: 68px; }
  .brand-mark { min-width: 66px; height: 32px; font-size: .82rem; }
  .brand-text { font-size: .92rem; }
  .hero { padding-top: 112px; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.1rem); }
  .hero-actions .btn { width: 100%; }
  .hero-trust { grid-template-columns: 1fr; }
  .hero-visual { min-height: 430px; }
  .main-dashboard { padding: 18px; }
  .floating-card { display: none; }
  .system-grid, .tabs, .consult-form, .checkbox-group { grid-template-columns: 1fr; }
  .tab-panel { padding: 24px; border-radius: 26px; }
  .panel-card { min-height: 260px; }
  .panel-card strong { font-size: 1.8rem; }
  .review-slider { min-height: 330px; }
  .review-card p { font-size: 1.12rem; }
  .footer-links { grid-template-columns: 1fr; }
  .floating-kakao { right: 14px; bottom: 14px; min-height: 52px; }
}

/* select 드롭다운 스타일 통일 */
.form-row select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23394155' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
  height: auto;
  line-height: 1.5;
}
