/* Promo Templates Menu — Dark Luxury */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #080a0f;
  --bg-elevated: #0f1219;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(202, 138, 4, 0.35);
  --gold: #ca8a04;
  --gold-light: #e8c547;
  --gold-glow: rgba(202, 138, 4, 0.25);
  --blue: #4f8ef7;
  --blue-glow: rgba(79, 142, 247, 0.15);
  --text: #f5f5f4;
  --text-muted: #a8a29e;
  --text-dim: #78716c;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --font-serif: 'Cormorant', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 200ms var(--ease-out);
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── Ambient background ─── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.ambient__orb--gold {
  width: 520px;
  height: 420px;
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  animation: float-orb 18s ease-in-out infinite;
}

.ambient__orb--blue {
  width: 440px;
  height: 440px;
  bottom: 10%;
  right: -8%;
  background: radial-gradient(circle, var(--blue-glow), transparent 70%);
  animation: float-orb 22s ease-in-out infinite reverse;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ambient__orb { animation: none; }
  .card { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ─── Layout ─── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ─── Header ─── */
.header {
  padding: 1.25rem 0;
}

@media (min-width: 768px) {
  .header { padding: 1.75rem 0; }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__logo-text span {
  color: var(--gold-light);
}

.nav__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

/* ─── Hero ─── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem 0 3rem;
}

@media (min-width: 768px) {
  .hero { padding: 3rem 0 4rem; }
}

.hero__inner {
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 0 2.5rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero__desc { font-size: 1.0625rem; margin-bottom: 3rem; }
}

/* ─── Cards grid ─── */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 540px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  animation: fade-up 0.6s var(--ease-out) both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.card:hover {
  background: var(--card-hover);
  border-color: var(--border-gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(202, 138, 4, 0.1);
  transform: translateY(-2px);
}

.card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.card__number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -0.04em;
  transition: color var(--transition);
}

.card:hover .card__number {
  color: rgba(202, 138, 4, 0.2);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(202, 138, 4, 0.1);
  border: 1px solid rgba(202, 138, 4, 0.2);
  color: var(--gold-light);
  transition: background var(--transition), border-color var(--transition);
}

.card:hover .card__icon {
  background: rgba(202, 138, 4, 0.18);
  border-color: rgba(202, 138, 4, 0.4);
}

.card__body {
  flex: 1;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
  letter-spacing: -0.02em;
}

.card__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.card:hover .card__arrow {
  background: var(--gold);
  color: #0c0a09;
  transform: translateX(2px);
}

/* Wide card for 5th item on desktop */
@media (min-width: 900px) {
  .card--wide {
    grid-column: span 1;
  }
}

/* ─── Footer ─── */
.footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer__text {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
}
