/* ==========================================================================
   Lumi Closed Alpha — Cozy Lantern-Lit Twilight & Honey-Amber Theme
   ========================================================================== */
:root {
  --bg-night: #0c1a27;
  --bg-mid: #13283b;
  --bg-card: rgba(20, 41, 60, 0.84);
  --bg-card-solid: #152b3f;
  --bg-input: rgba(10, 22, 34, 0.92);
  --honey: #ecc06c;
  --honey-bright: #fce2a6;
  --honey-line: rgba(236, 192, 108, 0.28);
  --honey-strong: rgba(236, 192, 108, 0.56);
  --teal: #34b3a6;
  --emerald: #4ade80;
  --danger: #f87171;
  --text-primary: #f7f2e7;
  --text-secondary: #cddae6;
  --text-muted: #93a8bc;
  --font-ui: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #0a1622; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(252, 226, 166, 0.7), rgba(212, 159, 71, 0.7));
  border-radius: 999px;
  border: 2px solid #0a1622;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-night);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.sky-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 75% 48% at 78% 12%, rgba(236, 192, 108, 0.16), transparent 62%),
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(52, 179, 166, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 45% at 50% 95%, rgba(236, 192, 108, 0.08), transparent 65%),
    linear-gradient(180deg, #0d1e2e 0%, #0a1724 100%);
}

/* Gentle floating ambient fireflies */
.fireflies { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.fireflies span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5c4 0%, rgba(236, 192, 108, 0) 70%);
  opacity: 0.6;
  animation: drift 12s ease-in-out infinite;
}
.fireflies span:nth-child(1) { left: 12%; top: 22%; animation-duration: 11s; }
.fireflies span:nth-child(2) { left: 82%; top: 18%; animation-duration: 14s; animation-delay: 2s; width: 8px; height: 8px; }
.fireflies span:nth-child(3) { left: 68%; top: 44%; animation-duration: 13s; animation-delay: 4s; }
.fireflies span:nth-child(4) { left: 26%; top: 64%; animation-duration: 15s; animation-delay: 1s; }
.fireflies span:nth-child(5) { left: 90%; top: 72%; animation-duration: 12s; animation-delay: 3s; }
.fireflies span:nth-child(6) { left: 46%; top: 14%; animation-duration: 16s; animation-delay: 5s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(0.9); opacity: 0.35; }
  50% { transform: translate(18px, -24px) scale(1.25); opacity: 0.85; }
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 26, 39, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--honey-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-primary);
}
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--honey);
  box-shadow: 0 0 14px rgba(236, 192, 108, 0.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; color: var(--honey-bright); letter-spacing: 0.03em; }
.brand-text small { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  background: rgba(10, 22, 34, 0.9);
  border: 1px solid var(--honey-line);
  border-radius: 9px;
  padding: 2px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
}
.lang-btn.active { background: var(--honey); color: #102030; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, border-color 0.14s ease;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 7px 13px; font-size: 0.84rem; border-radius: 10px; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn.full { width: 100%; }
.btn-gold {
  background: linear-gradient(180deg, var(--honey-bright), var(--honey));
  color: #102030;
  box-shadow: 0 8px 22px rgba(236, 192, 108, 0.24);
}
.btn-gold:hover { filter: brightness(1.06); }
.btn-outline {
  background: rgba(20, 41, 60, 0.72);
  border-color: var(--honey-line);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--honey-bright); color: var(--honey-bright); }
.link-btn {
  border: 0;
  background: transparent;
  color: var(--honey);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; color: var(--honey-bright); }

/* Hero */
.hero { padding: 54px 0 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
}

.alpha-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(52, 179, 166, 0.15);
  border: 1px solid rgba(52, 179, 166, 0.45);
  color: #a7f3d0;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.alpha-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--honey-bright);
  box-shadow: 0 0 8px var(--honey-bright);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.15;
  color: var(--honey-bright);
  letter-spacing: -0.015em;
}
.hero-lead {
  margin: 0 0 18px;
  font-size: 1.06rem;
  color: var(--text-secondary);
}

.slot-meter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 11px;
  background: rgba(20, 41, 60, 0.85);
  border: 1px solid var(--honey-line);
  font-size: 0.88rem;
  color: var(--honey-bright);
  margin-bottom: 22px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Animated Hero Owl Stage */
.hero-visual { display: flex; justify-content: center; }
.lantern-stage {
  width: 100%;
  max-width: 340px;
  padding: 26px 22px 22px;
  border-radius: 26px;
  background: radial-gradient(circle at 60% 52%, rgba(252, 226, 166, 0.15), rgba(16, 35, 52, 0.92) 70%);
  border: 1.5px solid var(--honey-line);
  box-shadow: 0 22px 50px rgba(4, 10, 18, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.lantern-stage:hover { transform: translateY(-3px); border-color: var(--honey-strong); }

.hero-speech {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(12, 26, 39, 0.95);
  border: 1px solid var(--honey-strong);
  color: var(--text-primary);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 14px;
  position: relative;
}
.hero-speech::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 11px;
  height: 11px;
  background: rgba(12, 26, 39, 0.95);
  border-right: 1px solid var(--honey-strong);
  border-bottom: 1px solid var(--honey-strong);
  transform: translateX(-50%) rotate(45deg);
}

.hero-owl-svg {
  width: 185px;
  height: 190px;
  overflow: visible;
  filter: drop-shadow(0 12px 18px rgba(4, 10, 18, 0.5));
}
.owl-bob { transform-origin: 63px 108px; animation: owlFloat 3s ease-in-out infinite; }
.lantern-pulse { animation: auraGlow 2.4s ease-in-out infinite; }
.owl-eyes-happy { opacity: 0; }
.lantern-stage.happy .owl-eyes-open { opacity: 0; }
.lantern-stage.happy .owl-eyes-happy { opacity: 1; }
.lantern-stage.happy .owl-bob { animation: owlHop 0.45s ease-in-out 2; }

@keyframes owlFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes owlHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes auraGlow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* Access / Unique Key Panel */
.access-section { padding: 18px 0 46px; scroll-margin-top: 84px; }
.cozy-panel {
  padding: 28px 28px;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1.5px solid var(--honey-strong);
  box-shadow: 0 20px 48px rgba(4, 10, 18, 0.48);
  max-width: 760px;
  margin: 0 auto;
}

.auth-header { text-align: center; margin-bottom: 20px; }
.auth-header h2 { margin: 0 0 6px; color: var(--honey-bright); font-size: 1.55rem; }
.auth-header p { margin: 0; color: var(--text-secondary); font-size: 0.96rem; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 13px;
  background: rgba(10, 22, 34, 0.9);
  border: 1px solid var(--honey-line);
  margin-bottom: 20px;
}
.auth-tab {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.auth-tab.active { background: var(--honey); color: #102030; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field span { font-size: 0.86rem; font-weight: 600; color: var(--honey-bright); }
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(147, 168, 188, 0.34);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 1rem;
  outline: none;
}
.field input:focus { border-color: var(--honey-bright); }
#regKey { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

.form-msg {
  min-height: 0;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
}
.form-msg.err {
  padding: 10px 12px;
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
.form-msg.ok {
  padding: 10px 12px;
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}
.form-hint { margin: 0; text-align: center; font-size: 0.84rem; color: var(--text-muted); }

/* Authenticated Member Portal */
.portal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.portal-avatar { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--honey); }
.portal-head h2 { margin: 0 0 3px; color: var(--honey-bright); font-size: 1.45rem; }
.portal-head p { margin: 0; color: var(--text-secondary); font-size: 0.94rem; }

.portal-cards { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; margin-bottom: 16px; }
.portal-box {
  padding: 18px;
  border-radius: 16px;
  background: rgba(11, 24, 37, 0.78);
  border: 1px solid var(--honey-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.portal-box.highlight {
  background: linear-gradient(145deg, rgba(52, 179, 166, 0.16), rgba(20, 41, 60, 0.92));
  border-color: var(--honey-strong);
}
.portal-box h3 { margin: 0; color: var(--text-primary); font-size: 1.1rem; }
.portal-box p { margin: 0; color: var(--text-secondary); font-size: 0.88rem; flex: 1; }
.portal-badge {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(236, 192, 108, 0.2);
  color: var(--honey-bright);
}
.portal-badge.subtle { background: rgba(147, 168, 188, 0.18); color: var(--text-secondary); }
.portal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(147, 168, 188, 0.18);
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Features & Steps */
.features-section, .steps-section { padding: 34px 0; scroll-margin-top: 84px; }
.section-head { text-align: center; margin-bottom: 24px; }
.section-head h2 { margin: 0 0 6px; color: var(--honey-bright); font-size: 1.65rem; }
.section-head p { margin: 0; color: var(--text-secondary); }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feat-card {
  padding: 22px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--honey-line);
}
.feat-emoji { font-size: 1.7rem; margin-bottom: 8px; }
.feat-card h3 { margin: 0 0 6px; color: var(--honey-bright); font-size: 1.08rem; }
.feat-card p { margin: 0; color: var(--text-secondary); font-size: 0.94rem; }

.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(15, 32, 48, 0.78);
  border: 1px solid var(--honey-line);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--honey);
  color: #102030;
  font-weight: 800;
  margin-bottom: 10px;
}
.step-card h3 { margin: 0 0 6px; color: var(--text-primary); font-size: 1.04rem; }
.step-card p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }

.site-footer {
  margin-top: 32px;
  padding: 22px 0 32px;
  border-top: 1px solid var(--honey-line);
  color: var(--text-muted);
  font-size: 0.86rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 780px) {
  .hero { padding: 28px 0 22px; }
  .hero-grid, .field-grid, .portal-cards, .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .cozy-panel { padding: 20px 18px; }
  .hero-visual { order: -1; }
  .lantern-stage { max-width: 280px; padding: 18px; }
  .hero-owl-svg { width: 145px; height: 150px; }
}
