/* ==========================================================================
   $ZDASH Brand Design System
   Concept: DARK × CUTE (Cinematic Night Ops + Adorable Dachshund Balaclava)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Space+Grotesk:wght@500;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #07070a;
  --bg-dark-translucent: rgba(7, 7, 10, 0.82);
  --surface-card: rgba(16, 17, 24, 0.65);
  --surface-border: rgba(255, 255, 255, 0.1);
  --surface-border-hover: rgba(0, 240, 255, 0.4);
  
  --text-main: #f0f2f5;
  --text-muted: #8e94a0;
  --text-dim: #5c6270;
  
  --cyan-accent: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  --amber-accent: #ffaa00;
  --amber-glow: rgba(255, 170, 0, 0.3);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --header-height: 72px;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-dark);
}

/* Film Grain Overlay */
.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Background Ambient Lighting */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-cyan {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, rgba(0,0,0,0) 70%);
  filter: blur(80px);
  opacity: 0.4;
}

.ambient-amber {
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-glow) 0%, rgba(0,0,0,0) 70%);
  filter: blur(90px);
  opacity: 0.25;
}

/* Typography Helpers */
h1, h2, h3, .display-text {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-transform: lowercase;
}

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

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

/* Common Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 50;
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.5) 0%, rgba(7, 7, 10, 0) 100%);
  border: none;
  border-bottom: none;
  box-shadow: none;
  outline: none;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background: var(--bg-dark-translucent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.85;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyan-accent);
  box-shadow: 0 0 8px var(--cyan-accent);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Button Component System */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: #ffffff;
  color: #07070a;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: var(--cyan-accent);
  color: #07070a;
  box-shadow: 0 0 24px var(--cyan-accent);
  transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  box-shadow: 0 0 16px var(--cyan-glow);
  transform: translateY(-1px);
}

.btn-icon-only {
  padding: 0.6rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.x-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: 
    linear-gradient(180deg, 
      rgba(7, 7, 10, 0.65) 0%, 
      rgba(7, 7, 10, 0.45) 45%, 
      rgba(7, 7, 10, 0.85) 85%, 
      #07070a 100%),
    radial-gradient(circle at 50% 50%, 
      rgba(7, 7, 10, 0.1) 0%, 
      rgba(7, 7, 10, 0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 860px;
  padding: var(--header-height) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-badge-ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan-accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.hero-headline {
  font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.headline-amber {
  color: var(--amber-accent);
  text-shadow: 0 0 25px var(--amber-glow);
}

.hero-subhead {
  font-size: clamp(1.1rem, 2vw + 0.5rem, 1.75rem);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: -0.01em;
}

.hero-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.dark-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: lowercase;
  backdrop-filter: blur(10px);
}

.dark-pill-accent {
  border-color: rgba(255, 170, 0, 0.4);
  color: var(--amber-accent);
  background: rgba(20, 15, 5, 0.75);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-main-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
  width: 100%;
}

.btn-large-buy {
  background: var(--cyan-accent) !important;
  color: #07070a !important;
  font-size: 1.35rem;
  padding: 1rem 2.6rem;
  border-radius: 9999px !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 0 30px var(--cyan-glow);
  border: 1px solid var(--cyan-accent);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-large-buy:hover {
  background: #ffffff !important;
  color: #07070a !important;
  box-shadow: 0 0 45px var(--cyan-accent);
  transform: translateY(-2px) scale(1.04);
}

/* ==========================================================================
   "The Joke" Section
   ========================================================================== */
.joke-section {
  position: relative;
  z-index: 10;
  padding: 5rem 0 4rem;
}

.joke-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.joke-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan-accent) 0%, var(--amber-accent) 100%);
  border-radius: 4px 0 0 4px;
}

.joke-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan-accent);
  margin-bottom: 1.5rem;
}

.joke-lines {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.joke-line {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  text-transform: lowercase;
}

.joke-line-highlight {
  color: var(--cyan-accent);
  background: linear-gradient(90deg, #00f0ff 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.joke-line-subtle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
}

/* ==========================================================================
   Mood Stills Lookbook Gallery
   ========================================================================== */
.gallery-section {
  position: relative;
  z-index: 10;
  padding: 4rem 0 6rem;
}

.section-title-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #ffffff;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.still-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: #000000;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.still-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--surface-border-hover);
  box-shadow: 0 12px 32px rgba(0, 240, 255, 0.15);
}

.still-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.still-card:hover .still-img {
  transform: scale(1.06);
}

.still-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(7, 7, 10, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  pointer-events: none;
}

.still-caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.still-caption::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cyan-accent);
}

/* Modal Lightbox for Stills */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  background: rgba(4, 4, 7, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 1100px;
  max-height: 85vh;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--surface-border-hover);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #ffffff;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 105;
}

.lightbox-close:hover {
  background: var(--cyan-accent);
  color: #000;
  transform: scale(1.1);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--surface-border);
  padding: 3rem 0;
  background: rgba(5, 5, 8, 0.95);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-x-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cyan-accent);
  transition: opacity 0.2s ease;
}

.footer-x-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-disclaimer {
  max-width: 680px;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Toast Micro-interaction */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  border-radius: 9999px;
  background: #07070a;
  border: 1px solid var(--cyan-accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--cyan-accent);
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg {
    display: none;
  }

  .hero-section {
    background-image: url('/logo.png');
    background-size: cover;
    background-position: center;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .header-actions .ca-btn-text {
    display: none;
  }

  .joke-card {
    padding: 2rem 1.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-pill {
    width: 100%;
  }

  .toast-notification {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    justify-content: center;
  }
}
