:root {
  --bg: #0A0A16;
  --bg-card: #151228;
  --text: #F5F3FF;
  --text-2: #A79FCB;
  --primary: #8B5CF6;
  --art: #E879F9;
  --accent: #22D3EE;
  --hi: #C4B5FD;
  --line: #2A2447;
  --ok: #34D399;
  --warn: #FBBF24;
  --err: #F87171;
  --grad: linear-gradient(120deg, #8B5CF6 0%, #E879F9 52%, #22D3EE 100%);
  --radius: 16px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
  --maxw: 1120px;
  --header-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; }
strong { font-weight: 700; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3); }
.container-narrow { max-width: 860px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 14, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 14, 26, 0.85); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s3); }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-badge {
  width: 34px; height: 34px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff;
}
.logo-text { font-size: 12px; font-weight: 700; line-height: 1.25; color: var(--text); letter-spacing: .02em; }
.site-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); white-space: nowrap;
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang-btn {
  background: none; border: 0; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600;
  padding: 6px 10px; cursor: pointer;
}
.lang-btn.is-active { background: var(--grad); color: #fff; }

main { padding-top: var(--header-h); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--s6) 0 var(--s5); }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 130%;
  background:
    radial-gradient(640px 460px at 16% 18%, rgba(232,121,249,.26), transparent 62%),
    radial-gradient(600px 440px at 84% 32%, rgba(139,92,246,.30), transparent 60%),
    radial-gradient(520px 400px at 60% 90%, rgba(34,211,238,.14), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% bottom; z-index: 0;
}
.hero-art-mask {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(10,10,22,.92) 0%, rgba(10,10,22,.62) 38%, rgba(10,10,22,.22) 72%, rgba(10,10,22,.08) 100%),
    linear-gradient(180deg, rgba(10,10,22,.5), transparent 32%, rgba(10,10,22,.65) 96%);
}
.edu-art {
  width: 100%; height: clamp(180px, 32vw, 300px); object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: var(--s3);
}
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--hi);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: var(--s3);
  background: rgba(21,18,40,.5);
}
.hero-title { font-size: clamp(40px, 7vw, 64px); font-weight: 800; letter-spacing: -.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: var(--s2); max-width: 640px; font-size: 17px; color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s4); font-size: 14px; color: var(--text-2); }
.hero-meta span { display: inline-flex; gap: 8px; align-items: baseline; }
.hero-meta strong { color: var(--text); }

/* icons */
.ic { width: 24px; height: 24px; flex-shrink: 0; }
.card-ic { width: 42px; height: 42px; margin-bottom: 12px; padding: 9px; background: rgba(139,92,246,.12); border: 1px solid var(--line); border-radius: 12px; }
.sec-title-ic { display: inline-flex; vertical-align: -4px; margin-right: 12px; }

/* hero skyline */
.hero-skyline {
  position: absolute; inset: auto 0 0 0; height: 55%;
  pointer-events: none; opacity: .8;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%);
  mask-image: linear-gradient(180deg, transparent, #000 55%);
}
.hero-skyline svg { width: 100%; height: 100%; display: block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(139,92,246,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(34,211,238,.4); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(21,18,40,.4); }
.btn-ghost:hover { border-color: var(--hi); color: var(--hi); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- sections ---------- */
.section { padding: var(--s6) 0; }
.section-alt { background: rgba(21,18,40,.35); border-block: 1px solid var(--line); }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.01em; margin-bottom: var(--s2); }
.section-title::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 99px;
  background: var(--grad); margin-top: 12px;
}
.lead { color: var(--text-2); margin-bottom: var(--s3); max-width: 680px; }

/* cards */
.cards { display: grid; gap: var(--s2); margin-top: var(--s3); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: rgba(21,18,40,.55); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s3); backdrop-filter: blur(6px);
}
.card h3 { font-size: 14px; color: var(--hi); margin-bottom: 8px; letter-spacing: .02em; }
.card p, .card li { font-size: 14.5px; color: var(--text); }
.card .card-big { font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card ul { list-style: none; }
.card li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
.card li::before { content: "▪"; color: var(--accent); font-size: 11px; }

.cat-specs {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-2); letter-spacing: .01em;
}
.award-note { font-size: 13px; color: var(--text-2); margin-top: 12px; }
.jr-head small { color: var(--text-2); font-weight: 400; }
.jr-head small::before { content: "— "; }

/* timeline */
.timeline { margin-top: var(--s4); position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: .5;
}
.milestone { position: relative; padding: 0 0 var(--s4) 40px; }
.milestone:last-child { padding-bottom: 0; }
.milestone::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 4px solid var(--hi);
}
.ms-ic {
  display: block; width: 34px; height: 34px; padding: 6px; margin-bottom: 10px;
  background: rgba(139,92,246,.14); border: 1px solid var(--line); border-radius: 10px;
}
.ms-ic .ic { width: 100%; height: 100%; }
.milestone .ms-soon {
  display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--grad);
}
.milestone time { display: block; font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  .timeline::before { left: calc(50% - 1px); }
  .milestone {
    width: calc(50% - 40px); padding: var(--s3);
    background: rgba(21,18,40,.55); border: 1px solid var(--line); border-radius: var(--radius);
    backdrop-filter: blur(6px);
  }
  .milestone::before { top: 24px; left: calc(100% + 31px); }
  .milestone:nth-child(even) { margin-left: calc(50% + 40px); }
  .milestone:nth-child(even)::before { left: auto; right: calc(100% + 31px); }
}
.milestone strong { display: block; font-size: 18px; margin: 2px 0 4px; }
.milestone span { color: var(--text-2); font-size: 14px; }

/* tables */
.table-wrap { overflow-x: auto; margin-top: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { padding: 12px var(--s2); text-align: left; border-bottom: 1px solid var(--line); }
th { background: rgba(139,92,246,.14); font-size: 13px; color: var(--hi); letter-spacing: .03em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--text); }
.money { font-weight: 800; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
table .row-total td { background: rgba(34,211,238,.08); font-weight: 700; }

.awards-layout { display: grid; gap: var(--s3); margin-top: var(--s3); }
.awards-layout > * { min-width: 0; }
.table-wrap { max-width: 100%; }

/* judge bars */
.judge { margin-top: var(--s3); }
.judge h3, .award-sub { font-size: 18px; margin-bottom: var(--s2); }
.judge-row { margin-bottom: var(--s2); }
.judge-row .jr-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.judge-row .jr-head em { font-style: normal; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.judge-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.judge-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.judge-note { font-size: 13px; color: var(--text-2); margin-top: 10px; }

/* form */
form { margin-top: var(--s3); }
.notice {
  border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: 12px; background: rgba(21,18,40,.5); padding: var(--s3); margin-bottom: var(--s2);
}
.notice h3 { font-size: 15px; margin-bottom: 10px; color: var(--hi); }
.notice table { min-width: 0; font-size: 13px; }
.notice th, .notice td { padding: 7px 10px; border-bottom: 1px solid rgba(42,36,71,.6); }
.notice th { width: 110px; white-space: nowrap; color: var(--hi); font-size: 12.5px; }
.notice td { color: var(--text-2); }
.pledge-pi { border: 1px solid rgba(139,92,246,.5); border-radius: 10px; padding: 10px 12px !important; background: rgba(139,92,246,.08); font-weight: 700; }
.fieldset {
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3);
  background: rgba(21,18,40,.4); margin-bottom: var(--s2);
}
.fieldset legend { font-size: 15px; font-weight: 700; padding: 0 10px; color: var(--hi); }
.field-grid { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-1, .field.span-2, .field.span-3 { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field.span-2, .field.span-3 { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .field-grid { grid-template-columns: repeat(3, 1fr); }
  .field.span-1 { grid-column: span 1; }
  .field.span-2 { grid-column: span 2; }
  .field.span-3 { grid-column: 1 / -1; }
  .team-grid { grid-template-columns: 120px repeat(3, 1fr); }
}
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field label b { color: var(--err); font-weight: 700; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  background: rgba(10,10,22,.7); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font: inherit; font-size: 14.5px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,.25);
}
::placeholder { color: #6b6390; }
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--err); }
.err-msg { font-size: 12.5px; color: var(--err); min-height: 0; display: none; }
.err-msg.show { display: block; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative; flex: 1 1 auto; min-width: 120px;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer;
  background: rgba(10,10,22,.5); font-size: 14.5px; font-weight: 600; text-align: center;
  transition: border-color .15s, background .15s;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--primary); background: rgba(139,92,246,.16); color: #fff; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(139,92,246,.35); }

.team-grid { display: grid; gap: 10px; grid-template-columns: 110px 1fr 1fr 1fr; margin-top: 10px; }
.team-grid .tg-head { font-size: 12px; color: var(--text-2); font-weight: 600; }
.team-grid input { padding: 9px 12px; font-size: 14px; }
.team-row-label { font-size: 13px; color: var(--text-2); align-self: center; font-weight: 600; }
[hidden] { display: none !important; }

.upload-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 768px) {
  .upload-row { display: grid; grid-template-columns: repeat(2, 1fr); }
  .upload-box { flex: none; }
}
@media (min-width: 1024px) {
  .upload-row { grid-template-columns: repeat(3, 1fr); }
}
.upload-box {
  flex: 1 1 220px; max-width: 100%; border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px;
  cursor: pointer; font-size: 13.5px; color: var(--text-2); transition: border-color .15s, background .15s;
  display: flex; flex-direction: column; gap: 6px;
}
.upload-box:hover { border-color: var(--hi); background: rgba(139,92,246,.07); }
.upload-box.has-file { border-style: solid; border-color: var(--ok); color: var(--text); }
.upload-box input { display: none; }
.upload-box .ub-title { font-weight: 700; color: var(--text); }
.upload-box .ub-hint { font-size: 12px; }
.upload-box .file-name { color: var(--ok); font-weight: 600; word-break: break-all; }

.pledges { display: grid; gap: 10px; }
.pledge { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text); }
.pledge input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s3); }
.form-result {
  margin-top: var(--s2); border-radius: 12px; padding: var(--s2) var(--s3); font-size: 14.5px; display: none;
}
.form-result.show { display: block; }
.form-result.ok { background: rgba(52,211,153,.12); border: 1px solid var(--ok); }

/* faq */
.faq { margin-top: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); background: rgba(21,18,40,.4); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px var(--s3); font-weight: 700; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--accent); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 var(--s3) var(--s2); color: var(--text-2); font-size: 14.5px; }

.contact { margin-top: var(--s4); text-align: center; }
.contact h3 { font-size: 20px; margin-bottom: 6px; }
.contact a { font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s4) 0; background: rgba(10,10,22,.6); }
.footer-inner { text-align: center; display: grid; gap: 6px; }
.footer-name { font-size: 14px; font-weight: 700; }
.footer-credits { font-size: 13px; color: var(--text-2); }
.footer-privacy a { color: var(--cyan); font-size: 13px; font-weight: 700; }
.footer-copy { font-size: 12px; color: #6b6390; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* countdown (T2) */
.countdown { display: flex; gap: 12px; margin-top: var(--s4); flex-wrap: wrap; }
.cd-box {
  min-width: 84px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(21,18,40,.55); padding: 14px 10px; backdrop-filter: blur(6px);
}
.cd-num { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-num.pop { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.12); } }
.cd-label { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.cd-title { font-size: 13px; font-weight: 700; color: var(--hi); margin-bottom: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .logo-text { display: none; }
  .section { padding: var(--s5) 0; }
}
@media (max-width: 767px) {
  .container { padding: 0 var(--s2); }
  .hero { padding: var(--s5) 0 var(--s4); }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-grid .tg-head { display: none; }
  .cd-box { min-width: 70px; padding: 10px 6px; }
  .cd-num { font-size: 26px; }
  .hero-meta { gap: var(--s2); }
  .award-sub { margin-top: var(--s3); }
}
