/* ==========================================================================
   buz.kr — Kinetic Editorial Design System Stylesheet
   Design Philosophy: High-Contrast Editorial Authority + Fluid Digital Kineticism
   ========================================================================== */

/* 1. CSS Reset & Variables */
:root {
  /* Surface & Base */
  --bg-base: #FBF9F3;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F0EEE8;
  --bg-dark: #121212;
  --bg-dark-slate: #0D1117;
  --bg-dark-zinc: #18181B;

  /* Ink & Typography */
  --text-primary: #121212;
  --text-inverse: #FFFFFF;
  --text-muted: #5F5E5E;
  --text-subtle: #858383;
  --text-dark-muted: #94A3B8;

  /* Accents & Highlights */
  --accent-yellow: #FFD83D;
  --accent-yellow-hover: #E9C327;
  --accent-orange: #FF6B35;
  --accent-blue: #58A6FF;
  --accent-magenta: #FF3366;
  --accent-cyan: #38BDF8;

  /* Borders & Dividers */
  --border-divider: #E9E7E1;
  --border-dark-divider: #2D333B;
  --border-bold: #121212;

  /* Typography Scale */
  --font-sans: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --unit: 8px;
  --container-max: 1280px;
  --header-height: 72px;

  /* Transition speeds */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* Strict 0px Sharp Architecture */
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-base);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* 2. Layout & Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.text-center {
  text-align: center;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.section-headline {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.lead-text {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
}

/* 3. Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(251, 249, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-divider);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.site-header.theme-dark {
  background: rgba(18, 18, 18, 0.85);
  border-bottom-color: var(--border-dark-divider);
  color: var(--text-inverse);
}

.header-inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
}

.site-header.theme-dark .brand-logo {
  color: var(--text-inverse);
}

.logo-tld {
  color: var(--text-muted);
  font-weight: 700;
}

.site-header.theme-dark .logo-tld {
  color: var(--text-dark-muted);
}

.header-meta {
  display: flex;
  align-items: center;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-divider);
  color: var(--text-primary);
  text-transform: uppercase;
}

.site-header.theme-dark .badge-status {
  background: #1C1E24;
  border-color: #2D333B;
  color: var(--text-inverse);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10B981;
  box-shadow: 0 0 6px #10B981;
  display: inline-block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-header.theme-dark .nav-link {
  color: var(--text-dark-muted);
}

.nav-link:hover {
  color: var(--text-primary);
}

.site-header.theme-dark .nav-link:hover {
  color: var(--text-inverse);
}

/* 4. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, background-color 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.btn-block {
  width: 100%;
  padding: 14px 20px;
}

.btn-accent {
  background-color: var(--accent-yellow);
  color: #121212;
  border: 1px solid #121212;
}

.btn-accent:hover {
  background-color: var(--accent-yellow-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bold);
}

.btn-ghost:hover {
  background: var(--bg-surface-alt);
}

/* 5. Section 1: Opening Signal Hero */
.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1E1F24 0%, #101114 100%);
  color: var(--text-inverse);
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.signal-indicator {
  position: relative;
  width: 24px;
  height: 24px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-yellow);
  box-shadow: 0 0 12px var(--accent-yellow);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent-yellow);
  opacity: 0.7;
  animation: pulse-wave 2.4s infinite var(--ease-out);
}

@keyframes pulse-wave {
  0% {
    transform: scale(0.5);
    opacity: 0.9;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.hero-tagline-sm {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  color: var(--accent-yellow);
  margin-bottom: 16px;
}

.hero-wordmark {
  font-size: clamp(4.5rem, 15vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: #FFFFFF;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  user-select: none;
}

.hero-wordmark .char {
  display: inline-block;
  transition: transform 0.4s var(--ease-out), color 0.4s;
}

.hero-wordmark .char:hover {
  transform: translateY(-8px);
  color: var(--accent-yellow);
}

.hero-wordmark .char-tld {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  font-size: 0.6em;
  margin-left: 4px;
}

.hero-slogan .slogan-en {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #F3F4F6;
}

.hero-slogan .slogan-kr {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--text-dark-muted);
}

.scroll-prompt {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.scroll-prompt:hover {
  opacity: 1;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  position: relative;
}

.scroll-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background-color: var(--accent-yellow);
  animation: wheel-scroll 1.6s infinite;
}

@keyframes wheel-scroll {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
}

/* 6. Section 2: The Name Breakdown */
.section-name {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-divider);
}

.name-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

@media (min-width: 900px) {
  .name-breakdown-grid {
    grid-template-columns: 1.2fr 1.8fr;
    align-items: center;
  }
}

.letters-block {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 4rem);
}

.letter-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 10vw, 88px);
  height: clamp(64px, 12vw, 96px);
  background: var(--bg-surface);
  border: 2px solid var(--border-bold);
  box-shadow: 4px 4px 0px var(--border-bold);
  color: var(--text-primary);
}

.tld-box {
  width: auto;
  padding: 0 16px;
  background: var(--accent-yellow);
}

.letter-separator {
  color: var(--text-subtle);
  font-weight: 400;
}

.phonetic-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.name-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .name-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .name-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.prop-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-divider);
  padding: 32px 24px;
  position: relative;
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
}

.prop-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bold);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-subtle);
  display: block;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* 7. Section 3: One Name, Different Worlds (Sticky Pinned Experience) */
.section-worlds-sticky {
  position: relative;
  background-color: var(--bg-dark);
}

.worlds-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.5s var(--ease-out);
}

/* Ambient Graphic Layer */
.worlds-ambient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ambient-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.ambient-layer.media-layer {
  background: radial-gradient(circle at 75% 30%, rgba(255, 216, 61, 0.12) 0%, transparent 60%);
}

.ambient-layer.creators-layer {
  background: radial-gradient(circle at 25% 70%, rgba(255, 107, 53, 0.15) 0%, transparent 60%);
}

.ambient-layer.community-layer {
  background: radial-gradient(circle at 50% 50%, rgba(88, 166, 255, 0.15) 0%, transparent 70%);
}

.ambient-layer.campaigns-layer {
  background: radial-gradient(circle at 80% 80%, rgba(255, 51, 102, 0.15) 0%, transparent 60%);
}

.ambient-layer.labs-layer {
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 60%);
}

.ambient-layer.active {
  opacity: 1;
}

/* Pinned Center Anchor */
.pinned-brand-anchor {
  position: absolute;
  z-index: 5;
  text-align: center;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out);
}

.anchor-domain {
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.anchor-suffix {
  color: var(--accent-yellow);
}

.anchor-persona-label {
  margin-top: 16px;
}

.persona-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: inline-block;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

/* World Scene Overlays */
.world-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(60px, 12vh, 120px);
  padding-left: 24px;
  padding-right: 24px;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.world-scene.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scene-inner {
  max-width: 800px;
  text-align: center;
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.scene-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  color: var(--accent-yellow);
}

.scene-idx {
  padding: 2px 6px;
  background: rgba(255, 216, 61, 0.2);
}

.scene-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.scene-sub {
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  color: #D1D5DB;
  line-height: 1.6;
  margin-bottom: 24px;
}

.scene-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.scene-tags .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9CA3AF;
}

/* Worlds Progress Navigation */
.worlds-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.nav-dot {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-bar {
  width: 24px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.3s, background-color 0.3s;
}

.dot-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  display: none;
}

.nav-dot.active .dot-bar {
  width: 48px;
  background: var(--accent-yellow);
}

.nav-dot.active .dot-title {
  color: var(--accent-yellow);
  display: inline-block;
}

/* Scroll Tracks */
.scroll-track-container {
  position: relative;
  width: 100%;
}

.scroll-step {
  height: 100vh;
  width: 100%;
}

/* 8. Section 4: Return to One */
.section-return {
  padding: clamp(100px, 15vw, 200px) 0;
  background: var(--bg-base);
  border-top: 1px solid var(--border-divider);
  border-bottom: 1px solid var(--border-divider);
}

.return-headline {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.highlight-text {
  color: #715D00;
  border-bottom: 3px solid var(--accent-yellow);
}

.return-sub {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.return-logo-showcase {
  display: inline-block;
}

.converge-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  padding: clamp(16px, 3vw, 24px) clamp(32px, 6vw, 64px);
  background: var(--bg-surface);
  border: 3px solid var(--border-bold);
  box-shadow: 8px 8px 0px var(--border-bold);
  color: var(--text-primary);
  user-select: none;
}

/* 9. Section 5: Domain Value Matrix */
.section-value {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-divider);
}

.value-matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 64px;
}

@media (min-width: 768px) {
  .value-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.matrix-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-divider);
  padding: 40px 32px;
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
}

.matrix-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-bold);
}

.matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.matrix-key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.matrix-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 8px;
  background: var(--bg-base);
  border: 1px solid var(--border-divider);
  color: var(--text-primary);
}

.matrix-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.matrix-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* 10. Section 6: Final CTA */
.section-cta {
  padding: clamp(100px, 15vw, 180px) 0;
  background: var(--bg-dark);
  color: var(--text-inverse);
  position: relative;
}

.cta-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  color: var(--accent-yellow);
  margin-bottom: 16px;
}

.cta-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta-kr {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--text-dark-muted);
  display: block;
  margin-top: 8px;
}

.cta-sub {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: -0.015em;
  color: #E5E7EB;
  max-width: 680px;
  margin: 0 auto 48px;
  word-break: keep-all;
}

.cta-domain-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95em;
  color: var(--accent-yellow);
  background: rgba(255, 216, 61, 0.12);
  border: 1px solid rgba(255, 216, 61, 0.35);
  padding: 1px 7px;
  margin-right: 3px;
  display: inline-block;
  vertical-align: baseline;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.section-cta .btn-ghost {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.section-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.toast-msg {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10B981;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 12px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 11. Footer */
.site-footer {
  background: #0B0C0E;
  color: #9CA3AF;
  border-top: 1px solid #1F232B;
  padding: 48px 0;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.footer-desc {
  color: #6B7280;
  font-size: 0.8125rem;
}

.footer-operator {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: #9CA3AF;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.footer-operator .sep {
  color: #4B5563;
}

.operator-link {
  color: var(--accent-yellow);
  font-weight: 600;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.operator-link:hover {
  opacity: 0.8;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .footer-right {
    text-align: right;
  }
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .footer-legal {
    justify-content: flex-end;
  }
}

.legal-btn {
  background: transparent;
  border: none;
  color: #D1D5DB;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.2s;
}

.legal-btn:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.legal-sep {
  color: #4B5563;
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.footer-links a {
  color: var(--accent-yellow);
  text-decoration: underline;
}

.footer-copy {
  color: #4B5563;
  font-size: 0.75rem;
  margin-top: 4px;
}

/* 12. Modal Dialogs */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 540px;
  background: var(--bg-surface);
  border: 2px solid var(--border-bold);
  box-shadow: 12px 12px 0px var(--border-bold);
  padding: clamp(24px, 5vw, 40px);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s var(--ease-out);
}

.modal-dialog-doc {
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-doc-body {
  overflow-y: auto;
  max-height: 55vh;
  padding-right: 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: left;
  border-top: 1px solid var(--border-divider);
  border-bottom: 1px solid var(--border-divider);
  padding-top: 16px;
  padding-bottom: 16px;
}

.modal-doc-body::-webkit-scrollbar {
  width: 6px;
}
.modal-doc-body::-webkit-scrollbar-track {
  background: var(--bg-base);
}
.modal-doc-body::-webkit-scrollbar-thumb {
  background: var(--border-bold);
}

.doc-section {
  margin-bottom: 20px;
}

.doc-section:last-child {
  margin-bottom: 0;
}

.doc-section h4 {
  font-size: 0.9375rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.doc-section p, .doc-section li {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.doc-section ul {
  padding-left: 20px;
  margin-top: 4px;
}

.doc-link {
  color: #715D00;
  font-weight: 600;
  text-decoration: underline;
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-divider);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-close:hover {
  background: var(--bg-surface-alt);
  border-color: var(--border-bold);
}

.modal-header {
  margin-bottom: 24px;
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 6px;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-divider);
  background: var(--bg-base);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.form-input:focus {
  border-color: var(--border-bold);
  background: var(--bg-surface);
}

.form-input.has-error {
  border-color: #DC2626 !important;
  background-color: #FEF2F2 !important;
}

.field-error-msg {
  display: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: #DC2626;
  margin-top: 2px;
  letter-spacing: -0.01em;
}

.field-error-msg.visible {
  display: block;
  animation: fadeInError 0.2s ease-out;
}

@keyframes fadeInError {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-global-error {
  display: none;
  background-color: #FEF2F2;
  border: 1px solid #DC2626;
  color: #B91C1C;
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}

.form-global-error.visible {
  display: block;
  animation: fadeInError 0.2s ease-out;
}

/* Modal Success View */
.modal-success-view {
  text-align: center;
  padding: 16px 8px 8px;
  animation: fadeInSuccess 0.3s var(--ease-out);
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon-box {
  width: 64px;
  height: 64px;
  background-color: var(--accent-yellow);
  border: 2px solid var(--border-bold);
  box-shadow: 4px 4px 0px var(--border-bold);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.modal-actions {
  margin-top: 8px;
}


