@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  /* balllab brand guideline 2.1: balllab Blue, Black, White */
  --blue: #3b27e0;
  --blue-80: #6252e6;
  --blue-60: #8a7def;
  --blue-20: #d8d4f9;
  --ink: #000;
  --ink-soft: #55535f;
  --paper: #fff;
  --line: rgba(0, 0, 0, 0.1);
  /* product accents */
  --bb: #00a1ff;
  --bb-pink: #ffd3d3;
  --luv: #ff5fa2;
  --luv-violet: #8b6bff;
  --campus: #17b37a;
  --display: "Space Grotesk", "Pretendard Variable", sans-serif;
  --body: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --radius: 28px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior-x: none; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* bilingual copy */
html.l-ko [data-l="en"], html.l-en [data-l="ko"] { display: none !important; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
  transition: transform .35s ease;
}
.nav.hidden { transform: translateY(-120%); }
.nav-inner {
  pointer-events: auto;
  width: min(var(--wrap), 100% - 24px);
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border: 1px solid transparent;
}
.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.nav-dark.scrolled .nav-inner { background: rgba(14, 8, 24, 0.72); border-color: rgba(255,255,255,.1); }
.brand { display: flex; }
.brand img { height: 22px; width: auto; }
.brand .logo-w, .nav-dark .brand .logo-c, .nav.top-invert:not(.scrolled) .logo-c { display: none; }
.nav-dark .brand .logo-w, .nav.top-invert:not(.scrolled) .logo-w { display: block; }
.nav.top-invert:not(.scrolled) { color: #fff; }
.nav.top-invert:not(.scrolled) a.link:hover { background: rgba(255,255,255,.16); }
.nav.top-invert:not(.scrolled) .lang-switch { background: rgba(255,255,255,.16); }
.nav.top-invert:not(.scrolled) .lang-switch button[aria-pressed="true"] { background: #fff; color: var(--blue); }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav a.link {
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 9px 14px; border-radius: 999px; transition: background .2s;
}
.nav-light a.link:hover, .nav-light a.link[aria-current="page"] { background: rgba(0, 0, 0, 0.06); }
.nav-dark { color: #fff; }
.nav-dark a.link:hover, .nav-dark a.link[aria-current="page"] { background: rgba(255, 255, 255, 0.14); }
.lang-switch { display: flex; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.07); }
.nav-dark .lang-switch { background: rgba(255, 255, 255, 0.14); }
.lang-switch button {
  border: 0; background: transparent; color: inherit; cursor: pointer;
  font: 700 12px/1 var(--body); padding: 8px 11px; border-radius: 999px; opacity: .6;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; opacity: 1; }
.nav-dark .lang-switch button[aria-pressed="true"] { background: #fff; color: #111; }
@media (max-width: 640px) {
  .nav-inner { padding-left: 14px; gap: 4px; }
  .brand img { height: 17px; }
  .nav a.link { padding: 8px 8px; font-size: 13px; }
  .nav .hide-sm { display: none; }
  .lang-switch button { padding: 7px 8px; }
}

/* ---------- shared bits ---------- */
.eyebrow { font: 700 13px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn svg { width: 18px; height: 18px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- footer ---------- */
.footer { background: var(--blue); color: rgba(255,255,255,.78); padding: 72px 0 40px; font-size: 13px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.2); margin-bottom: 36px; }
.footer-logo { width: 150px; }
.footer-tag { margin: 0; font: 600 15px/1.2 var(--display); color: rgba(255,255,255,.85); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 13px; margin: 0 0 12px; }
.footer a { text-decoration: none; display: block; padding: 3px 0; color: rgba(255,255,255,.78); }
.footer a.inline { display: inline; text-decoration: underline; }
.footer a:hover { color: #fff; }
.footer .biz { line-height: 1.9; }
.footer .copy { margin-top: 40px; color: rgba(255,255,255,.55); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer .biz { grid-column: 1 / -1; } }

.lottie { position: relative; }
.lottie svg { display: block; }
