/* ═══════════════════════════════════════
   FLAMINGOS — STYLE.CSS
   Layout: copy of npconchain.xyz
   BG: #4E4E4F
═══════════════════════════════════════ */

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

:root {
  --bg: #1C1C1C;
  --pill: #FF2E9A;
  --border: #CFFF04;
  --white: #ffffff;
  --gray: #ffffff;
  --pink: #FF2E9A;
  --lime: #CFFF04;
  --title: 'Barlow Condensed', sans-serif;
  --mono: 'Space Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #1C1C1C 0%, #242124 100%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Heavy grain noise overlay matching reference image */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ═══════════════
   HEADER / PILL
═══════════════ */
#site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 201;
  width: min(800px, calc(100% - 40px));
}

/* The pill container */
.header-pill {
  background: transparent;
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border-radius: 22px;
  border: 2px solid var(--border);
  overflow: hidden;
  display: grid;
  /* Logo | menu-btn when closed; Logo | nav | menu-btn when open */
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px rgba(255, 255, 255, 0.08);
  animation: header-glow 5s ease-in-out infinite;
}

/* Logo area */
.header-left {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  grid-row: 1;
  grid-column: 1;
}

.header-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-top: -14px;
  margin-bottom: -14px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  animation: logo-float 4s ease-in-out infinite;
}

/* Menu button */
.menu-btn {
  grid-row: 1;
  grid-column: 3;
  align-self: center;
  justify-self: end;
  margin-right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(207, 255, 4, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.menu-btn:hover {
  background: rgba(207, 255, 4, 0.16);
  border-color: rgba(207, 255, 4, 0.6);
  color: var(--white);
}

/* Nav: hidden by default, shown when pill is open */
.header-nav {
  grid-row: 2;
  grid-column: 1 / -1;
  display: none;
  border-top: 1px solid rgba(207, 255, 4, 0.3);
}

.header-nav.open {
  display: flex;
}

.nav-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-col+.nav-col {
  border-left: 1px solid rgba(207, 255, 4, 0.3);
}

.nav-col a {
  display: block;
  padding: 12px 20px;
  text-align: right;
  font-size: 0.88rem;
  color: var(--white);
  border-bottom: 1px solid rgba(207, 255, 4, 0.3);
  transition: color 0.2s, padding-left 0.2s, background 0.2s;
}

.nav-col a:last-child {
  border-bottom: none;
}

.nav-col a:hover {
  color: var(--border);
  padding-right: 26px;
  background: rgba(207, 255, 4, 0.06);
}

/* ═══════════════
   HERO
═══════════════ */
.hero {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--title);
  font-weight: 900;
  font-size: clamp(5.5rem, 15vw, 13rem);
  line-height: 0.93;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 42px;
  animation: hero-enter 0.8s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42em;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: #CFFF04;
  letter-spacing: 0.03em;
  margin-bottom: 34px;
  animation: hero-enter 0.7s 0.18s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-chain-logo {
  width: 1.45em;
  height: 1.45em;
  object-fit: contain;
}

.hero-sub a {
  display: inline-flex;
  border-radius: 50%;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-sub a:hover,
.hero-sub a:focus-visible {
  transform: scale(1.12);
  filter: brightness(1.15);
}

.hero-btn {
  display: inline-block;
  padding: 13px 30px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: #262626;
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  animation: hero-enter 0.65s 0.32s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-btn:hover {
  background: var(--border);
  border-color: var(--border);
  color: #1a1a1a;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--gray);
  animation: scroll-bounce 1.8s 1.1s ease-in-out infinite;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
}

.scroll-hint svg {
  animation: chevron 1.8s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes chevron {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* ═══════════════
   VIEWER
═══════════════ */
.viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px 120px;
  position: relative;
  z-index: 1;
}

.viewer-title {
  font-family: var(--title);
  font-weight: 900;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 16px;
}

.viewer-chain-logo {
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  object-fit: contain;
  vertical-align: -0.06em;
}

.viewer-title a {
  display: inline-flex;
  border-radius: 4px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.viewer-title a:hover,
.viewer-title a:focus-visible {
  transform: scale(1.08) rotate(-2deg);
  filter: brightness(1.08);
}

.viewer-supply {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.viewer-supply strong {
  color: var(--white);
}

/* NFT card */
.viewer-card {
  width: min(440px, calc(100vw - 48px));
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #242424;
  margin-bottom: 18px;
}

.viewer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.22s ease;
}

.viewer-card img.fading {
  opacity: 0;
}

/* Scroll-triggered section reveals. JS only adds these classes when motion is available. */
.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.65s var(--reveal-delay, 0ms) ease,
    transform 0.75s var(--reveal-delay, 0ms) cubic-bezier(0.2, 0.75, 0.25, 1);
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(34px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-1deg); }
}

@keyframes header-glow {
  0%, 100% { box-shadow: inset 0 1px rgba(255,255,255,.15), inset 0 -1px rgba(255,255,255,.08), 0 0 0 rgba(207,255,4,0); }
  50% { box-shadow: inset 0 1px rgba(255,255,255,.15), inset 0 -1px rgba(255,255,255,.08), 0 0 20px rgba(207,255,4,.14); }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.62; }
  50% { transform: translateX(-50%) translateY(7px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-ready .reveal-item {
    opacity: 1;
    transform: none;
  }
}

/* Controls */
.viewer-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.ctrl {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  padding: 9px 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.ctrl:hover {
  background: rgba(207, 255, 4, 0.12);
  border-color: var(--border);
  color: var(--border);
}

.ctrl.arrow {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 9px 17px;
}

/* Dot row */
.viewer-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.dot.active {
  background: var(--white);
}

.trait-builder-card {
  width: min(330px, calc(100vw - 48px));
  min-height: 78px;
  margin-top: 26px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  text-align: left;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.trait-builder-card > span:first-child {
  grid-column: 1 / -1;
  color: var(--border);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.trait-builder-card strong {
  font-family: var(--title);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
}

.trait-builder-arrow {
  color: var(--border);
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.trait-builder-card:hover,
.trait-builder-card:focus-visible {
  background: var(--border);
  color: #1a1a1a;
  transform: translateY(-3px);
}

.trait-builder-card:hover > span:first-child,
.trait-builder-card:focus-visible > span:first-child,
.trait-builder-card:hover .trait-builder-arrow,
.trait-builder-card:focus-visible .trait-builder-arrow {
  color: #1a1a1a;
}

.trait-builder-card:hover .trait-builder-arrow,
.trait-builder-card:focus-visible .trait-builder-arrow {
  transform: translate(3px, -3px);
}

/* ═══════════════
   FOOTER
═══════════════ */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  padding: 40px 24px 32px;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

.footer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
}

.footer-right {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ═══════════════
   RESPONSIVE
═══════════════ */
@media (max-width: 520px) {
  #site-header {
    top: 10px;
  }

  .header-left {
    padding: 12px 16px;
  }

  .header-logo {
    height: 60px;
    margin-top: -8px;
    margin-bottom: -8px;
  }

  .menu-btn {
    margin-right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.05rem;
  }

  .hero-title {
    font-size: clamp(4.2rem, 20vw, 7rem);
  }

  .viewer-title {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .site-footer {
    padding: 24px 20px;
  }

  .footer-inner {
    padding: 0;
    justify-content: center;
  }

  .footer-logo {
    height: 24px;
  }

  .footer-left {
    font-size: 10px;
  }

  .footer-right {
    display: none;
  }
}

/* ═══════════════════════════════════════
   WHITELIST MODAL
═══════════════════════════════════════ */

/* Overlay */
.wl-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* Fade-in animation */
  animation: wl-fade-in 0.22s ease both;
}

.wl-overlay[hidden] {
  display: none;
}

@keyframes wl-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Card */
.wl-card {
  position: relative;
  background: #1a1a1b;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px rgba(255, 255, 255, 0.06);
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: wl-scale-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
  color: var(--white);
}

@keyframes wl-scale-in {
  from {
    transform: scale(0.94);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close button */
.wl-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  line-height: 1;
}

.wl-close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.wl-close:focus-visible {
  outline: 2px solid var(--border);
  outline-offset: 2px;
}

/* Title */
.wl-title {
  font-family: var(--title);
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 6px;
}

.wl-subtitle {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}

/* Task rows */
.wl-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.wl-task.done {
  border-color: rgba(207, 255, 4, 0.35);
  background: rgba(207, 255, 4, 0.05);
}

.wl-task-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.wl-task-num {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--mono);
  flex-shrink: 0;
}

.wl-task-label {
  font-size: 0.84rem;
  color: var(--white);
  font-family: var(--mono);
}

/* Task button */
.wl-task-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.wl-task-btn:hover {
  background: var(--border);
  color: #1a1a1a;
}

.wl-task-btn:focus-visible {
  outline: 2px solid var(--border);
  outline-offset: 2px;
}

/* Done state: checkmark replaces button */
.wl-task-btn.done {
  background: var(--border);
  color: #1a1a1a;
  cursor: default;
  pointer-events: none;
}

.wl-task-btn.done::before {
  content: '✓ ';
}

/* Wallet input section */
.wl-wallet-section {
  margin-top: 20px;
  margin-bottom: 16px;
}

.wl-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  font-family: var(--mono);
}

.wl-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.2s;
}

.wl-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.wl-input:focus {
  border-color: var(--border);
}

.wl-input.error {
  border-color: #ff6b8a;
}

/* Error messages */
.wl-error {
  font-size: 0.72rem;
  color: #ff6b8a;
  font-family: var(--mono);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.wl-error-banner {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 8px 12px;
  background: rgba(255, 46, 154, 0.1);
  border-radius: 7px;
  border: 1px solid rgba(255, 46, 154, 0.25);
}

/* Turnstile container */
.wl-captcha-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 12px;
}

/* Submit button */
.wl-submit {
  width: 100%;
  padding: 13px 20px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: #262626;
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  margin-top: 14px;
}

.wl-submit:not(:disabled):hover {
  background: var(--border);
  border-color: var(--border);
  color: #1a1a1a;
}

.wl-submit:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.wl-submit:focus-visible {
  outline: 2px solid var(--border);
  outline-offset: 2px;
}

/* Loading state */
.wl-submit.loading {
  opacity: 0.6;
  cursor: wait;
}

/* Note text */
.wl-note {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
  font-family: var(--mono);
}

/* Success view */
.wl-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: rgba(207, 255, 4, 0.1);
  color: var(--border);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

#wl-success-view {
  text-align: center;
}

/* Mobile tweaks */
@media (max-width: 520px) {
  .wl-card {
    padding: 28px 18px 22px;
    border-radius: 14px;
  }

  .wl-task {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .wl-task-btn {
    align-self: flex-end;
  }
}
