/* yesan.xyz — cinematic honeycomb budget visualization */

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

:root {
  --lavender: #e8e0f0;
  --cream: #f0e8e0;
  --income: #a0d8b0;
  --expense: #f0b0b0;
  --savings: #b0c8f0;
  --invest: #f0d8a0;
  --text: #2a2830;
  --muted: #6a6070;
}

html, body {
  background: linear-gradient(160deg, var(--lavender), var(--cream));
  color: var(--text);
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body { position: relative; }

/* Bubble navigation */
.bubbles {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 50;
}
.bubble {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.85) 0%, var(--c, #ddd) 70%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  display: block;
  animation: bubble-bounce 2.4s ease-in-out infinite;
}
.bubble-income   { --c: #a0d8b0; animation-delay: 0s; }
.bubble-expense  { --c: #f0b0b0; animation-delay: 0.4s; }
.bubble-savings  { --c: #b0c8f0; animation-delay: 0.8s; }
.bubble-invest   { --c: #f0d8a0; animation-delay: 1.2s; }
@keyframes bubble-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (max-width: 720px) { .bubbles { display: none; } }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.hex-wireframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(220px, 26vw, 380px);
  height: clamp(220px, 26vw, 380px);
  opacity: 0.10;
  animation: spin-hex 80s linear infinite;
  pointer-events: none;
}
.hex-wireframe svg { width: 100%; height: 100%; }
@keyframes spin-hex {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-title {
  font-family: 'Jua', sans-serif;
  font-weight: 400;
  font-size: clamp(108px, 25vw, 360px);
  line-height: 0.9;
  color: var(--text);
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
}

.hero-en {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 22px);
  letter-spacing: 0.32em;
  color: var(--muted);
  margin-top: 12px;
  position: relative;
  z-index: 2;
}

.hero-sub {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--text);
  margin-top: 32px;
  max-width: 540px;
  position: relative;
  z-index: 2;
}

/* HONEYCOMB */
.comb-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 60px auto;
  padding: 40px 32px;
}

.comb {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 14px;
}

.hex {
  background: rgba(255, 255, 255, 0.4);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  aspect-ratio: 1 / 0.9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20%;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hex:hover { transform: translateY(-3px) scale(1.02); }

.hex-income  { background: var(--income); }
.hex-expense { background: var(--expense); }
.hex-savings { background: var(--savings); }
.hex-invest  { background: var(--invest); }

.hex-icon {
  font-size: 22px;
  font-family: 'Jua', sans-serif;
  color: var(--text);
  margin-bottom: 4px;
  opacity: 0.85;
}

.hex-label {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 4px;
}

.hex-num {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(13px, 1.3vw, 16px);
  color: var(--text);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hex-cap {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
  max-width: 100%;
}

/* Offset every other row to create honeycomb */
.comb article:nth-child(5n+6),
.comb article:nth-child(5n+7),
.comb article:nth-child(5n+8),
.comb article:nth-child(5n+9),
.comb article:nth-child(5n+10) {
  transform: translateY(-30%);
}
.comb article:nth-child(5n+6):hover,
.comb article:nth-child(5n+7):hover,
.comb article:nth-child(5n+8):hover,
.comb article:nth-child(5n+9):hover,
.comb article:nth-child(5n+10):hover {
  transform: translateY(calc(-30% - 3px)) scale(1.02);
}

@media (max-width: 880px) {
  .comb { grid-template-columns: repeat(3, 1fr); }
  .comb article:nth-child(5n+6),
  .comb article:nth-child(5n+7),
  .comb article:nth-child(5n+8),
  .comb article:nth-child(5n+9),
  .comb article:nth-child(5n+10) { transform: none; }
  .comb article:nth-child(3n+4),
  .comb article:nth-child(3n+5),
  .comb article:nth-child(3n+6) { transform: translateY(-30%); }
}
@media (max-width: 540px) {
  .comb { grid-template-columns: repeat(2, 1fr); }
  .comb article:nth-child(n) { transform: none !important; }
}

/* Nature corridor */
.nature-corridor {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 32px;
  opacity: 0.85;
}
.nature-corridor svg { width: 100%; height: auto; display: block; }

/* Footer */
.foot {
  text-align: center;
  padding: 48px 24px 80px;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
