/* ============ ValuenInsu Shared Design System ============ */
:root {
  --navy: #0B1F3F;
  --navy-2: #142C56;
  --navy-3: #1E3A6E;
  --gold: #C8A263;
  --gold-2: #D9BC8A;
  --gold-3: #8F6F3E;
  --cream: #F6F1E7;
  --paper: #FBF8F2;
  --ink: #14181F;
  --ink-2: #3F4653;
  --mute: #838B98;
  --line: #E4DDCD;
  --line-2: #232F4A;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans KR', 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { font-size: 15px; line-height: 1.6; letter-spacing: -0.005em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Brand emphasis: gothic sans-serif with gold color + oblique subtle tilt
   (replaces the old serif italic emphasis) */
em {
  font-style: normal;
  color: var(--gold-3);
  font-weight: inherit;
}
.on-dark em, [class*="dark"] em { color: var(--gold-2); }

/* Legacy .serif utility class \u2014 kept for compat but now points to same gothic stack */
.serif { font-family: 'Noto Sans KR', 'Inter', system-ui, -apple-system, sans-serif; }
.eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-3);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--gold);
}

/* ============ TOP NAV (light variant by default) ============ */
.top-nav {
  position: sticky; top: 0; z-index: 40;
  padding: 32px 48px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}
.top-nav.on-dark {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: 0;
  color: #fff;
  padding-top: 36px;
}
.logo-wrap { display: flex; align-items: baseline; gap: 14px; }
.logo {
  font-family: 'Noto Sans KR', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 28px; font-weight: 500;
  color: var(--navy); letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 1px;
}
.on-dark .logo { color: #fff; }
.logo b { font-weight: 600; }
.logo i { color: var(--gold-3); font-style: italic; margin: 0 2px; font-weight: 400; }
.on-dark .logo i { color: var(--gold-2); }
.logo-tag {
  font-family: 'Noto Sans KR', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 9px; letter-spacing: 0.32em;
  color: var(--mute);
  text-transform: uppercase;
  padding-left: 14px; border-left: 1px solid var(--line);
  line-height: 1.3;
}
.on-dark .logo-tag { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.25); }

.menu {
  display: flex; gap: 36px; align-items: center;
  justify-self: center;
}
.menu a {
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  padding: 4px 0;
  position: relative;
  transition: color .2s;
}
.on-dark .menu a { color: rgba(255,255,255,0.85); }
.menu a:hover { color: var(--navy); }
.on-dark .menu a:hover { color: #fff; }
.menu a.active { color: var(--gold-3); }
.on-dark .menu a.active { color: var(--gold-2); }
.menu a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--gold);
}

.nav-right {
  justify-self: end;
  display: flex; align-items: center; gap: 22px;
  font-size: 13px;
}
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0;
  background: rgba(11,31,63,0.04);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 2px;
}
.on-dark .lang-toggle {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.lang-toggle button {
  background: none; border: 0; color: var(--mute);
  padding: 4px 10px; cursor: pointer; font-family: inherit;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  transition: all .2s;
}
.on-dark .lang-toggle button { color: rgba(255,255,255,0.6); }
.lang-toggle button.on {
  background: var(--gold); color: var(--navy);
}
.btn-nav {
  background: transparent; color: var(--navy);
  border: 1px solid var(--navy);
  padding: 12px 20px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all .25s;
}
.on-dark .btn-nav { color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-nav:hover {
  background: var(--gold); color: var(--navy); border-color: var(--gold);
}

/* ============ COMMON UI ============ */
.container { max-width: 1400px; margin: 0 auto; padding: 0 48px; }

.btn-gold-lg {
  background: var(--gold);
  color: var(--navy);
  padding: 20px 32px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 16px;
  font-family: inherit;
  transition: all .25s;
  text-decoration: none;
}
.btn-gold-lg:hover { background: var(--gold-2); transform: translateX(2px); }
.btn-gold-lg .arr {
  display: inline-block;
  font-family: 'Noto Sans KR', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 20px; font-weight: 400;
}
.btn-navy-lg {
  background: var(--navy);
  color: #fff;
  padding: 20px 32px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 16px;
  font-family: inherit;
  transition: all .25s;
  text-decoration: none;
}
.btn-navy-lg:hover { background: var(--navy-2); }
.link-underline {
  color: var(--navy);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  transition: color .2s;
}
.link-underline:hover { color: var(--gold-3); }

/* ============ PAGE HERO (small) ============ */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 200px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(200,162,99,0.14) 0%, transparent 55%),
    linear-gradient(180deg, #0B1F3F 0%, #061532 100%);
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 96px 100%;
  opacity: 0.4;
}
.page-hero .inner { position: relative; }
.page-hero .crumb {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-2);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.page-hero .crumb a { opacity: 0.7; transition: opacity .2s; }
.page-hero .crumb a:hover { opacity: 1; }
.page-hero .crumb .sep { opacity: 0.4; }
.page-hero h1 {
  font-family: 'Noto Sans KR', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 96px; font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  text-wrap: balance;
}
.page-hero h1 em { font-style: italic; color: var(--gold-2); }
.page-hero p.subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-weight: 300;
  max-width: 640px;
}

/* ============ FOOTER (shared) ============ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 100px 0 32px;
}
.site-footer .container { max-width: 1400px; }
.foot-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 50px;
}
.foot-hero h3 {
  font-family: 'Noto Sans KR', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 56px; font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 720px;
  text-wrap: balance;
}
.foot-hero h3 em { font-style: italic; color: var(--gold-2); }
.foot-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.foot-cols h5 {
  color: var(--gold-2);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 22px;
}
.foot-cols ul { list-style: none; }
.foot-cols li { padding: 5px 0; }
.foot-cols a { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 300; }
.foot-cols a:hover { color: var(--gold-2); }
.foot-cols .brand-block .logo { color: #fff; }
.foot-cols .brand-block .logo i { color: var(--gold-2); }
.foot-cols .brand-block p {
  color: rgba(255,255,255,0.55);
  font-size: 13px; line-height: 1.7;
  margin-top: 20px;
  max-width: 320px;
}
.foot-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}
.foot-bottom .links { display: flex; gap: 24px; }

/* ============ MOTION UTILITIES ============ */

/* Reveal on scroll (fade + rise) — opt-in via .reveal + JS-added .in */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity .9s cubic-bezier(.2,.7,.3,1),
    transform .9s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }
.reveal.delay-5 { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Floating gold orb decoration (add class + inline top/left/size) */
.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,162,99,0.22) 0%, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 20s ease-in-out infinite;
}
.orb.o-navy {
  background: radial-gradient(circle, rgba(11,31,63,0.18) 0%, transparent 70%);
}
.orb.o-slow { animation-duration: 28s; }
.orb.o-fast { animation-duration: 14s; }
.orb.o-delay-1 { animation-delay: -6s; }
.orb.o-delay-2 { animation-delay: -12s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate(30px, -40px) scale(1.15); opacity: 1; }
}

/* Pulse dot (for durations / active states) */
.pulse-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(200,162,99,0.6); }
  50% { transform: scale(1.3); opacity: 0.8; box-shadow: 0 0 0 8px rgba(200,162,99,0); }
}

/* Section-wide grid backdrop (subtle vertical lines on dark sections) */
.grid-lines-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 96px 100%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Glass card mixin-like class */
.glass-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(228,221,205,0.7);
  transition: all .4s cubic-bezier(.2,.7,.3,1);
}
.glass-card:hover {
  background: rgba(255,255,255,0.95);
  border-color: var(--gold);
  box-shadow: 0 30px 80px -30px rgba(11,31,63,0.28);
}

/* Rotating dashed ring around any element (add .ring-rotate on hover parent) */
@keyframes spinRing { to { transform: rotate(360deg); } }

/* Design note bar */
.design-note {
  background: #FFF8E7;
  border-bottom: 1px solid #E8DCA8;
  padding: 10px 40px;
  font-size: 12px;
  color: #6B5A1E;
  text-align: center;
  font-family: 'Noto Sans KR', 'Inter', system-ui, -apple-system, sans-serif;
}
.design-note b { color: #4A3E14; }
