/* 열공메이트 웹사이트 공용 스타일 — 멀티 페이지 공유 */
:root {
  --bg: #0f0f1a;
  --bg-soft: #14142a;
  --card: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --muted-2: rgba(255, 255, 255, 0.42);
  --accent: #a78bfa;
  --accent-2: #60a5fa;
  --ios: #0a84ff;
  --android: #3ddc84;
  --radius: 20px;
  --maxw: 1000px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* 앵커 점프 시 고정 네비에 가려지지 않도록 여백 확보 */
[id] { scroll-margin-top: 76px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── Nav ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 26, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a.active { color: var(--accent); }
.nav-links a.nav-cta {
  background: var(--text);
  color: #111;
  font-weight: 700;
}
.nav-links a.nav-cta:hover { background: #e6e6f0; color: #111; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ── Layout ──────────────────────────────────── */
.section {
  padding: 76px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-narrow { max-width: 760px; }
.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
h1, h2, h3 { letter-spacing: -0.02em; }
.section h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.2;
}
.section > p.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 44px;
}
.divider {
  height: 1px;
  max-width: var(--maxw);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Hero ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #4a0e7a 0%, #1a1a4e 52%, #0a2a5e 100%);
  padding: 84px 20px 92px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(140,60,255,0.16) 0%, transparent 70%);
  top: -140px; left: -120px;
}
.hero::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(60,120,255,0.14) 0%, transparent 70%);
  bottom: -120px; right: -80px;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero .app-icon {
  width: 104px; height: 104px; border-radius: 24px;
  margin: 0 auto 26px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(124,58,237,0.42);
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.hero .tagline {
  font-size: clamp(1rem, 3vw, 1.28rem);
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto 34px;
}
.badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

/* Page header (sub-pages) */
.page-head {
  background: linear-gradient(135deg, #2a0d52 0%, #141433 60%, #0a1e44 100%);
  padding: 64px 20px 56px;
  text-align: center;
  position: relative;
}
.page-head .eyebrow { color: #c4b5fd; }
.page-head h1 {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.page-head p {
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--muted-2);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────── */
.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.store-btn {
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: #111; text-decoration: none;
  padding: 13px 26px; border-radius: 14px;
  font-weight: 700; font-size: 1rem;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 8px 28px rgba(0,0,0,0.32);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(0,0,0,0.42); }
.store-btn.dark { background: #1a1a2e; color: #fff; border: 1px solid rgba(255,255,255,0.16); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn-text { text-align: left; }
.store-btn-sub { font-size: 0.7rem; font-weight: 400; opacity: 0.7; display: block; }
.store-btn-name { font-size: 1rem; font-weight: 700; display: block; line-height: 1.2; }

.textlink {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.textlink:hover { border-color: var(--accent); }

/* ── Cards / grids ───────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: background .2s, transform .2s;
}
.card:hover { background: var(--card-hover); transform: translateY(-3px); }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--muted); }
.card .ico { font-size: 1.9rem; margin-bottom: 14px; }
.card-ico { display: block; width: 34px; height: 34px; margin-bottom: 14px; color: var(--accent); }
.card-ico svg { width: 100%; height: 100%; display: block; }
.card a.card-more { display: inline-block; margin-top: 14px; font-size: 0.88rem; }

/* platform tag */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.tag.ios { background: rgba(10,132,255,0.16); color: #6db4ff; border: 1px solid rgba(10,132,255,0.3); }
.tag.aos { background: rgba(61,220,132,0.14); color: #56e39c; border: 1px solid rgba(61,220,132,0.3); }
.tag.both { background: rgba(167,139,250,0.16); color: #c4b5fd; border: 1px solid rgba(167,139,250,0.3); }

/* ── Feature row (image + text alternating) ──── */
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 72px;
}
.frow:last-child { margin-bottom: 0; }
.frow.rev .frow-media { order: 2; }
.frow-text h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; margin-bottom: 14px; }
.frow-text p { color: var(--muted); margin-bottom: 12px; }
.frow-text ul { list-style: none; margin-top: 16px; }
.frow-text ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.94rem;
}
.frow-text ul li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}
.frow-media { display: flex; justify-content: center; }

/* phone screenshot frame */
.shot {
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-height: 560px;
  max-width: 100%;
  width: auto;
}
.shot-sm { max-height: 420px; }

/* ── Screenshot gallery (scroll) ─────────────── */
.gallery { overflow: hidden; padding: 8px 0 4px; }
.gallery-scroll {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 24px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery-scroll img {
  height: 500px; border-radius: 22px;
  scroll-snap-align: center; flex-shrink: 0;
  box-shadow: 0 16px 46px rgba(0,0,0,0.46);
  border: 1px solid var(--border);
}
.gallery-scroll::-webkit-scrollbar { height: 8px; }
.gallery-scroll::-webkit-scrollbar-track { background: transparent; }
.gallery-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 4px; }
.hint { text-align: center; font-size: 0.82rem; color: var(--muted-2); margin-top: 6px; }

/* ── Platform toggle ─────────────────────────── */
.ptoggle { display: inline-flex; background: var(--card); border: 1px solid var(--border); border-radius: 100px; padding: 4px; gap: 4px; margin: 0 auto 8px; }
.ptoggle button {
  border: none; background: transparent; color: var(--muted);
  font-family: inherit; font-size: 0.9rem; font-weight: 700;
  padding: 8px 22px; border-radius: 100px; cursor: pointer;
  transition: background .15s, color .15s;
}
.ptoggle button.on { background: var(--text); color: #111; }
.ppanel[hidden] { display: none; }

/* ── Stats band ──────────────────────────────── */
.band { background: linear-gradient(135deg, #1e0a3c, #0a1a3c); }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px; max-width: 820px; margin: 0 auto; text-align: center;
}
.stat .num {
  font-size: 2.6rem; font-weight: 900; line-height: 1; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .lbl { font-size: 0.9rem; color: var(--muted); }

/* ── Density tiers ───────────────────────────── */
.tiers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.tier {
  padding: 10px 18px; border-radius: 14px; font-weight: 800; font-size: 1rem;
  border: 1px solid var(--border);
}
.tier small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

/* ── Who list ────────────────────────────────── */
.who-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.who-list li {
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 14px; padding: 18px 22px;
  font-size: 0.95rem; color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 12px;
}
.who-list li::before { content: '✓'; color: var(--accent); font-weight: 800; flex-shrink: 0; }

/* ── FAQ ─────────────────────────────────────── */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #e2e8f0; }
.faq-item p { font-size: 0.92rem; color: var(--muted); }

/* ── CTA band ────────────────────────────────── */
.cta {
  text-align: center;
  background: linear-gradient(135deg, #3a0e6a, #10103a);
  border-top: 1px solid var(--border);
  padding: 72px 20px;
}
.cta h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.cta p { color: var(--muted); margin-bottom: 30px; }

/* ── Prose (guide) ───────────────────────────── */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 44px 0 14px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 30px 0 10px; color: #e9e4ff; }
.prose p { color: rgba(255,255,255,0.78); margin-bottom: 14px; }
.prose ul, .prose ol { color: rgba(255,255,255,0.78); margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: #fff; }
.prose .callout {
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 16px 20px; margin: 20px 0;
  font-size: 0.94rem; color: var(--muted);
}

/* ── Contact ─────────────────────────────────── */
.contact-box {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 28px;
  font-size: 1rem; color: #fff; text-decoration: none;
  transition: background .2s;
}
.contact-box:hover { background: var(--card-hover); }

/* ── Footer ──────────────────────────────────── */
footer {
  padding: 40px 20px; text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted-2); font-size: 0.85rem;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-links { margin-bottom: 10px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Hero grid (폰 목업 히어로) ───────────────── */
.hero-grid {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 44px; align-items: center; text-align: left;
}
.hero-brandline {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem; margin-bottom: 18px;
}
.hero-brandline img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 10px 30px rgba(124,58,237,.4); }
.hero-copy .tagline { margin: 0 0 30px; }
.hero-copy .store-buttons { justify-content: flex-start; }
.hero-phone { display: flex; justify-content: center; }
.hero-phone img {
  max-height: 560px; width: auto; max-width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

/* ── How it works 3단계 ──────────────────────── */
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.howto .step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
}
.howto .step img {
  max-height: 320px; width: auto; max-width: 100%;
  margin: 0 auto 20px; border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 34px rgba(0,0,0,.4);
}
.step-num {
  width: 30px; height: 30px; margin: 0 auto 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.howto .step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.howto .step p { font-size: .92rem; color: var(--muted); }

/* ── 탭 투어 (앱 하단 탭바 모사) ─────────────── */
.tour-tabs {
  display: flex; gap: 4px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 6px;
  max-width: 560px; margin: 0 auto 40px;
}
.tour-tabs button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 4px; border: none; background: transparent;
  color: var(--muted); border-radius: 13px; cursor: pointer;
  font-family: inherit; font-size: .84rem; font-weight: 700;
  transition: background .15s, color .15s;
}
.tour-tabs button svg { width: 22px; height: 22px; }
.tour-tabs button:hover { color: var(--text); }
.tour-tabs button.on { background: rgba(167,139,250,.18); color: var(--accent); }
.tour-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.tour-panel[hidden] { display: none; }
.tour-media { display: flex; justify-content: center; }
.tour-text h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 800; margin-bottom: 12px; }
.tour-text p { color: var(--muted); margin-bottom: 12px; }
.tour-text ul { list-style: none; margin: 14px 0 18px; }
.tour-text ul li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  color: rgba(255,255,255,.8); font-size: .94rem;
}
.tour-text ul li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

/* ── Reveal animation ────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 760px) {
  .frow { grid-template-columns: 1fr; gap: 24px; }
  .frow.rev .frow-media { order: 0; }
  .section { padding: 60px 20px; }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-brandline { justify-content: center; }
  .hero-copy .store-buttons { justify-content: center; }
  .hero-phone img { max-height: 440px; }
  .tour-panel { grid-template-columns: 1fr; gap: 26px; }
  .tour-tabs { gap: 2px; padding: 5px; }
  .tour-tabs button { font-size: .76rem; padding: 9px 2px; gap: 4px; }
  .tour-tabs button svg { width: 20px; height: 20px; }

  /* 모바일 네비: 햄버거 + 드롭다운 */
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px; right: 12px;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: #14142a;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.5);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 0.98rem; border-radius: 10px; }
  .nav-links a.nav-cta { text-align: center; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
