/* Reset & Base */
:root {
  --primary: #000000;
  --accent: #FF385C;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --yellow-400: #facc15;
  --red-500: #ef4444;
  --green-600: #16a34a;
  --indigo-50: #eef2ff;
  --indigo-600: #4f46e5;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  --safe-area-bottom: env(safe-area-inset-bottom);
}

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css");

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif; 
  color: var(--gray-900); 
  background-color: var(--white);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Utilities */
.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.object-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }

/* Responsive Visibility */
.mobile-only { display: block; }
.desktop-only { display: none; }

@media (min-width: 768px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: flex !important; }
}

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 1.875rem; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.text-white { color: var(--white); }
.text-accent { color: var(--accent); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-400 { color: var(--gray-400); }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1.25rem 1.5rem;
  z-index: 50;
  transition: background-color 0.3s, padding 0.3s;
  background-color: transparent;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.navbar.scrolled .nav-link, .navbar.scrolled .logo-text { color: var(--gray-900); }
.navbar.scrolled .nav-icon-btn { color: var(--gray-900); }
.navbar.scrolled .nav-icon-btn:hover { background-color: var(--gray-100); }

.logo-text { color: var(--white); font-size: 1.5rem; font-weight: 900; letter-spacing: -0.05em; }
.nav-link { color: var(--white); font-weight: 700; font-size: 0.875rem; transition: color 0.3s; }
.nav-links { display: flex; gap: 1.5rem; }

.nav-icon-btn {
  padding: 0.5rem;
  border-radius: var(--radius-full);
  color: var(--white);
  transition: background-color 0.3s, color 0.3s;
}
.nav-icon-btn:hover { background-color: rgba(255,255,255,0.1); }

.btn-login {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  transition: 0.3s;
}
.navbar.scrolled .btn-login { border-color: var(--gray-200); color: var(--gray-900); }

/* Mobile Menu */
#mobile-menu {
  position: fixed; inset: 0; left: auto; width: 80%; max-width: 300px;
  background-color: var(--white);
  z-index: 60;
  box-shadow: -4px 0 15px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  padding: 1.5rem;
}
#mobile-menu.open { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu-link { font-size: 1.125rem; font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: var(--radius-xl); font-weight: 700; transition: 0.3s; }
.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-outline { border: 1px solid var(--gray-200); color: var(--gray-800); }
.btn-white { background-color: var(--white); color: var(--primary); box-shadow: var(--shadow-md); }

/* Footer */
footer { background-color: var(--gray-50); border-top: 1px solid var(--gray-100); padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--gray-500); }

/* Animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
