/*
  FILE: web/style.css
  DESCRIPTION: 파란이빨(btsky) 공용 프리미엄 미니멀 디자인 시스템 — 허브/제품 페이지/포털 통합.
    Pretendard & Plus Jakarta Sans 폰트, 심플 & 매끄러운 다크 모드, 소셜 로그인(Google/GitHub) 버튼 스타일.
  REVISION HISTORY:
    - 2026-07-22 Claude: 멀티 프로덕트 허브 디자인 개편.
    - 2026-07-26 Gemini: 파란이빨 브랜드 쇄신, 심플 프리미엄 UI, GitHub 소셜 버튼 스타일 구현.
*/
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #080a0f;
  --bg: #0c0e14;
  --card: rgba(20, 24, 35, 0.75);
  --card-solid: #131722;
  --card-hover: rgba(28, 34, 48, 0.85);
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.16);
  --fg: #f1f5f9;
  --fg-heading: #ffffff;
  --muted: #94a3b8;
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --accent2: #1d4ed8;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --nav: rgba(12, 14, 20, 0.85);
  --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.15);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-main: 'Plus Jakarta Sans', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-dark: #f0f4f8;
    --bg: #f8fafc;
    --card: rgba(255, 255, 255, 0.88);
    --card-solid: #ffffff;
    --card-hover: rgba(241, 245, 249, 0.95);
    --line: rgba(0, 0, 0, 0.08);
    --line-bright: rgba(0, 0, 0, 0.16);
    --fg: #1e293b;
    --fg-heading: #0f172a;
    --muted: #64748b;
    --nav: rgba(248, 250, 252, 0.88);
    --shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.12);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.1) 0px, transparent 45%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.08) 0px, transparent 45%);
  background-attachment: fixed;
  color: var(--fg);
  min-height: 100vh;
  font-family: var(--font-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Keyframes ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── 내비 ── */
nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6vw;
  background: var(--nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800; font-size: 20px;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.03em; color: var(--fg-heading);
}
.brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(6, 182, 212, 0.25));
  border: 1px solid var(--line-bright); font-size: 18px;
}
.nav-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nlink {
  padding: 9px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer; border: none; background: none; font-family: inherit; color: var(--muted);
}
.nlink:hover { color: var(--fg-heading); background: var(--card-hover); }
.nlink.solid {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 4px 16px var(--accent-glow);
}
.nlink.solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* ── 히어로 ── */
.hero {
  text-align: center; padding: 80px 6vw 56px;
  position: relative; overflow: hidden;
  animation: fadeIn 0.6s ease-out;
}
.hero .logo {
  font-size: 64px; line-height: 1; margin-bottom: 18px;
  display: inline-block; animation: floatSlow 4s infinite ease-in-out;
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 54px); font-weight: 800;
  letter-spacing: -0.04em; color: var(--fg-heading); line-height: 1.18;
}
.hero .tag {
  color: var(--accent-light); font-weight: 700; margin-top: 12px;
  font-size: clamp(16px, 2.4vw, 20px); letter-spacing: -0.01em;
}
.hero p.lead {
  color: var(--muted); max-width: 700px; margin: 20px auto 0;
  font-size: 17px; line-height: 1.7; font-weight: 400;
}

/* ── 버튼 ── */
.cta { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 14px; font-weight: 700; font-size: 16px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer; border: none; font-family: inherit;
}
.btn.dl {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn.dl:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}
.btn.dl small { font-weight: 500; font-size: 13px; opacity: 0.9; }
.btn.line {
  border: 1px solid var(--line-bright); color: var(--fg);
  background: var(--card); backdrop-filter: blur(12px);
}
.btn.line:hover {
  border-color: var(--accent); color: var(--fg-heading);
  background: var(--card-hover); transform: translateY(-2px);
}
.verbadge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 13.5px; color: var(--muted); background: var(--card);
  border: 1px solid var(--line); padding: 6px 18px; border-radius: 999px;
  backdrop-filter: blur(8px);
}
.verbadge b { color: var(--accent-light); font-weight: 700; }

/* ── 카드 그리드 ── */
.sec { max-width: 1100px; margin: 0 auto; padding: 48px 6vw; }
.sec h2 {
  text-align: center; font-size: clamp(24px, 4vw, 32px);
  font-weight: 800; letter-spacing: -0.03em; color: var(--fg-heading); margin-bottom: 8px;
}
.sec .sub { text-align: center; color: var(--muted); margin-bottom: 42px; font-size: 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.card-lg {
  background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.card-lg:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.card-lg .ic {
  font-size: 42px; width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); margin-bottom: 18px;
}
.card-lg h3 {
  font-size: 21px; font-weight: 800; color: var(--fg-heading);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.card-lg p { color: var(--muted); font-size: 14.5px; line-height: 1.7; flex: 1; }
.card-lg .go {
  margin-top: 22px; font-weight: 700; color: var(--accent-light); font-size: 15px;
  display: flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.card-lg:hover .go { gap: 10px; }

.chip {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; letter-spacing: 0.02em;
}
.chip.ready { background: rgba(37, 99, 235, 0.15); color: var(--accent-light); border: 1px solid rgba(37, 99, 235, 0.3); }
.chip.soon { background: rgba(245, 158, 11, 0.15); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.3); }

.feat {
  background: var(--card); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px;
  transition: all 0.2s;
}
.feat:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.feat .ic { font-size: 32px; margin-bottom: 12px; }
.feat h3 { font-size: 17.5px; font-weight: 700; color: var(--fg-heading); margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ── 하이브 생태계 맵 ── */
.eco-box {
  background: var(--card); border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg); padding: 36px 32px; backdrop-filter: blur(16px);
}
.eco-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.eco-node {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 22px; text-align: center; transition: all 0.25s;
}
.eco-node:hover { border-color: var(--accent); background: rgba(37, 99, 235, 0.06); }
.eco-node .icon { font-size: 36px; margin-bottom: 10px; }
.eco-node h4 { font-size: 16px; font-weight: 700; color: var(--fg-heading); margin-bottom: 6px; }
.eco-node p { font-size: 13.5px; color: var(--muted); }
.eco-center {
  grid-column: 1 / -1; background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.35); border-radius: var(--radius-md); padding: 20px;
  text-align: center; font-weight: 700; color: var(--accent-light); font-size: 15px;
}

/* ── FAQ ── */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--accent); }
.faq-q {
  padding: 20px 24px; font-size: 16px; font-weight: 700; color: var(--fg-heading);
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--muted); transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: '−'; color: var(--accent-light); }
.faq-a { padding: 0 24px 22px; color: var(--muted); font-size: 15px; line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }

/* ── 밴드 & 푸터 ── */
.band {
  max-width: 960px; margin: 30px auto 60px; padding: 48px 6vw; text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.3); border-radius: var(--radius-lg); backdrop-filter: blur(16px);
}
.band h2 { font-size: clamp(22px, 3.5vw, 30px); font-weight: 800; color: var(--fg-heading); }
.band p { color: var(--muted); margin: 10px 0 24px; font-size: 16px; }

.note {
  max-width: 960px; margin: 0 auto 40px; padding: 16px 22px; border: 1px dashed var(--amber);
  border-radius: var(--radius-md); color: var(--muted); font-size: 14px;
  background: rgba(245, 158, 11, 0.08); display: flex; align-items: center; gap: 12px;
}
.note b { color: var(--amber); }

footer {
  border-top: 1px solid var(--line); padding: 36px 6vw; text-align: center;
  color: var(--muted); font-size: 14px; background: rgba(8, 10, 15, 0.6);
}
footer a { color: var(--accent-light); font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* ── 로그인 모달 (Google + GitHub 소셜 로그인) ── */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 6, 10, 0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  align-items: center; justify-content: center; padding: 20px;
}
.overlay.open { display: flex; animation: fadeIn 0.2s ease-out; }
.modal {
  background: var(--card-solid); border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 38px 34px; max-width: 420px; width: 100%; position: relative;
}
.modal .x {
  position: absolute; top: 16px; right: 18px; background: none; border: none;
  color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; transition: color 0.15s;
}
.modal .x:hover { color: var(--fg-heading); }
.modal .mlogo { font-size: 42px; text-align: center; margin-bottom: 4px; }
.modal h2 { text-align: center; font-size: 22px; font-weight: 800; color: var(--fg-heading); }
.modal .msub { text-align: center; color: var(--muted); font-size: 13.5px; margin: 6px 0 20px; }

/* 소셜 버튼 영역 */
.social-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
#mgwrap { display: flex; justify-content: center; width: 100%; }
.btn-github-social {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18);
  background: #24292e; color: #ffffff; font-weight: 600; font-size: 14.5px; cursor: pointer;
  font-family: inherit; transition: background 0.2s, transform 0.15s;
}
.btn-github-social:hover { background: #2f363d; transform: translateY(-1px); }

.modal label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
.modal input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25); color: var(--fg-heading); font-size: 14.5px; font-family: inherit;
  transition: border-color 0.2s;
}
.modal input:focus { outline: none; border-color: var(--accent); }
.modal .go-btn {
  width: 100%; margin-top: 20px; padding: 14px; border: none; border-radius: 12px;
  color: #ffffff; cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent2));
  font-size: 16px; font-weight: 700; font-family: inherit; box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.modal .go-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); }
.merr { color: var(--red); font-size: 13px; margin-top: 12px; text-align: center; min-height: 18px; font-weight: 600; }
.mdiv { display: flex; align-items: center; gap: 14px; margin: 20px 0 16px; color: var(--muted); font-size: 13px; }
.mdiv::before, .mdiv::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#mgnote { margin-top: 6px; font-size: 12px; color: var(--amber); text-align: center; line-height: 1.5; }

/* ── 100% 깨끗한 팝업 모달 ── */
.modal-bg {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(3, 7, 18, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.modal-card {
  background: #0f172a !important;
  border: 1.5px solid #38bdf8 !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.3) !important;
  padding: 32px 26px !important;
  max-width: 400px !important;
  width: 100% !important;
  position: relative !important;
  box-sizing: border-box !important;
  text-align: center !important;
  animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes modalPopIn {
  0% { transform: scale(0.9) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 18px !important;
  background: none !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 26px !important;
  cursor: pointer !important;
  line-height: 1 !important;
}
.modal-close:hover { color: #ffffff !important; }
