/* ═══════════════════════════════════════════════════════
   TEMPUS CREATIVE — RESOURCES MARKETPLACE
═══════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0D0B08;
  --bg-warm: #17140F;
  --bg-card: #14110D;
  --ink: #F8F5F0;
  --gl: #2E2A24;
  --gm: #8A8378;
  --accent: #C9A96E;
  --accent-dim: #A88552;
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(201,169,110,0.22);
  --ease: cubic-bezier(0.25,0.46,0.45,0.94);
  --display: 'Bebas Neue', sans-serif;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Inter', sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 15% 5%, rgba(201,169,110,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 85%, rgba(201,169,110,0.04) 0%, transparent 55%);
  z-index: -1;
  pointer-events: none;
}

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

/* ═══ NAV ═══ */
#resourcesNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.8rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
#resourcesNav.scrolled {
  padding: 1rem 5%;
  background: rgba(13,11,8,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}
.nav-links a {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobileMenu {
  position: fixed;
  inset: 0;
  background: rgba(13,11,8,0.99);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
#mobileMenu.open { opacity: 1; visibility: visible; }
#mobileMenu a {
  font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 4rem);
  color: var(--ink);
  letter-spacing: 0.06em;
  transition: color 0.3s;
}
#mobileMenu a:hover { color: var(--accent); }

/* ═══ HERO ═══ */
.resources-hero {
  position: relative;
  padding: 10rem 5% 5rem;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 20%; left: 50%;
  width: 80%; height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(201,169,110,0.12) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  background: rgba(201,169,110,0.04);
  margin-bottom: 2rem;
}
.hero-content h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.hero-content h1 em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.55em;
  color: var(--accent);
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 0.3rem;
  text-transform: none;
}
.hero-content p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}
.hero-stat span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gm);
  margin-top: 0.3rem;
}

/* ═══ MAIN ═══ */
.resources-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 5% 8rem;
}
.resources-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.resources-count {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gm);
}

/* ═══ PRODUCT GRID ═══ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.product-card-cover {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1611 0%, #0D0B08 100%);
  overflow: hidden;
}
.product-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.product-card:hover .product-card-cover img {
  transform: scale(1.04);
}
.cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201,169,110,0.3);
}
.cover-placeholder.small svg { width: 32px; height: 32px; }

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  z-index: 2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.badge-free {
  background: rgba(76,175,125,0.15);
  color: #6ee0a4;
  border: 1px solid rgba(76,175,125,0.35);
}
.badge-paid {
  background: rgba(201,169,110,0.15);
  color: var(--accent);
  border: 1px solid rgba(201,169,110,0.4);
}

.product-card-body {
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.product-card-body h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: var(--ink);
  font-weight: 400;
}
.product-card-body p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
  padding-top: 1rem;
  transition: gap 0.3s var(--ease);
}
.product-card:hover .product-cta { gap: 0.8rem; }

/* ═══ EMPTY STATE ═══ */
.empty-state {
  text-align: center;
  padding: 6rem 2rem;
  border: 1px dashed var(--border);
  border-radius: 14px;
  max-width: 560px;
  margin: 3rem auto;
}
.empty-icon {
  color: rgba(201,169,110,0.25);
  margin-bottom: 1.5rem;
}
.empty-state h2 {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}
.empty-state p {
  color: var(--gm);
  font-size: 0.9rem;
  line-height: 1.7;
}
.empty-state a { color: var(--accent); }

/* ═══ PRODUCT PAGE ═══ */
.product-page .product-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 8rem 5% 6rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gm);
  margin-bottom: 2.5rem;
  transition: color 0.3s;
}
.back-link:hover { color: var(--accent); }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.product-media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.product-cover-large {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a1611 0%, #0D0B08 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.product-cover-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201,169,110,0.25);
}

.product-files {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}
.files-label,
.includes-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}
.file-item:last-child { border-bottom: none; }
.file-item svg { color: var(--accent); flex-shrink: 0; opacity: 0.7; }
.file-meta {
  margin-left: auto;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: var(--gm);
}

.product-info {
  padding-top: 1rem;
}
.product-tagline {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.product-info h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.8rem;
}
.product-price {
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.product-price.is-free { color: #6ee0a4; }
.product-price.is-paid { color: var(--accent); }
.product-sales {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gm);
}

.product-description {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}

.product-includes {
  margin-bottom: 2rem;
}
.product-includes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.product-includes li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
}
.product-includes li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.product-cta-block {
  padding-top: 1rem;
}
.btn-product-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 1.15rem 2rem;
  background: var(--accent);
  color: #080808;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}
.btn-product-primary:hover {
  background: #d8b97d;
  transform: translateY(-1px);
}
.product-cta-note {
  font-size: 0.7rem;
  text-align: center;
  color: var(--gm);
  letter-spacing: 0.06em;
  margin-top: 0.9rem;
}

/* ═══ RELATED ═══ */
.related-section {
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}
.related-title {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.related-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}
.related-cover {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1611 0%, #0D0B08 100%);
  overflow: hidden;
}
.related-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.related-body {
  padding: 1.1rem 1.2rem 1.3rem;
}
.related-body h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.related-body p {
  font-size: 0.78rem;
  color: var(--gm);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══ FOOTER ═══ */
.site-footer {
  padding: 2.4rem 5%;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.foot-brand img {
  height: 26px;
  width: auto;
  display: block;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.foot-brand img:hover { opacity: 1; }
.foot-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.foot-links a {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gm);
  transition: color 0.3s;
}
.foot-links a:hover { color: var(--accent); }
.foot-copy {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--gm);
}

/* ═══ REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 720px) {
  #resourcesNav {
    padding: 1.2rem 5%;
  }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .resources-hero {
    padding: 7rem 5% 3rem;
  }
  .hero-stats {
    gap: 1.8rem;
  }
  .hero-stat strong { font-size: 1.8rem; }

  .resources-main {
    padding: 1.5rem 5% 5rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .product-page .product-main {
    padding: 6rem 5% 4rem;
  }
  .product-info h1 {
    font-size: 2rem;
  }
  .product-price {
    font-size: 1.8rem;
  }
  .btn-product-primary {
    padding: 1rem 1.5rem;
    font-size: 0.7rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
/* ═══════════════════════════════════════════════════════
   DOWNLOAD PAGE
═══════════════════════════════════════════════════════ */
.download-page {
  min-height: 100vh;
}
.back-link-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gm);
  transition: color 0.3s;
}
.back-link-nav:hover { color: var(--accent); }

.download-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 5% 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.download-media {
  display: flex;
  justify-content: center;
}
.download-cover {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a1611 0%, #0D0B08 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.download-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.download-cover .product-badge {
  top: 1.2rem;
  right: 1.2rem;
}

.download-info {
  max-width: 460px;
}
.download-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  background: rgba(201,169,110,0.05);
  margin-bottom: 1.5rem;
}
.download-info h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
  color: var(--ink);
}
.download-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.download-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
}

.download-error {
  padding: 0.9rem 1.1rem;
  background: rgba(231,76,60,0.08);
  border: 1px solid rgba(231,76,60,0.25);
  border-radius: 8px;
  color: #f4a5a2;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.download-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.download-form-label {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gm);
  margin-bottom: 0.3rem;
}
.download-form input {
  width: 100%;
  padding: 1.05rem 1.2rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.download-form input::placeholder {
  color: rgba(255,255,255,0.28);
}
.download-form input:focus {
  border-color: var(--accent);
  background: rgba(0,0,0,0.55);
  box-shadow: 0 0 0 4px rgba(201,169,110,0.08);
}
.download-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 1.15rem 1.5rem;
  background: var(--accent);
  color: #080808;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}
.download-form button:hover {
  background: #d8b97d;
  transform: translateY(-1px);
}
.download-note {
  font-size: 0.68rem;
  text-align: center;
  color: var(--gm);
  letter-spacing: 0.05em;
  margin-top: 0.6rem;
}

@media (max-width: 800px) {
  .download-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .download-main {
    padding: 6rem 5% 4rem;
  }
  .download-cover {
    max-width: 100%;
  }
  .download-info {
    max-width: 100%;
  }
}