:root {
  /* Dark Theme Color Palette */
  --bg-dark: #07090b;
  --bg-darker: #040506;
  --bg-card: rgba(20, 24, 28, 0.7);
  --bg-card-hover: rgba(30, 36, 42, 0.9);
  
  --primary: #cba365; /* Elegant Gold */
  --primary-glow: rgba(203, 163, 101, 0.4);
  --secondary: #1e3a8a; /* Deep Trust Blue */
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #1f2937;
  
  --border-light: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(203, 163, 101, 0.3);

  /* Typography */
  --font-logo: 'Inter', sans-serif;
  --font-body: 'Noto Sans KR', sans-serif;

  /* Layout */
  --header-height: 80px;
  --max-width: 1200px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= Reset & Basics ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  word-break: keep-all;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* ================= Typography & Utilities ================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

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

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-darker);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  z-index: -1;
  transition: transform 0.6s ease;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--primary-glow);
}

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

.btn-outline:hover {
  background: rgba(203, 163, 101, 0.1);
  box-shadow: inset 0 0 10px var(--primary-glow);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
}


/* ================= Header / GNB ================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(4, 5, 6, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(4, 5, 6, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(203, 163, 101, 0.2);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px; /* spacing between image and text */
}

.header-logo-img {
  height: 65px; /* increased by ~1.5x */
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  transition: transform var(--transition-fast);
}

.header-logo-text {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
  letter-spacing: 1px;
}

.logo:hover .header-logo-img {
  transform: scale(1.05);
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-main);
  opacity: 0.8;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: var(--transition-fast);
}

/* ================= Footer ================= */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  background: var(--bg-darker);
  padding: 4rem 0 2rem;
}

.footer-info {
  margin-bottom: 3rem;
}

.footer-info h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.footer-info p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
}

/* ================= Specific Pages ================= */
#app {
  padding-top: var(--header-height);
  min-height: calc(100vh - 200px);
  animation: fadeIn 0.4s ease forwards;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: calc(100vh - var(--header-height));
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(4,5,6,0.9) 0%, rgba(4,5,6,0.6) 100%),
              url('https://images.unsplash.com/photo-1601362840469-51e4d8d58785?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
  z-index: -1;
  animation: bgZoom 20s infinite alternate linear;
}

@keyframes bgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-tagline {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Page Headers */
.page-header {
  padding: 6rem 0 3rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(4,5,6,1) 0%, rgba(4,5,6,0) 100%);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-desc {
  color: var(--primary);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(4, 5, 6, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    border-bottom: 1px solid var(--border-light);
    z-index: 999;
  }

  .nav-list.active {
    transform: translateY(0);
  }

  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-cta {
    flex-direction: column;
  }
}

/* ================= Floating Audio Button ================= */
.audio-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(203, 163, 101, 0.3);
  transition: all var(--transition-normal);
}

.audio-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(203, 163, 101, 0.5);
  background: #000;
}

.audio-toggle.playing {
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(203, 163, 101, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(203, 163, 101, 0); }
  100% { box-shadow: 0 0 0 0 rgba(203, 163, 101, 0); }
}
