@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

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

:root {
  --black: #111111;
  --gold: #B8972A;
  --gold-light: #D4AF50;
  --gold-dim: rgba(184, 151, 42, 0.15);
  --white: #FFFFFF;
  --gray-100: #F7F7F5;
  --gray-200: #EBEBEB;
  --gray-500: #888888;
  --gray-700: #444444;
  --serif: 'Noto Serif KR', serif;
  --sans: 'Noto Sans KR', sans-serif;
  --transition: 0.28s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--black); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }

/* ── Gold Rule (계측기 눈금 디테일) ── */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.gold-rule::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.gold-rule span {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Scale Bar (눈금자 장식) ── */
.scale-bar {
  height: 4px;
  background: repeating-linear-gradient(
    to right,
    var(--gold) 0px,
    var(--gold) 2px,
    transparent 2px,
    transparent 8px
  );
  opacity: 0.6;
}
.scale-bar.thick {
  height: 6px;
  background: repeating-linear-gradient(
    to right,
    var(--gold) 0px,
    var(--gold) 3px,
    transparent 3px,
    transparent 10px
  );
}

/* ── Section Layout ── */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-gray { background: var(--gray-100); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .gold-rule { justify-content: center; }
.section-header h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.section-header p { margin-top: 16px; color: var(--gray-500); font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; flex-direction: column; gap: 1px; text-decoration: none;
}
.nav-logo .logo-ko {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--black); line-height: 1;
}
.nav-logo .logo-en {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.25em; color: var(--gold);
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--gray-700); text-decoration: none;
  letter-spacing: 0.02em; position: relative; transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--black); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Dropdown — padding-top fills the gap so mouse doesn't leave hover zone */
.nav-links li { position: relative; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--white); border: 1px solid var(--gray-200);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  min-width: 180px; padding: 20px 0 8px; list-style: none;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.nav-dropdown.open { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-dropdown::before {
  content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top: none;
  border-bottom-color: var(--gray-200);
}
.nav-dropdown li a {
  display: block; padding: 10px 20px; font-size: 0.85rem; font-weight: 400;
  color: var(--gray-700); letter-spacing: 0; transition: color var(--transition), background var(--transition);
}
.nav-dropdown li a::after { display: none; }
.nav-dropdown li a:hover { color: var(--black); background: var(--gray-100); }
.nav-dropdown li a.active { color: var(--gold); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--black); color: var(--white);
  padding: 10px 22px; font-size: 0.85rem; font-weight: 500;
  text-decoration: none; letter-spacing: 0.04em;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--gold); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--black); transition: var(--transition); }
.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 */
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 999; padding: 32px 24px;
  flex-direction: column; gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.2rem; font-weight: 500; color: var(--black); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--gray-200);
}
.mobile-nav .mobile-cta {
  margin-top: 16px; display: block; text-align: center;
  background: var(--black); color: var(--white); padding: 16px;
  font-size: 1rem; font-weight: 500; text-decoration: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  border: none; transition: all var(--transition);
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #2a2a2a; }
.btn svg { flex-shrink: 0; }

/* ── Footer ── */
.site-footer {
  background: #0A0A0A; color: rgba(255,255,255,0.55);
  padding: 64px 0 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-ko { font-family: var(--serif); font-size: 1.4rem; color: var(--white); font-weight: 700; }
.footer-brand .logo-en { font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.25em; color: var(--gold); margin-top: 2px; }
.footer-brand p { margin-top: 16px; font-size: 0.85rem; line-height: 1.8; }
.footer-links h4 { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-contact h4 { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-contact p { font-size: 0.88rem; line-height: 2; }
.footer-contact a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color var(--transition); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}

/* ── Utility ── */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
img { max-width: 100%; display: block; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Scroll To Top ── */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 44px; height: 44px;
  background: var(--black); border: 1.5px solid rgba(184,151,42,0.5);
  color: var(--gold); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.scroll-top:hover {
  background: var(--gold); color: var(--black); border-color: var(--gold);
}
@media (max-width: 600px) {
  .scroll-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}
