/* AICIA — AI Convergence Industry Association */
/* Design tokens */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-mute: #eef1f6;
  --line: #e5e8ee;
  --line-strong: #d3d8e2;
  --ink: #0b1220;
  --ink-2: #2a3244;
  --ink-3: #5b6478;
  --ink-4: #8a94a8;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: #eff4ff;
  --accent-ink: #0b3ea8;
  --success: #0f9d58;
  --warn: #b45309;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04), 0 1px 1px rgba(11, 18, 32, 0.03);
  --shadow: 0 4px 20px -6px rgba(11, 18, 32, 0.08), 0 2px 6px -2px rgba(11, 18, 32, 0.04);
  --shadow-lg: 0 20px 60px -20px rgba(11, 18, 32, 0.18);

  --font-sans: "Pretendard", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Pretendard", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1240px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ========= Layout ========= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }

/* ========= Typography ========= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; }
h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; color: var(--ink-2); }
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 60ch;
}
.section-title { max-width: 900px; }
.section-title h2 { text-wrap: balance; }
.section-title p { margin-top: 20px; }

/* ========= Buttons ========= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); background: var(--bg-soft); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { color: var(--ink); background: var(--bg-soft); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ========= Nav ========= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,0.9); }
.nav-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 16px;
}
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-name-en { color: var(--ink-4); font-weight: 400; font-size: 13px; margin-left: 2px; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-menu a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 500;
  transition: all 0.15s;
}
.nav-menu a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-menu a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}
.lang-toggle button {
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.lang-toggle button.active { background: var(--ink); color: #fff; }

/* ========= Hero ========= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,18,32,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,18,32,0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, color-mix(in oklch, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 40px;
}
.hero-tag .dot {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.hero h1 {
  text-wrap: balance;
  max-width: 14ch;
  margin-bottom: 32px;
  font-weight: 600;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .stroke {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-3);
  max-width: 54ch;
  margin-bottom: 48px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.hero-meta-item .num {
  font-size: clamp(28px, 3vw, 40px);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-meta-item .lbl {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 10px;
}

/* ========= Marquee — partners strip ========= */
.strip {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-soft);
}
.strip-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: center;
  margin-bottom: 24px;
}
.marquee {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-track { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee span {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.8;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ========= Section headers ========= */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 60px;
}
.sec-head .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
}
.sec-head .link:hover { color: var(--accent); }

/* ========= Business cards ========= */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.biz-card {
  background: #fff;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 280px;
  transition: background 0.2s;
  position: relative;
}
.biz-card:hover { background: var(--bg-soft); }
.biz-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
}
.biz-card .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.biz-card h3 { font-size: 22px; }
.biz-card p { font-size: 14.5px; color: var(--ink-3); line-height: 1.6; }
.biz-card .arr-btn {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-3);
  transition: all 0.18s;
}
.biz-card:hover .arr-btn {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: rotate(-45deg);
}

/* ========= Members logo wall ========= */
.members-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.member {
  aspect-ratio: 1.6/1;
  display: grid; place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px;
  transition: background 0.15s;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-align: center;
}
.member:nth-child(6n) { border-right: 0; }
.members-wall .member:nth-last-child(-n+6) { border-bottom: 0; }
.member:hover { background: var(--bg-soft); color: var(--ink); }
.member small { display: block; font-size: 10px; letter-spacing: 0.1em; color: var(--ink-4); text-transform: uppercase; margin-top: 4px; font-weight: 500; }

/* ========= News ========= */
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: all 0.2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e2ecff, #f5f7fb);
  position: relative;
  overflow: hidden;
}
.news-card.feat .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, #0b1220, #1e3a8a); }
.news-card .thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}
.news-card.feat .thumb-title {
  position: absolute; inset: 0;
  padding: 32px;
  display: flex; align-items: flex-end;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.news-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card .meta {
  display: flex; gap: 10px;
  font-size: 12px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.news-card .meta .tag {
  color: var(--accent);
  text-transform: uppercase;
}
.news-card h4 { font-size: 17px; line-height: 1.4; letter-spacing: -0.015em; }
.news-card.feat h4 { font-size: 22px; }
.news-card p { font-size: 14px; color: var(--ink-3); line-height: 1.55; }

/* ========= Events list ========= */
.events-list { border-top: 1px solid var(--line); }
.event {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 32px;
  padding: 28px 4px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.event:hover { background: var(--bg-soft); padding-left: 16px; padding-right: 16px; }
.event .date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.event .date .day { display: block; font-size: 32px; color: var(--ink); font-weight: 500; letter-spacing: -0.02em; font-family: var(--font-display); }
.event .title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.event .title .sub { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-3); font-weight: 400; }
.event .type {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-mute);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.event .type.on { background: var(--accent-soft); color: var(--accent-ink); }
.event .go {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.event:hover .go { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ========= Insights ========= */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.insight {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  transition: all 0.2s;
}
.insight:hover { border-color: var(--ink); transform: translateY(-3px); }
.insight .kind {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.insight h4 { font-size: 18px; line-height: 1.35; letter-spacing: -0.015em; }
.insight .foot { margin-top: auto; font-size: 12px; color: var(--ink-4); display: flex; justify-content: space-between; }

/* ========= CTA banner ========= */
.cta-banner {
  background: var(--ink);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner .glow {
  position: absolute;
  bottom: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 60%, transparent), transparent 70%);
  filter: blur(60px);
}
.cta-banner .inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.cta-banner h2 { color: #fff; text-wrap: balance; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-top: 20px; font-size: 17px; max-width: 50ch; }
.cta-banner .btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-banner .btn-primary { background: #fff; color: var(--ink); }
.cta-banner .btn-primary:hover { background: var(--accent); color: #fff; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.25); color: #fff; }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

/* ========= Footer ========= */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--ink-3); font-size: 14px; margin-top: 20px; line-height: 1.6; }
.footer-col h5 {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--ink-2); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  font-size: 13px;
  color: var(--ink-4);
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--ink-3); }

/* ========= Reveal animation ========= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ========= Tweaks panel ========= */
.tweaks-btn {
  position: fixed;
  bottom: 20px; right: 20px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  border: 0;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 90;
  box-shadow: var(--shadow-lg);
}
body.tweaks-on .tweaks-btn { display: inline-flex; }
.tweaks-panel {
  position: fixed;
  bottom: 76px; right: 20px;
  width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 91;
  display: none;
  font-size: 13px;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h5 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.tweaks-panel .sub { color: var(--ink-4); font-size: 12px; margin-bottom: 18px; }
.tweaks-panel .row + .row { margin-top: 18px; }
.tweaks-panel .label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; font-weight: 500; }
.tweaks-panel .swatches { display: flex; gap: 8px; }
.tweaks-panel .swatch {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 2px solid var(--line);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s;
}
.tweaks-panel .swatch.active { border-color: var(--ink); transform: scale(1.05); }
.tweaks-panel .fonts { display: flex; flex-direction: column; gap: 6px; }
.tweaks-panel .fchip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}
.tweaks-panel .fchip.active { border-color: var(--ink); background: var(--bg-soft); }
.tweaks-panel .close {
  position: absolute;
  top: 12px; right: 12px;
  width: 24px; height: 24px;
  border: 0; background: transparent;
  color: var(--ink-4);
  cursor: pointer;
}

/* ========= Sub page hero ========= */
.subhero {
  padding: calc(var(--nav-h) + 100px) 0 80px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.subhero .eyebrow { margin-bottom: 24px; }
.subhero h1 { font-size: clamp(40px, 5vw, 72px); text-wrap: balance; max-width: 18ch; }
.subhero p { margin-top: 24px; max-width: 60ch; }

/* ========= Responsive ========= */
@media (max-width: 960px) {
  .nav-menu { display: none; }
  .section { padding: 80px 0; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .biz-grid { grid-template-columns: 1fr; }
  .members-wall { grid-template-columns: repeat(3, 1fr); }
  .members-wall .member { border-right: 1px solid var(--line) !important; }
  .members-wall .member:nth-child(3n) { border-right: 0 !important; }
  .news-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner .inner { grid-template-columns: 1fr; }
  .cta-banner .btns { justify-content: flex-start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .event { grid-template-columns: 80px 1fr auto; gap: 16px; }
  .event .type { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}

/* Hide EN by default, JS toggles */
[data-lang="en"] { display: none; }
body.lang-en [data-lang="kr"] { display: none; }
body.lang-en [data-lang="en"] { display: inline; }
body.lang-en [data-lang="en"].block { display: block; }
