/* ---------- Digital Epoch hero + glassmorphic footer ---------- */

.digital-epoch {
  --epoch-bg: #000;
  --epoch-ink: #0a1b33;
  --epoch-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --glass-text: rgba(255, 255, 255, 0.92);
  --glass-muted: rgba(255, 255, 255, 0.62);
  --glass-faint: rgba(255, 255, 255, 0.42);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-fill: rgba(12, 14, 20, 0.38);

  background: var(--epoch-bg);
  color: var(--glass-text);
  font-family: var(--epoch-sans);
  padding: 40px 16px 56px;
  box-sizing: border-box;
}

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

.digital-epoch__shell {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.digital-epoch__hero {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 40px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 18px 96px;
}

.digital-epoch__video-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  user-select: none;
  background: #000;
}

.digital-epoch__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  opacity: 1;
  filter: invert(1) hue-rotate(180deg) saturate(1.35) contrast(1.12) brightness(1.05);
  mix-blend-mode: screen;
}

@property --lit {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

/* Large wordmark below the hero — outside the footer card */
.digital-epoch__watermark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  user-select: none;
  margin-top: 28px;
  padding: 8px 16px 0;
  text-align: center;
  font-weight: 700;
  font-size: clamp(3.5rem, 14vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: rgba(120, 130, 150, 0.35);
  cursor: default;
}

.digital-epoch__watermark-word {
  display: block;
  white-space: nowrap;
}

.digital-epoch__watermark-letter {
  display: inline-block;
  color: rgba(
    calc(120 + 125 * var(--lit)),
    calc(130 + 119 * var(--lit)),
    calc(150 + 105 * var(--lit)),
    calc(0.35 + 0.65 * var(--lit))
  );
  text-shadow:
    0 0 24px rgba(59, 130, 246, 0.18),
    0 0 48px rgba(59, 130, 246, 0.1),
    0 0 calc(18px + 28px * var(--lit)) rgba(186, 220, 255, calc(0.08 + 0.82 * var(--lit))),
    0 0 calc(42px + 48px * var(--lit)) rgba(96, 165, 250, calc(0.08 + 0.55 * var(--lit))),
    0 0 calc(6px * var(--lit)) rgba(255, 255, 255, calc(0.9 * var(--lit)));
  transition: --lit 140ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .digital-epoch__watermark:not(.is-tracking) .digital-epoch__watermark-letter:hover {
    --lit: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .digital-epoch__watermark-letter {
    transition: none;
  }
}

@media (min-width: 768px) {
  .digital-epoch__watermark {
    flex-direction: row;
    gap: 0.35em;
    margin-top: 36px;
    font-size: clamp(5rem, 12vw, 11rem);
    letter-spacing: 0.06em;
  }

  .digital-epoch__watermark-word {
    display: inline;
  }
}

/* Glassmorphic footer panel */
.epoch-glass {
  position: relative;
  z-index: 20;
  width: 100%;
  border-radius: 24px;
  padding: 32px 32px 24px;
  margin-bottom: 22px;
  color: var(--glass-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    var(--glass-fill);
  border: 1px solid var(--glass-line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

.epoch-glass__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px 36px;
}

.epoch-glass__brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 12px;
  max-width: 100%;
}

.epoch-glass__brand-link img {
  display: block;
  width: auto;
  height: 72px;
  max-width: min(320px, 100%);
  object-fit: contain;
  object-position: left center;
  border-radius: 14px;
}

.epoch-glass__brand p {
  margin: 0;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--glass-muted);
}

.epoch-glass__col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.epoch-glass__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.epoch-glass__col a,
.epoch-glass__col button {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--glass-muted);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease;
}

.epoch-glass__col a:hover,
.epoch-glass__col button:hover {
  color: #fff;
}

.epoch-glass__social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.epoch-glass__social a {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.epoch-glass__social a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(96, 165, 250, 0.45);
}

.epoch-glass__newsletter label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.epoch-glass__newsletter-row {
  display: flex;
  gap: 6px;
}

.epoch-glass__newsletter input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  outline: none;
}

.epoch-glass__newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.epoch-glass__newsletter input:focus {
  border-color: rgba(147, 197, 253, 0.55);
}

.epoch-glass__newsletter button {
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #0a0f1a;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}

.epoch-glass__newsletter button:hover {
  background: #fff;
}

.epoch-glass__newsletter-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--glass-faint);
}

/* Footer bottom bar — copyright only (matches Footer.tsx) */
.epoch-glass__bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.epoch-glass__legal p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--glass-muted);
}

.epoch-glass__legal p + p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--glass-faint);
}

/* Floating bottom pill bar */
.digital-epoch__nav-wrap {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  max-width: calc(100% - 24px);
}

.digital-epoch__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 5px;
  border-radius: 9999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(226, 232, 240, 0.55);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.digital-epoch__nav.is-in {
  opacity: 1;
  transform: translateY(0);
}

.digital-epoch__logo {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--epoch-ink);
  font-size: 13px;
  flex-shrink: 0;
}

.digital-epoch__nav-link {
  padding: 8px 10px;
  border: 0;
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.digital-epoch__nav-link--profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.digital-epoch__nav-link--profile i {
  font-size: 11px;
}

.digital-epoch__nav-link:hover {
  color: var(--epoch-ink);
}

.digital-epoch__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  color: #64748b;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.digital-epoch__icon-btn:hover {
  color: var(--epoch-ink);
  background: rgba(15, 23, 42, 0.04);
}

.digital-epoch__icon-btn i {
  font-size: 13px;
}

.digital-epoch__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: #fff;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--epoch-ink);
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.digital-epoch__cta:hover {
  border-color: #cbd5e1;
}

.digital-epoch__cta i {
  font-size: 9px;
}

/* Legal dialog */
.epoch-legal-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 32px);
  width: 640px;
}

.epoch-legal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.epoch-legal-dialog__card {
  border-radius: 20px;
  background: #11151d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.epoch-legal-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.epoch-legal-dialog__head h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.epoch-legal-dialog__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.epoch-legal-dialog__body {
  padding: 18px 20px 22px;
  max-height: min(60vh, 480px);
  overflow: auto;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.epoch-legal-dialog__body h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 13px;
}

.epoch-legal-dialog__body section + section {
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .epoch-glass__grid {
    grid-template-columns: 1fr 1fr;
  }

  .epoch-glass__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .digital-epoch {
    padding: 28px 12px 40px;
  }

  .digital-epoch__hero {
    min-height: 0;
    border-radius: 28px;
    padding: 40px 12px 88px;
  }

  .digital-epoch__watermark {
    margin-top: 20px;
    font-size: clamp(2.75rem, 16vw, 4.5rem);
  }

  .epoch-glass {
    border-radius: 18px;
    padding: 22px 16px 18px;
  }

  .epoch-glass__brand-link img {
    height: 56px;
  }

  .epoch-glass__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }

  .digital-epoch__nav {
    overflow-x: auto;
    max-width: 100%;
  }

  .digital-epoch__nav-link {
    font-size: 11px;
    padding: 8px 8px;
  }
}

@media (max-width: 480px) {
  .epoch-glass__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .digital-epoch__video {
    filter: none;
    mix-blend-mode: normal;
    opacity: 0.35;
  }

  .digital-epoch__nav {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
