/* Homepage — aligned with creator portal: warm dark UI + watch-grid hero */

body.page-home {
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  color: #e8e4dc;
  background: radial-gradient(120% 80% at 10% 0%, #1a1510 0%, #0d0b09 45%, #080706 100%);
}

body.page-home .home-hero-top {
  position: relative;
}

body.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../images/landing-hero-bg.png');
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

body.page-home .home-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #080706 0%,
      rgba(8, 7, 6, 0) 14%,
      rgba(8, 7, 6, 0) 86%,
      #080706 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 7, 6, 0) 0%,
      rgba(8, 7, 6, 0.25) 28%,
      rgba(8, 7, 6, 0.72) 62%,
      #080706 100%
    );
}

/* Hero sits above the decorative bg only — do NOT override .navbar position/z-index
   (a previous rule set both nav + hero to z-index:2 + position:relative, which broke
   position:fixed on the nav and let the hero steal taps). */
body.page-home .home-hero-top > .hero {
  position: relative;
  z-index: 1;
}

body.page-home .navbar {
  position: fixed !important;
  top: 42px;
  z-index: 1500 !important;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.72) 0%, rgba(8, 7, 6, 0.35) 100%) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 153, 4, 0.22) !important;
  box-shadow: none;
}

@media (max-width: 600px) {
  body.page-home .navbar {
    top: 64px;
  }
}

body.page-home .nav-menu.active {
  z-index: 1510 !important;
}

@media (max-width: 768px) {
  body.page-home .mobile-menu-toggle {
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

body.page-home .nav-brand span {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.page-home .hero {
  background: transparent !important;
}

body.page-home .hero-text .hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ff9904;
  margin: 0 0 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

body.page-home .hero-text h1 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #faf8f4 !important;
  -webkit-text-fill-color: #faf8f4 !important;
  background: none !important;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

body.page-home .hero-text h1 .hero-title-accent {
  display: inline;
  background: linear-gradient(120deg, #ffe0b2 0%, #ff9904 50%, #ff6f00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

body.page-home .hero-subtitle {
  color: #a39e93 !important;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

body.page-home .hero-subtitle strong {
  color: #e8e4dc;
}

body.page-home .hero-stats .stat {
  color: #e8e4dc;
}

body.page-home .hero-stats .stat strong {
  color: #faf8f4;
}

body.page-home .hero-stats .stat span {
  color: #8a8578;
}

body.page-home .gallery-section {
  background: transparent;
  padding-top: 3rem;
}

body.page-home .section-header h2 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: #faf8f4;
}

body.page-home .section-header p {
  color: #9a958a;
}

body.page-home .features {
  background: transparent;
}

body.page-home .feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 153, 4, 0.12);
  border-radius: 16px;
  color: #9a958a;
}

body.page-home .feature-card h3 {
  color: #ffcc80;
  font-family: 'Outfit', 'Inter', sans-serif;
}

body.page-home .feature-card p {
  color: #9a958a;
}

body.page-home .feature-icon {
  background: rgba(255, 153, 4, 0.12);
  color: #ff9904;
}

body.page-home .download-section {
  background: linear-gradient(160deg, rgba(255, 153, 4, 0.1) 0%, rgba(12, 10, 8, 0.95) 100%);
  border-top: 1px solid rgba(255, 153, 4, 0.15);
}

body.page-home .download-section::before {
  opacity: 0.15;
}

body.page-home .download-text h2,
body.page-home .download-buttons-section h3 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: #faf8f4;
}

body.page-home .download-text p {
  color: #a39e93;
}

body.page-home .download-feature span {
  color: #c4bfb4;
}

body.page-home .footer {
  background: #060504;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-home .footer-brand p,
body.page-home .footer-bottom p {
  color: #8a8578;
}

body.page-home .footer-disclaimer p {
  color: #6a655c;
}

body.page-home .footer-links a {
  color: #ffcc80;
}

body.page-home .cookie-notice {
  background: rgba(12, 10, 8, 0.96);
  border-top: 1px solid rgba(255, 153, 4, 0.2);
}

body.page-home .cookie-content p {
  color: #c4bfb4;
}

body.page-home .cookie-content a {
  color: #ff9904;
}

body.page-home .watch-face-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 153, 4, 0.2);
}

body.page-home .watch-face-item h3,
body.page-home .watch-face-item .face-name {
  color: #faf8f4 !important;
}

body.page-home .watch-face-container {
  background: rgba(0, 0, 0, 0.35);
}

body.page-home .gallery-actions .btn-primary,
body.page-home .gallery-actions .btn-secondary {
  font-family: 'Outfit', 'Inter', sans-serif;
}

body.page-home .gallery-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e8e4dc;
  border: 1px solid rgba(255, 153, 4, 0.25);
}

body.page-home .gallery-actions .btn-secondary:hover {
  background: rgba(255, 153, 4, 0.12);
  color: #fff;
}

body.page-home .nav-cta {
  background: linear-gradient(135deg, #ffb84d 0%, #e65100 120%) !important;
  color: #1a0f00 !important;
  border: none !important;
}

body.page-home .nav-cta:hover {
  filter: brightness(1.05);
}

body.page-home .promo-banner {
  border-bottom-color: rgba(255, 153, 4, 0.35);
}

/* ========== GWD catalog + watchface deeplink — same theme as homepage ========== */

body.page-gwd,
body.page-watchface {
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  color: #e8e4dc;
  background: radial-gradient(120% 80% at 10% 0%, #1a1510 0%, #0d0b09 45%, #080706 100%);
  min-height: 100vh;
}

body.page-gwd::before,
body.page-watchface::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../images/landing-hero-bg.png');
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

body.page-gwd::after,
body.page-watchface::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #080706 0%,
      rgba(8, 7, 6, 0) 14%,
      rgba(8, 7, 6, 0) 86%,
      #080706 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 7, 6, 0) 0%,
      rgba(8, 7, 6, 0.35) 35%,
      rgba(8, 7, 6, 0.88) 70%,
      #080706 100%
    );
}

body.page-gwd .navbar,
body.page-watchface .navbar {
  position: fixed !important;
  top: 42px;
  z-index: 1500 !important;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.72) 0%, rgba(8, 7, 6, 0.35) 100%) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 153, 4, 0.22) !important;
  box-shadow: none;
}

@media (max-width: 600px) {
  body.page-gwd .navbar,
  body.page-watchface .navbar {
    top: 64px;
  }
}

body.page-gwd .nav-menu.active,
body.page-watchface .nav-menu.active {
  z-index: 1510 !important;
}

@media (max-width: 768px) {
  body.page-gwd .mobile-menu-toggle,
  body.page-watchface .mobile-menu-toggle {
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

body.page-gwd .nav-brand span,
body.page-watchface .nav-brand span {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #faf8f4;
}

body.page-gwd .nav-cta,
body.page-watchface .nav-cta {
  background: linear-gradient(135deg, #ffb84d 0%, #e65100 120%) !important;
  color: #1a0f00 !important;
  border: none !important;
}

body.page-gwd .promo-banner,
body.page-watchface .promo-banner {
  border-bottom-color: rgba(255, 153, 4, 0.35);
}

/* —— GWD files page —— */
body.page-gwd .gallery-page {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  min-height: 100vh;
  padding-bottom: 60px;
  background: transparent;
}

body.page-gwd .gallery-header {
  text-align: center;
  margin-bottom: 2rem;
}

body.page-gwd .gallery-header h1 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #faf8f4;
  margin-bottom: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.page-gwd .gallery-lead {
  color: #f2efe8;
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 auto;
  font-weight: 500;
}

body.page-gwd .gwd-seo-article {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 153, 4, 0.18);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

body.page-gwd .gwd-seo-article h2 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: #e8e4dc;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

body.page-gwd .gwd-seo-article p {
  color: #b8b3a8;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

body.page-gwd .gwd-seo-article p:last-child {
  margin-bottom: 0;
}

body.page-gwd .filters-section {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 12, 10, 0.88);
  border: 1px solid rgba(255, 153, 4, 0.2);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  box-shadow: none;
}

body.page-gwd .filter-group {
  display: flex;
  gap: 1rem;
  flex: 1;
  min-width: 300px;
}

body.page-gwd .filter-input,
body.page-gwd .filter-select {
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(255, 153, 4, 0.25);
  border-radius: 10px;
  background: rgba(8, 7, 6, 0.65);
  color: #e8e4dc;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

body.page-gwd .filter-input::placeholder {
  color: #6a655c;
}

body.page-gwd .filter-input:focus,
body.page-gwd .filter-select:focus {
  border-color: #ff9904;
  box-shadow: 0 0 0 3px rgba(255, 153, 4, 0.15);
}

body.page-gwd #resultsCount {
  color: #d4cfc4 !important;
}

body.page-gwd .watchface-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

body.page-gwd .watchface-card {
  background: rgba(18, 16, 14, 0.94);
  border: 1px solid rgba(255, 153, 4, 0.22);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.page-gwd .watchface-image-container {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  position: relative;
}

body.page-gwd .watchface-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s ease;
}

body.page-gwd .watchface-card:hover .watchface-image {
  transform: scale(1.05);
}

body.page-gwd .watchface-info {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

body.page-gwd .watchface-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #faf8f4;
}

body.page-gwd .watchface-brand {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffcc80;
}

body.page-gwd .watchface-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #9a958a;
}

body.page-gwd .watchface-stats i {
  color: #ff9904;
  margin-right: 4px;
}

body.page-gwd .watchface-card:hover {
  border-color: rgba(255, 153, 4, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

body.page-gwd .btn-download-gwd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 153, 4, 0.16);
  color: #ffe8c4;
  border: 1px solid rgba(255, 153, 4, 0.45);
}

body.page-gwd .btn-download-gwd span {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

body.page-gwd .btn-download-gwd:hover {
  background: linear-gradient(135deg, #ffb84d 0%, #e65100 120%);
  color: #1a0f00;
  border-color: transparent;
}

body.page-gwd .btn-download-gwd:hover span {
  color: #1a0f00;
}

body.page-gwd .loading-spinner {
  color: #ff9904;
}

body.page-gwd .loading-text {
  color: #9a958a;
}

body.page-gwd .empty-state h3 {
  color: #a39e93 !important;
}

body.page-gwd .loading-state,
body.page-gwd .empty-state {
  text-align: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  body.page-gwd .gallery-page {
    padding-top: 130px;
    padding-bottom: 40px;
  }

  body.page-gwd .gallery-header {
    margin-bottom: 1.5rem;
  }

  body.page-gwd .gallery-header h1 {
    font-size: 1.8rem;
  }

  body.page-gwd .gallery-lead {
    font-size: 1rem;
  }

  body.page-gwd .gwd-seo-article {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  body.page-gwd .gwd-seo-article h2 {
    font-size: 1.15rem;
  }

  body.page-gwd .filters-section {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1.1rem 1rem;
  }

  body.page-gwd .filter-group {
    flex-direction: column;
    min-width: 100%;
    gap: 0.75rem;
  }

  body.page-gwd .filter-input,
  body.page-gwd .filter-select {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
  }

  body.page-gwd .watchface-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  body.page-gwd .watchface-card {
    padding: 1rem;
  }

  body.page-gwd .watchface-name {
    font-size: 1rem;
  }

  body.page-gwd .watchface-brand {
    margin-bottom: 0.5rem;
  }

  body.page-gwd .watchface-stats {
    margin-bottom: 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  body.page-gwd .gallery-page {
    padding-top: 120px;
  }
}

/* —— Watchface deeplink landing —— */
body.page-watchface .watchface-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 150px 20px 48px;
  box-sizing: border-box;
}

body.page-watchface .watchface-shell {
  max-width: 500px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1.75rem;
  background: rgba(12, 10, 8, 0.82);
  border-radius: 20px;
  border: 1px solid rgba(255, 153, 4, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

body.page-watchface .watchface-shell .logo {
  width: 128px;
  height: 128px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 153, 4, 0.35);
  object-fit: cover;
  background: #000;
}

body.page-watchface .watchface-shell h1 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: #faf8f4;
  margin-bottom: 1rem;
  line-height: 1.25;
}

body.page-watchface .watchface-shell h1.accent {
  background: linear-gradient(120deg, #ffe0b2 0%, #ff9904 50%, #ff6f00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

body.page-watchface .watchface-shell p {
  font-size: 1rem;
  line-height: 1.65;
  color: #a39e93;
  margin-bottom: 1.5rem;
}

body.page-watchface .btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: #1a1a1a;
  color: #faf8f4;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255, 153, 4, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.page-watchface .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 153, 4, 0.25);
  border-color: #ff9904;
}

body.page-watchface .btn-download i {
  font-size: 1.35rem;
  color: #ff9904;
}

body.page-watchface .btn-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #ffb84d 0%, #e65100 120%);
  color: #1a0f00;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

body.page-watchface .btn-open:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

body.page-watchface .divider {
  color: #6a655c;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

body.page-watchface .btn-text span {
  color: #8a8578;
}

body.page-watchface .btn-text strong {
  color: inherit;
}
