:root {
  --bg: #07090f;
  --bg-soft: #0c1019;
  --surface: rgba(18, 23, 36, 0.88);
  --surface-strong: #151b29;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(185, 141, 255, 0.35);
  --text: #f7f4ff;
  --muted: #aab1c2;
  --primary: #a971ff;
  --primary-strong: #7f42e8;
  --cyan: #62d9ff;
  --green: #72e4b2;
  --radius: 24px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 0%, rgba(127, 66, 232, 0.18), transparent 34rem),
    radial-gradient(circle at 0% 35%, rgba(98, 217, 255, 0.08), transparent 30rem),
    var(--bg);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  color: #090511;
  background: #fff;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color .2s, background .2s;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(7, 9, 15, 0.92);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--primary), #5b2bc2);
  box-shadow: 0 8px 30px rgba(127,66,232,.28);
  font: 800 22px/1 Georgia, serif;
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 18px; letter-spacing: .16em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #c8cddd;
  font-size: 14px;
  font-weight: 700;
  transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.07); }
.contact-btn, .btn {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  transition: transform .2s, filter .2s, border-color .2s;
}
.contact-btn {
  padding: 12px 17px;
  color: #10081b;
  background: linear-gradient(135deg, #c99aff, var(--primary));
  white-space: nowrap;
}
.contact-btn:hover, .btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.contact-dot { width: 7px; height: 7px; border-radius: 50%; background: #341063; box-shadow: 0 0 0 5px rgba(52,16,99,.14); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

main { overflow: hidden; }
.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(7,9,15,.98) 0%, rgba(7,9,15,.84) 47%, rgba(7,9,15,.35) 100%), url("images/hero3.png") center/cover no-repeat;
  opacity: .72;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}
.hero-inner, .section-inner, .page-hero-inner, .footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}
.hero-copy { max-width: 760px; padding: 100px 0 140px; }
.eyebrow {
  margin: 0 0 16px;
  color: #cda7ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1, .page-hero h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.hero h1 span, .page-hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, #fff, #c798ff 45%, #62d9ff);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: #c5cbd8;
  font-size: clamp(17px, 2vw, 21px);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.btn { min-height: 52px; padding: 0 22px; }
.btn-primary { color: #10081b; background: linear-gradient(135deg, #d3a7ff, var(--primary)); }
.btn-secondary { color: #fff; border: 1px solid var(--line); background: rgba(255,255,255,.06); }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.hero-tags span, .pill {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd1df;
  background: rgba(11,14,23,.58);
  font-size: 13px;
  font-weight: 700;
}

.section { padding: 110px 0; }
.section-soft { border-block: 1px solid var(--line); background: rgba(255,255,255,.025); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 42px;
}
.section-heading h2 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.17; letter-spacing: -.04em; }
.section-heading > p { max-width: 510px; margin: 0; color: var(--muted); }
.keyword-grid, .feature-grid, .process-grid, .program-grid { display: grid; gap: 18px; }
.keyword-grid { grid-template-columns: repeat(3, 1fr); }
.keyword-card, .feature-card, .process-card, .program-card, .info-card, .faq-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(25,31,47,.92), rgba(13,17,27,.94));
  box-shadow: var(--shadow);
}
.keyword-card { min-height: 350px; padding: 32px; display: flex; flex-direction: column; }
.keyword-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(169,113,255,.17), transparent 16rem);
}
.keyword-index { color: #c69bff; font-size: 12px; font-weight: 900; letter-spacing: .2em; }
.keyword-card h3 { margin: 72px 0 10px; font-size: 36px; letter-spacing: -.04em; }
.keyword-card p { margin: 0; color: var(--muted); }
.card-link { margin-top: auto; padding-top: 32px; color: #dfc7ff; font-weight: 800; }
.keyword-card:hover { border-color: var(--line-strong); transform: translateY(-4px); transition: .22s; }
.feature-grid { grid-template-columns: repeat(4, 1fr); }
.feature-card { padding: 26px; }
.feature-card b { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px; border-radius: 14px; color: #0a1114; background: var(--cyan); }
.feature-card h3 { margin: 0 0 8px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }
.process-grid { grid-template-columns: repeat(4, 1fr); }
.process-card { padding: 28px; }
.process-card span { color: #c69bff; font-weight: 900; }
.process-card h3 { margin: 24px 0 8px; }
.process-card p { margin: 0; color: var(--muted); }
.policy-banner {
  margin-top: 28px;
  padding: 22px 25px;
  border: 1px solid rgba(114,228,178,.28);
  border-radius: 18px;
  color: #d5f7e8;
  background: rgba(114,228,178,.07);
}
.policy-banner strong { color: var(--green); }
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-list details { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); }
.faq-list summary { padding: 21px 24px; cursor: pointer; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: #c59aff; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

.page-hero { position: relative; padding: 130px 0 90px; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -100px; top: -180px; border-radius: 50%; background: rgba(127,66,232,.18); filter: blur(50px); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 850px; font-size: clamp(42px, 6vw, 72px); }
.page-hero .lead { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 19px; }
.page-hero .hero-tags { margin-top: 28px; }
.program-grid { grid-template-columns: repeat(2, 1fr); }
.program-card { padding: 32px; }
.program-card .program-number { color: #bd8cff; font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.program-card h3 { margin: 28px 0 10px; font-size: 26px; }
.program-card p { margin: 0; color: var(--muted); }
.session-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.session-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.session-card.featured { border-color: var(--line-strong); background: linear-gradient(145deg, rgba(127,66,232,.16), rgba(255,255,255,.035)); }
.session-card .pill { display: inline-block; color: #d8baff; }
.session-card h3 { margin: 22px 0 6px; font-size: 26px; }
.session-card p { min-height: 50px; margin: 0; color: var(--muted); }
.session-card ul { margin: 24px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; color: #d9ddea; }
.session-card li::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 900; }
.info-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card { padding: 32px; }
.info-card h3 { margin: 0 0 18px; font-size: 25px; }
.clean-list { margin: 0; padding: 0; display: grid; gap: 12px; list-style: none; color: var(--muted); }
.clean-list li { position: relative; padding-left: 22px; }
.clean-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

.cta-band { padding: 90px 0; }
.cta-box {
  padding: 55px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: radial-gradient(circle at 85% 20%, rgba(98,217,255,.12), transparent 18rem), linear-gradient(135deg, rgba(127,66,232,.22), rgba(19,24,37,.9));
  box-shadow: var(--shadow);
}
.cta-box h2 { max-width: 700px; margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; }
.cta-box p { margin: 12px 0 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 45px 0; color: var(--muted); }
.footer-inner { display: flex; align-items: center; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-copy { margin-left: auto; text-align: right; font-size: 13px; }
.footer-links { display: flex; gap: 16px; margin-bottom: 5px; justify-content: flex-end; }
.footer-links a:hover { color: #fff; }
.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  padding: 15px 19px;
  border-radius: 999px;
  color: #12091d;
  background: linear-gradient(135deg, #d7b0ff, var(--primary));
  box-shadow: 0 14px 40px rgba(127,66,232,.35);
  font-weight: 900;
}
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 150; opacity: 0; transform: translate(-50%, 20px); padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: #171c29; transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s, transform .55s; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .header-inner { min-height: 68px; }
  .brand-copy small { display: none; }
  .main-nav {
    position: fixed;
    inset: 68px 0 0;
    margin: 0;
    padding: 28px 20px 120px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
    background: rgba(7,9,15,.98);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 15px; font-size: 18px; }
  .header-inner > .contact-btn { margin-left: auto; }
  .nav-toggle { display: block; margin-left: 0; }
  .keyword-grid, .feature-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .session-grid { grid-template-columns: 1fr; }
  .section-heading, .cta-box { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .header-inner, .hero-inner, .section-inner, .page-hero-inner, .footer-inner { width: min(calc(100% - 28px), var(--max)); }
  .header-inner > .contact-btn { display: none; }
  .hero { min-height: 650px; }
  .hero-copy { padding: 90px 0 100px; }
  .hero h1 { font-size: 48px; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 30px; }
  .keyword-grid, .feature-grid, .process-grid, .program-grid, .info-layout { grid-template-columns: 1fr; }
  .keyword-card { min-height: 280px; }
  .keyword-card h3 { margin-top: 46px; }
  .page-hero { padding: 95px 0 65px; }
  .cta-box { padding: 34px 26px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-copy { margin-left: 0; text-align: left; }
  .footer-links { justify-content: flex-start; }
  .floating-contact { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
