:root {
  --tf-primary: #f2ca50;
  --tf-primary-container: #d4af37;
  --tf-on-primary: #3c2f00;
  --tf-background: #121317;
  --tf-surface: #121317;
  --tf-surface-container: #1e1f23;
  --tf-surface-container-high: #292a2e;
  --tf-surface-container-lowest: #0d0e12;
  --tf-on-background: #e3e2e7;
  --tf-on-surface: #e3e2e7;
  --tf-on-surface-variant: #d0c5af;
  --tf-outline-variant: #4d4635;
  --tf-surface-tint: #e9c349;
}

body {
  background-color: var(--tf-background);
  color: var(--tf-on-background);
}

.glass-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gold-glow {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

.gold-glow-hover:hover {
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
  transform: translateY(-8px);
}

.grid-bg {
  background-image: radial-gradient(circle at 2px 2px, rgba(212, 175, 55, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  color: #f2ca50;
}

.speed-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 202, 80, 0.3), transparent);
  width: 200px;
  animation: move-lines 3s infinite linear;
  pointer-events: none;
}

@keyframes move-lines {
  0% {
    transform: translateX(-200px);
    opacity: 0;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    transform: translateX(100vw);
    opacity: 0;
  }
}

.pulse-btn {
  position: relative;
  overflow: hidden;
}

.pulse-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-150%) rotate(45deg);
  }

  20%,
  100% {
    transform: translateX(150%) rotate(45deg);
  }
}

.pulse-btn:hover {
  box-shadow: 0 0 25px rgba(242, 202, 80, 0.6);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.demo-video-wrap {
  position: relative;
}

.demo-video-overlay-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.demo-video-wrap.is-paused .demo-video-overlay-btn {
  opacity: 1;
  pointer-events: auto;
}

.demo-video-overlay-icon {
  width: 88px;
  height: 88px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: #3c2f00;
  background: #f2ca50;
  box-shadow: 0 0 50px rgba(242, 202, 80, 0.5);
  transition: transform 0.2s ease;
}

.demo-video-overlay-btn:hover .demo-video-overlay-icon {
  transform: scale(1.08);
}

.ambient-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(242, 202, 80, 0.05) 0%, transparent 50%);
  animation: ambient-pulse 10s infinite ease-in-out;
  z-index: 0;
  pointer-events: none;
}

@keyframes ambient-pulse {
  0%,
  100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.2) translate(5%, 5%);
    opacity: 0.6;
  }
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e3e2e7;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #d0c5af;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  color: #d0c5af;
  line-height: 1.625;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.75rem 0 1rem;
}

.legal-content ul li + li {
  margin-top: 0.35rem;
}

.legal-content a {
  color: #f2ca50;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  opacity: 0.85;
}

/* Share menu (footer) */
.share-wrap {
  position: relative;
  display: inline-flex;
}

.share-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin: -4px;
  border: 0;
  background: transparent;
  color: var(--tf-on-surface-variant);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.share-trigger .material-symbols-outlined {
  font-size: 24px;
  line-height: 1;
  color: inherit;
}

.share-trigger:hover,
.share-trigger[aria-expanded="true"] {
  color: var(--tf-primary);
}

.share-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tf-primary) 55%, transparent);
  outline-offset: 2px;
}

.share-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 50;
  min-width: 248px;
  padding: 6px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tf-surface-container-high) 92%, var(--tf-surface-container-lowest));
  border: 1px solid color-mix(in srgb, var(--tf-outline-variant) 45%, transparent);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.35),
    0 12px 28px -4px rgba(0, 0, 0, 0.45),
    0 0 0 1px color-mix(in srgb, var(--tf-primary) 6%, transparent);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.22s;
}

.share-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.share-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tf-on-surface);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.share-menu__item:hover,
.share-menu__item:focus-visible {
  background: color-mix(in srgb, var(--tf-primary) 12%, transparent);
  color: var(--tf-on-background);
  outline: none;
}

.share-menu__item:focus-visible {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tf-primary) 35%, transparent);
}

.share-menu__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tf-primary);
}

.share-menu__icon .material-symbols-outlined {
  font-size: 20px;
  color: inherit;
}

.share-menu__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-menu__label {
  flex: 1;
  line-height: 1.35;
}

.share-menu__item--hidden {
  display: none;
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tf-on-primary);
  background: var(--tf-primary);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 32px color-mix(in srgb, var(--tf-primary) 35%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.25s;
}

.share-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hero-stat-headline,
.hero-stat-subline {
  transition: opacity 0.28s ease;
}

.hero-stat-headline.is-fading,
.hero-stat-subline.is-fading {
  opacity: 0.2;
}

.hero-stat-mark {
  margin-left: 0.12em;
  font-size: 0.42em;
  font-weight: 600;
  line-height: 0;
  vertical-align: super;
  color: rgba(242, 202, 80, 0.75);
}

.hero-stat-footnote {
  margin: 0.35rem 0 0;
  padding: 0;
  max-width: 36rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(230, 225, 210, 0.52);
}

.hero-stat-footnote__mark {
  margin-right: 0.2em;
  color: rgba(242, 202, 80, 0.65);
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 420px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 0.5rem;
  background: #292a2e;
  border: 1px solid rgba(77, 70, 53, 0.5);
  color: #e3e2e7;
  font-size: 14px;
  line-height: 1.45;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.cookie-banner__text {
  margin: 0;
}

.cookie-banner__link {
  color: #f2ca50;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover {
  color: #ffe088;
}

.cookie-banner__actions {
  margin-top: 12px;
  text-align: right;
}

.cookie-banner__accept {
  background: #f2ca50;
  color: #3c2f00;
  border: none;
  padding: 8px 16px;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.cookie-banner__accept:hover {
  background: #ffe088;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .speed-line,
  .pulse-btn::after,
  .ambient-mesh,
  .gold-glow-hover:hover {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .share-menu,
  .share-toast {
    transition: none !important;
  }

  .share-menu {
    transform: none;
  }

  .share-menu.is-open {
    transform: none;
  }

  .hero-stat-headline,
  .hero-stat-subline {
    transition: none !important;
  }

  .hero-stat-headline.is-fading,
  .hero-stat-subline.is-fading {
    opacity: 1 !important;
  }
}
