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

:root {
  --navy-950: #060a1a;
  --navy-900: #0a0e27;
  --navy-800: #0d1b3e;
  --navy-700: #11214f;
  --navy-600: #1a2d63;
  --navy-500: #243d7a;
  --gold-100: #fdf8e8;
  --gold-200: #f0d98a;
  --gold-300: #dcae7a;
  --gold-400: #dcae7a;
  --gold-500: #c9a227;
  --gold-600: #b08d1a;
  --gold-700: #8a6f12;
  --cream: #f5f0e1;
  --font-display: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy-950);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(220,174,122,0.3); color: var(--cream); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold-400), var(--gold-600)); border-radius: 4px; }

/* ===== Utilities ===== */
.container { max-width: 1150px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

.section { padding: 128px 24px; position: relative; }

.section-header { text-align: center; margin-bottom: 80px; }
.section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.3em;
  color: rgba(232,200,122,0.7);
}
.section-title {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 600;
  color: var(--cream); margin-top: 16px;
}
@media (min-width: 640px) { .section-title { font-size: 3rem; } }
.section-lead {
  font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.7;
  color: rgba(245,240,225,0.6); max-width: 640px; margin: 24px auto 0;
}

.gold-text {
  background: linear-gradient(135deg, var(--gold-100) 0%, var(--gold-400) 50%, var(--gold-600) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.glass {
  background: rgba(13,27,62,0.4);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em; text-decoration: none;
  border: none; border-radius: 9999px; cursor: pointer; transition: all 0.3s ease;
}
.btn-outline {
  border: 1px solid rgba(220,174,122,0.4); color: var(--gold-200); background: transparent;
}
.btn-outline:hover { border-color: var(--gold-300); color: var(--gold-100); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950); box-shadow: 0 10px 30px rgba(220,174,122,0.2);
}
.btn-gold:hover { box-shadow: 0 10px 40px rgba(220,174,122,0.4); filter: brightness(1.1); }

/* ===== Starfield ===== */
.starfield { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.star {
  position: absolute; border-radius: 50%; background: var(--gold-200);
  animation: twinkle ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  padding: 20px 0; transition: all 0.5s ease;
}
.navbar.scrolled {
  background: rgba(13,27,62,0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220,174,122,0.2); padding: 12px 0;
}
.nav-inner { max-width: 1150px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 36px; height: 36px; transition: transform 0.3s; }
.logo:hover .logo-icon { transform: scale(1.1); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0.15em; color: var(--gold-200); }
.logo-sub { font-family: var(--font-serif); font-size: 12px; font-style: italic; color: rgba(245,240,225,0.5); }

.nav-links { display: none; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(245,240,225,0.7); text-decoration: none; position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; height: 1px; width: 0;
  background: var(--gold-400); transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold-200); }
.nav-links a:hover::after { width: 100%; }
@media (min-width: 768px) { .nav-links { display: flex; } }

.menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-bar { width: 24px; height: 2px; background: var(--gold-200); transition: all 0.3s; }
.menu-toggle.open .menu-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .menu-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (min-width: 768px) { .menu-toggle { display: none; } }

.nav-links.mobile-open {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  position: absolute; top: 100%; left: 0; width: 100%; padding: 32px;
  background: rgba(6,10,26,0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220,174,122,0.15);
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 24px; text-align: center;
}
.hero-glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}
.hero-glow-1 { width: 384px; height: 384px; left: 25%; top: 33%; background: rgba(220,174,122,0.1); }
.hero-glow-2 { width: 320px; height: 320px; right: 25%; bottom: 33%; background: rgba(36,61,122,0.2); animation-delay: 2s; }
@keyframes glowPulse {
  0%, 100% { opacity: 0.4; filter: blur(40px); }
  50% { opacity: 0.7; filter: blur(50px); }
}

.hero-moon { position: absolute; right: 40px; top: 96px; animation: floatSlow 9s ease-in-out infinite; }
.hero-moon-blur { width: 128px; height: 128px; border-radius: 50%; background: linear-gradient(135deg, rgba(240,217,138,0.2), rgba(201,162,39,0.05)); filter: blur(32px); }
.hero-moon-svg { position: absolute; inset: 0; width: 128px; height: 128px; }
@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@media (max-width: 1023px) { .hero-moon { display: none; } }

.hero-content { position: relative; z-index: 10; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px; border-radius: 9999px;
  background: rgba(220,174,122,0.05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(220,174,122,0.2); margin-bottom: 32px;
  animation: fadeIn 1s ease-out;
}
.hero-badge span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold-200); }

.hero-title {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 24px;
  animation: fadeUp 0.8s ease-out;
  text-shadow: 0 0 20px rgba(220,174,122,0.3), 0 0 40px rgba(220,174,122,0.15);
}
@media (min-width: 640px) { .hero-title { font-size: 4rem; } }
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }

.hero-logo {
  width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(220,174,122,0.25)) drop-shadow(0 0 40px rgba(220,174,122,0.1));
}
@media (min-width: 640px) { .hero-logo { max-width: 680px; } }
@media (min-width: 768px) { .hero-logo { max-width: 780px; } }

.hero-tagline {
  font-family: var(--font-display); font-size: 1.875rem; font-weight: 600;
  color: var(--gold-100); text-align: center; margin: 28px auto 20px;
  letter-spacing: 0.05em;
  animation: fadeUp 0.8s ease-out 0.15s both;
}
@media (min-width: 640px) { .hero-tagline { font-size: 2.5rem; } }
@media (min-width: 768px) { .hero-tagline { font-size: 2.75rem; } }

.hero-subtitle {
  font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; line-height: 1.7;
  color: rgba(245,240,225,0.7); max-width: 640px; margin: 0 auto 48px;
  animation: fadeUp 0.8s ease-out 0.2s both;
}
@media (min-width: 640px) { .hero-subtitle { font-size: 1.75rem; max-width: 720px; } }
@media (min-width: 768px) { .hero-subtitle { font-size: 1.875rem; max-width: 780px; } }

.hero-actions {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: fadeUp 0.8s ease-out 0.4s both;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; justify-content: center; } }

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

.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-indicator span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: rgba(245,240,225,0.4); }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(220,174,122,0.5), transparent); }

/* ===== About / Values ===== */
.values-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }

.value-card {
  border-radius: 16px; padding: 32px;
  background: rgba(13,27,62,0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(220,174,122,0.15); transition: all 0.5s ease;
}
.value-card:hover { border-color: rgba(220,174,122,0.4); box-shadow: 0 20px 40px rgba(220,174,122,0.05); }
.value-icon {
  display: inline-flex; padding: 12px; border-radius: 12px;
  background: rgba(220,174,122,0.1); margin-bottom: 24px; transition: background 0.3s;
}
.value-card:hover .value-icon { background: rgba(220,174,122,0.2); }
.value-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--gold-100); margin-bottom: 12px; }
.value-desc { font-family: var(--font-serif); font-size: 1rem; line-height: 1.7; color: rgba(245,240,225,0.6); }

/* ===== Collection ===== */
.hat-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap; }
@media (min-width: 640px) { .hat-tabs { gap: 16px; } }
.hat-tab {
  padding: 8px 16px; border-radius: 9999px; border: 1px solid transparent;
  background: transparent; color: rgba(245,240,225,0.5); cursor: pointer;
  font-family: var(--font-sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em;
  transition: all 0.3s;
}
@media (min-width: 640px) { .hat-tab { padding: 8px 24px; font-size: 13px; } }
.hat-tab:hover { color: rgba(245,240,225,0.8); }
.hat-tab.active {
  background: rgba(220,174,122,0.2); color: var(--gold-100); border-color: rgba(220,174,122,0.4);
}

.hat-display { display: grid; gap: 48px; align-items: center; }
@media (min-width: 768px) { .hat-display { grid-template-columns: 1fr 1fr; } }

.hat-image-wrap { position: relative; }
.hat-image-glow { position: absolute; inset: 0; border-radius: 50%; background: rgba(220,174,122,0.05); filter: blur(48px); }
.hat-image-frame {
  position: relative; display: flex; align-items: center; justify-content: center;
  border-radius: 24px; padding: 0; min-height: 400px; overflow: hidden;
  background: rgba(13,27,62,0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(220,174,122,0.15);
}
.hat-image-frame img { width: 100%; height: 100%; max-height: 500px; object-fit: cover; filter: drop-shadow(0 25px 50px rgba(0,0,0,0.5)); }

.hat-name { font-family: var(--font-display); font-size: 1.875rem; font-weight: 600; color: var(--gold-100); margin-bottom: 16px; }
.hat-desc { font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.7; color: rgba(245,240,225,0.6); margin-bottom: 32px; }
.hat-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.hat-features li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(245,240,225,0.7); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); flex-shrink: 0; }

.commission-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--gold-200); text-decoration: none; transition: color 0.3s;
}
.commission-link:hover { color: var(--gold-100); }
.commission-link svg { transition: transform 0.3s; }
.commission-link:hover svg { transform: translate(2px, -2px); }

.hat-info.animate { animation: fadeUp 0.5s ease-out; }
.hat-image-frame img.animate { animation: fadeIn 0.5s ease-out; }

/* ===== Footer ===== */
.footer { border-top: 1px solid rgba(220,174,122,0.15); padding: 64px 24px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.footer-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-tagline { max-width: 420px; font-family: var(--font-serif); font-size: 1rem; font-style: italic; line-height: 1.7; color: rgba(245,240,225,0.4); }
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(245,240,225,0.5); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold-200); }
.footer-bottom { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(245,240,225,0.3); }
.footer-copy { font-size: 12px; color: rgba(245,240,225,0.2); }
