/* ===== Design Tokens (Lucafeed Theme) ===== */
:root {
  --bg-base: #0a1628;
  --bg-card: #111e33;
  --bg-card-solid: #0d1a2e;
  --highlight: #06b6d4;
  --highlight-hover: #0891b2;
  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
  --bg-base: #f0f9ff;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --highlight: #0891b2;
  --highlight-hover: #067a94;
  --text-main: #0a1628;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: rgba(10, 22, 40, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  background: var(--bg-base);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
  padding-top: 70px; /* Offset for fixed navbar */
}

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

section { padding: 6rem 0; }
.section-divider { border-top: 1px solid var(--border-color); }

/* ===== Navigation Bar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s, border-color 0.3s;
}

[data-theme="light"] .navbar {
  background: rgba(240, 249, 255, 0.75);
}

.navbar-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
}
.nav-logo span {
  color: var(--highlight);
}

.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--highlight);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  backdrop-filter: blur(12px);
  transition: transform 0.2s, background-color 0.2s;
  flex-shrink: 0;
}
.icon-btn:hover {
  transform: scale(1.05);
  background: var(--bg-card-solid);
}

/* Language switcher inside navbar */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}
.nav-lang span { color: var(--text-muted); opacity: 0.5; }
.nav-lang-btn {
  cursor: pointer; color: var(--text-muted);
  transition: color 0.2s; border: none; background: none;
  font-family: inherit; font-size: inherit; font-weight: inherit; padding: 0;
}
.nav-lang-btn.active { color: var(--highlight); }

/* Game Dropdown inside navbar */
.game-menu-wrapper { position: relative; flex-shrink: 0; }
.game-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  display: flex; flex-direction: column; gap: 4px; padding: 8px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 16px; backdrop-filter: blur(12px); min-width: 130px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1020;
}
.game-menu-wrapper:hover .game-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.game-dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  text-decoration: none; color: var(--text-main); font-size: 13px;
  transition: background 0.15s; white-space: nowrap;
}
.game-dropdown a:hover { background: rgba(127,127,127,0.12); }

/* Menu Toggle (Hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}
.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  position: relative;
  transition: background 0.2s;
}
.nav-toggle-icon::before, .nav-toggle-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  left: 0;
  transition: transform 0.2s;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { bottom: -6px; }

/* ===== Hero ===== */
.hero { padding: 80px 0 100px; border-bottom: 1px solid var(--border-color); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px; font-size: 14px; color: var(--text-secondary);
}
.hero-eyebrow-sep { color: var(--text-muted); opacity: 0.5; }
#visitor-count-box { display: inline-flex; align-items: center; gap: 6px; }

h1 {
  font-size: 58px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  word-break: keep-all;
}
.highlight { color: var(--highlight); }

.hero-text {
  font-size: 17px; line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 40px;
  word-break: keep-all;
}

/* ===== Buttons ===== */
.button-group { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  padding: 14px 28px; border-radius: 16px; border: none;
  cursor: pointer; font-size: 15px; font-weight: 700;
  font-family: inherit; transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
  text-decoration: none; display: inline-block; text-align: center;
}

.btn-primary {
  background: var(--highlight);
  color: #ffffff;
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--highlight-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  border-color: var(--highlight);
  background: rgba(6, 182, 212, 0.05);
}

/* ===== Profile Card ===== */
.profile-image-wrapper { display: flex; justify-content: center; margin-bottom: 28px; }
.profile-image {
  width: 200px; height: 200px; object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--highlight);
  box-shadow: 0 16px 48px rgba(6, 182, 212, 0.2);
}
.card-box {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 28px; padding: 32px; backdrop-filter: blur(12px);
}

/* ===== Stats Grid ===== */
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.stat-card {
  background: rgba(127,127,127,0.06);
  border: 1px solid var(--border-color);
  border-radius: 20px; padding: 20px;
}
.stat-label { color: var(--text-muted); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.stat-number { font-size: 28px; font-weight: 900; color: var(--highlight); line-height: 1.1; }
.stat-unit { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-top: 4px; }

/* ===== Sections ===== */
.section-title { font-size: 42px; font-weight: 900; margin-bottom: 16px; color: var(--highlight); text-align: center; }
.section-desc { color: var(--text-muted); font-size: 17px; margin-bottom: 48px; text-align: center; }

/* ===== Info Cards ===== */
.cards-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.info-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}
.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--highlight);
}
.info-card .btn { margin-top: auto; }
.card-icon { font-size: 38px; margin-bottom: 16px; }
.info-card h3 { font-size: 22px; margin-bottom: 12px; }
.info-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.8; }
.info-card ul {
  list-style: disc; padding-left: 1.4rem; margin-top: 12px;
  color: var(--text-secondary); font-size: 15px; line-height: 1.7;
}
.info-card li { margin-bottom: 6px; }
.info-card li::marker { color: var(--highlight); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.card-actions .btn { padding: 10px 18px; font-size: 14px; margin-top: 0; }

/* ===== Explore Cards (Navigation Cards) ===== */
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.explore-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}
.explore-card:hover {
  transform: translateY(-4px);
  border-color: var(--highlight);
}
.explore-card-icon { font-size: 40px; margin-bottom: 16px; }
.explore-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--text-main); }
.explore-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; flex-grow: 1; }
.explore-card-link { font-size: 14px; font-weight: 700; color: var(--highlight); display: flex; align-items: center; gap: 6px; }

/* ===== Timeline ===== */
.timeline-list { display: flex; flex-direction: column; gap: 20px; }
.timeline-item {
  display: flex; gap: 36px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 24px; padding: 28px 32px;
  position: relative;
}
.timeline-item.featured {
  border-color: var(--highlight);
  box-shadow: 0 0 0 1px var(--highlight), 0 8px 32px rgba(6, 182, 212, 0.12);
}
.timeline-badge {
  position: absolute; top: -12px; left: 32px;
  background: var(--highlight); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
  letter-spacing: 0.06em;
}
.year {
  min-width: 100px; font-size: 26px; font-weight: 900;
  color: var(--highlight); flex-shrink: 0;
}
.timeline-content h3 { font-size: 20px; margin-bottom: 8px; }
.timeline-content p { color: var(--text-secondary); font-size: 15px; line-height: 1.8; }

/* ===== Contact Form ===== */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-weight: 600; font-size: 14px; }
.form-control {
  width: 100%; padding: 13px 16px;
  border-radius: 12px; border: 1px solid var(--border-color);
  background: var(--bg-card-solid); color: var(--text-main);
  font-size: 15px; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none; border-color: var(--highlight);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}
select.form-control {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px;
}
textarea.form-control { min-height: 140px; resize: vertical; }
.submit-btn { width: 100%; padding: 16px; font-size: 17px; }

/* ===== FAQ Section ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover {
  border-color: var(--highlight);
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  border-top: 0px solid transparent;
}
.faq-item.active .faq-answer {
  max-height: 500px; /* Large enough value */
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
}
.faq-arrow {
  transition: transform 0.2s;
  color: var(--text-muted);
}
.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--highlight);
}

/* ===== Footer ===== */
footer { text-align: center; padding: 72px 24px 48px; border-top: 1px solid var(--border-color); }
.footer-quote { font-size: 36px; font-weight: 900; color: var(--highlight); margin-bottom: 20px; }
.footer-text { color: var(--text-muted); max-width: 600px; margin: 0 auto 36px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 36px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--highlight); }
.copyright { border-top: 1px solid var(--border-color); padding-top: 24px; color: var(--text-muted); font-size: 13px; }
.copyright a { color: var(--text-muted); text-decoration: none; }
.copyright a:hover { color: var(--text-secondary); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  body { padding-top: 70px; }
  .navbar-container { padding: 0 16px; }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-card-solid);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    align-items: flex-start;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    border-top: 1px solid var(--border-color);
    z-index: 999;
  }
  .navbar.nav-open .nav-menu {
    transform: translateX(0);
  }
  .nav-toggle {
    display: block;
  }
  .nav-actions {
    margin-right: 12px;
  }
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  h1 { font-size: 36px; }
  .hero-text { font-size: 16px; margin-bottom: 28px; }
  .button-group { flex-direction: column; align-items: center; }
  .button-group .btn { width: 100%; max-width: 300px; }
  .profile-image { width: 160px; height: 160px; }
  .card-box { padding: 24px 20px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .stat-number { font-size: 22px; }
  section { padding: 4rem 0; }
  .section-title { font-size: 28px; }
  .section-desc { font-size: 15px; margin-bottom: 28px; }
  .cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .info-card { padding: 24px 20px; }
  .info-card h3 { font-size: 19px; }
  .timeline-item { flex-direction: column; gap: 10px; padding: 22px 20px; }
  .year { font-size: 20px; min-width: auto; }
  .timeline-content h3 { font-size: 17px; }
  .footer-quote { font-size: 24px; }
  .explore-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 28px; }
  .stats-grid { grid-template-columns: 1fr; }
}
