/** =================== **/
/**  BUTTONS / TOGGLES  **/
/** =================== **/
.theme-toggle {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 40%, transparent),
    color-mix(in srgb, var(--secondary) 32%, transparent)
  );
  padding: 0.25rem 0.25rem;
  border: 1px solid var(--primary);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.theme-toggle:hover {
  background-color: var(--primix);
  border-color: var(--secondary);
}

.theme-toggle .sun {
  display: none;
}

html:has(#themeSwitch:checked) .theme-toggle .moon {
  display: none;
}

html:has(#themeSwitch:checked) .theme-toggle .sun {
  display: inline;
}

html:has(#themeSwitch:focus-visible) header .theme-toggle {
  outline: 2px solid var(--primix);
  outline-offset: 2px;
}

.cta-button {
  color: #ffffff;
  padding: 0.6rem 1.3rem;
  border: 0.8px solid var(--bar-text);
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease;
  -webkit-backdrop-filter: blur(3px) saturate(100%);
  backdrop-filter: blur(3px) saturate(100%);
  will-change: transform;
}

.cta-button:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 70%, transparent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35),
    0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent);
}

.cta-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35),
    0 8px 24px color-mix(in srgb, var(--primary) 45%, transparent);
}
