/* ========= 호미팩토리 홈페이지 공통 스타일 ========= */
/* v1 · 2026-04-19 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808;
  --surface: #101010;
  --surface2: #181818;
  --border: #1e1e1e;
  --accent: #c8f03c;
  --accent2: #f0c83c;
  --accent3: #3cf0c8;
  --purple: #b49eff;
  --red: #ff6060;
  --text: #f2efe8;
  --text2: #909090;
  --muted: #444;
  --cursor-size: 12px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* grain */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed; z-index: 9997; pointer-events: none;
  width: var(--cursor-size); height: var(--cursor-size);
  background: var(--accent); border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s, opacity 0.25s;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed; z-index: 9996; pointer-events: none;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(200,240,60,0.4);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, border-color 0.4s, transform 0.1s ease;
}
body:has(.dept-2:hover) #cursor { background: var(--purple); }
body:has(.dept-3:hover) #cursor { background: var(--red); }
body:has(.dept-4:hover) #cursor { background: var(--accent3); }
body:has(.dept-5:hover) #cursor { background: var(--accent2); }
.cursor-expand #cursor { width: 48px; height: 48px; }
.cursor-expand #cursor-ring { width: 0; height: 0; opacity: 0; }

/* ── SCROLL PROGRESS BAR ── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); z-index: 9999;
  width: 0%; transition: width 0.1s linear;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(8,8,8,0.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 0.12em;
  color: var(--text); text-decoration: none;
}
.nav-logo .acc { color: var(--accent); }
.nav-center {
  display: flex; gap: 32px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-center a {
  font-size: 12px; letter-spacing: 0.08em; color: var(--text2);
  text-decoration: none; transition: color 0.2s; position: relative;
}
.nav-center a:hover { color: var(--text); }
.nav-center a.active { color: var(--accent); }
.nav-center a.active::after {
  content: ''; position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.nav-cta {
  background: var(--accent); color: #080808 !important;
  padding: 8px 20px; border-radius: 2px;
  font-weight: 700; font-size: 11px; letter-spacing: 0.1em;
  text-decoration: none; transition: filter 0.2s;
}
.nav-cta:hover { filter: brightness(1.1); }
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; }
.hamburger span { width:22px; height:1.5px; background:var(--text); display:block; transition:all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav {
  display:none; position:fixed; top:64px; left:0; right:0; z-index:499;
  background:var(--surface); border-bottom:1px solid var(--border); flex-direction:column;
}
.mobile-nav.open { display:flex; }
.mobile-nav a {
  padding:16px 24px; border-bottom:1px solid var(--border);
  color:var(--text2); text-decoration:none; font-size:14px;
  letter-spacing:0.04em; transition:color 0.2s;
}
.mobile-nav a:last-child { color:var(--accent); font-weight:700; border:none; }

/* ── SECTION / PAGE HEADER ── */
.page-header {
  padding: 160px 48px 80px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,240,60,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,240,60,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-header-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.page-header .eyebrow {
  font-size: 11px; letter-spacing: 0.2em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
}
.page-header .eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 8vw, 108px); line-height: 0.9; letter-spacing: -0.005em;
  margin-bottom: 24px;
}
.page-title .hl { color: var(--accent); }
.page-title .outline { -webkit-text-stroke:1.5px rgba(242,239,232,0.18); color:transparent; }
.page-subtitle { font-size: 15px; color: var(--text2); line-height: 1.9; max-width: 560px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 1280px; margin: 0 auto; padding: 24px 48px 0;
  font-size: 11px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase;
  position: relative; z-index: 1;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--text2); }
.breadcrumb span.sep { margin: 0 8px; color: var(--muted); }
.breadcrumb span.current { color: var(--text2); }

/* ── MARQUEE ── */
.marquee-bar {
  overflow:hidden; border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  background:var(--surface); padding:14px 0;
}
.marquee-track { display:flex; width:max-content; animation:marqueeScroll 28s linear infinite; }
.marquee-track:hover { animation-play-state:paused; }
@keyframes marqueeScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.m-item {
  padding:0 32px; font-family:'Bebas Neue', sans-serif;
  font-size:12px; letter-spacing:0.2em; color:var(--muted);
  border-right:1px solid var(--border); white-space:nowrap; transition:color 0.2s;
}
.m-item:hover { color:var(--accent); }
.m-sep { color:var(--accent) !important; border-right:none !important; padding:0 16px !important; }

/* ── SHARED BUTTONS ── */
.btn-primary {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--accent); color:#080808;
  padding:14px 32px; border-radius:2px;
  font-weight:700; font-size:13px; letter-spacing:0.08em;
  text-decoration:none; border: none; cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition:filter 0.2s, transform 0.2s;
}
.btn-primary:hover { filter:brightness(1.1); }
.btn-ghost {
  display:inline-flex; align-items:center; gap:8px;
  background: transparent; color: var(--text2);
  padding: 14px 32px; border: 1px solid var(--border); border-radius: 2px;
  font-weight: 500; font-size: 13px; letter-spacing: 0.08em;
  text-decoration: none; cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ── FOOTER ── */
footer { background:var(--surface); border-top:1px solid var(--border); padding:64px 48px 40px; }
.footer-inner { max-width:1280px; margin:0 auto; }
.footer-top {
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:48px;
  padding-bottom:48px; border-bottom:1px solid var(--border); margin-bottom:28px;
}
.f-logo { font-family:'Bebas Neue', sans-serif; font-size:22px; letter-spacing:0.12em; color:var(--text); margin-bottom:16px; }
.f-logo .acc { color:var(--accent); }
.f-tagline { font-size:12px; color:var(--muted); line-height:1.8; margin-bottom:20px; }
.f-socials { display:flex; gap:12px; }
.f-social {
  width:32px; height:32px; border:1px solid var(--border); border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:14px;
  text-decoration:none; color:var(--text2); transition:border-color 0.2s, color 0.2s;
}
.f-social:hover { border-color:var(--accent); color:var(--accent); }
.f-col h4 { font-size:10px; letter-spacing:0.2em; color:var(--muted); text-transform:uppercase; margin-bottom:16px; }
.f-col a { display:block; font-size:13px; color:var(--text2); text-decoration:none; margin-bottom:10px; transition:color 0.2s; }
.f-col a:hover { color:var(--text); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; font-size:11px; color:var(--muted); letter-spacing:0.04em; }
.footer-bottom a { color:var(--muted); text-decoration:none; margin-left:16px; }
.footer-bottom a:hover { color:var(--text2); }

/* ── SHARED ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
.reveal { opacity:0; transform:translateY(28px); transition:opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity:1; transform:none; }

/* ── COMMON SECTION ── */
.section { padding: 120px 48px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.sec-eyebrow { font-size:10px; letter-spacing:0.25em; color:var(--accent); text-transform:uppercase; margin-bottom:12px; }
.sec-title { font-family:'Bebas Neue', sans-serif; font-size:clamp(36px,5vw,64px); letter-spacing:0.01em; line-height:1; margin-bottom:48px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  body { cursor: auto; }
  #cursor, #cursor-ring { display:none; }
  nav { padding:0 20px; }
  .nav-center, .nav-cta { display:none; }
  .hamburger { display:flex; }
  .page-header { padding: 120px 20px 60px; }
  .breadcrumb { padding: 20px 20px 0; }
  .section { padding: 80px 20px; }
  footer { padding:48px 20px 32px; }
  .footer-top { grid-template-columns:1fr 1fr; gap:32px; }
}
@media (max-width:480px) {
  .footer-top { grid-template-columns:1fr; }
}
