:root {
  --bg: #0b0f15;
  --bg-2: #0c0c0c;
  --surface: #111821;
  --surface-2: #161f2b;
  --line: #243041;
  --text: #ffffff;
  --muted: #9e9e9e;
  --accent: #4b59f5;
  --accent-2: #00bbff;
  --cyan: #2ef2ff;
  --accent-ink: #ffffff;
  --radius: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .45);
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", sans-serif;
  --font-en: "Instrument Sans", Pretendard, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-2);
  line-height: 1.65;
  letter-spacing: -.01em;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.ico { flex: 0 0 auto; display: inline-block; vertical-align: -3px; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

/* Header — ninesol-like dark bar */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 21, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(36, 48, 65, .9);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  height: 72px;
  width: auto;
  max-width: min(48vw, 320px);
  display: block;
  object-fit: contain;
  background: transparent !important;
  mix-blend-mode: normal;
}
.brand-text { display: none; }
.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.site-nav > a, .nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 8px;
  color: #fff; font-size: 14px; font-weight: 600;
  border: 0; background: transparent; cursor: pointer;
}
.site-nav > a:hover, .nav-drop-btn:hover { color: var(--cyan); }
.site-nav > a.is-active, .nav-drop.is-active > .nav-drop-btn { color: var(--accent-2); }
.nav-drop { position: relative; }
.nav-drop-panel {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px;
  background: #101820; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px; box-shadow: var(--shadow);
}
.nav-drop.is-open .nav-drop-panel { display: grid; gap: 2px; }
.nav-drop-panel a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 7px; color: var(--muted); font-size: 13px;
}
.nav-drop-panel a:hover { background: var(--surface-2); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease;
}
.btn-primary, .btn-telegram {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff; box-shadow: 0 8px 24px rgba(75, 89, 245, .28);
}
.btn-primary:hover, .btn-telegram:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost {
  border-color: rgba(46, 242, 255, .35); background: rgba(255,255,255,.03); color: #fff;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); padding: 10px; gap: 5px;
  flex-direction: column; justify-content: center;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* Hero with lightweight bg */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid rgba(36, 48, 65, .7);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-color: #070b12;
  background-image: image-set(
    url("/assets/img/hero-bg.webp") type("image/webp"),
    url("/assets/img/hero-bg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, .88) 0%, rgba(7, 11, 18, .62) 48%, rgba(7, 11, 18, .78) 100%),
    linear-gradient(180deg, rgba(11, 15, 21, .35) 0%, rgba(12, 12, 12, .82) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-en);
  margin-bottom: 18px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(46, 242, 255, .25);
  background: rgba(0, 187, 255, .08);
}
.hero h1 {
  margin: 0 0 18px; font-size: clamp(30px, 4.8vw, 50px);
  line-height: 1.2; letter-spacing: -.03em; font-weight: 800;
  max-width: 15.5em; color: #fff;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #fff 10%, var(--cyan) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  margin: 0 0 28px; max-width: 40em; color: #c7cdd6; font-size: 16.5px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.stat-card {
  background: rgba(17, 24, 33, .78); border: 1px solid rgba(75, 89, 245, .28);
  border-radius: var(--radius); padding: 18px 16px;
  backdrop-filter: blur(6px);
}
.stat-card .stat-top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--accent-2);
}
.stat-card strong {
  display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em;
  color: #fff; margin-bottom: 4px; font-family: var(--font-en);
}
.stat-card span { color: var(--muted); font-size: 13px; }

.section { padding: 72px 0; background: var(--bg); }
.section-alt { background: #0a0e14; }
.section-head { margin-bottom: 28px; max-width: 42em; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent-2); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-en);
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0 0 12px; font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.025em; line-height: 1.25;
  display: flex; align-items: flex-start; gap: 10px;
}
.section-head h2 .ico { margin-top: 6px; color: var(--cyan); width: 22px; height: 22px; }
.section-head p { margin: 0; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, #121a24 0%, #0f151d 100%);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 22px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: rgba(0, 187, 255, .35); transform: translateY(-2px); }
.card h3 {
  margin: 0 0 10px; font-size: 18px; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 8px;
}
.card h3 .ico { color: var(--accent-2); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .tag {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; font-family: var(--font-en);
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  color: var(--accent-2); font-weight: 700; font-size: 14px;
}

.timeline {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #101820;
}
.timeline li {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 0; }
.timeline time {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-2); font-size: 12px; font-weight: 700;
  font-family: var(--font-en);
}
.timeline span { color: var(--muted); font-size: 14px; }

.feature-band {
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(75, 89, 245, .16), transparent 60%),
    radial-gradient(600px 260px at 90% 20%, rgba(0, 187, 255, .1), transparent 55%),
    #0a0f18;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--muted); font-size: 14.5px;
}
.checklist li .ico { color: var(--accent-2); margin-top: 2px; }

.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 12px; background: #101820;
  overflow: hidden;
}
.faq-item button {
  width: 100%; text-align: left; background: transparent; border: 0; color: #fff;
  padding: 16px 18px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
}
.faq-item button .ico { color: var(--accent); }
.faq-item .faq-body {
  display: none; padding: 0 18px 16px 46px; color: var(--muted); font-size: 14.5px;
}
.faq-item.is-open .faq-body { display: block; }

.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 56px 0 32px; border-bottom: 1px solid rgba(36, 48, 65, .7);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,15,21,.75), rgba(12,12,12,.95)),
    image-set(
      url("/assets/img/hero-bg-m.webp") type("image/webp"),
      url("/assets/img/hero-bg.jpg") type("image/jpeg")
    );
  background-size: cover; background-position: center;
}
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--cyan); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-en);
}
.page-hero h1 {
  margin: 10px 0 12px; font-size: clamp(26px, 3.5vw, 40px);
  letter-spacing: -.03em; line-height: 1.2;
  display: flex; align-items: center; gap: 10px;
}
.page-hero h1 .ico { color: var(--accent-2); width: 28px; height: 28px; }
.page-hero p { margin: 0; max-width: 42em; color: #b8c0cc; }

.prose { max-width: 760px; }
.prose h2 {
  margin: 36px 0 12px; font-size: 24px; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 8px;
}
.prose h2 .ico { color: var(--accent-2); }
.prose p { color: var(--muted); }
.prose ul { color: var(--muted); padding-left: 1.15em; }

.board-list { display: grid; gap: 10px; }
.board-item {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: #101820;
}
.board-item:hover { border-color: rgba(0, 187, 255, .4); }
.board-item h2 { margin: 0 0 6px; font-size: 17px; }
.board-item p { margin: 0; color: var(--muted); font-size: 13.5px; }
.board-item time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty-note {
  padding: 28px; border: 1px dashed var(--line); border-radius: 12px;
  color: var(--muted); text-align: center;
}
.post-view {
  border: 1px solid var(--line); border-radius: 12px; background: #101820;
  padding: 28px 24px;
}
.post-view h1 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.02em; }
.post-view .meta { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.post-view .body { color: #d5dde8; white-space: pre-wrap; line-height: 1.8; }

.contact-box { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.contact-box .card h3 { margin-bottom: 8px; }
.contact-box .card p { margin-bottom: 16px; }

.site-footer {
  margin-top: 0; padding: 48px 0 24px;
  border-top: 1px solid var(--line); background: #07090d;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px;
  margin-bottom: 28px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; margin-bottom: 10px;
}
.footer-brand img,
.footer-logo {
  height: 56px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  background: transparent !important;
}
.site-footer p, .site-footer li { color: var(--muted); font-size: 13.5px; }
.site-footer h2 {
  margin: 0 0 12px; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-2); font-family: var(--font-en);
  display: flex; align-items: center; gap: 6px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-tg {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cyan); font-weight: 700;
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid rgba(36, 48, 65, .7);
  color: var(--muted); font-size: 12.5px;
}

@media (max-width: 980px) {
  .grid-2, .contact-box, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .stat-row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 84px;
    background: rgba(11, 15, 21, .98); border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; flex-direction: column; align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a, .nav-drop-btn { width: 100%; justify-content: flex-start; min-height: 42px; }
  .nav-drop-panel { position: static; display: none; box-shadow: none; margin-top: 4px; }
  .nav-drop.is-open .nav-drop-panel { display: grid; }
  .btn-telegram { justify-content: center; }
  .hero { padding: 56px 0 44px; }
  .hero-bg {
    background-image: image-set(
      url("/assets/img/hero-bg-m.webp") type("image/webp"),
      url("/assets/img/hero-bg.jpg") type("image/jpeg")
    );
  }
  .section { padding: 52px 0; }
  .board-item { grid-template-columns: 1fr; }
  .brand-logo { height: 58px; max-width: min(62vw, 260px); }
  .footer-logo { height: 48px; }
}
