/* =========================================================
   Custom DJ Shades — style.css
   Black background · white type · neon yellow-green accents
   ========================================================= */

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

:root {
  --black: #000000;
  --black-soft: #0d0d0d;
  --black-section: #111111;
  --white: #ffffff;
  --white-dim: rgba(255,255,255,0.55);
  --neon: #c6f135;           /* neon yellow-green */
  --neon-hover: #d4ff3e;
  --neon-dark: #9bb825;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-w: 680px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Fade-in animation ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.50s; }
.delay-4 { animation-delay: 0.70s; }

/* =========================================================
   TOP NAV
   ========================================================= */
.top-nav {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 20px;
  padding: 28px 32px;
  z-index: 10;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
}

.nav-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: var(--black);
  overflow: hidden;
}

/* Subtle radial glow behind model */
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(198, 241, 53, 0.07) 0%,
    transparent 70%);
  pointer-events: none;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 7rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 900px;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 2.2vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--neon);
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* ── 3D model wrapper ── */
.model-wrap {
  position: relative;
  width: min(520px, 90vw);
  height: min(380px, 60vw);
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── model-viewer element ── */
#product-model {
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0;                            /* fades in on 'load' event */
  transition: opacity 0.6s var(--ease-out);
  --progress-bar-color: transparent;
  --progress-bar-height: 0px;
  border-radius: 12px;
}

/* ── Loading spinner (slot="progress-bar") ── */
.mv-spinner-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

@keyframes mvSpin {
  to { transform: rotate(360deg); }
}

.mv-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(198, 241, 53, 0.15);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: mvSpin 0.9s linear infinite;
}

/* ── Fallback (shown when GLB is missing or fails) ── */
.model-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fallback-img {
  width: 80%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* ── Drag hint (hidden until model loads successfully) ── */
.drag-hint {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--white-dim);
  text-transform: uppercase;
  margin-top: 10px;
  display: none;        /* shown via JS on model 'load' event */
  align-items: center;
  gap: 6px;
}

.drag-hint::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='1.5'%3E%3Cpath d='M9 11V6a3 3 0 0 1 6 0v5'/%3E%3Cpath d='M5 11h14v8a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-8z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ── Product description ── */
.hero-desc {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 400px;
}

/* ── CTA Button ── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--neon);
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.25rem);
  letter-spacing: 0.1em;
  padding: 20px 42px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s var(--ease-out),
              transform 0.15s var(--ease-out),
              box-shadow 0.2s var(--ease-out);
  box-shadow: 0 0 0 0 rgba(198, 241, 53, 0);
  width: min(480px, 90vw);
  justify-content: center;
}

.cta-btn:hover {
  background: var(--neon-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(198, 241, 53, 0.25);
}

.cta-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.cta-arrow {
  font-size: 1.2em;
  transition: transform 0.2s var(--ease-out);
}

.cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

/* =========================================================
   SIGNUP SECTION
   ========================================================= */
.signup-section {
  background: var(--black-section);
  padding: 100px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.signup-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.signup-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 16px;
}

.signup-divider {
  width: 48px;
  height: 2px;
  background: var(--neon);
  margin: 0 auto 24px;
  border-radius: 2px;
}

.signup-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

/* ── Form ── */
.signup-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 14px;
  border-radius: 4px;
  overflow: hidden;
}

.email-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 16px 20px;
  outline: none;
  border-radius: 4px 0 0 4px;
  transition: border-color 0.2s, background 0.2s;
}

.email-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.email-input:focus {
  border-color: rgba(198, 241, 53, 0.5);
  background: rgba(255,255,255,0.09);
}

.join-btn {
  background: var(--neon);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  padding: 16px 28px;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.join-btn:hover {
  background: var(--neon-hover);
}

.join-btn:active {
  transform: scale(0.97);
}

/* ── Success message ── */
.success-msg {
  font-size: 0.95rem;
  color: var(--neon);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  animation: fadeUp 0.5s var(--ease-out) forwards;
}

/* ── Privacy note ── */
.privacy-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--black);
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-socials {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-icon {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s, transform 0.2s;
}

.footer-icon svg {
  width: 24px;
  height: 24px;
}

.footer-icon:hover {
  color: var(--white);
  transform: scale(1.1);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 600px) {
  .top-nav {
    padding: 20px 20px;
    gap: 14px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .model-wrap {
    width: 92vw;
    height: 60vw;
  }

  .signup-form {
    flex-direction: column;
    border-radius: 4px;
  }

  .email-input {
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
  }

  .email-input:focus {
    border-color: rgba(198, 241, 53, 0.5);
  }

  .join-btn {
    border-radius: 0 0 4px 4px;
    padding: 16px;
  }

  .cta-btn {
    padding: 18px 28px;
    font-size: 1rem;
  }
}
