/* ============================================
   Divalby Demo Hub — Premium Design System
   ============================================ */

:root {
  --bg: #050505;
  --surface: #0B0B0B;
  --card: #111111;
  --gold: #C7A96B;
  --gold-light: #E2C48A;
  --white: #FFFFFF;
  --muted: #A0A0A0;
  --border: rgba(199, 169, 107, 0.2);
  --border-hover: rgba(199, 169, 107, 0.5);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 80px;
  --container: 1280px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-gold: 0 0 40px rgba(199, 169, 107, 0.15);
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.4);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* Mouse Glow */
.mouse-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 169, 107, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body.mouse-active .mouse-glow {
  opacity: 1;
}

@media (max-width: 768px) {
  .mouse-glow { display: none; }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  white-space: nowrap;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--bg);
  border: 1px solid transparent;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 12px;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 15px;
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 10px 24px;
  font-size: 13px;
}

.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(199, 169, 107, 0.08);
}

/* Shine effect */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::after {
  left: 120%;
}

/* ============================================
   Navigation
   ============================================ */

.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition);
}

.nav-header.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav__logo:hover {
  color: var(--gold-light);
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--gold-light);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  flex-shrink: 0;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  z-index: 10001;
  position: relative;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.3s ease,
              background 0.3s ease;
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 968px) {
  .nav__links--desktop {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav-header.menu-open {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
}

/* ============================================
   Mobile Navigation
   ============================================ */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav.open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 420px);
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.mobile-nav.open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(ellipse at 80% 0%, rgba(199, 169, 107, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  min-height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.mobile-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
}

.mobile-nav__logo svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.mobile-nav__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: var(--transition);
}

.mobile-nav__close svg {
  width: 18px;
  height: 18px;
}

.mobile-nav__close:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(199, 169, 107, 0.08);
}

.mobile-nav__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
  position: relative;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.mobile-nav__link {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  padding: 12px 0;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(24px);
  transition: color 0.3s ease;
}

.mobile-nav.open .mobile-nav__link {
  animation: mobileLinkIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-nav.open .mobile-nav__link[data-index="0"] { animation-delay: 0.1s; }
.mobile-nav.open .mobile-nav__link[data-index="1"] { animation-delay: 0.15s; }
.mobile-nav.open .mobile-nav__link[data-index="2"] { animation-delay: 0.2s; }
.mobile-nav.open .mobile-nav__link[data-index="3"] { animation-delay: 0.25s; }

@keyframes mobileLinkIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav__link span {
  position: relative;
  display: inline-block;
}

.mobile-nav__link span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav__link:active,
.mobile-nav__link:hover {
  color: var(--gold-light);
}

.mobile-nav__link:active span::after,
.mobile-nav__link:hover span::after {
  width: 100%;
}

.mobile-nav__cta {
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
}

.mobile-nav.open .mobile-nav__cta {
  animation: mobileCtaIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

@keyframes mobileCtaIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav__footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.mobile-nav:not(.open) .mobile-nav__link,
.mobile-nav:not(.open) .mobile-nav__cta {
  animation: none;
  opacity: 0;
}

.mobile-nav:not(.open) .mobile-nav__link {
  transform: translateX(24px);
}

.mobile-nav:not(.open) .mobile-nav__cta {
  transform: translateY(16px);
}

.mobile-nav__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

@media (max-width: 480px) {
  .mobile-nav__panel {
    width: 100%;
    border-left: none;
  }

  .mobile-nav__content {
    padding: 32px 24px;
  }

  .mobile-nav__link {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

body.menu-open .nav-header {
  z-index: 10001;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(199, 169, 107, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(199, 169, 107, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(199, 169, 107, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.hero__rays {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 180deg at 50% -20%, transparent 0deg, rgba(199, 169, 107, 0.03) 30deg, transparent 60deg, rgba(199, 169, 107, 0.02) 120deg, transparent 180deg);
  animation: raysRotate 30s linear infinite;
}

@keyframes raysRotate {
  to { transform: rotate(360deg); }
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__float {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
  z-index: 1;
}

.hero__float--1 {
  width: 300px;
  height: 300px;
  top: 15%;
  right: 10%;
  background: radial-gradient(circle, rgba(199, 169, 107, 0.04) 0%, transparent 70%);
  animation: float1 8s ease-in-out infinite;
}

.hero__float--2 {
  width: 180px;
  height: 180px;
  bottom: 20%;
  left: 8%;
  background: radial-gradient(circle, rgba(199, 169, 107, 0.06) 0%, transparent 70%);
  animation: float2 10s ease-in-out infinite;
}

.hero__float--3 {
  width: 120px;
  height: 120px;
  top: 40%;
  left: 15%;
  border-color: rgba(199, 169, 107, 0.1);
  animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(20px) rotate(-3deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(15px, -15px); }
  66% { transform: translate(-10px, 10px); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Section Headers
   ============================================ */

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__desc {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================
   Statistics
   ============================================ */

.stats {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stats__card {
  text-align: center;
  padding: 40px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.stats__card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.stats__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 8px;
  line-height: 1;
}

.stats__number--text {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.stats__label {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Templates — Search & Filters
   ============================================ */

.templates__controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.search-bar {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.search-bar__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
  transition: color var(--transition);
}

.search-bar__input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
}

.search-bar__input::placeholder {
  color: var(--muted);
}

.search-bar__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 169, 107, 0.1);
}

.search-bar:focus-within .search-bar__icon {
  color: var(--gold);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-pill {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: var(--transition);
}

.filter-pill:hover {
  color: var(--gold-light);
  border-color: var(--border-hover);
}

.filter-pill.active {
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-color: transparent;
}

/* ============================================
   Template Cards
   ============================================ */

.templates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

.templates__empty {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  padding: 60px 0;
}

.template-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.template-card.filtered-out {
  display: none;
}

.template-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--gold), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 1;
}

.template-card:hover::before {
  opacity: 1;
}

.template-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), var(--shadow-gold);
  border-color: var(--border-hover);
}

.template-card__preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}

.template-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.template-card:hover .template-card__preview img {
  transform: scale(1.05);
}

.template-card__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--card) 0%, transparent 40%);
  pointer-events: none;
}

.template-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.template-card__body {
  padding: 28px;
}

.template-card__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.template-card:hover .template-card__title {
  color: var(--gold-light);
}

.template-card__desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.template-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.template-card__feature {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.template-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .templates__grid {
    grid-template-columns: 1fr;
  }

  .template-card__actions {
    flex-direction: column;
  }

  .template-card__actions .btn {
    width: 100%;
  }
}

/* ============================================
   Coming Soon
   ============================================ */

.coming-soon {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.coming-soon__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.coming-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: var(--transition);
}

.coming-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.coming-card__preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.coming-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.5);
  transform: scale(1.1);
}

.coming-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(5, 5, 5, 0.5);
}

.coming-card__lock {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(199, 169, 107, 0.15);
  border: 1px solid var(--border);
  color: var(--gold);
}

.coming-card__lock svg {
  width: 18px;
  height: 18px;
}

.coming-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.coming-card__body {
  padding: 20px 24px;
}

.coming-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
}

.coming-card__category {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ============================================
   Features
   ============================================ */

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 36px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.feature-card__desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 968px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Marquee
   ============================================ */

.marquee-section {
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--surface), transparent);
}

.marquee__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.marquee__track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee__item {
  flex-shrink: 0;
  width: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: var(--transition);
}

.marquee__item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.marquee__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.marquee__item-name {
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-align: center;
  color: var(--gold-light);
}

/* ============================================
   CTA
   ============================================ */

.cta {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: 0;
}

.cta__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(199, 169, 107, 0.1) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
  animation: ctaPulse 6s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 16px;
}

.cta__text {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 80px 0 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  transition: color var(--transition);
}

.footer__logo:hover {
  color: var(--gold-light);
}

.footer__logo svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.footer__tagline {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--gold-light);
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--gold-light);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  transition: var(--transition);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__social-link:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(199, 169, 107, 0.08);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.footer__url {
  color: var(--gold);
  letter-spacing: 0.05em;
}

@media (max-width: 968px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============================================
   Scroll Reveal
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }
}

/* ============================================
   Responsive Sections
   ============================================ */

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 40px) 0 60px;
  }

  .hero__float {
    display: none;
  }

  .cta {
    padding: 100px 0;
  }
}
