/* ==========================================================================
   경기도서관 (Gyeonggi Library) - Modern Architectural Design System
   ========================================================================== */

:root {
  /* Light Mode Palette */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: rgba(226, 232, 240, 0.9);
  --border-glow: rgba(16, 185, 129, 0.25);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --brand-green: #059669;
  --brand-green-dark: #064e3b;
  --brand-green-light: #ecfdf5;
  --brand-cyan: #0284c7;
  --brand-cyan-light: #e0f2fe;

  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Cinzel', sans-serif;
}

/* Dark Mode Palette */
body.dark-mode {
  --bg-primary: #0b1319;
  --bg-surface: #131f28;
  --bg-surface-elevated: #1a2a37;
  --bg-subtle: #192633;
  --border-color: rgba(51, 65, 85, 0.7);
  --border-glow: rgba(16, 185, 129, 0.35);

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --brand-green: #10b981;
  --brand-green-dark: #059669;
  --brand-green-light: rgba(16, 185, 129, 0.12);
  --brand-cyan: #38bdf8;
  --brand-cyan-light: rgba(56, 189, 248, 0.12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.25);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

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

.text-green {
  color: var(--brand-green);
}

.d-none {
  display: none !important;
}

.mt-4 {
  margin-top: 1.5rem;
}

/* Section Headers */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--brand-green);
  background: var(--brand-green-light);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-tag-light {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

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

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* Fixed Quick Bar */
.fixed-quick-bar {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.control-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}

.control-btn:hover {
  transform: translateY(-3px);
  color: var(--brand-green);
  border-color: var(--brand-green);
  box-shadow: var(--shadow-glow);
}

.control-btn.active {
  background: var(--brand-green);
  color: #ffffff;
  border-color: var(--brand-green);
}

.btn-tooltip {
  position: absolute;
  right: 56px;
  white-space: nowrap;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.control-btn:hover .btn-tooltip {
  opacity: 1;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  z-index: 90;
  transition: background-color 0.3s;
}

body.dark-mode .site-header {
  background: rgba(19, 31, 40, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-green), #0284c7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.logo-symbol.small {
  width: 32px;
  height: 32px;
}

.snail-svg {
  width: 26px;
  height: 26px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-green);
}

/* Real-time Status Badge */
.live-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.8s infinite;
}

.live-status-pill.closed .status-dot {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.main-nav a:hover {
  color: var(--brand-green);
}

.main-nav a.nav-highlight {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--brand-green);
  color: #ffffff;
}

.main-nav a.nav-highlight:hover {
  background: var(--brand-green-dark);
  color: #ffffff;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-surface);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 150;
  padding: 24px;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.08), transparent 70%);
}

#spiralCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-primary) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 960px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-green), #0284c7, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-green), #059669);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(5, 150, 105, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
  transform: translateY(-2px);
}

/* Key Metrics Cards */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-value .unit {
  font-size: 1.1rem;
  font-weight: 700;
  margin-left: 3px;
  color: var(--text-secondary);
}

.highlight-green {
  color: var(--brand-green) !important;
}

.stat-detail {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.scroll-down-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  z-index: 5;
}

.mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--brand-green);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouse-scroll 1.6s infinite;
}

@keyframes mouse-scroll {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ==========================================================================
   SECTION 1: FEATURES TRIPLE GRID
   ========================================================================== */
.features-triple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-box:hover {
  transform: translateY(-6px);
  border-color: var(--brand-green);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-snail {
  background: var(--brand-green-light);
  color: var(--brand-green);
}

.icon-leaf {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.icon-cpu {
  background: var(--brand-cyan-light);
  color: var(--brand-cyan);
}

.feature-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.feature-box p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-green);
}

/* ==========================================================================
   SECTION 2: INTERACTIVE FLOOR NAVIGATOR
   ========================================================================== */
.floor-navigator-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

.floor-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floor-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
}

.floor-tab:hover {
  background: var(--bg-subtle);
  transform: translateX(4px);
}

.floor-tab.active {
  background: linear-gradient(135deg, var(--brand-green-light), var(--bg-surface));
  border-color: var(--brand-green);
  box-shadow: var(--shadow-sm);
}

body.dark-mode .floor-tab.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), var(--bg-surface));
}

.tab-badge {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-display);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.floor-tab.active .tab-badge {
  background: var(--brand-green);
  color: #ffffff;
}

.tab-info {
  display: flex;
  flex-direction: column;
}

.floor-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.floor-theme {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Floor Card Display */
.floor-card-display {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.floor-display-inner {
  display: flex;
  flex-direction: column;
}

.floor-image-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.floor-image-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.floor-image-hero:hover img {
  transform: scale(1.03);
}

.floor-badge-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
}

.floor-content-body {
  padding: 36px 32px;
}

.floor-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.floor-main-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.floor-concept-tag {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-green);
  background: var(--brand-green-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.floor-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.key-spaces-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.space-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-subtle);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.space-item i {
  color: var(--brand-green);
  flex-shrink: 0;
  margin-top: 3px;
}

.space-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.space-item-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.floor-tip-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--accent-gold-light);
  color: #92400e;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

/* ==========================================================================
   SECTION 3: AI BOOK THERAPY
   ========================================================================== */
.ai-therapy-section {
  background: linear-gradient(135deg, #09131b, #0f2331);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.ai-therapy-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.therapy-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
}

.therapy-intro h2 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}

.highlight-cyan {
  color: #38bdf8;
}

.therapy-intro p {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.ai-pulse-graphic {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-icon {
  width: 48px;
  height: 48px;
  color: #38bdf8;
  z-index: 2;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  animation: pulse-ring 3s infinite ease-out;
}

.r1 { width: 60px; height: 60px; animation-delay: 0s; }
.r2 { width: 100px; height: 100px; animation-delay: 1s; }
.r3 { width: 140px; height: 140px; animation-delay: 2s; }

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 0; }
}

.therapy-interactive-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.step-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 14px;
}

.mood-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mood-chip {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  transition: var(--transition);
}

.mood-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #38bdf8;
}

.mood-chip.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(16, 185, 129, 0.3));
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.custom-prompt-wrap {
  display: flex;
  gap: 10px;
}

.custom-prompt-wrap input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.custom-prompt-wrap input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.btn-cyan {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  white-space: nowrap;
}

.btn-cyan:hover {
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

/* Loading State */
.therapy-loading {
  text-align: center;
  padding: 50px 0;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.sub-loader {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Result Card */
.therapy-result {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.rx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
}

.rx-badge {
  font-size: 0.9rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

.rx-date {
  font-size: 0.82rem;
  color: #94a3b8;
}

.rx-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.rx-author {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.rx-location {
  font-size: 0.88rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 20px;
}

.rx-quote-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid #38bdf8;
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
  position: relative;
}

.quote-icon {
  width: 18px;
  height: 18px;
  color: #38bdf8;
  margin-bottom: 6px;
}

.rx-quote {
  font-size: 0.98rem;
  font-style: italic;
  color: #e2e8f0;
  line-height: 1.6;
}

.rx-spot-tip {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.rx-spot-tip strong {
  color: #f1f5f9;
}

.rx-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-cyan-small {
  background: #0284c7;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   SECTION 4: ECO & RE100 SIMULATOR
   ========================================================================== */
.eco-dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.eco-control-card, .eco-badges-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.eco-control-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.desc-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.slider-group {
  margin-bottom: 24px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.slider-val {
  color: var(--brand-green);
}

.eco-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  outline: none;
  accent-color: var(--brand-green);
}

.eco-stat-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.eco-pill {
  background: var(--bg-subtle);
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
}

.pill-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pill-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-green);
  font-family: var(--font-display);
}

.eco-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 28px 0;
}

.louver-modes {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.louver-btn {
  flex: 1;
  padding: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.louver-btn.active {
  background: var(--brand-green);
  color: #ffffff;
  border-color: var(--brand-green);
}

.louver-visual-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.louver-blades {
  display: flex;
  justify-content: center;
  gap: 20px;
  height: 60px;
  align-items: center;
  margin-bottom: 12px;
}

.blade {
  width: 6px;
  height: 50px;
  background: linear-gradient(180deg, var(--brand-green), #0284c7);
  border-radius: 3px;
  transform: rotate(75deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.louver-status-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Green Cert Badges */
.green-cert-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--brand-green-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.cert-icon {
  width: 32px;
  height: 32px;
  color: var(--brand-green);
}

.cert-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--brand-green-dark);
}

body.dark-mode .cert-text strong {
  color: #34d399;
}

.cert-text span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.eco-story-box {
  margin-top: 28px;
}

.eco-story-box h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.eco-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eco-list li {
  display: flex;
  gap: 14px;
}

.eco-list li i {
  color: var(--brand-green);
  flex-shrink: 0;
  margin-top: 3px;
}

.eco-list strong {
  font-size: 0.95rem;
}

.eco-list p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 5: CITIZEN BENEFIT FINDER
   ========================================================================== */
.persona-tab-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.persona-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}

.persona-tab:hover {
  transform: translateY(-2px);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.persona-tab.active {
  background: var(--brand-green);
  color: #ffffff;
  border-color: var(--brand-green);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.benefit-card-container {
  max-width: 880px;
  margin: 0 auto;
}

.benefit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.4s ease;
}

.benefit-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.benefit-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.benefit-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.perk-box {
  background: var(--bg-subtle);
  padding: 18px;
  border-radius: var(--radius-md);
}

.perk-box h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 6px;
}

.perk-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.benefit-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.benefit-target {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 6: MEDIA GALLERY & VIDEOS
   ========================================================================== */
.video-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.video-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.video-wrapper {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-meta {
  padding: 24px;
}

.video-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-green);
  margin-bottom: 6px;
  display: block;
}

.video-meta h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.video-meta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.gallery-subtitle {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 700;
  font-size: 0.9rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 205;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   SECTION 7: VISIT & PARKING GUIDE
   ========================================================================== */
.visit-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
}

.visit-info-card, .transit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-sm);
}

.visit-info-card h3, .transit-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.hours-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.day-badge {
  font-weight: 700;
  color: var(--text-primary);
}

.badge-closed {
  color: #ef4444;
}

.time-text.highlight {
  font-weight: 700;
  color: var(--brand-green);
}

.card-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 28px 0;
}

/* Parking Calculator */
.calc-tip {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.calc-inputs label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hour-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hour-btn {
  flex: 1;
  min-width: 60px;
  padding: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
}

.hour-btn.active {
  background: var(--brand-green);
  color: #ffffff;
  border-color: var(--brand-green);
}

.calc-result-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.benefit-free {
  font-weight: 700;
  color: var(--brand-green);
}

.total-row {
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  margin-bottom: 0;
  font-weight: 800;
  font-size: 1.15rem;
}

.total-price {
  color: var(--brand-green);
  font-size: 1.35rem;
  font-family: var(--font-display);
}

/* Transit Method */
.transit-method {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
}

.transit-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.subway-icon {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
}

.bus-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.transit-content h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.transit-content p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.transit-content .sub-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.quick-link-box {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.btn-map {
  flex: 1;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-naver {
  background: #03c75a;
  color: #ffffff;
}

.btn-kakao {
  background: #fee500;
  color: #191919;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #091118;
  color: #94a3b8;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .brand-title {
  color: #ffffff;
  font-size: 1.3rem;
}

.footer-slogan {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 14px 0 8px;
}

.footer-addr {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links-group h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links-group a:hover {
  color: #10b981;
}

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748b;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-triple-grid {
    grid-template-columns: 1fr;
  }

  .floor-navigator-layout {
    grid-template-columns: 1fr;
  }

  .therapy-wrapper {
    grid-template-columns: 1fr;
  }

  .eco-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .visit-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-desc {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }

  .video-cards-grid {
    grid-template-columns: 1fr;
  }

  .key-spaces-grid {
    grid-template-columns: 1fr;
  }

  .benefit-perks-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    padding: 24px;
  }

  .mood-chips-grid {
    grid-template-columns: 1fr;
  }

  .custom-prompt-wrap {
    flex-direction: column;
  }

  .br-desktop {
    display: none;
  }
}
