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

::selection {
  background: #dbeafe;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #2d3436;
  background: #f0f0f0;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input[type="range"] { outline: none; }

.hidden { display: none !important; }

/* ===== Header ===== */
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: #000;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

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

.nav-btn {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-btn:hover { color: #000; }
.nav-btn.active { color: #000; border-bottom-color: #000; }

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

.header-link {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.2s;
}
.header-link:hover { color: #000; }
.header-link.active { color: #000; }

/* ===== Views ===== */
.view-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px;
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOutUp {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

.view-enter { animation: fadeInUp 0.35s ease forwards; }
.view-exit { animation: fadeOutUp 0.25s ease forwards; }

/* ===== Footer ===== */
#footer {
  margin-top: 80px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  padding: 48px 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-icon {
  width: 24px;
  height: 24px;
  background: #000;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-text { font-weight: 700; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: #6b7280;
}
.footer-links a:hover { color: #000; transition: color 0.2s; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-btn {
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}
.social-btn:hover { background: #f3f4f6; }

/* ===== Responsive (shared) ===== */
@media (max-width: 767px) {
  .main-nav { display: none; }
  .header-right { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
